Rotating banners
This modification is in the archives.
I created this simple and easy hack for a rotating banner block. All you have to do is create a template and add a plugin location and your done.
1. Go to your ADMINCP and create a template called "banner" and insert the attacked code: PHP Code:
<!-- Begin rotating ad code -->
HOOK LOCATION is "global_start" TITLE is "banner" PLUGIN PHP CODE: PHP Code:
eval('$banner = "' . fetch_template('banner') . '";');
3. Now you can go into any template you want and where ever you put the $banner your rotating banners will appear. 4. Most people want to put this in the top right corner of the forums. If this is what where you want it then. go into you ADMINCP templates and into you header: Find: PHP Code:
<td align="$stylevar[right]">
PHP Code:
$banner
You can add more rotating banners then what is in the code. All you have to do in insert more lines with banners in the right location in the code. That should be self explanatory. Note: You can make your link open in a seperate browser window by adding the target='ad' in the line as shown below. PHP Code:
image[number++] = "<a target='ad' href='http://www.hikersupply.com'><img src='http://www.yoursite.net/forum/sponsors/hikersupply.gif' border='0'></a>"
Download No files for download. |