Hidden Signature Hack
This modification is in the archives.
Hack Author
Name: KBV E-Mail: email 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 ( Spoiler (click to open)
I removed the spoiler and signature mod and the error seems to be gone
these were the mods, Open includes/function_showthread.php, find: $post['signature'] = $sigcache["$post[userid]"]; Replace with: //$post['signature'] = $sigcache["$post[userid]"]; $post['signature'] = ""; That's it! Upload the file. and // Spoiler-Hack v 1.0.0 // This hack was developed by one of our users, TheSmallOne for use on http://www.comicforum.de // The hack adds a spoiler-tag to the vbCode and displays the entered text between the tags // as a button, displaying only "Show Spoiler". Once clicked, the spoiler is displayed. // Very useful to hide postings on movie- or comicbook-forums, in which secrets about a // story are revealed - in order to keep it up to every user, whether he would like to read // it or not. // // Features: - own image on editor // - button with javascript // // Templates to be changed: 1 (headinclude) // New phrases to be added: 2 (showspoiler, showspoilerwithtitle) // New custom BB Codes to be added: 2 Step 1: ===================================== Upload the gif in this ZIP: ===================================== spoiler.gif upload to: images/editor/ Step 2: ===================================== Search in template "headinclude" for: ===================================== var IMGDIR_MISC = "$stylevar[imgdir_misc]"; // --> </script> ===================================== replace with: ===================================== var IMGDIR_MISC = "$stylevar[imgdir_misc]"; // --> function showSpoiler(block) { // by The Small One block.nextSibling.nextSibling.style.display ="block"; block.parentNode.removeChild(block); } </script> Step 3: ===================================== Add this new BB Codes: ===================================== Title: Spoiler Tag: spoiler Replacement: <div class="spoiler"> <input type="button" class="button" onClick="showSpoiler(this);" value="Show spoiler"> <span class="content" style="display:none">{param}</span> </div> Example: [spoiler]Spoilertext[/spoiler] Description: If you would like to reviel any information, which could spoiler other users, please use this spoiler-tag. Use {option}: NO Picture for this button: Don't insert anything here. Step 4: ===================================== Add this new BB Codes: ===================================== Title: Spoiler with title Tag: spoiler Replacement: <div class="spoiler"> <input type="button" class="button" onClick="showSpoiler(this);" value="Show Spoiler about {option}"> <span class="content" style="display:none">{param}</span> </div> Example: [spoiler]Spoilertext[/spoiler] Description: If you would like to reviel any information, which could spoiler other users, please use this spoiler-tag. You can use a title, if you wish. Just write spoiler=title or something else. Use {option}: YES Picture for this button: images/editor/spoiler.gif ===================================== That's all folks. Any questions go to: email Close
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> Goto your main skin and edit "postbit" and "postbit_legacy". Replace Code:
<!-- sig --> <div> __________________<br /> $post[signature] </div> <!-- / sig --> 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--> And you're done. Enjoy! Copyright: The actuall javascript was NOT made by me, but was developed by one of http://www.comicforum.de's users, TheSmallOne. Download No files for download. Screenshots
|