Category Archives: Pligg

Block direct access to pligg pages

To block direct access to your pligg pages (which are residing inside Joomla Wrapper), use the following code.
In the pligg directory, create (or append if already exists) a .htaccess file and add the following code.

RewriteEngine On

# Blocking direct access
RewriteCond %{HTTP_REFERER} !^http://www.yourjoomlasite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yourjoomlsite.com/.*$ [NC]
RewriteCond %{REQUEST_URI} pliggdir [NC]
RewriteRule .* – [F]

JPligger 1.2 (Joomla 1.5 and Pligg 9.9 Integration)

Current Version: 1.2 Beta

License: GPL

Description: This mambot will sync Joomla 1.5 and Pligg 9.9 login with ease.

Looking for JPligger for Joomla 1.0.x and Pligg 9.8? See here.

Tested on: Joomla 1.5.2; Pligg 9.9.0
Note : CB is not required for this plugin to work

Detail Description: This plugin will allow you to run Pligg inside Joomla using Wrapper. It will sync user registration, login and forgot password between Joomla, CB and Pligg.

Support: Community Driven and If I find time.

Ideal Installation:

  • Use at your own risk! Backup first or use in test environment first.
  • Install Joomla in root folder
  • Install Pligg in /
  • Note DB settings of Pligg
  • Install JPligger Plugin in Joomla
  • Visit its settings
  • Provide details of Pligg DB
  • Publish and Save
  • Hide Registration through Pligg. Instructions here: hide-pligg-registration.txt

Optional Information: Pligg inside Joomla wrapper view instructions here.

Download JPligger 1.2 Plugin

This project was funded by Guillermo Moreno

JPligger – Joomla & Pligg Integration Mambot

Current Version: 1.0 Beta

License: GPL

Description: This mambot will sync Joomla and Pligg login with ease.

Tested on: Joomla 1.0.13; CB 1.1; Pligg 9.8.2

Looking for JPligger for Joomla 1.5 and Pligg 9.9? See here.
Note : CB is not required for this mambot to work

Detail Description: This mambot will allow you to run Pligg inside Joomla using Wrapper. It will sync user registration, login and forgot password between Joomla, CB and Pligg.

Support: Community Driven and If I find time.

Ideal Installation:

  • Use at your own risk! Backup first or use in test environment first.
  • Install Joomla in root folder
  • Install Pligg in /
  • Note DB settings of Pligg
  • Install JPligger Mambot in Joomla
  • Visit its settings (In admin > Mambots > JPligger)
  • Provide details of Pligg DB
  • Publish and Save
  • Hide Registration through Pligg. Instructions here: hide-pligg-registration.txt

Optional Information: Pligg inside Joomla wrapper

  • Link your Pligg in Joomla wrapper
  • Use on / in Wrapper Link Field
  • Set width and height to 100%, no scrollbar, yes to auto height.
  • Remove Pligg Header. Edit //templates//header.tpl (Remove as much as you can. Trail and Error)
  • Remove Pligg Footer. Edit //templates//footer.tpl (Remove as much as you can. Trail and Error)
  • Remove unwanted Siderbar modules. Edit //templates//sidebar.tpl (Remove Login/Registration Module and others as much as you can. Trail and Error)
  • Fit Pligg into wrapper:
    Edit CSS file of your Pligg template
    Find Contentbox and edit its width, find Sidebox and edit its width, find Wrap and edit its width
    Note: Depending on your joomla template width, set wrap width to max. Then split the max width between Contentbox and Sidebox. Also remember that there is padding in between so take that into account as well.
  • Thats all you need but if you want to dig down and integrate fully, there are more things that can be done.

Download JPligger Mambot

Download JPligger Plugin for Joomla 1.5 and Pligg 9.9 here.

Pligg – Joomla Integration Project

pligg joomla After my endless search for Pligg’s integration with Joomla, I have decided to work on it myself. For the simplicity of this project, I have very basic requirements. Later on, I plan to take this integration to the next level.

Requirements:

– Pligg included in Joomla CMS using Wrapper Module
– Common user login interface for Pligg + Joomla + Community Builder (CB)
– Common user registration system for Pligg + Joomla + Community Builder

I am assuming this project will take about one month to complete. If you have any ideas, you are most welcome to contribute.

I will update this post once I have updates for all.

Update: Project is now in Beta and can be downloaded from here: JPligger – Joomla and Pligg Integration

Pligg – Search Sidebar

Here is an example how you can add search box in sidebar. Demo

Download the file here: Pligg – Search Sidebar

Instructions:-

  • Create a backup of sidebar.tpl before proceeding
  • Refer the attached file. To be used at your own risk.
  • Create a new file and name it search.tpl in /template/<yourtemplate>/sidebar_modules/
  • Copy the code into search.tpl
  • Save the file.
  • Open and edit sidebar.tpl file found in /template/<yourtemplate>/
  • Append the code where ever you want the search box to appear in sidebar.
  • Thats it. Visit your website to see the search box right in your sidebox.

Moving your Pligg Website

In my recent project with a client. I was involved in integrating Pligg with his existing website. The project mainly involved design and user login integration. Throughout the website there were many hick-ups and I got to learn a lot about Pligg. One of the tasks was to move the site from development server to live server. I thought this may will help a newbie to learn how to migrate or move a Pligg website.

  • Create a backup. Yes, its very important to create a backup no matter what you do. If you are using cpanel then go to Backups > New backup > Full backup (files and database)
  • Using an FTP client, download all the files from your root folder (public_html). This step is not required if you’re moving the site from localhost to live server.
  • Using Phpmyadmin or equivalent software, export the database tables. This step is required even if the database is on localhost.
  • Upload all the downloaded files to the new server. Either in root folder or sub-folder.
  • Create the database and user. In cpanel, go to Databases > New Database and similarly create new user and map user to the database.
  • Now open lib/dbconnect.php file in your favorite text editor (editplus, dreamweaver etc) and change the database connection strings as per your new database.
  • CHMOD /cache and /template_c folders to 777.
  • Edit your site name in /config.php
  • Also, login to Pligg Administration, go to Configuration > Location >Update site url.

Thats it, visit your site and you should see it as it is. Test your site fully before launching or marketing it. If you land into any trouble do comment here and will try to help you out.