|
Post by Xero.Infection on Jun 30, 2005 22:45:20 GMT -8
Proboards CodeVersion 2 of this code does the exact same thing as this one but while I was making it PBv.4 compliant I decided to make it a bit easier to edit. Description: Places mini-profile info in a table. Viewable in main profile view, IM's, and thread view. Preview: [1]Put this code in the Global FooterNote: The green background of the rounded border images is a bit off-color, this is because I saved them as PNG's. If you have an image with a transparent background the background will appear with whatever the windowbg and windowbg2 color is. <script type='text/javascript'> //Mini-Profile Modification v.2.1 :: Copyright '05 //Coded by Xero.Infection aka Spike //Place this code in Global Footer
//Replace URL HERE with your image url var topleft = "URL HERE"; var topmiddle = "URL HERE"; var topright = "URL HERE"; var bottomleft = "URL HERE"; var bottommiddle = "URL HERE"; var bottomright = "URL HERE";
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' width='100%' cellspacing='0' cellpadding='0'><tr><td width='1%'><img src='"+topleft+"'></td><td background='"+topmiddle+"' width='98%'><center><font size='2'><b>User Info</b></font></center></td><td align='right' width='1%'><img src='"+topright+"'></td>" XI[t].innerHTML+="<table border='0' cellpadding='2' cellspacing='1' class='bordercolor' align='center' width='100%'><tr><td align='center' class='windowbg2' colspan='2'><center>"+profile+"</center></td></tr>" XI[t].innerHTML+="<table border='0' width='100%' cellspacing='0' cellpadding='0'><tr><td width='1%'><img src='"+bottomleft+"'></td><td background='"+bottommiddle+"' width='98%'></td><td align='right' width='1%'><img src='"+bottomright+"'></td>" }} </script>
|
|
koko
New Member
Posts: 21
|
Post by koko on Jul 16, 2005 15:25:30 GMT -8
wow very nice code! Thank you much! btw where can i get those cool images
|
|
|
Post by CD on Jul 16, 2005 17:48:08 GMT -8
Easiest to request them at a design site, or make them yourself.
|
|
koko
New Member
Posts: 21
|
Post by koko on Jul 17, 2005 14:01:10 GMT -8
Easiest to request them at a design site, or make them yourself. where can i request them at which a design site sorry i don't know how to make my own design or anything about design
|
|
100%
|
Post by Aaron on Jul 17, 2005 15:05:37 GMT -8
You can request images here. There's an Graphics Request board.
|
|
koko
New Member
Posts: 21
|
Post by koko on Jul 17, 2005 17:09:19 GMT -8
You can request images here. There's an Graphics Request board. yes, I saw that but I can not request because I don't have 10 or 30 posts!
|
|
|
Post by CD on Jul 17, 2005 17:59:49 GMT -8
You're only three short. Go post in the Lounge. Its not hard.
|
|
koko
New Member
Posts: 21
|
Post by koko on Jul 17, 2005 21:21:14 GMT -8
Thanks for info!
|
|
dynmo
New Member
Posts: 7
|
Post by dynmo on Jul 20, 2005 16:34:37 GMT -8
hey check your search its screwed up in the previe link caused by that code
|
|
dynmo
New Member
Posts: 7
|
Post by dynmo on Jul 20, 2005 16:37:34 GMT -8
under var XI=document.body.getElementsByTagName('td'); add if(location.href.match(/n=(disp|search2|rece|pmvi|goto|viewpr)/)){ then add } at end before </script>
Last Edit: Jul 20, 2005 16:38:24 GMT -8 by dynmo
|
|