inherit
149300
0
Jun 14, 2017 15:01:19 GMT -8
Crayola
171
November 2009
risingsunset
|
Post by Crayola on Jun 1, 2012 12:08:01 GMT -8
Currently on my site I am using this code:
<script type="text/Javascript"> // Second Admin Editable Only Signature by Chris // Do not redistribute without permission of the creator
// Scroll down til it says "EDIT HERE" var aTD = document.getElementsByTagName("td"); function addSig(user,sig){ for(a=0;a<aTD.length;a++){ if(aTD[a].width == "20%" && aTD[a].innerHTML.match("user="+user)){ if(location.href.match(/action=viewprofile/i)) return false; var x = aTD[a].nextSibling.getElementsByTagName("table")[0]; var y = x.rows[2].cells[0]; if(!y.innerHTML.match(/<hr/i)) y.innerHTML += "<hr size='1' class='hr' />"; else y.innerHTML += "<br />"; y.innerHTML += "<font size='1'>"+sig+"</font>"; } } }
// EDIT HERE // SYNTAX: addSig("username","sig's HTML. No line breaks, use <br /> instead"); addSig("admin","Whee."); </script>
but there is an issue: if someone has a similar username, they get the same signature. Like, one member is using the name "Ren" and another user is using the name "Renei" and though I haven't modded in Renei's signature, they are recieving the signature that I have given Ren. One of my mods name is "Mav" and one of their character's names is "Maverick", so one of the accounts got two signatures. It also happens when people use numbers wit their multiple accounts. . . . "guest1" "guest2" etc etc.
Is there some way for me to fix that?
|
|
#00AF33
Bark Different.
102833
0
1
Feb 12, 2023 16:57:46 GMT -8
RedBassett
I'm a Marxist/Lennonist of the Groucho/John variety.
15,405
April 2007
applecomputer
RedBassett's Mini-Profile
|
Post by RedBassett on Jun 1, 2012 12:28:24 GMT -8
|
|
inherit
149300
0
Jun 14, 2017 15:01:19 GMT -8
Crayola
171
November 2009
risingsunset
|
Post by Crayola on Jun 1, 2012 12:38:56 GMT -8
Yes! Perfect! Thank you very much! Had I known it was that easy I would have asked this question AGES ago instead of waiting months after discovering this issue. XD
|
|
#00AF33
Bark Different.
102833
0
1
Feb 12, 2023 16:57:46 GMT -8
RedBassett
I'm a Marxist/Lennonist of the Groucho/John variety.
15,405
April 2007
applecomputer
RedBassett's Mini-Profile
|
Post by RedBassett on Jun 1, 2012 12:40:48 GMT -8
No problem, glad it works!
|
|