Post by Infinite on Oct 24, 2004 19:59:44 GMT
Script Name: Custom Name Tag
Version: 1
Script Creator: Reverence/Infinite
Cross-Browser: Unknown
Compatability: Proboards Forums (Though it may work on other forum systems it has not been tested there.)
Brief Description: This will make it so below member's posts they have the option to add their own custom name tag. For example; Hechizero always types "~Hechizero~" at the end of his posts. This will do the same thing except you don't have to type it every time.
Features:
- Easily adjustable custom name tag in members' profiles.
- All members can have a custom name tag.
- Custom name tag displayed below the member's posts.
Future Features:
- Option to disable a member's custom name tag abilities.
If you find any errors please let me know immediately. Thanks.
Script:
Main Footer:
Board Footers(Main Footer too if you want it in Private Messages):
Editing the Script: No editing required.
Version: 1
Script Creator: Reverence/Infinite
Cross-Browser: Unknown
Compatability: Proboards Forums (Though it may work on other forum systems it has not been tested there.)
Brief Description: This will make it so below member's posts they have the option to add their own custom name tag. For example; Hechizero always types "~Hechizero~" at the end of his posts. This will do the same thing except you don't have to type it every time.
Features:
- Easily adjustable custom name tag in members' profiles.
- All members can have a custom name tag.
- Custom name tag displayed below the member's posts.
Future Features:
- Option to disable a member's custom name tag abilities.
If you find any errors please let me know immediately. Thanks.
Script:
Main Footer:
<script>
//Custom Name Tag v1 created By Reverence/Infinite.
//Copyright 2004-2005, All Rights Reserved.
//This code may not be reposted or edited without the creator's consent.
//This copyright must stay intact at all times.
//Main Footer.
var tTable=document.getElementsByTagName("Table")
for(r=0;r<tTable.length;r++){
var TD=document.getElementsByTagName("TD")
if(location.href.indexOf("action=profile&")!=-1){
if(tTable[r].width=="100%" && tTable[r].cellPadding=="3" && tTable[r].innerHTML.match("Personal Text:")){
var rRow=tTable[r].insertRow(13)
var NewNameCell=rRow.insertCell(0)
NewNameCell.innerHTML='<font size="2"><b>Custom Name Tag:</b></font><br/><font size="1">Please input a custom name tag which will be displayed<br/> at the bottom of all your posts.<br/>Max Length: <i>20 Characters</i></font>'
nSection=rRow.insertCell(1)
nSection.innerHTML='<font size="2"><input type="text" name="nametag" size="22" value="" maxlength="20"></font>'
var perText=document.creator.usertext.value;
var create=perText.split("/@/");
if(document.creator.usertext.value.match("/@/")){
document.creator.usertext.value=document.creator.usertext.value + "/@/" + document.creator.nametag.value
document.creator.usertext.value=create[0]
document.creator.nametag.value=create[1]
}
document.creator.onsubmit=storeIt;
function storeIt(){
document.creator.usertext.value=document.creator.usertext.value + "/@/" + document.creator.nametag.value
}}}}
var TD=document.getElementsByTagName("TD")
for(m=0;m<TD.length;m++){
if(location.href.indexOf("action=profile2")!=-1 || location.href.indexOf("action=viewprofile")!=-1){
if(TD[m].innerHTML.match("/@/") && TD[m].width=="30%"){
var itText=TD[m].innerHTML
var create=itText.split("/@/");
var create=create[1].split("<B"+"R>");
TD[m].innerHTML=TD[m].innerHTML.replace("/@/"+create[0],"")
}}}
</script>
Board Footers(Main Footer too if you want it in Private Messages):
<script>
//Custom Name Tag v1 created By Reverence/Infinite.
//Copyright 2004-2005, All Rights Reserved.
//This code may not be reposted or edited without the creator's consent.
//This copyright must stay intact at all times.
//Board Footer.
var TD=document.getElementsByTagName("TD")
for(m=0;m<TD.length;m++){
if(TD[m].innerHTML.match("/@/") && TD[m].width=="20%"){
var itText=TD[m].innerHTML
var create=itText.split("/@/");
var create=create[1].split("<B"+"R>");
TD[m].innerHTML=TD[m].innerHTML.replace("/@/"+create[0],"")
TD[m+1].innerHTML+="<br/><br/><br/>"+create[0]
}}
</script>
Editing the Script: No editing required.