showhidelayer signature using javascript

Go down

In progress showhidelayer signature using javascript

Post by EsperofNight on February 25th 2014, 1:40 am

I would like to know how to hide user signatures using javascript on phpbb2 subsilver. The code itself is the same as the showhidelayer code. I just need to know how to write it around the signature id.

New Member

Posts : 1
Reputation : 1
Language : English

Back to top Go down

In progress Re: showhidelayer signature using javascript

Post by SLGray on February 25th 2014, 2:33 am

You can set it in your administration panel where users can not have signatures.

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


Male Posts : 43465
Reputation : 3084
Language : English
Location : United States

Back to top Go down

In progress Re: showhidelayer signature using javascript

Post by Ange Tuteur on February 25th 2014, 2:57 am

Hello EsperofNight,

If you want a show/hide feature for the signatures, try adding this script :
Administration Panel > Modules > Javascript codes management > Create a new script

Title : Show/Hide Signature
Placement : In the topics
Paste the code below and save :
$(function() {
    $('.signature_div').before('<input class="liteoption hidesig" type="submit" value="show/hide signature" style="margin-top:10px;">').hide();
    $('.hidesig').click(function() { $(this).next().toggle() });

By default of the script signatures will be hidden however, they can be shown by clicking a button present in each message that contains a signature.
Ange Tuteur

Male Posts : 13201
Reputation : 2917
Language : EN10, FR5, JA5
Location : Macungie, PA

Back to top Go down

Back to top

Permissions in this forum:
You cannot reply to topics in this forum