The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

showhidelayer signature using javascript

3 posters

Go down

In progress showhidelayer signature using javascript

Post by EsperofNight February 25th 2014, 02:40

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.
avatar
EsperofNight
New Member

Posts : 1
Reputation : 1
Language : English

http://megatenflagship.forumotion.com

Back to top Go down

In progress Re: showhidelayer signature using javascript

Post by SLGray February 25th 2014, 03:33

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


showhidelayer signature using javascript Slgray10

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

Male Posts : 51463
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

In progress Re: showhidelayer signature using javascript

Post by Ange Tuteur February 25th 2014, 03:57

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 :
Code:
$(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
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

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