Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Hidden Signatures - Hide Sigs (spoiler) based on Post Count (anti-spam) or Usergroup Details »
Hidden Signatures - Hide Sigs (spoiler) based on Post Count (anti-spam) or Usergroup
Mod Version: 1.00, by BirdOPrey5 (IB Staff) BirdOPrey5 is offline
Developer Last Online: Jul 2019 I like it Show Printable Version Email this Page

vB Version: 4.0.x Rating: (2 votes - 5.00 average) Installs: 14
Released: 23 Aug 2010 Last Update: 23 Aug 2010 Downloads: 48
Supported Template Edits Re-usable Code Translations  

This mod allows you to hide a user's signature by default. There will be a "Show Signature" button displayed instead of a sig... if you click on the button the real signature will show- you can then click the button again if you want to re-hide the signature.

This has been tested on VB 4.0.6 in IE / Firefox / Chrome / Safari and Opera.

You can hide everyone's signature if you want but more then likely you'd want to hide signatures based on a user's post count- this could help foil would be signature-spammers by not showing their content or hiding sigs of new users you just don't trust yet. Alternatively you can hide signatures by usergroup, such as for registered users but allow sigs to show for VIP members only. Of course you can also use a combination of the above to- hide sigs for all users with less than 30 posts unless they are VIP members...

This is a Template Edit.

Edit your postbit or postbit_legacy template, whichever you use.

Find the following code:

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

Note this is in the middle of a line, you may want to edit the line so that it's on its own line- extra lines don't matter in templates.

Replace the code with:

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

That exact code will auto hide signatures of anyone with less then 10 posts.

To change this behavior edit the "if" statement at the top of the code:
<vb:if condition="$post[posts] < 10">

Change the number 10 to whatever minimum post count you want.

If you want to hide sigs per usergroup change the line to:
<vb:if condition="is_member_of($post, 2, 5, 7 )">

That code will hide sigs of registered users, mods, and super-mods... maybe not what you want to do but a good way to show you how to use it. If you only want one usergroup removes the commas, such as:
<vb:if condition="is_member_of($post, 2)">

This will block it for only registered users.

You can combine both with an "AND" or "OR" statement:
<vb:if condition="is_member_of($post, 2) OR $post[posts] < 10">

This will hide sigs for all registered users or anyone with a post count less than 10 no matter what usergroup they are in.

Please click Mark As Installed if you use this.

Some code for this is based on this "spoiler" tag:
http://www.vbulletin.org/forum/showthread.php?t=184855

Download the .txt file for a copy of the Install Instructions...

Download Now

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

Screenshots

Click image for larger version

Name:	ss_hiddensigvb4.jpg
Views:	538
Size:	102.3 KB
ID:	121211   Click image for larger version

Name:	ss_hiddensigvb4_2.jpg
Views:	539
Size:	104.2 KB
ID:	121212  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Show Thread Enhancements Hidden Signatures - Hide sigs like a spoiler for certain usergroups BirdOPrey5 vBulletin 3.8 Template Modifications 6 08 Apr 2014 07:51
Anti-spam post decrementer Kier vBulletin 2.x Full Releases 17 19 Apr 2003 04:52

Comments
  #2  
Old 23 Aug 2010, 14:18
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Translations:

Arabic - Thanks to Dr. osamA, Post # 4


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

More to come?
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.

Last edited by BirdOPrey5; 24 Aug 2010 at 00:49.
Reply With Quote
  #3  
Old 23 Aug 2010, 14:28
Alucard^'s Avatar
Alucard^ Alucard^ is offline
 
Join Date: Feb 2008
Real name: Laureano
Nice one, installed... i will test later.
Reply With Quote
  #4  
Old 24 Aug 2010, 00:31
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Real name: Dr.osama
Excellent
installed + 5 stars

here is code in Arabic

just last night I was thinking about this code you saved my time man thank you


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

__________________
Reply With Quote
  #5  
Old 24 Aug 2010, 14:44
sticky sticky is offline
 
Join Date: Sep 2003
This would be extremely useful for me for signatures that are not work safe.

Would there be any way to use this just for certain signatures and not all?
Reply With Quote
  #6  
Old 24 Aug 2010, 15:33
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Yeah that's actually what I use it for- just make a new usergroup "Hidden Sigs" and add anyone you want too it as a secondary usergroup.

Use the condition:
<vb:if condition="is_member_of($post, X)">

Where 'X' is the usergroup id of your Hidden Sigs usergroup.
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #7  
Old 27 Aug 2010, 00:12
sticky sticky is offline
 
