![]() |
Running on 3.7.4 In debug mode and this is RED on Show Thread and Show Forum Only on Forums / Thread That do not have Your Mod Active on ,
|
I have it running on VB 3.8
- demo of banner on forum and threads in forum. |
can you tell us how to cache the add_banner template
|
hmm there shoulden't be :|
- I'll have to look @ the zip file attached. I do have a plugin @ hook cache_templates Code:
if (THIS_SCRIPT == "showthread" OR THIS_SCRIPT == "forumdisplay" ) |
your Cache templete is as follows on my board
PHP Code:
|
This mod does not work with this one:
https://vborg.vbsupport.ru/showthread.php?t=135297 The code that must be used is: $showrandomquote It won't pull when placed in the code box. Do you know of any workaround to this? Thanks. |
Quote:
I'd like to put it in another position (not under navbar but near the footer). How can I move it? Also, a code to work like to following? PHP Code:
Thanks |
I have changed code from add_banner template to right template then show Forumdisplay and showthread very good.
But I want to add more banner show ForumHome but not show Forumdisplay and showthread? Thanks for your help! |
Quote:
PHP Code:
|
Works in VB 3.8.4 Patch Level 1
Thanks! |
what about for VB 4.0 ?
|
Quote:
|
any updates? or similar mod for vb4?
|
Any updates?
|
Desperate for this for v4.0
|
Quote:
|
REALLY need this to upgrade to VB4 due to commercial obligations.
|
Any ETA for vB 4.x support? I am dead in the water without this mod!
Many thanks - in advance. |
Updated to VB4.x
https://vborg.vbsupport.ru/showthread.php?t=243176 |
Thank You, Sir!!!!
|
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 01:33 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:
|