The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
April Fools Joke
Would this coding still work in vb 3.8.x?
Code:
just add something like $newavatar = mt_rand(1, 10); in postbit_display_start hook, (if you have 10 random avatars to display) and the in the postbit, change the avatar to <img src="avatarlocation/image_$newavatar.gif"> |
#2
|
||||
|
||||
This would be kinda kewl. Subscribing...
|
#3
|
||||
|
||||
|
#4
|
||||
|
||||
That's what I did last year.
In a hugely replublican/conservative forum, I replaced user avatars, with democrat/liberal politicians and celebrities, with some funny messages as user ranks. It proved to be a great prank. |
#5
|
||||
|
||||
No need to do any template edits. Just do it all in a plugin:
PHP Code:
|
#6
|
|||
|
|||
Would this work with 4.1.2?
|
#7
|
|||
|
|||
Quote:
it's a plugin, right? What Hook Location I must select? //edit: Nevermind, is something like this for vb 4??? |
#8
|
||||
|
||||
Just use postbit_display_complete.
It's just php, so it works with 3.x and 4.x |
#9
|
|||
|
|||
Thanks <3
|
#10
|
|||
|
|||
How do you make a plugin?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|