![]() |
Quote:
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) |
StevenS beat me to the reply.
|
Quote:
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. |
Awesome.
Did you have to resize all the images or will it do it auto? |
Quote:
|
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); |
Quote:
|
Quote:
--------------- Added [DATE]1301629440[/DATE] at [TIME]1301629440[/TIME] --------------- Issue was it needs to read: Code:
$newavatar = rand(1,32); |
thanks!!!
|
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! |
All times are GMT. The time now is 01:59 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|