Join Date: Sep 2003
Originally Posted by BirdOPrey5 View Post
Yeah that's actually what I use it for- just make a new usergroup "Hidden Sigs" and add anyone you want too it as a secondary usergroup.

Use the condition:
<vb:if condition="is_member_of($post, X)">

Where 'X' is the usergroup id of your Hidden Sigs usergroup.
Excellent, that is a solution I will use if necessary.

Would there be any way to add in hiding by userid or for users to tag their own sigs as NWS?
Reply With Quote
  #8  
Old 27 Aug 2010, 02:39
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Yes on both accounts... to show hide sigs based on user id:


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

Where X, Y, Z are userids of specific users...

Now to hide sigs of users who mark theirs as not work safe, also possible but will take a bit more...

First you need to make a Custom User Profile Field...
In Admin CP go to the menu on the left and choose "Add New User Profile Field" under "User Profile Fields."

Choose "Single Selection Radio Box" from the drop down menu...

On the next screen set the following...

Title: Work Safe Sig
Description: Is you signature "Work Safe?" If "No" it will be hidden by default.
Options:

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

Field Required: Yes, at registration and...
Private/Field Searchable.../Display on... All "No"
Display Page: Options: Thread Viewing
Leave all other settings to default and hit "Save" to create the profile field.

Now for the condition use:


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

Where "X" is the field number of the user profile field you just created.

Note- we are using !="No" (does NOT equal "No") instead of the more intuitive =="Yes" (equals "Yes") because the vast majority of users will probably never set this field at all so it physically won't equal "Yes" for most people, but that is OK, so long as it doesn't equal "No" we want a regular sig.

I hope this is easy enough to follow- if you have a question about it let me know.

Of course you can still use AND's or OR's as needed in the if statement such as:


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

Will hide the sig always for user id's 2, 3, and 4 and also hide the sigs for anyone else who sets custom field 8 to "No"
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.

Last edited by BirdOPrey5; 27 Aug 2010 at 15:51.
Reply With Quote
  #9  
Old 27 Aug 2010, 06:59
sticky sticky is offline
 
Join Date: Sep 2003
Damn bud, you are good!

Thank you so much for addressing my posts. Most people who do mods just tell you that isn't what theirs was designed to do so instead of working with people they work against them. You were nice enough to help, refreshing to see, and thank you.
Reply With Quote
  #10  
Old 27 Aug 2010, 15:50
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by sticky View Post
Damn bud, you are good!

Thank you so much for addressing my posts. Most people who do mods just tell you that isn't what theirs was designed to do so instead of working with people they work against them. You were nice enough to help, refreshing to see, and thank you.
You're welcome... to me releasing a mod is only 40% of the work, supporting it is 60% or more. In a community where any mod might be a person's first one you need to be prepared to help anyone with anything, else don't bother.
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #11  
Old 20 Oct 2010, 19:02
ZeuQma's Avatar
ZeuQma ZeuQma is offline
 
Join Date: Jun 2008
Real name: Aydın Yakar
nice work, thank you..
Reply With Quote
  #12  
Old 30 Nov 2011, 17:36
brad99 brad99 is offline
 
Join Date: Aug 2008
very cool, thanks for your efforts!
Reply With Quote
  #13  
Old 19 Sep 2012, 17:41
Gord Lacey Gord Lacey is offline
 
Join Date: Feb 2012
Wonderful mod!

Now, I'm trying to find a way to have this be displayed only if a signature is quite long. Any way to set a condition like "Signature Length > 500"?
Reply With Quote
  #14  
Old 20 Sep 2012, 23:19
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Yes and no... It would be fairly easy to count the characters in the plugin but with BBCode you could have 1000 characters in the signature but it only displays a short 100 of them as actual text.

You could filter out the BBCode but it is more difficult.

Worse is that in my experience it's images which take up a lot of room, not so much text, and there is no way to check the size of the image each time it is loaded.

There was a thread somewhere here on a mod or template edit that allowed for a max signature height in pixels, and anything longer than that it would show a scrollbar so it didn't take up the whole page.

Here is the link actually: http://www.vbulletin.org/forum/showt...68#post2085268
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #15  
Old 21 Sep 2012, 13:53
Gord Lacey Gord Lacey is offline
 
Join Date: Feb 2012
Thanks Joe, I saw that mod the other day as well.

Would you be able to share the count to count the characters? I realize the BBCode can change what's displayed, but I'm still interested in how to do it. I don't allow graphics in the signatures, so that's not a problem.
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 18:44.

Layout Options | Width: Wide Color: