![]() |
Thanks for your Add, however it is now does not work with V4.0.X . It even causing problems while we click in to any category...
|
Quote:
https://vborg.vbsupport.ru/showthread.php?t=243176 |
OK, I know this is a really stupid question, but...
A few years ago I set up random banners on a forum, top and bottom of all pages. Here it is: http://www.horseshoes.com/forums There are 15 banners in that rotation. For the life of me I can't recall where I got that plug-in, and in searching, discovered yours. (I've read every post in this thread!) Regarding random banners, you posted this code: <script language="javascript" type="text/javascript"> <!-- function banner() { }; banner = new banner(); number = 0; // bannerArray banner[number++] = "<a href='http://www.yoursite1.com' target='_blank'><img src='/banners/image1.jpg' alt='' border='0' /></a>" banner[number++] = "<a href='http://www.yoursite2.com' target='_blank'><img src='/banners/image2.jpg' alt='' border='0' /></a>" banner[number++] = "<a href='http://www.yoursite3.com' target='_blank'><img src='/banners/image3.jpg' alt='' border='0' /></a>" // keep adding items above here... increment = Math.floor(Math.random() * number); document.write(banner[increment]); //--> </script> When you posted this code, you said it could be pasted in the HTML area of any forum template page. Ummmm.... what does that mean? How do I know where the HTML area is? (Lord, I feel stupid.....) Where would I put this code to achieve the same top and bottom placement I have in the forums referenced above? (I'm using version 3.6) To demonstrtae I'm not a total idiot, here's what the current banner plug-in looks like in the Control Panel: Thank you. |
It's been so long since I did that original banner placement...
OK, I finally figured out how to access the Header template (which shows you how unfamiliar I am with doing this type of stuff), and below is a screen shot of what I did. You'll see that the line: <if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else />$random_banner[$random_number]</if> has the $random_banner[$random_number] code in it, so I guess that's where I inserted it, and it calls on the PHP code in the parse_templates, shown in the previous post. So... where do I put the random banner code you posted, in this header code? Would you please advise as to the exact location? It will be appreciated. Thanks again. |
All times are GMT. The time now is 06:04 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|