Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Hide Avatars & Signatures from Guests Details »
Hide Avatars & Signatures from Guests
Mod Version: 1.00, by Zieen (Member) Zieen is offline
Developer Last Online: Feb 2012 I like it Show Printable Version Email this Page

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

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add before...

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Find...

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add after...

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Find...

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add before...

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Find...

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add after...

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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 Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #16  
Old 26 May 2008, 10:23
urdu urdu is offline
 
Join Date: Apr 2007
Hello,

if i want add more then 1 group

like Users Awaiting Email Confirmation and (COPPA) Users Awaiting Moderation

so what i do ?
Reply With Quote
  #17  
Old 27 May 2008, 09:41
urdu urdu is offline
 
Join Date: Apr 2007
Unhappy

Originally Posted by urdu View Post
Hello,

if i want add more then 1 group

like Users Awaiting Email Confirmation and (COPPA) Users Awaiting Moderation

so what i do ?
no body here in vb.org can help me ???
Reply With Quote
  #18  
Old 03 Jun 2008, 17:51
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Originally Posted by urdu View Post
no body here in vb.org can help me ???
I'm not sure but I think if you go to where the group IDs are you can add them separated by commas.
Reply With Quote
  #19  
Old 03 Jun 2008, 22:29
urdu urdu is offline
 
Join Date: Apr 2007
Originally Posted by Fungsten View Post
I'm not sure but I think if you go to where the group IDs are you can add them separated by commas.
you mean like this ?


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

or

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

or

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

========
i tryed all these one by one but not working even i got error

Last edited by urdu; 03 Jun 2008 at 22:37.
Reply With Quote
  #20  
Old 03 Jun 2008, 22:38
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Originally Posted by urdu View Post
you mean like this ?


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

or

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

or

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

========
i tryed all these one by one but not working even i got error
Don't know. Sorry.
Reply With Quote
  #21  
Old 07 Jun 2008, 17:19
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Since the template has got hooks for the signature, it seems better to use a separate plugin if you only want to hide signature from guests. Hiding signatures from guests can do a lot of good for your SEO.

Why not use the hooks: postbit_signature_start and postbit_signature_end to add the code that Zieen describes above?

Originally Posted by Fungsten View Post
I'm not sure but I think if you go to where the group IDs are you can add them separated by commas.
<if condition="!in_array($bbuserinfo['usergroupid'], array(1, 2, 3))">

Last edited by Alfa1; 07 Jun 2008 at 17:30.
Reply With Quote
  #22  
Old 18 Jun 2008, 17:26
saviola8x's Avatar
saviola8x saviola8x is offline
 
Join Date: May 2006
i like it.
__________________
Facebook Vietnam
Reply With Quote
  #23  
Old 18 Jun 2008, 19:34
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Originally Posted by Alfa1 View Post
Since the template has got hooks for the signature, it seems better to use a separate plugin if you only want to hide signature from guests. Hiding signatures from guests can do a lot of good for your SEO.

Why not use the hooks: postbit_signature_start and postbit_signature_end to add the code that Zieen describes above?


<if condition="!in_array($bbuserinfo['usergroupid'], array(1, 2, 3))">
How did that work. If it didn't try "|" without the ".
Reply With Quote
  #24  
Old 12 Sep 2008, 10:29
baktabul's Avatar
baktabul baktabul is offline
 
Join Date: Oct 2006
Real name: Misafir
I want to hide ads from all members, is there any basic way ?
__________________
. ,
?
-
Reply With Quote
  #25  
Old 25 Oct 2008, 09:34
siliconfinance siliconfinance is offline
 
Join Date: Mar 2007
search template conditionals and locate the if statement that looks like this:

<If guest>
Ad
</if>
Reply With Quote
  #26  
Old 04 Mar 2009, 05:59
Spada_FMC Spada_FMC is offline
 
Join Date: Nov 2008
I really love this easy looking mod! However, I was hoping I could just have the ability to hide images in the signature for multiple groups.

What's the best way to accomplish that?
Reply With Quote
  #27  
Old 04 Mar 2009, 12:33
thompson thompson is offline
 
Join Date: Jul 2007
Real name: Thomas
thanks for that
__________________
My Babies:Sport Community | Bodybuilding - Fitness - Training
Reply With Quote
  #28  
Old 27 May 2010, 07:45
busybeeburns busybeeburns is offline
 
Join Date: Feb 2006
Originally Posted by MoB Dudditz MD View Post
Very nice - something so simple that I have overlooked but needed.
Cuts loading time and saves bandwidth of visitors.TY

I believe you can go one step further by combining both conditionals.

<if condition="$show['avatar'] AND $show['member']">

<if condition="$post['signature'] AND $show['member']">

SEE BELOW
This way, you avoid the extra </if> since its not needed
and saves a few characters of code in the process.

In your postbit and postbit_legacy
FIND:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

REPLACE WITH:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

FIND:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

REPLACE WITH:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
this worked thanks!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 21:03.

Layout Options | Width: Wide Color: