News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

how to add a top banner

Started by maritimer, May 09, 2007, 03:13:50 PM

Previous topic - Next topic

maritimer

I want to add a advertising banners at the top of my theme. I need to know where and how to insert the code below so it will display my banners at the top right.

<?
include('adrotate.php');
?>

sawz

this assumes your php file is in the same place as index.php, the Source folder, Themes folder etcetera...

Quoteecho ' ';
global $boarddir;
   include('adrotate.php');

add it right after
Quote<body>';
in index.template.php of your theme.
keep smiling, they'll always wonder what your up too.....

ajayvibha

Hi sawz,

This seems to be interesting to learn about this type of file include.

But I am not understandting that why there is need to put echo ' '; global $boarddir; before  include('adrotate.php');

What simple use of include file like  include('adrotate.php'); is not possible.

I have spent lot of hours in understanding the working of SMF but could not find the proper details to work with the include files

Can you throw some light on this.

Thanks & Regards,
Ajay
<a href="http://www.obiztek.com [nofollow]" title="SEO Company India">Economical SEO Company</a>

metallica48423

what is or is not happening when you use include('path-to-file'); ?
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

Advertisement: