View Full Version : Banner In Footer
powerful_rogue
07-21-2007, 01:16 PM
Hi,
Im really hoping someone will be able to help :)
Im currently using VB3.6.7 and my test forum is located HERE. (http://www.southeastkent.com/dovernew/)
What id like to do is add two banners right at the bottom of the forum just above where it says "All times are GMT +1. The time now is 03:09 PM."
I found this guide HERE (http://www.vbulletin.com/forum/showthread.php?t=170826) and it sounds like it does exactly what I want, however I cant seem to get it to work. Ive created the plugin, but what needs to go in the "Hook Location" and "Execution Order" boxes. Theres no mention of this on the tutorial.
Also, what file would I need to edit to place the banners just above the "All times are GMT +1. The time now is 03:09 PM." line?
Thanks in advance
Dave
Anyone have any ideas, or can suggest a way of adding two banners side by side?
agilent
07-21-2007, 07:21 PM
Your doing a good job on your site so far. It looks good.
Kaasie
07-22-2007, 02:35 PM
hi
in the FOOTER template find:
<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
add a <br> before $vbprase and add your custom code
<center>
<SCRIPT LANGUAGE="Javascript"><!--
function banner() {
};
banner = new banner();
number = 0;
// bannerArray
banner[number++] = "<a href='http://www.domain1.com' target='_blank'><img src='/images/banners/yourimage.jpg' alt='your description' border='0'></a>"
banner[number++] = "<a href='http://www.domain2.com' target='_blank'><img src='/images/banners/yourimage.jpg' alt='your description' border='0'></a>"
increment = Math.floor(Math.random() * number);
document.write(banner[increment]);
//--></SCRIPT>
</center>
if you want more random banners just add a new line
if you want 2 different banners side to side just make a table of 2 cells and add the bannercodes in each cell like:
<table border="0" width="100%">
<tr>
<td><center>
<SCRIPT LANGUAGE="Javascript"><!--
function banner() {
};
banner = new banner();
number = 0;
// bannerArray
banner[number++] = "<a href='http://www.domain1.com' target='_blank'><img src='/images/banners/yourimage.jpg' alt='your description' border='0'></a>"
banner[number++] = "<a href='http://www.domain2.com' target='_blank'><img src='/images/banners/yourimage.jpg' alt='your description' border='0'></a>"
increment = Math.floor(Math.random() * number);
document.write(banner[increment]);
//--></SCRIPT>
</center>
</td>
<td>
<SCRIPT LANGUAGE="Javascript"><!--
function banner() {
};
banner = new banner();
number = 0;
// bannerArray
banner[number++] = "<a href='http://www.domain1.com' target='_blank'><img src='/images/banners/yourimage.jpg' alt='your description' border='0'></a>"
banner[number++] = "<a href='http://www.domain2.com' target='_blank'><img src='/images/banners/yourimage.jpg' alt='your description' border='0'></a>"
increment = Math.floor(Math.random() * number);
document.write(banner[increment]);
//--></SCRIPT>
</td>
</tr>
</table>
good luck
Kaasie.
I followed the instructions with the code and couldnt get it to work. Do I have to change the banner number from 0 to 3 (what Im using)? Thanks
RedTyger
07-31-2007, 03:10 PM
Don't do it using javascript unless it's necessary. There's a tutorial here:
http://www.vbulletin.com/forum/showthread.php?t=170826
powerful_rogue
11-16-2007, 09:25 PM
Don't do it using javascript unless it's necessary. There's a tutorial here:
http://www.vbulletin.com/forum/showthread.php?t=170826
Redtyger,
Im currently using that tutorial, but would you know how to include flash banners?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.