vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v2.0 Support > Troubleshooting & Problems

Reply
 
Thread Tools Display Modes
  #1  
Old 10-29-2006, 06:53 AM
zooki zooki is offline
Junior Member
 
Join Date: Jun 2006
Posts: 7
Default Random Banner Plugin Hook Location

Hello, im trying to implement a rotating banner on my Website, i want to display it on VBa CMPS as well as in my Forums, the ads will be located at the bottom of my nav bar.

I can get it to work, but i have trouble finding the correct hook location for it to work on both the cmps front and in the forums.

It doesnt Work in the Navbar, but it works if i place the code in the Header, then the hook works on CMPS and On Forum.

Please help!
Reply With Quote
  #2  
Old 10-30-2006, 11:46 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Random Banner Plugin Hook Location

Can you post the code that you're trying to add to your navbar template?
Reply With Quote
  #3  
Old 10-30-2006, 06:57 PM
zooki zooki is offline
Junior Member
 
Join Date: Jun 2006
Posts: 7
Default Re: Random Banner Plugin Hook Location

sure thing.....

I have following as a plugin, its pretty long so i condensed it. Basically it has 5 different kinds of Ads and banners which rotate:


$random_number = rand(1, 5);

$random_banner[1] = '<center><b><script> GOOGLE PRODUCT </script></center>';

...

$random_banner[5] = 'More of the same';

--------------------------------------

Then in the Navbar, at the bottom i add following code:

$random_banner[$random_number]

- This works in the Forums..... I dont know how to get it to work on the CMPS page. It works on CMPS page if i add it to the bottom of the Header. But, it doesnt look at all good if i do that, it looks better if i can get it to work at end of the navbar template.

Thanks so much for your help Brian.
Reply With Quote
  #4  
Old 10-31-2006, 11:52 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Random Banner Plugin Hook Location

Admin CP => vBa CMPS => Default Settings => Portal Output Global Variables

Try adding this to that setting:
Code:
random_banner
random_number
Reply With Quote
  #5  
Old 11-10-2006, 06:22 PM
zooki zooki is offline
Junior Member
 
Join Date: Jun 2006
Posts: 7
Default Re: Random Banner Plugin Hook Location

Quote:
Originally Posted by Brian View Post
Admin CP => vBa CMPS => Default Settings => Portal Output Global Variables

Try adding this to that setting:
Code:
random_banner
random_number
Thanks so much Brian!! that did the trick

P.s sorry for late reply.
Reply With Quote
  #6  
Old 03-10-2007, 05:12 AM
confus confus is offline
Junior Member
 
Join Date: May 2006
Posts: 3
Default Re: Random Banner Plugin Hook Location

glad this thread exists, spent time trying to find the problem, worked in header but not navbar, almost made this same thread

thanks
Reply With Quote
  #7  
Old 03-14-2007, 06:01 AM
csoft32 csoft32 is offline
Junior Member
 
Join Date: Feb 2007
Posts: 1
Default Re: Random Banner Plugin Hook Location

<script language="javascript">
hinh=new Array
hinh=["banner.jpg","banner1.jpg","banner2.jpg","bann er3. jpg","banner4.jpg"];
i=0
function chuyenhinh()
{
h.filters.blendTrans.apply();
document.h.src="banner/"+hinh[i]
h.filters.blendTrans.play();
i++;
if (i>4)
i=0;
setTimeout("chuyenhinh()", 5*1000);
}
</script>

Notes :
<body onload=chuyenhinh()>

*: banner.jpg","banner1.jpg","banner2.jpg","banner3.j pg","banner4.jpg
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up a Plugin/Hook to perform this action? bhxtyrant "How Do I..." Questions 2 10-08-2005 05:28 PM
Random Banner ads - affiliate programs harv Add-On Modules & Modifications 3 09-10-2005 09:56 AM
REQ. Module with random banner TCB Add-On Modules & Modifications 1 12-09-2004 12:27 AM


All times are GMT -4. The time now is 04:06 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.