The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
random style each visit
I'm looking for a hack / mod / plugin that would allow a random style to be displayed each time a user visits the page. I have several logos that I want to use, but i want the rest of the forum (including mkportal, which pulls the color from the forum) to match the primary color of the logo.
I saw the random logo thing, but I want the entire style to be random. Hope that makes sense. |
#2
|
|||
|
|||
I'm kinda looking for this too. It should be easy to do, based on the random logo thing. I'll see if I can figure it out myself, and reply back here if I do.
|
#3
|
|||
|
|||
Anyone know of anything like this? I'd be interested in it, too!
|
#4
|
|||
|
|||
Nothin' huh?
|
#5
|
|||
|
|||
You could insert this in the global.php file.
($hook = vBulletinHook::fetch_hook('style_fetch')) ? eval($hook) : false; $numstyles = 3; // however many styles you have $randstyle = rand(0, $numstyles * 1000); if ($randstyle < 1000) { $vbulletin->userinfo['styleid'] = 1; $styleid = 1; } else if ($randstyle < 2000) { $vbulletin->userinfo['styleid'] = 2; $styleid = 2; } else if ($randstyle < 3000) { $vbulletin->userinfo['styleid'] = 3; $styleid = 3; } |
#6
|
|||
|
|||
Oooh..great! Thanks for the help. I have 3.5 but I'll try this out pronto!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|