The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi,
Im really hoping someone will be able to help ![]() Im currently using VB3.6.7 and my test forum is located HERE. 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 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? |
#2
|
|||
|
|||
![]()
Your doing a good job on your site so far. It looks good.
|
#3
|
||||
|
||||
![]()
hi
in the FOOTER template find: Code:
<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 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: Code:
<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> |
#4
|
|||
|
|||
![]()
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 |
#5
|
||||
|
||||
![]()
Don't do it using javascript unless it's necessary. There's a tutorial here:
http://www.vbulletin.com/forum/showthread.php?t=170826 |
#6
|
|||
|
|||
![]() Quote:
Im currently using that tutorial, but would you know how to include flash banners? |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|