Hide Avatars & Signatures from Guests
This modification is in the archives.
I searched the forum for this template modification and failed to find a satisfactory result. The following template modifications will prevent guests (unregistered / not logged in) from seeing avatars and signatures.
Why? Some communities have avatars with NSFW (not safe for work) avatars and signatures. This adult content should not be viewed in most workplaces or by new guests not wanting such exposure. This insures that they won't run into problems until they register -- after which they were hopefully instructed to disable them in their User CP if desired. Before starting you'll want to verify the usergroup id of Unregistered / Not Logged In. It should be one, but check in your Usergroup Manager to make sure. Anyways... Go to your Admin CP and open your Style Manager. Find your default style and select edit templates from the drop down menu. Expand Postbit Templates and select postbit. Find... PHP Code:
<if condition="$show['avatar']"
PHP Code:
<if condition="$bbuserinfo['usergroupid'] != 1">
PHP Code:
$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
PHP Code:
</if>
PHP Code:
<if condition="$post['signature']">
PHP Code:
<if condition="$bbuserinfo['usergroupid'] != 1">
PHP Code:
<!-- / sig -->
PHP Code:
</if>
Avatars and signatures should no longer be visible to guests. Be sure to verify that registered users can still view avatars and signatures. I'm no expert coder and I'm a relative newbie to vBulletin, but I hope this helps someone. It helped me. Download No files for download. |