deadend123
Junior Member
testing custom title
Posts: 68
deadend123 said 0 great things
|
Post by deadend123 on Oct 29, 2009 16:28:49 GMT -8
Hey, I'd like to have a code to move the custom title under the username, but above the ranks/groups. Thanks.
|
|
|
Post by Wormopolis on Oct 31, 2009 22:12:53 GMT -8
like that?
|
|
|
Post by Wormopolis on Oct 31, 2009 22:17:04 GMT -8
<script type="text/javascript"> <!-- // custom title under username for (tds=document.getElementsByTagName('td'), t=0; t<tds.length; t++) { if (tds[t].width=='20%' && tds[t].className.match(/windowbg/) && tds[t].align=='left' && tds[t].firstChild.nodeName.match(/a/i)) { for (ch=tds[t].childNodes, i=0; i<ch.length; i++) { if (ch.nodeName=='#text' && ch.nodeValue.match(/member is/i) && ch[i-2].nodeName=='#text') { uname=tds[t].getElementsByTagName('b')[0]; tmp=ch[i-2]; tmpbr=ch[i-1]; tds[t].insertBefore(tmp,uname.nextSibling); tds[t].insertBefore(tmpbr,uname.nextSibling); break; } } } }
// --> </script>
|
|
deadend123
Junior Member
testing custom title
Posts: 68
deadend123 said 0 great things
|
Post by deadend123 on Nov 1, 2009 10:12:44 GMT -8
Do I put it in the global footers? It's not working on my site.
|
|
|
Post by Wormopolis on Nov 1, 2009 17:08:58 GMT -8
top of global footers. you most likely have something else modifying the MP and made it not found.
|
|
deadend123
Junior Member
testing custom title
Posts: 68
deadend123 said 0 great things
|
Post by deadend123 on Nov 1, 2009 18:43:08 GMT -8
|
|
|
Post by Wormopolis on Nov 1, 2009 21:07:52 GMT -8
I didnt account for the custom title being anything but text, thats why.
this is going to take me a bit longer to do then.. there are so many possiblilites of what is in a MP that codes like this can be difficult sometimes.
|
|
deadend123
Junior Member
testing custom title
Posts: 68
deadend123 said 0 great things
|
Post by deadend123 on Nov 1, 2009 21:13:02 GMT -8
Oh, I just have the code where the "last post", and the "side bar menu" thing is on the main page. Could that be the problem?
|
|
|
Post by Silly Test Account on Nov 1, 2009 21:32:47 GMT -8
no.. its because you have an image in your custom title. see how its not working here anymore for you (the smily face isnt up there with the text but still under the stars).
I just have to write it a little differently in order to catch everything.
|
|
deadend123
Junior Member
testing custom title
Posts: 68
deadend123 said 0 great things
|
Post by deadend123 on Nov 1, 2009 21:36:57 GMT -8
k
|
|
|
Post by Silly Test Account on Nov 1, 2009 23:51:51 GMT -8
<script type="text/javascript"> <!-- // custom title under username if (!location.href.match(/ctunder/)) { for (tds=document.getElementsByTagName('td'), t=0; t<tds.length; t++) { if (tds[t].width=='20%' && tds[t].className.match(/windowbg/) && tds[t].align=='left' && tds[t].getElementsByTagName('b')[0]) { for (ch=tds[t].childNodes, i=0; i<ch.length; i++) { if (ch.nodeName=='#text' && ch.nodeValue.match(/member is/i)) { uname=tds[t].getElementsByTagName('b')[0]; tmpbr=ch[i-1]; tmphold=document.createElement('div'); r=i-2; while(!ch[r].nodeName.match(/br/i)) { window.status=ch[r].nodeName; if (!ch[r].nodeName.match(/img/i) || ch[r].alt!="*") { tmphold.appendChild(ch[r]); } r--; } if (tmphold.childNodes.length>0) { while (tmphold.childNodes.length) { tds[t].insertBefore(tmphold.childNodes[0],uname.nextSibling); } tds[t].insertBefore(tmpbr,uname.nextSibling); } break; } } } } } // --> </script>
that should do it.
|
|
deadend123
Junior Member
testing custom title
Posts: 68
deadend123 said 0 great things
|
Post by deadend123 on Nov 2, 2009 5:44:33 GMT -8
It works!
|
|
|
Post by Wormopolis on Nov 2, 2009 6:29:40 GMT -8
I see by your source code you are a fan!
There is an upgrade to the av/sig permission code in my database if interested.
|
|
deadend123
Junior Member
testing custom title
Posts: 68
deadend123 said 0 great things
|
Post by deadend123 on Nov 2, 2009 16:34:53 GMT -8
Okay whats new?
|
|
|
Post by Wormopolis on Nov 2, 2009 18:31:16 GMT -8
split defaults for avs/sigs and I made it work on recent posts page.
|
|