The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
Plugins & Products -> Add New Plugin
Product = vBulletin Hook Location = postbit_display_complete Title = Random Avatar Execution Order = 5 Plugin PHP Code = PHP Code:
avatarlocation is replaced with the path of your avatars. I uploaded a bunch of avatars to a directory called funavatars. Each avatar needs to begin with a number. In this example, 1-20. image_x (x is the random number) |
#12
|
|||
|
|||
StevenS beat me to the reply.
|
#13
|
||||
|
||||
I was typing very fast.
I actually did a variation on this. PHP Code:
funavatars ..1 ..2 ..3 ..4 Now I only wish I could add a conditional so it starts at midnight and ends at 11:59PM the user's time. |
#14
|
|||
|
|||
Awesome.
Did you have to resize all the images or will it do it auto? |
#15
|
||||
|
||||
I downloaded avatars that were all 100x100px. It won't resize the avatars.
|
#16
|
|||
|
|||
Im missing something, no avatar is showing when i activate plugin.
images are in forums/customavatars/rice/ images are named 1_image_newavatar.jpg plugin code is: Code:
$newavatar = rand(1,32); $this->post['avatarurl'] = "customavatars/rice/image_$newavatar.jpg"; |
#17
|
|||
|
|||
Quote:
|
#18
|
|||
|
|||
Quote:
--------------- Added [DATE]1301629440[/DATE] at [TIME]1301629440[/TIME] --------------- Issue was it needs to read: Code:
$newavatar = rand(1,32); $this->post['avatarurl'] = "/forums/customavatars/rice/image_$newavatar.jpg"; |
#19
|
|||
|
|||
thanks!!!
|
#20
|
||||
|
||||
Some people don't have avatars, so it's not quite as funny as I'd hope.
But a serious bunch of guys with care bear avatars is funny stuff! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|