Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Hidden Signature Hack Details »»
Hidden Signature Hack
Version: 0.1, by KBV KBV is offline
Developer Last Online: Apr 2010 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 02-09-2005 Last Update: Never Installs: 3
 
No support by the author.

Hack Author
Name: KBV
E-Mail: havok@naruto.no
Forums: http://www.naruto.no/forum

Description:
This will "hide" the signature field and will make the user have to push a link to show it. Very usefull for forums with HUGE signatures.

Notes:
If you have installed Comicforum.de's spoilertag modification (https://vborg.vbsupport.ru/showpost....7&postcount=11) you can skip step 1. If you use this hack, please click on the INSTALL button.

Changelog:
V0.1 (10th february 2005)
* Hidden Signature Hack released!

Installation Time:
3 min.

Testing:
Tested on vBulletin 3.0.3

Files to Modify:
* None

Templates to Modify:
* postbit
* postbit_legacy
* Common Templates -> "headinclude"


INSTALLATION:

Step 1:
Goto your main skin (not child skins) and "Edit Common Templates", in the "headinclude" part add the code
Code:
<script type="text/javascript"> 
<!-- 
function showSpoiler(block) { 
   block.nextSibling.nextSibling.style.display ="block"; 
   block.parentNode.removeChild(block); 
} 
// --> 
</script>
Step 2:
Goto your main skin and edit "postbit" and "postbit_legacy". Replace
Code:
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
with
Code:
<!-- spoiler signature -->
<div>__________________<br /><a onclick="showSpoiler(this);"><u>$post[username]'s signature</u></a>
<span style="display:none">
<!-- sig -->
<div>
$post[signature]
</div>
<!-- / sig -->
</span>
</div>
<!-- spoiler signature-->
WARNING! It's important that you seperate the <div> tag from the <span> tag, THEY CAN NOT BE ON THE SAME LINE!

And you're done. Enjoy!

Copyright: The actuall javascript was NOT made by me, but was developed by one of www.comicforum.de's users, TheSmallOne.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-10-2005, 08:44 PM
RMS-Chef RMS-Chef is offline
 
Join Date: Aug 2003
Location: MA, USA
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting. I would be great to have this as an option that each user could turn on/off in their own CP instead of just globally. Thanks for the hack!
Reply With Quote
  #3  
Old 02-10-2005, 08:56 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting, thanks for sharing...
Reply With Quote
  #4  
Old 02-10-2005, 09:27 PM
KBV KBV is offline
 
Join Date: Aug 2004
Location: Oslo, Norway
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks.

If anyone knows how to hack this so that a user kan turn it on and off in their CP, it would be great. ^.^
Reply With Quote
  #5  
Old 02-10-2005, 09:47 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KBV
Thanks.

If anyone knows how to hack this so that a user kan turn it on and off in their CP, it would be great. ^.^
Or perhaps have the option to choose be an admin thing (an admin can either allow the user to choose or an admin can choose to have all sigs viewed this way).
Reply With Quote
  #6  
Old 02-10-2005, 09:51 PM
KBV KBV is offline
 
Join Date: Aug 2004
Location: Oslo, Norway
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice idea. Just pump out ideas for this hack. I'll see what I can do with some of them.
Reply With Quote
  #7  
Old 02-10-2005, 10:17 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KBV
Thanks.

If anyone knows how to hack this so that a user kan turn it on and off in their CP, it would be great. ^.^
guys... that is a default option

Quote:
You have the option to show or hide various elements of messages, which may be of use to users on slow internet connections, or who want to remove extraneous clutter from posts.
-Show Signatures
-Show Avatars
-Show Images (including attached images and images in [IMG] code
https://vborg.vbsupport.ru/profile.php?do=editoptions
Reply With Quote
  #8  
Old 02-10-2005, 10:21 PM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Polo
sorry... havent looked at the hack. But cant a user profile field be used for each member to turn it on or off? That seems easy enough.
Reply With Quote
  #9  
Old 02-10-2005, 10:25 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by the nail geek
sorry... havent looked at the hack. But cant a user profile field be used for each member to turn it on or off? That seems easy enough.
that's along the lines of what I was thinking
Reply With Quote
  #10  
Old 02-10-2005, 10:38 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

or... if you wanted to get really fancy, you could have an option to set up parameters: if the sig is over X number of characters (or contains any BB code) then the sig is hidden by default
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 11:37 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07283 seconds
  • Memory Usage 2,297KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete