Quote:
Originally Posted by SVTCobraLTD
How do you make a plugin?
|
Plugins & Products -> Add New Plugin
Product = vBulletin
Hook Location = postbit_display_complete
Title = Random Avatar
Execution Order = 5
Plugin PHP Code =
PHP Code:
$newavatar = rand(1,20);
$this->post['avatarurl'] = "avatarlocation/image_$newavatar.gif";
Save
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)