Code Steps
23Apr/120

How To Add Banner Next to Logo Image to the Website Created Using Pligg

Some times it is required to add Banner/Affiliate Link/Ad to the Header in the Website created using Pligg CMS software. The following steps explain how to add this. It tested with wistie template.

Step (1) Login to the website as Admin.

Step (2) Click on Template menu from the Admin Panel.

Step (3) Select header.tpl file from "Choose a file to open:" drop down box and Open the file.

Step (4) Look for the following line of code:

<div id="logo"><a href="{$my_base_url}{$my_pligg_base}">{#PLIGG_Visual_Name#}</a></div>

Step (5) After the above line of the code add the following code:

<div id="banner"><a target="_blank" href="<<URL>>"><img src="<<image url>>" border="0" width="<<width>>"  height="<<height>>" alt="<<alt text>>"/></a></div>

Replace  the following with valid values:

<<URL>> - What URL to open when user clicks on the Image.

<<image url>> - URL of the Image you want to display.

<<width> - Width of the Image.

<<height>> - Height of the Image.

<<alt text>> - Alternate text for the Image.

Step (6) Save your changes. Now need to modify the style.css stylesheet file. Go back to Template Editor.

Step (7): Select ../templates/wistie/css/style.css file from "Choose a file to open:" drop down box and Open the file.

Step (8) Look for the following code:

#logo {
padding: 10px;
font-size: 24px;
font-weight: bold;
color: #000;
}

and replace the code with the following:

#logo {
padding: 10px;
font-size: 24px;
font-weight: bold;
color: #000;
float: left;
}

Step (9) After the below line of code:

#logo a{color: #000; text-decoration:none;}

add the below banner code:

/* Banner */
#banner {
float: right;
padding-right: 250px;
padding-top: 10px;
}

observe that this banner is used in Step (5) to adjust the banner properly.

Step (10) Save your changes and Refresh your home page to see your banner on the website.

by Samomas

6Mar/120

How to add Google Adsense to the website created using Pligg?

Pligg is an open source content management system (CMS) that lets you easily create your own social network.

The following steps explain how to add adsense to the website which is created by using Pligg CMS software. Note: The following worked fine for wisite template.

Step (1) Sign in to your website as Administrator.

Step (2) Once you log-in, click on Admin to go to Administration Control Panel; then click on Modules to manage the Modules.

Step (3) Adding Google Adsense through the module Admin Snippets is very easy. So, first check whether Admin Snippets module is installed or not. If it is not installed already, install the module.

Step (4) Once you install Admin Snippets module, click on Settings to go for module settings where you can add your Google Adsense code. One thing to remember, you need to select where this adsense to be displayed from the drop-down combo.

Step (5) Once you made all the necessary changes Refresh the page to reflect your changes.

by Samomas.com

13Dec/110

How to add logo image to the website created using Pligg?

Pligg is an open source content management system (CMS) that lets you easily create your own social network.

The following steps explain how to add logo to the website created by using Pligg CMS software. It tested with wistie template.

Step (1) Login to the website as Admin.

Step (2) Click on Template menu from the Admin Panel.

Step (3) Select header.tpl file from "Choose a file to open:" drop down box and Open the file.

Step (4) Look for the following line of code:

<div id="logo"><a href="{$my_base_url}{$my_pligg_base}">{#PLIGG_Visual_Name#}</a></div>

Step (5) Replace the above line with the following code:

<div id="logo"><a href="{$my_base_url}{$my_pligg_base}"><img src="{$my_pligg_base}/templates/{$the_template}/images/<<Your Image Name>>" width="<<width>>px" height="<<height>>px" border="0" alt="{#PLIGG_Visual_Name#}" /></a></div>

Replace <<Your Image Name>> with name of the Image file. Make sure that the image is located in the given path.

<<width> Width of the Image.

<<height>> Height of the Image.

Step (6) Save your changes and click on Home menu.

Step (7) You can find your logo in your website.

by Samomas