Welcome Guest [Log In] [Register]



Add Reply
A code I editted
Topic Started: Jan 6 2007, 06:34 AM (254 Views)
King Elemento
3a4a1
Administrators
Now instead of when [you] is posted, when King Elemento is posted, it shows the posters name. Pretty pointless considering the '/me' tag, but it's annoying with the boldness and the asterisk before it. It goes in the footer, at least, I put it there on my forum.

Yes, it was originally the '[you]' tag.

Code:
 
<script>
/*  
YOU tag v2
Created by iFusion
Editted by King Elemento into ME tag v1
*/

var me_tag = "[me]"



person = ""
if(document.getElementById('userlinks').innerHTML.match("Logged in as")){
person = document.getElementById('userlinks').getElementsByTagName('A')[0].innerHTML
}
else{
person = "me"
}

if(location.href.match(/showtopic=/i) != null){

var iDiv = document.getElementsByTagName('DIV');
for(i=0;i<iDiv.length;i++){
for(n=0;n<100;n++){
if(iDiv[i].className=="postcolor" && iDiv[i].innerHTML.match(me_tag) != null){

iDiv[i].innerHTML = iDiv[i].innerHTML.replace(me_tag, person);

}}}}
</script>
Offline Profile Quote Post Goto Top
 
ari_aaron
Member Avatar
1a4
Root Administrator
Now you're learning.

Yeh, It's pretty useless, and I think someone's done it before.



P.S. Can you remove broken topsites, and find the new ones?

My msn: Posted Image
Posted Image
If anyone wants GMail or Windows Live Messenger invites, PM me!
Offline Profile Quote Post Goto Top
 
King Elemento
3a4a1
Administrators
ari_aaron
Jan 11 2007, 04:05 AM
Now you're learning.

Yeh, It's pretty useless, and I think someone's done it before.

Heh. It is my first, and I'm better at editting/putting together existing things, than making things from scratch.

ari_aaron
Jan 11 2007, 04:05 AM

P.S. Can you remove  broken topsites, and find the new ones?

Yeah, ok. All iTopsites are broken right now however. That leaves us with two, and the other one... No idea.

It just isn't working.

EDIT: That leaves us with just the one... unfortunately.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · InvisionFree Scripts · Next Topic »
Add Reply


Theme designed by Sith of Outline