2
#1
Toggle signatures
Posted December 8th 2011, 12:46pm
Signatures can be useful, but signatures can be very ugly, too. If you don't want to see ugly signatures, you can switch off them. This script use code originally written by Dion, but I made some changes.

var copyright='Toggle signatures in posts for forumotion boards. This script use code similar to Dion Designs's toggle profile script. Copyright © 2011 by Marko(Loud.) & Dion Designs. All Rights Reserved.';

function tsigs(cam) {
if(cam=='yes') {
$('.signature_div').css('display','block');
}
else {
$('.signature_div').css('display','none');
}
}
function togglesigs() {
var tsc = my_getcookie('sigs');
if(tsc=='yes') {
tsc='no';
}
else {
tsc='yes';
}
my_setcookie('sigs',tsc,true);
tsigs(tsc);
}
$(function() {
a=$('.addthis_button')[0];
if(a) {
$(a).before('<button class="button2" title="Toggle signatures" onclick="togglesigs();"><img src="http://cdn2.iconfinder.com/data/icons/ledicons/text_signature.png" /></button>');
var tsc = my_getcookie('sigs');
if (tsc == null) {tsc = 'yes';}
my_setcookie('sigs',tsc,true);
tsigs(tsc);
}
});


Cheers, M.
φ
Posts: 37
Joined: August 27th 2011, 11:00pm
Location: Србија/Serbia
Likes Given: 4
Likes Received: 2
2
#2
Toggle signatures
Posted December 8th 2011, 1:38pm
Nice! There are a lot of people, including myself, who don't like to look at signatures -- and this is a good way to accommodate them.

I believe this only works on phpBB3, however. It can be made to work on IPB2/Invision and PunBB by changing this:

$('p.left-box').eq(0).after('<p class="right"><button class="button2" title="Toggle signatures" onclick="togglesigs();"><img src="http://cdn2.iconfinder.com/data/icons/ledicons/text_signature.png" /></button></p>');

to this:

$(a).before('<button class="button2" title="Toggle signatures" onclick="togglesigs();"><img src="http://cdn2.iconfinder.com/data/icons/ledicons/text_signature.png" /></button>');
φ
Posts: 1599
Joined: March 12th 2009, 11:00pm
Location: Uncertain due to momentum
Likes Given: 26
Likes Received: 357
Toggle signatures
Posted December 8th 2011, 1:57pm
Thank you :) I edited script with your code. :)
φ
Posts: 37
Joined: August 27th 2011, 11:00pm
Location: Србија/Serbia
Likes Given: 4
Likes Received: 2
Toggle signatures
Posted December 8th 2011, 2:17pm
Weren't you Mare the one that wanted 50px more on AC's signatures and started a riant :P
Love it, this is something I'd use. ;)
φ
Posts: 52
Joined: June 30th 2011, 11:00pm
Likes Given: 6
Likes Received: 3
Toggle signatures
Posted December 8th 2011, 3:12pm
@Nera: Don't start that talk. :P
φ
Posts: 37
Joined: August 27th 2011, 11:00pm
Location: Србија/Serbia
Likes Given: 4
Likes Received: 2
Toggle signatures
Posted December 8th 2011, 3:31pm
Hehehe, the topic title + the topic starter pulled me by the thoung heh. You should show the one you made for the avatars on topics. Only the loading time is bad :/
Really Mare, I like the script and you not being lazy, just wanted to let you know ;)
φ
Posts: 52
Joined: June 30th 2011, 11:00pm
Likes Given: 6
Likes Received: 3
Toggle signatures
Posted December 11th 2011, 5:24am
It does not work on phpBB3, I do not see the button.
φ
Posts: 1
Joined: December 1st 2011, 12:00am
Toggle signatures
Posted December 11th 2011, 6:08am
It works fine for me in phpBB3.
φ
Posts: 37
Joined: August 27th 2011, 11:00pm
Location: Србија/Serbia
Likes Given: 4
Likes Received: 2
Toggle signatures
Posted December 11th 2011, 6:11am
Works perfect in my phpBB3. Thank you GH.
φ
Posts: 1
Joined: November 3rd 2011, 11:00pm
Likes Given: 2
Toggle signatures
Posted December 25th 2011, 11:16pm
I tried to add this to me Invision forum. The Font Size toggler and Profile Position toggler disappeared. Also I do not see the image to toggle the signature.
φ
Posts: 59
Joined: September 7th 2011, 11:00pm
Location: Texas, United States
Likes Given: 51
Likes Received: 1
Toggle signatures
Posted February 6th 2012, 3:07pm
Ok, I see the problem.
Replace this line:
var copyright='Toggle signatures in posts for forumotion boards. This script use code similar to Dion Designs's toggle profile script. Copyright © 2011 by Marko(Loud.) & Dion Designs. All Rights Reserved.';


