|
Post by Xero.Infection on Jun 30, 2005 19:32:21 GMT -8
Proboards CodeIt's been a while since I coded (a long while) and I've decided to get back into it. I'll start by converting all my old codes for use on PBv.4 for practice. Decription: This is one of my first codes. It places all the mini-profile info in a table and centers it. Viewable in main profile section, IM's, and threads. Previews: [1], [2]Goes in Global Footer<script type='text/javascript'> //Mini Profile Modification v.1 :: Copyright '05 //Coded by Xero.Infection aka Spike //Place this code in Global Footer
var XI=document.body.getElementsByTagName('td'); for(t=0;t<XI.length;t++){ if(XI[t].width=='20%' && XI[t].innerHTML.match(/Posts:/)){ var profile = XI[t].innerHTML; XI[t].innerHTML="<table border='0' cellpadding='2' cellspacing='1' class='bordercolor' align='center' width='100%'><tr><td align='center' class='titlebg' colspan='2'><center><font size='2'><b>User Info</b></font></center></td></tr><tr><td align='center' class='windowbg2' colspan='2'><center>"+profile+"</center></td></tr>" }} </script>
|
|
|
Post by babygurl on Jul 28, 2005 18:07:06 GMT -8
one question, is there a way you can make the background of the profile information transparent instead of "windowbg2"? because I have two different alternating colors throughout my threads and it just doesn't quite look right...
|
|
|
Post by CD on Jul 28, 2005 19:51:44 GMT -8
It may be possible, but not easily..... Yeah, it'd be extremely difficult actually.... Because using "style='background: transparent;'" would show the border color instead. Edit: Figured it out right when I hit send. Hope he doesn't mind. <script type='text/javascript'> //Mini Profile Modification v.1 :: Copyright '05 //Coded by Xero.Infection aka Spike //Place this code in Global Footer
var XI=document.body.getElementsByTagName('td'); for(t=0;t<XI.length;t++){ if(XI[t].width=='20%' && XI[t].innerHTML.match(/Posts:/)){ var profile = XI[t].innerHTML; XI[t].innerHTML="<table border='0' cellpadding='2' cellspacing='1' class='bordercolor' align='center' width='100%'><tr><td align='center' class='titlebg' colspan='2'><center><font size='2'><b>User Info</b></font></center></td></tr><tr><td align='center' class='"+XI[t].className+"' colspan='2'><center>"+profile+"</center></td></tr>" }} </script>
Last Edit: Jul 28, 2005 19:52:31 GMT -8 by CD
|
|
|
Post by babygurl on Jul 29, 2005 5:53:05 GMT -8
thanks so much, it worked perfectly
|
|