View Full Version : How To Hide Avatar
Adeawan
01-30-2009, 08:48 PM
hello
i want to hide members avatar in religion
I Know We Can do that but dont know how to do it
Can Any1 Help Me??
Lynne
01-31-2009, 01:09 AM
You want to hide a users avatar? You may remove it. Or, you may put the user in a usergroup that doesn't allow avatars.
Dismounted
01-31-2009, 02:36 AM
If you think the avatar is breaking one of your forum's rules, tell the user, and ask them to remove it. If they don't remove it, remove it for them.
Adeawan
02-01-2009, 02:26 AM
no i dont want to remove avatar of any user
just want to that if any user go in religoius section the avatar hide it self
i seen that on some forums
Lynne
02-01-2009, 03:49 AM
Find the avatar in the postbit and put a condition around it:
<if condition="$thread['forumid'] != x">
<a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</if>
Adeawan
02-01-2009, 04:33 PM
what shall i change that X with??
Lynne
02-01-2009, 04:40 PM
The forumid you don't want the avatar to show up in.
Adeawan
02-01-2009, 04:52 PM
i tried to install it and now it shows two avatars on posbit lol
can u explain plz if u dont mind
Lynne
02-01-2009, 05:18 PM
I said put the condition *around* where the avatar is linked - don't add that code, replace the code (well, of just take the <if> and </if> and put it around the avatar link).
Adeawan
02-01-2009, 05:35 PM
i replaced the code and when i changed the X to forum id it gives me an error
Lynne
02-01-2009, 06:22 PM
Let's see your exact code (use the html tags and post three or four lines above and below your change) and let's see the exact error.
Adeawan
02-01-2009, 09:41 PM
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post
[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
Here The Avatar Code From Postbit And The Forum Id Is (id:8)
Now Tell Me What Shall I Change??
Lynne
02-01-2009, 11:14 PM
You can try comblining the two like this:
<if condition="$show['avatar'] AND $thread['forumid'] != x"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post
[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
Adeawan
02-02-2009, 05:54 PM
u know when i change that X to id:8 it gives me this error
https://vborg.vbsupport.ru/external/2009/02/47.gif
Lynne
02-02-2009, 07:52 PM
That makes no sense - there is no colon is that line. I tried this on a totally default postbit and it worked just fine. Maybe post your template code with a few lines above and below and we can see what is going on.
Adeawan
02-02-2009, 10:37 PM
here we go
</if>
$post[firstnewinsert]
<!-- / status icon and date -->
</div>
</td>
</tr>
<tr>
<td class="alt2" style="padding:0px">
<!-- user info -->
<table cellpadding="0" cellspacing="$stylevar[cellpadding]" border="0" width="100%">
<tr>
<if condition="$show['avatar'] AND $thread['x'] != x"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post
[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
<td nowrap="nowrap">
<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
$post[onlinestatus]
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>
Lynne
02-02-2009, 10:53 PM
It should be:
AND $thread['forumid'] != x"Change x to your forumid ie.
AND $thread['forumid'] != 8"
Adeawan
02-03-2009, 03:57 PM
ohh Thanks Alot I have Done it
1 more thing if i wana hide avatar in any other section than??
Lynne
02-03-2009, 04:40 PM
Then you may add another forumid:
<if condition="$show['avatar'] AND ($thread['forumid'] != 8 OR $thread['forumid'] != x)">
Adeawan
02-03-2009, 04:51 PM
u mean like i put 9 after or??
Lynne
02-03-2009, 05:17 PM
If it is forumid 9 you want to also have not show avatars (along with forumid 8), then:
<if condition="$show['avatar'] AND ($thread['forumid'] != 8 OR $thread['forumid'] != 9)">
Adeawan
02-03-2009, 09:14 PM
the 1st code worked but this 1 doesnt work
Lynne
02-03-2009, 11:00 PM
Ack! There I go with my illogic when playing with not equals!
<if condition="$show['avatar'] AND ($thread['forumid'] != 8 AND $thread['forumid'] != 9)">
Adeawan
02-03-2009, 11:38 PM
wowww finally i have done it
Thanks alott Lynee
Thank you soooooooooo much
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.