with:
var copyright='Toggle signatures in posts for forumotion boards. This script use code which is similar toggle profile script by Dion Designs. Copyright © 2011 by Marko(Loud.) & Dion Designs. All Rights Reserved.';


(:
φ
Posts: 37
Joined: August 27th 2011, 11:00pm
Location: Србија/Serbia
Likes Given: 4
Likes Received: 2
Toggle signatures
Posted February 6th 2012, 9:43pm
I changed the line in the code, but it still did not appear. Also the Font Size Toggler and Profile Toggler buttons disappeared.
φ
Posts: 59
Joined: September 7th 2011, 11:00pm
Location: Texas, United States
Likes Given: 51
Likes Received: 1
Toggle signatures
Posted February 10th 2012, 1:57pm
sorry, but this code is doesnt work on my phpbb3 forum,..
φ
Posts:
Avatar
Guest
Toggle signatures
Posted February 11th 2012, 4:52am
@marvin96:
GH~ said:
Replace this line:
var copyright='Toggle signatures in posts for forumotion boards. This script use code similar to Dion Designs's toggle profile script. Copyright © 2011 by Marko(Loud.) & Dion Designs. All Rights Reserved.';


with:
var copyright='Toggle signatures in posts for forumotion boards. This script use code which is similar toggle profile script by Dion Designs. Copyright © 2011 by Marko(Loud.) & Dion Designs. All Rights Reserved.';


(:


try. For me it works perfect.
φ
Posts: 37
Joined: August 27th 2011, 11:00pm
Location: Србија/Serbia
Likes Given: 4
Likes Received: 2
Toggle signatures
Posted February 11th 2012, 6:11am
no, there isnt any button to hide the signatures..
my code:
var copyright='Toggle signatures in posts for forumotion boards. This script use code which is similar toggle profile script by Dion Designs. Copyright © 2011 by Marko(Loud.) & Dion Designs. All Rights Reserved.';

function tsigs(cam) {
if(cam=='yes') {
$('.signature_div').css('display','block');
}
else {
$('.signature_div').css('display','none');
}
}
function togglesigs() {
var tsc = my_getcookie('sigs');
if(tsc=='yes') {
tsc='no';
}
else {
tsc='yes';
}
my_setcookie('sigs',tsc,true);
tsigs(tsc);
}
$(function() {
a=$('.addthis_button')[0];
if(a) {
$(a).before('<button class="button2" title="Toggle signatures" onclick="togglesigs();"><img src="http://cdn2.iconfinder.com/data/icons/ledicons/text_signature.png" /></button>');
var tsc = my_getcookie('sigs');
if (tsc == null) {tsc = 'yes';}
my_setcookie('sigs',tsc,true);
tsigs(tsc);
}
});
φ
Posts:
Avatar
Guest
Toggle signatures
Posted February 11th 2012, 7:57am
need I a CSS Code?
φ
Posts:
Avatar
Guest
Toggle signatures
Posted February 11th 2012, 8:05am
no. :)
Check your script, or enter a Developer tools. :)
φ
Posts: 37
Joined: August 27th 2011, 11:00pm
Location: Србија/Serbia
Likes Given: 4
Likes Received: 2
Toggle signatures
Posted February 11th 2012, 10:08am
this is my script:
http://www.schiggysboard.com/24244.js

..dont work..
φ
Posts:
Avatar
Guest
Toggle signatures
Posted February 11th 2012, 11:25am
I had nothing chaneged.. now it works..
φ
Posts:
Avatar
Guest
Toggle signatures
Posted February 11th 2012, 10:28pm
I would like to use this code, but I have a problem: Not only does it not work on my Phpbb3 type forum, but it also causes my post profile and text re-size toggle buttons to stop working.
φ
Posts: 280
Joined: October 2nd 2011, 11:00pm
Likes Given: 27
Likes Received: 4

Who is online

Users browsing this forum: No registered users and 1 guest