PDA

View Full Version : Default Avatars...


venomx
09-04-2004, 08:03 AM
Has anyone made a hack that does this?
Basicly if a user doesnt have an avatar it uses a default one thats set in the admincp settable per usergroup.

I found some GREAT advatars for admin, super, mods that I would love to set up to show for them if they dont have one uploaded. Theres also 2 others one for LAMER and one for TROLL. Would be good for banned members... :P

buro9
09-04-2004, 08:14 AM
Has anyone made a hack that does this?
Basicly if a user doesnt have an avatar it uses a default one thats set in the admincp settable per usergroup.

I found some GREAT advatars for admin, super, mods that I would love to set up to show for them if they dont have one uploaded. Theres also 2 others one for LAMER and one for TROLL. Would be good for banned members... :P
You can do this with conditionals in the template.

Check for an avatar and use it if one exists, and if not run through a series of IF statements to insert the HTML for an avatar according to usergroup.

Look in the postbit and postbit_legacy templates, that's probably where you want to put the conditionals, and there are examples of conditionals within that template too :)