Advertisement

PMDStyles RegistrationPMDStyles Recommends DreamHost
How to Add Additional Sidebanner to Your phpMyDirectory Site PDF Print E-mail
You already have 2 sidebanners on your default phpMyDirectory installation but if you want to add more side banner to your website then this tutorial will guide you. This article explains how you can add additional sidebanner to your phpMyDirectory website.

Step 1: Backup everything!

First of all backup all files within your phpMyDirectory installation. Create a folder on your local system, and download all files to that folder using any ftp client application. You want to backup your files in case something goes wrong.

Step 2: Modify template_setup.php

The second thing you need to do is open /includes/template_setup.php file and locate this piece of code. It must be near line 38.

$banner_code = '';
$banner_type = 1;
include (PMDROOT.'/includes/banner.php');
$template->set('sidebanner1',$banner_code);
$banner_code = '';
$banner_type = 1;
include (PMDROOT.'/includes/banner.php');
$template->set('sidebanner2',$banner_code);

Now you need to add additional code (4 lines for each additional sidebanner) just after these lines. So for 3rd sidebanner.

$banner_code = '';
$banner_type = 1;
include (PMDROOT.'/includes/banner.php');
$template->set('sidebanner3',$banner_code);

same as for 4th sidebanner...

$banner_code = '';
$banner_type = 1;
include (PMDROOT.'/includes/banner.php');
$template->set('sidebanner4',$banner_code);

and so on.

Step 3: Modify template_public.tpl

This step is very important. Go to your template folder on your phpMyDirectory installation and open this file (template_public.tpl) with a text editor and make the necessary changes. You will need to insert code for newly created sidebanners in your template.

insert <?php echo $sidebanner3; ?>, <?php echo $sidebanner4; ?> etc at your desired location in this file.

Step 4: Test your new sidebanners

Now test your site to make sure that newly created sidebanners are working properly.
Thursday, 08 May 2008
 

Latest News

Corporate Business type websites are interestingly popular, however not usually because of their design. Business websites have a stereotype to be simple without any fancy features. The same concept has been used for our latest phpMyDirectory template. The template VIVA was created to provide a beautiful design focused on elegance, variety and typography. It makes a great basis for any site that ...
We look out for our customers requests, and we heard many members interested in a artistic template. PMDStyles presents an artistic yet professional template 'Frescos'. Frescos helps us to see how beautiful a phpMyDirectory template can be. Frescos features a fresh, stylish new look and also a CSS based template that uses minimal tables to control the layout, this allows for increased perform...
Are you looking for a good template for your personal directory or a business directory? Our new template Nova has been released. The design team keep it came in a simple and clean way, simple to use and simple to customize. The boring phpMyDirectory traditional homepage has been completely replaced by neat and eye-catching CSS based layout. Nova is a very clean design that really shows off th...
PMDStyles unleashes the next powerful Web 2.0 template: Neon! Neon comes packed with a lot of new eye-catching features. This exciting new template features a clean and simple design and plenty of PMDStyles horsepower under the hood. Maximum flexibility and a plethora of typography and module variations give this subtle design the power needed to make any content look amazing. Neon is has bee...
The much awaited "Edge" is now ready for its debut. You will find "Edge" to be sleek, highly appealing and on the cutting "Edge" of technology. Due to some technical issues in the text color changer, we had to abandon this feature at this time so as to get this outstanding template off and running. We will keep working on the issues for the color changer and perhaps release it in the next templa...

Client Login

Forgot Password? | Signup Now!