The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

showhidelayer signature using javascript

View previous topic View next topic 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.

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


SLGray
Administrator
Administrator

Male Posts : 36748
Reputation : 2449
Language : English
Location : United States

http://ztwds.forumotion.com/

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

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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