PDA

View Full Version : Turn off avatars per forum...(vB Advanced)


pcoskat
04-28-2006, 03:25 PM
I am using VbAdvanced, and I'd prefer not to display avatars in the forum that is supplying the NEWS module.

Is this possible?

Freesteyelz
04-29-2006, 06:56 AM
You can set the avatar to not show up when you're creating your vBa page (in the News options). Or as you've requested, try this:

In either postbit or postbit_legacy find:


<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>


And replace it with:


<if condition="$thread['forumid'] == x">
<else />
<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>
</if>


Where "x" is change to the forum ID.

pcoskat
05-04-2006, 08:52 PM
Thank you! You're always SO helpful!! Much appreciated.

Freesteyelz
05-05-2006, 02:58 AM
Anytime. :)

pcoskat
05-06-2006, 10:05 PM
You know what? "Turn off avatar" is an option built into vBA...I guess I overlooked it at first.

BTW, are you ever available for paid work? If so, pm me! :)