Register Members List Search Today's Posts Mark Forums Read

Thread Tools
Old 03 Nov 2001, 11:32
Insane2 Insane2 is offline
Join Date: Nov 2001

I just started a small motorbike/car/speed related banner exchange and a couple of my users are running vbulletin 2.0.3. Now my question is, if they add the supplied code to the HTML header, in the VBulletin Admin CP, the page ID is not unique on each displayed page of the forum. Resulting in cached banners and missed credits. I was wondering is their a way to generate a random number in place of the page ID in the html header in admin CP??

I hope all that makes sense.

Thanks a ton in advance for any help you may be able to give.
Reply With Quote
Old 03 Nov 2001, 11:47
Scott MacVicar Scott MacVicar is offline
Join Date: Oct 2001
Within the styles part of the admin panel, tell them to add this code to the Header Insert of the appropriate style.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

then wherever the page id is meant to go place $pageid

hope this helps.
Scott MacVicar
vBulletin Developer
Reply With Quote
Old 03 Nov 2001, 15:14
Insane2 Insane2 is offline
Join Date: Nov 2001
Thanks i passed on the info and was asked where to put the first bit :
$pageid = rand();

something about what part of styles?!? i think...

Edit: just got email... works a treat... THANKS HEAPS!! YOUR A CHAMPION

Last edited by Insane2; 03 Nov 2001 at 15:19.
Reply With Quote
Old 03 Nov 2001, 23:24
Mark Hensler's Avatar
Mark Hensler Mark Hensler is offline
Join Date: Oct 2001
if you need a really good seed for srand(), use:
srand((double) microtime() * 1000000);
Reply With Quote

Similar Threads
Thread Thread Starter Forum Replies Last Post
Miscellaneous Hacks Random Banners by BOP5 (Simple random banners) BirdOPrey5 vBulletin 3.8 Add-ons 12 16 Nov 2011 12:47
Add "Sponsored by" banners to your forum categories Chen vBulletin 2.x Full Releases 313 11 Jan 2005 15:03

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

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

New To Site? Need Help?

All times are GMT. The time now is 03:43.

Layout Options | Width: Wide Color: