Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Hidden Signatures - Hide sigs like a spoiler for certain usergroups Details »
Hidden Signatures - Hide sigs like a spoiler for certain usergroups
Mod Version: 1.00, by BirdOPrey5 (IB Staff) BirdOPrey5 is offline
Developer Last Online: Dec 2018 I like it Show Printable Version Email this Page

vB Version: 3.8.x Rating: (1 vote - 5.00 average) Installs: 6
Released: 22 May 2010 Last Update: Never Downloads: 0
Supported Template Edits Re-usable Code Translations  

This is a template modification to enable hidden signatures for certain usergroups. I had several users who would always 'push the line' with what I consider acceptable signatures. While many users enjoyed their sigs, others surfing from work or in some cases home, did not. Rather then disable sigs for these users altogether I embarked on a means to hide their sigs by default. The inspiration, and some code came from this "Spoiler" BB Code:
http://www.vbulletin.org/forum/showthread.php?t=184855

Live Demo Here. (No registration necessary.)

You must know the Usergroup ID numbers for the usergroups you want to hide. The sample code hides the sigs of registered users, mods, admins, and super-mods, probably NOT what you want to do.

Users with hidden sigs can have the usergroup as their primary or additional usergroup. I strongly suggest you make a new usergroup based off of registered users called "Hide Sigs" then simply check the box for this usergroup in the user profile for every user you want to activate this for.

In your postbit and/or postbit_legacy template make the following change:
Find (about halfway down the window in 3.8.x)


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.


Note: You MUST Change the line : <if condition="is_member_of($post, 2, 5, 6, 7 )">
2,5,6,7 is the usergroups registered users, mods, admins, and super mods.
I suggest making a new usergroup just for hidden sigs, for me my line is:
<if condition="is_member_of($post, 23 )">
It is very unlikely your "Hide Sigs" usergroup number will be 23.

If you want to hide sigs for all users by default then change the line to:
<if condition="1">

And that's it. If you use more then 1 style then be sure to make the change to postbit or postbit_legacy in each. Another option is to make a copy of your default style and use the code above to hide all sigs by default and let your users know the hidden sigs style is available for those who may prefer it.

This has been tested on the latest versions of IE, Firefox, Chrome, and Safari.
On Chrome and Safari the box "Show Signature" does not change to "Hide Signature" when pressed, but it works perfectly fine to show and re-hide the sig.

See screenshots in attachments.

Please click install if you use this.

Download Now

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

Screenshots

Click image for larger version

Name:	hidden_sig_before.jpg
Views:	175
Size:	131.2 KB
ID:	117424   Click image for larger version

Name:	hidden_sig_after.jpg
Views:	184
Size:	184.8 KB
ID:	117425  

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
Allow usergroups ( Admins ) to use HTML for posts , sigs Tekton vBulletin 3.0 Full Releases 59 07 Jul 2008 07:09
Hidden old threads for certain usergroups luroca vBulletin 3.5 Add-ons 6 16 Nov 2005 04:00

Comments
  #2  
Old 22 May 2010, 03:24
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Reserved for future use.
__________________
-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; 22 May 2010 at 03:34.
Reply With Quote
  #3  
Old 23 Aug 2010, 09:25
Zylantex Zylantex is offline
 
Join Date: Sep 2009
Real name: Chris
Could that be modified to hide signatures for posters with less than "x" posts? That would make it very useful for anti-spam.
Reply With Quote
  #4  
Old 23 Aug 2010, 13:52
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Yes I believe so...

Change the first line "if" statement to:

<if condition="$post[posts] < 5">

Change 5 to however many posts you want before the sig shows...
great idea!
__________________
-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
  #5  
Old 05 Apr 2014, 22:42
PAKIDIL PAKIDIL is offline
 
Join Date: Jan 2007
Doesn't work in Firefox, Works fine in IE but not working in Firefox. Any solution please?
Reply With Quote
  #6  
Old 06 Apr 2014, 12:25
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Are you sure you have javascript enabled on firefox because it works for me... what version of FF and OS are you using? Link to a thread where it isn't working?
__________________
-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 08 Apr 2014, 08:51
PAKIDIL PAKIDIL is offline
 
Join Date: Jan 2007
I have to rechecked with my friend as as soon as I put this code in postbit, all usergroup signatures disappears atleast in my computer. I have to check with others and will let you know 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 18:16.

Layout Options | Width: Wide Color: