Back to vBulletin 3.6 Template Modifications

Hide Avatars & Signatures from Guests
Mod Version: 1.00, by Zieen

This modification is in the archives.
vB Version: 3.6.5 Rating: (4 votes - 4.75 average) Installs: 38
Released: 12 Apr 2007 Last Update: Never Downloads: 8
Not Supported  

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']" 
Add before...
PHP Code:
<if condition="$bbuserinfo['usergroupid'] != 1"
Find...
PHP Code:
$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if> 
Add after...
PHP Code:
</if> 
Find...
PHP Code:
<if condition="$post['signature']"
Add before...
PHP Code:
<if condition="$bbuserinfo['usergroupid'] != 1"
Find...
PHP Code:
        <!-- / sig -->
        </if> 
Add after...
PHP Code:
</if> 
The same edits must be made in postbit_legacy.

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.


vblts.ru supports vBulletin®, 2022-2024