Post by Peter on Oct 31, 2004 15:25:46 GMT
Created by Uchiha Sasuke
This code will allow you to put information about your pets in your profile
to enter information, look under your signiture and you'll see three extra boxes, the first is the name of your pet, the second, is a small description of your pet, and the third is if you have a picture of your pet, just check the box, and put in the URL
if you have no pets, just enter "no pet" into the "pet name" box, and nothing will be displayed for you
to view users information, just click on this icon that is right before the PM icon and then a pop up will appear with the pet information
if you wish to have a different icon, then change the green URL in the codes to the new icon you want
alright, other than that have fun!
MAIN FOOTER
Board Footers
This code will allow you to put information about your pets in your profile
to enter information, look under your signiture and you'll see three extra boxes, the first is the name of your pet, the second, is a small description of your pet, and the third is if you have a picture of your pet, just check the box, and put in the URL
if you have no pets, just enter "no pet" into the "pet name" box, and nothing will be displayed for you
to view users information, just click on this icon that is right before the PM icon and then a pop up will appear with the pet information
if you wish to have a different icon, then change the green URL in the codes to the new icon you want
alright, other than that have fun!
MAIN FOOTER
<script>
/*
Pet In Profile
Coded by NCGI (Uchiha Sasuke)
This code may not be reposted with out express permission from it's creator. Do not remove this copyright or else your board will be deleted for copyright infridgment
*/
peticon = "http://members.lycos.co.uk/dragoondeathblade/SSD/clickpet.gif"
iTable = document.getElementsByTagName('table')
iTD = document.getElementsByTagName('td')
function allowurl(it) {
if (it==true) {document.creator.peturl.disabled=false; document.creator.peturl.value="http://"}
else {document.creator.peturl.disabled=true}
}
function startPet() {
if (document.creator.websiteurl.value.match(/\?petname=(.+?)\?petdes=(.+?)\?petpic=(.+?)\?peturl=(.+?)\?/gi)) {pn = RegExp.$1; pd = RegExp.$2; pp = RegExp.$3; pu = RegExp.$4;
document.creator.petname.value=pn; document.creator.petdes.value=pd;
if (pp=="true") {document.creator.peturl.disabled=false; document.creator.peturl.value=pu; document.creator.petpic.checked=true}document.creator.websiteurl.value = document.creator.websiteurl.value.replace('?petname='+pn+'?petdes='+pd+'?petpic='+pp+'?peturl='+pu+'?',''); startPet()}}
function endPet() {
if (document.creator.websiteurl.value=="") {
if (location.href.match(/(.+?)action=/i)) {
document.creator.websitetitle.value = "Home"
document.creator.websiteurl.value = RegExp.$1}}
if (document.creator.petname.value=="") {
document.creator.petname.value="no pet"}
if (document.creator.peturl.value=="") {document.creator.peturl.value="[nopic]"}
if (document.creator.petdes.value=="") {
document.creator.petdes.value="no description"}
document.creator.websiteurl.value+='?petname='+document.creator.petname.value+'?petdes='+document.creator.petdes.value+'?petpic='+document.creator.petpic.checked+'?peturl='+document.creator.peturl.value+'?'
document.creator.submit(true)}
if (location.href.indexOf('action=profile&') != -1) {
for (w=0;w<iTable.length;w++) {
for (q=0;q<iTable[w].rows.length;q++) {
for (r=0;r<iTable[w].rows(q).cells.length;r++) {
if (iTable[w].width=="100%" && iTable[w].cellPadding=="3" && iTable[w].rows(q).cells(r).innerHTML.match(/2><b>Signature:<\/b>/gi)) {
PetName = iTable[w].insertRow(5)
PetName.insertCell().innerHTML = '<font size="2"><b>Pet Name: </b></font>'
PetName.insertCell().innerHTML = '<input type="text" name="petname" id="petname" size="50">'
PetDescription = iTable[w].insertRow(6)
PetDescription.insertCell().innerHTML = '<font size="2"><b>Pet Description: </b></font><br/><font size="1">This is a small description of your pet</font>'
PetDescription.insertCell().innerHTML = '<input type="text" name="petdes" id="petdes" size="50" maxlength="500">'
PetImage = iTable[w].insertRow(7)
PetImage.insertCell().innerHTML = '<font size="2"><b>Pet Image: </b></font><br/><font size="1">This is if you have an image of your pet. just check the box, <br/>and put in the URL to that image</font>'
PetImage.insertCell().innerHTML = '<input type="checkbox" name="petyes" id="petpic" onclick="allowurl(this.checked)"><input type="text" name="peturl" id="peturl" size="45" disabled="disabled">'}}}}
startPet(); document.creator.moda[0].onmouseup = endPet}
function FactorsRemove() {
for (e=0;e<iTD.length;e++) {
if (iTD[e].innerHTML.match(/\?petname=(.+?)\?petdes=(.+?)\?petpic=(.+?)\?peturl=(.+?)\?/gi)) {iTD[e].innerHTML = iTD[e].innerHTML.replace('?petname='+RegExp.$1+'?petdes='+RegExp.$2+'?petpic='+RegExp.$3+'?peturl='+RegExp.$4+'?',''); FactorsRemove()}}}
if (location.href.indexOf("action=profile2") != -1 || location.href.indexOf("action=viewprofile") != -1) {
for (c=0;c<iTD.length;c++) {
if (iTD[c].innerHTML.match(/\?petname=(.+?)\?petdes=(.+?)\?petpic=(.+?)\?peturl=(.+?)\?/gi)) { apn = RegExp.$1; apd = RegExp.$2; app = RegExp.$3; apu = RegExp.$4;
if (apn=="no pet") {} else {
if (app=="true") {petpicture = '<br/>Pet Picture: <br/><img src="'+apu+'">';}
else {petpicture = ""}
winhtml = 'Pet Name: '+apn+'<br/>Pet Description: '+apd+petpicture;
function clickit() {window.open('','','height=300,width=380,scrollbar=yes,resizable=yes').document.write(winhtml);}
if (iTD[c].innerHTML.match(/<\/A> <A HREF="index.cgi/gi) && iTD[c].className=="windowbg") {iTD[c].innerHTML = iTD[c].innerHTML.replace(/<\/A> <A HREF="index.cgi/gi,'</A> <a href="javascript:clickit()"><img src="'+peticon+'" border="0" alt="View Users Pet Info"></a><span> </span><A HREF="index.cgi');}}}}
for (v=0;v<iTable.length;v++) {
if (iTable[v].width=="100%" && iTable[v].cellPadding=="2" && iTable[v].rows(11).cells(1).innerHTML.match(/\?petname=(.+?)\?petdes=(.+?)\?petpic=(.+?)\?peturl=(.+?)\?/gi)) {
bpn = RegExp.$1; bpd = RegExp.$2; bpp = RegExp.$3; bpu = RegExp.$4;
if (bpn=="no pet") {} else {
PetNameRow = iTable[v].insertRow();
PetNameRow.insertCell().innerHTML = '<font size="2"><b>Pet Name:</b></font>'
PetNameRow.insertCell().innerHTML = '<font size="2">'+bpn+'</font>'
PetDesRow = iTable[v].insertRow()
PetDesRow.insertCell().innerHTML = '<font size="2"><b>Pet Description:</b></font>'
PetDesRow.insertCell().innerHTML = '<font size="2">'+bpd+'</font>'
PetPicRow = iTable[v].insertRow(); if (bpp=="true") {
PetPicRow.insertCell().innerHTML = '<font size="2"><b>Pet Picture:</b></font>'
PetPicRow.insertCell().innerHTML = '<img src="'+bpu+'">'
}}}}
FactorsRemove()}
</script>
/*
Pet In Profile
Coded by NCGI (Uchiha Sasuke)
This code may not be reposted with out express permission from it's creator. Do not remove this copyright or else your board will be deleted for copyright infridgment
*/
peticon = "http://members.lycos.co.uk/dragoondeathblade/SSD/clickpet.gif"
iTable = document.getElementsByTagName('table')
iTD = document.getElementsByTagName('td')
function allowurl(it) {
if (it==true) {document.creator.peturl.disabled=false; document.creator.peturl.value="http://"}
else {document.creator.peturl.disabled=true}
}
function startPet() {
if (document.creator.websiteurl.value.match(/\?petname=(.+?)\?petdes=(.+?)\?petpic=(.+?)\?peturl=(.+?)\?/gi)) {pn = RegExp.$1; pd = RegExp.$2; pp = RegExp.$3; pu = RegExp.$4;
document.creator.petname.value=pn; document.creator.petdes.value=pd;
if (pp=="true") {document.creator.peturl.disabled=false; document.creator.peturl.value=pu; document.creator.petpic.checked=true}document.creator.websiteurl.value = document.creator.websiteurl.value.replace('?petname='+pn+'?petdes='+pd+'?petpic='+pp+'?peturl='+pu+'?',''); startPet()}}
function endPet() {
if (document.creator.websiteurl.value=="") {
if (location.href.match(/(.+?)action=/i)) {
document.creator.websitetitle.value = "Home"
document.creator.websiteurl.value = RegExp.$1}}
if (document.creator.petname.value=="") {
document.creator.petname.value="no pet"}
if (document.creator.peturl.value=="") {document.creator.peturl.value="[nopic]"}
if (document.creator.petdes.value=="") {
document.creator.petdes.value="no description"}
document.creator.websiteurl.value+='?petname='+document.creator.petname.value+'?petdes='+document.creator.petdes.value+'?petpic='+document.creator.petpic.checked+'?peturl='+document.creator.peturl.value+'?'
document.creator.submit(true)}
if (location.href.indexOf('action=profile&') != -1) {
for (w=0;w<iTable.length;w++) {
for (q=0;q<iTable[w].rows.length;q++) {
for (r=0;r<iTable[w].rows(q).cells.length;r++) {
if (iTable[w].width=="100%" && iTable[w].cellPadding=="3" && iTable[w].rows(q).cells(r).innerHTML.match(/2><b>Signature:<\/b>/gi)) {
PetName = iTable[w].insertRow(5)
PetName.insertCell().innerHTML = '<font size="2"><b>Pet Name: </b></font>'
PetName.insertCell().innerHTML = '<input type="text" name="petname" id="petname" size="50">'
PetDescription = iTable[w].insertRow(6)
PetDescription.insertCell().innerHTML = '<font size="2"><b>Pet Description: </b></font><br/><font size="1">This is a small description of your pet</font>'
PetDescription.insertCell().innerHTML = '<input type="text" name="petdes" id="petdes" size="50" maxlength="500">'
PetImage = iTable[w].insertRow(7)
PetImage.insertCell().innerHTML = '<font size="2"><b>Pet Image: </b></font><br/><font size="1">This is if you have an image of your pet. just check the box, <br/>and put in the URL to that image</font>'
PetImage.insertCell().innerHTML = '<input type="checkbox" name="petyes" id="petpic" onclick="allowurl(this.checked)"><input type="text" name="peturl" id="peturl" size="45" disabled="disabled">'}}}}
startPet(); document.creator.moda[0].onmouseup = endPet}
function FactorsRemove() {
for (e=0;e<iTD.length;e++) {
if (iTD[e].innerHTML.match(/\?petname=(.+?)\?petdes=(.+?)\?petpic=(.+?)\?peturl=(.+?)\?/gi)) {iTD[e].innerHTML = iTD[e].innerHTML.replace('?petname='+RegExp.$1+'?petdes='+RegExp.$2+'?petpic='+RegExp.$3+'?peturl='+RegExp.$4+'?',''); FactorsRemove()}}}
if (location.href.indexOf("action=profile2") != -1 || location.href.indexOf("action=viewprofile") != -1) {
for (c=0;c<iTD.length;c++) {
if (iTD[c].innerHTML.match(/\?petname=(.+?)\?petdes=(.+?)\?petpic=(.+?)\?peturl=(.+?)\?/gi)) { apn = RegExp.$1; apd = RegExp.$2; app = RegExp.$3; apu = RegExp.$4;
if (apn=="no pet") {} else {
if (app=="true") {petpicture = '<br/>Pet Picture: <br/><img src="'+apu+'">';}
else {petpicture = ""}
winhtml = 'Pet Name: '+apn+'<br/>Pet Description: '+apd+petpicture;
function clickit() {window.open('','','height=300,width=380,scrollbar=yes,resizable=yes').document.write(winhtml);}
if (iTD[c].innerHTML.match(/<\/A> <A HREF="index.cgi/gi) && iTD[c].className=="windowbg") {iTD[c].innerHTML = iTD[c].innerHTML.replace(/<\/A> <A HREF="index.cgi/gi,'</A> <a href="javascript:clickit()"><img src="'+peticon+'" border="0" alt="View Users Pet Info"></a><span> </span><A HREF="index.cgi');}}}}
for (v=0;v<iTable.length;v++) {
if (iTable[v].width=="100%" && iTable[v].cellPadding=="2" && iTable[v].rows(11).cells(1).innerHTML.match(/\?petname=(.+?)\?petdes=(.+?)\?petpic=(.+?)\?peturl=(.+?)\?/gi)) {
bpn = RegExp.$1; bpd = RegExp.$2; bpp = RegExp.$3; bpu = RegExp.$4;
if (bpn=="no pet") {} else {
PetNameRow = iTable[v].insertRow();
PetNameRow.insertCell().innerHTML = '<font size="2"><b>Pet Name:</b></font>'
PetNameRow.insertCell().innerHTML = '<font size="2">'+bpn+'</font>'
PetDesRow = iTable[v].insertRow()
PetDesRow.insertCell().innerHTML = '<font size="2"><b>Pet Description:</b></font>'
PetDesRow.insertCell().innerHTML = '<font size="2">'+bpd+'</font>'
PetPicRow = iTable[v].insertRow(); if (bpp=="true") {
PetPicRow.insertCell().innerHTML = '<font size="2"><b>Pet Picture:</b></font>'
PetPicRow.insertCell().innerHTML = '<img src="'+bpu+'">'
}}}}
FactorsRemove()}
</script>
Board Footers
<script>
/*
Pet In Profile
Coded by NCGI (Uchiha Sasuke)
This code may not be reposted with out express permission from it's creator. Do not remove this copyright or else your board will be deleted for copyright infridgment
*/
peticon = "http://members.lycos.co.uk/dragoondeathblade/SSD/clickpet.gif"
iTD = document.getElementsByTagName('td')
for (c=0;c<iTD.length;c++) {
if (iTD[c].width=="20%" && iTD[c].rowSpan=="2" && iTD[c].innerHTML.match(/Posts:/gi) && iTD[c].innerHTML.match(/\?petname=(.+?)\?petdes=(.+?)\?petpic=(.+?)\?peturl=(.+?)\?/gi)) { pn = RegExp.$1; pd = RegExp.$2; pp = RegExp.$3; pu = RegExp.$4;
if (pn=="no pet") {} else {
if (pp=="true") {petpicture = '<br/>Pet Picture: <br/><img src='+pu+'>';}
else {petpicture = ""}
petwin = "window.open('','','height=300,width=380,scrollbar=yes,resizable=yes').document.write"
winhtml = 'Pet Name: '+pn+'<br/>Pet Description: '+pd+petpicture
function Replaceit() {
if (winhtml.match(/'/gi)) {if (winhtml.match(/\\'/)) {} else {winhtml = winhtml.replace(/'/gi,"\\'"); Replaceit();}}} Replaceit();
iTD[c].innerHTML = iTD[c].innerHTML.replace(/<\/A> <A HREF="index.cgi/gi,'</A> <a href="javascript:'+petwin+'(\''+winhtml+'\')"><img src="'+peticon+'" border="0" alt="View Users Pet Info"></a><span> </span><A HREF="index.cgi');
iTD[c].innerHTML = iTD[c].innerHTML.replace('?petname='+pn+'?petdes='+pd+'?petpic='+pp+'?peturl='+pu+'?','')}}}
</script>
/*
Pet In Profile
Coded by NCGI (Uchiha Sasuke)
This code may not be reposted with out express permission from it's creator. Do not remove this copyright or else your board will be deleted for copyright infridgment
*/
peticon = "http://members.lycos.co.uk/dragoondeathblade/SSD/clickpet.gif"
iTD = document.getElementsByTagName('td')
for (c=0;c<iTD.length;c++) {
if (iTD[c].width=="20%" && iTD[c].rowSpan=="2" && iTD[c].innerHTML.match(/Posts:/gi) && iTD[c].innerHTML.match(/\?petname=(.+?)\?petdes=(.+?)\?petpic=(.+?)\?peturl=(.+?)\?/gi)) { pn = RegExp.$1; pd = RegExp.$2; pp = RegExp.$3; pu = RegExp.$4;
if (pn=="no pet") {} else {
if (pp=="true") {petpicture = '<br/>Pet Picture: <br/><img src='+pu+'>';}
else {petpicture = ""}
petwin = "window.open('','','height=300,width=380,scrollbar=yes,resizable=yes').document.write"
winhtml = 'Pet Name: '+pn+'<br/>Pet Description: '+pd+petpicture
function Replaceit() {
if (winhtml.match(/'/gi)) {if (winhtml.match(/\\'/)) {} else {winhtml = winhtml.replace(/'/gi,"\\'"); Replaceit();}}} Replaceit();
iTD[c].innerHTML = iTD[c].innerHTML.replace(/<\/A> <A HREF="index.cgi/gi,'</A> <a href="javascript:'+petwin+'(\''+winhtml+'\')"><img src="'+peticon+'" border="0" alt="View Users Pet Info"></a><span> </span><A HREF="index.cgi');
iTD[c].innerHTML = iTD[c].innerHTML.replace('?petname='+pn+'?petdes='+pd+'?petpic='+pp+'?peturl='+pu+'?','')}}}
</script>