arwen
New Member
Posts: 2
|
Post by arwen on Dec 13, 2007 15:53:00 GMT -5
I am co-admining for an unopened rpg site, and I would like to find this code. I was reffered here by the person who has used this code, but I could not find it. It makes it so that all the members can put a profile background on, it displays behind their avatar. Can anyone help me with this?
|
|
|
Post by JZSquared on Dec 13, 2007 19:26:13 GMT -5
I am co-admining for an unopened rpg site, and I would like to find this code. I was reffered here by the person who has used this code, but I could not find it. It makes it so that all the members can put a profile background on, it displays behind their avatar. Can anyone help me with this? Never heard of such a code, I know you won't find it here. Who referred you here? Do you have a link to the board that has it? Did you try Proboards Support and Solid Snake Designs? Other than that you'll just have to look around because I haven't seen that kind of code anywhere, you might want to try and ask in the Proboards Support coding board. Sorry I can't be of more help, let me know if you find the board that has it. Here are direct links to the aforementioned boards: Solid Snake Designs Profile HacksSolid Snake Designs Mini Profile HacksProboards Support Profile HacksProboards Support Mini Profile Hacks
|
|
arwen
New Member
Posts: 2
|
Post by arwen on Dec 14, 2007 8:36:16 GMT -5
|
|
|
Post by JZSquared on Dec 14, 2007 21:26:25 GMT -5
Here's the code you wanted, please note that it is not PB Codes or my own and in no way claim it our own. It was found at the following message board: elementlords.proboards52.com/index.cgi<script type="text/javascript"> <!-- //Profile Editable MiniProfile Background - DregondRahl // Do not repost or ajust copyright
if(document.modifyForm && document.modifyForm.signature){ Form = document.modifyForm; AH = Form.avatarheight.parentNode.parentNode.parentNode; MpTr = AH.parentNode.insertRow(1); MpTr.insertCell(0).innerHTML = '<font size=2>MP BackGround</font>'; MpTr.insertCell(1).innerHTML = '<input type="text" size="35" name="mpbg">'; MpTr.insertCell(2).innerHTML = '<font size=1>Enter the URL Of the Background Image for the Mini Profile</font>'; if(Form.signature.value.match(/\[MpB:(.+?)\]/)) Form.mpbg.value=RegExp. $1; Form.signature.value = Form.signature.value.replace(/\[MpB:(.+?)\]/,''); function doBg(){ if(!Form.mpbg.value == "" ){ BgImage = Form.mpbg.value; Form.signature.value = '[MpB:'+BgImage+']' +Form.signature.value; } } if(document.addEventListener){ Form.profileaction[0].addEventListener('click',doBg,false); } else { Form.profileaction[0].attachEvent('onclick',doBg); } }
if(location.href.match(/ion=((pm|calendar)?view|display)/)) { var td = document.getElementsByTagName("td"); for(t=0; t<td.length; t++) { if((td[t].colSpan == '2' || td[t].colSpan == '3') && td[t].innerHTML.match(/\[MpB:(.+?)\]/)){ BgImg = (RegExp.$1.replace(/ /g,'')) td[t].innerHTML= td[t].innerHTML.replace(/\[MpB:(.+?)\]/,' '); var obj = td[t].parentNode; while(!obj.nodeName.match(/^td$/i)) { obj = obj.parentNode; } obj.previousSibling.style.backgroundImage = 'url("'+BgImg+'")'; } } } //--> </script> Global Footer I believe.
|
|