vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Hidden Signature Hack (https://vborg.vbsupport.ru/showthread.php?t=76088)

KBV 02-09-2005 10:00 PM

Hidden Signature Hack
 
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.

RMS-Chef 02-10-2005 08:44 PM

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!

Polo 02-10-2005 08:56 PM

Interesting, thanks for sharing...

KBV 02-10-2005 09:27 PM

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

yoyoyoyo 02-10-2005 09:47 PM

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

KBV 02-10-2005 09:51 PM

Nice idea. Just pump out ideas for this hack. ;) I'll see what I can do with some of them.

Polo 02-10-2005 10:17 PM

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 :rolleyes:

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

The Geek 02-10-2005 10:21 PM

Quote:

Originally Posted by Polo
guys... that is a default option :rolleyes:



https://vborg.vbsupport.ru/profile.php?do=editoptions

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.

yoyoyoyo 02-10-2005 10:25 PM

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

yoyoyoyo 02-10-2005 10:38 PM

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 :)


All times are GMT. The time now is 10:08 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01174 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete