![]() |
How To Hide Avatar
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?? |
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.
|
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.
|
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 |
Find the avatar in the postbit and put a condition around it:
HTML Code:
<if condition="$thread['forumid'] != x"> |
what shall i change that X with??
|
The forumid you don't want the avatar to show up in.
|
i tried to install it and now it shows two avatars on posbit lol
can u explain plz if u dont mind |
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).
|
i replaced the code and when i changed the X to forum id it gives me an error
|
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.
|
Code:
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post Now Tell Me What Shall I Change?? |
You can try comblining the two like this:
HTML Code:
<if condition="$show['avatar'] AND $thread['forumid'] != x"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post |
u know when i change that X to id:8 it gives me this error
https://vborg.vbsupport.ru/external/2009/02/47.gif |
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.
|
here we go
Code:
</if> |
It should be:
HTML Code:
AND $thread['forumid'] != x" HTML Code:
AND $thread['forumid'] != 8" |
ohh Thanks Alot I have Done it
1 more thing if i wana hide avatar in any other section than?? |
Then you may add another forumid:
HTML Code:
<if condition="$show['avatar'] AND ($thread['forumid'] != 8 OR $thread['forumid'] != x)"> |
u mean like i put 9 after or??
|
If it is forumid 9 you want to also have not show avatars (along with forumid 8), then:
HTML Code:
<if condition="$show['avatar'] AND ($thread['forumid'] != 8 OR $thread['forumid'] != 9)"> |
the 1st code worked but this 1 doesnt work
|
Ack! There I go with my illogic when playing with not equals!
HTML Code:
<if condition="$show['avatar'] AND ($thread['forumid'] != 8 AND $thread['forumid'] != 9)"> |
wowww finally i have done it
Thanks alott Lynee Thank you soooooooooo much |
All times are GMT. The time now is 02:12 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:
|