PDA

View Full Version : Quick Question, please help


bigcurt
04-08-2005, 12:07 AM
I searched for it but didnt really know what to search for, I am lloking for a way to change my banned users avatars automatically. Like say when I ban say tetaccnt than tetaccnt's avatar will be changed to anything I want.

I BELIEVE vbulletin.org has something like this installed..so maybe..a little admin help would be great :).

Thanks alot
have fun
~Big Curt out~

EDIT --
https://vborg.vbsupport.ru/showthread.php?t=24997&highlight=usergroup+avatar --found that but doesnt look like that is what I am looking for :(

DRJ
04-08-2005, 05:59 AM
You need to edit postbit/postbid_legacy and memberinfo. Look for this code:


<if condition="$show['avatar']">
<div class="smallfont">
&nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>


Then I would just add a second conditional like this:


<if condition="$show['avatar']">
<if condition="bbuserinfo['usergroupid']==8>

DO SOMETHING HERE

<else />
<div class="smallfont">
&nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>
</if>

bigcurt
04-09-2005, 12:44 AM
Well, I am almost posistive there is a hack out like this because vbulletin.org has it installed..I believe..it would make my life 10x easier...anyone maybe know where I can find it..I am not quite sure what ya mean by the above statement.

DRJ
04-09-2005, 03:34 AM
Replace the first code with the second and change DO SOMETHING HERE to the link for the image you want to display.