PDA

View Full Version : Hidden Signature Hack


KBV
02-09-2005, 10:00 PM
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.php?p=543707&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<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<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->with<!-- 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 (http://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
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
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:

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