|
Post by eveready on Feb 25, 2010 18:08:02 GMT -8
Yes, that's what I mean.
|
|
|
Post by Wormopolis on Feb 28, 2010 9:27:06 GMT -8
How is that now?
|
|
|
Post by eveready on Feb 28, 2010 22:10:54 GMT -8
That's great.
Good news... I think you're done. I can't think of anything else. I bet your eager to move on.
|
|
|
Post by Wormopolis on Mar 1, 2010 2:40:23 GMT -8
I get distracted. I start ona code, and when I get frustrated with something, I try to do an easier code to clear my mind and take a new approach.
do you nee dthe whole thing or just what I changed to do the last part?
|
|
|
Post by eveready on Mar 1, 2010 5:16:24 GMT -8
Whole thing please, just to make sure I didn't screw anything up.
Thanks a lot for this.
|
|
|
Post by Wormopolis on Mar 1, 2010 12:24:54 GMT -8
<script type="text/javascript"> <!-- // eveready post remodel - hockey style // by Wormopolis - concept by eveready
var jerseyColors=[ "http://img683.imageshack.us/img683/3092/jerseytemplate.png", "http://i220.photobucket.com/albums/dd63/sjhlforum/test/faketemplates/2.png", "http://i220.photobucket.com/albums/dd63/sjhlforum/test/faketemplates/3.png", "http://i220.photobucket.com/albums/dd63/sjhlforum/test/faketemplates/4.png", "http://i220.photobucket.com/albums/dd63/sjhlforum/test/faketemplates/5.png", "http://i220.photobucket.com/albums/dd63/sjhlforum/test/faketemplates/6.png", "http://i220.photobucket.com/albums/dd63/sjhlforum/test/faketemplates/7.png", "http://i220.photobucket.com/albums/dd63/sjhlforum/test/faketemplates/8.png", "http://i220.photobucket.com/albums/dd63/sjhlforum/test/faketemplates/9.png", "http://i220.photobucket.com/albums/dd63/sjhlforum/test/faketemplates/2.png", "http://i220.photobucket.com/albums/dd63/sjhlforum/test/faketemplates/3.png", "http://i220.photobucket.com/albums/dd63/sjhlforum/test/faketemplates/4.png", "http://i220.photobucket.com/albums/dd63/sjhlforum/test/faketemplates/5.png" ];
if (true) { for (tds=document.getElementsByTagName('td'), e=0; e<tds.length; e++) { if (tds[e].width=='20%' && tds[e].className.match(/windowbg/) && tds[e].vAlign=='top') { auth=rank=stars=ctitle=status= warn=warnbar=''; jerseyback=joined=loc= postcount=gender=karma=avt= contacts=ptext=''; stuffArray=tds[e].innerHTML.split(/<br>/i); if (tds[e].firstChild.nodeName.match(/a$/i)) tds[e].nextSibling.firstChild.rows[0].cells[1].insertBefore(tds[e].firstChild.cloneNode(true), tds[e].nextSibling.firstChild.rows[0].cells[1].firstChild); for (s=0; s<stuffArray.length; s++) { //retrieve MP parts if (stuffArray[s].match(/action=viewprofile/) && auth=='') { auth=stuffArray[s]; rank=stuffArray[s+1]; stars=stuffArray[s+2]; if (!stuffArray[s+3].match(/member is/)) { ctitle=stuffArray[s+3]; } } var status; if (stuffArray[s].match(/member is/i) && status=='') { status=stuffArray[s]; } var warn, warnbar; if (stuffArray[s].match(/Penalty:/) && warn=='') { warn=stuffArray[s].split(/<table/i)[0]; warnbar=stuffArray[s].split(/<table/i)[1]; warnbar='<table'+warnbar; } if (stuffArray[s].match(/warning level/i) && warn=='') { warn=stuffArray[s]; warnbar=stuffArray[s+1]; } var joined; if (stuffArray[s].match(/joined:/i) && joined=='') { joined=stuffArray[s]; } var loc; if (stuffArray[s].match(/location:/i) && loc=='') { loc=stuffArray[s]; } var postcount; if (stuffArray[s].match(/posts:/i) && postcount=='') { postcount=stuffArray[s]; } var gender; if (stuffArray[s].match(/gender:/i) && gender=='') { gender=stuffArray[s]; } var karma; if (stuffArray[s].match(/karma:/i) && karma=='') { karma=stuffArray[s]; } } avAreaStuff=tds[e].getElementsByTagName('center'); if (avAreaStuff[0]) { if (avAreaStuff[0].firstChild.nodeName.match(/img/i)) avt=avAreaStuff[0].firstChild; contacts=avAreaStuff[0].getElementsByTagName('a'); brks=avAreaStuff[0].getElementsByTagName('br'); for (brk=0; brk<brks.length; brk++) { if (brks[brk].nextSibling && brks[brk].nextSibling.nodeName.match(/br/i)) { if (brks[brk].nextSibling.nextSibling && brks[brk].nextSibling.nextSibling.nodeName.match(/text/i)) { ptext=brks[brk].nextSibling.nextSibling.nodeValue; break; } } } } // ok.. whew teampick=0; if (ptext && ptext.match(/\[Sj1:(\d+)\]/)) { teampick=RegExp.$1-1; ptext=ptext.replace(/\[Sj1:(\d+)\]/,''); } for (dv=tds[e].getElementsByTagName('div'), d=0; d<dv.length; d++) { if (dv[d].className=='miniprofile') jerseyback=dv[d].firstChild; } bgJersColors=jerseyColors[teampick]; postCell=tds[e].nextSibling; sigSnag=postCell.firstChild.rows[2].cells[0].lastChild; nwRw=postCell.firstChild.insertRow(1); nwRw.insertCell(0); nwRw.cells[0].colSpan=3; nwRw.cells[0].style.height='25'; nwRw.cells[0].style.backgroundImage='url(http://www.finleysaussies.com/WebImages/FinleyLeftGradient.jpg)';
nwRw.cells[0].onmouseover= function() {if (this.parentNode.nextSibling.style.display!='') this.style.backgroundImage='url(http://img97.imageshack.us/img97/1418/uglybar.png)';} nwRw.cells[0].onmouseout= function() {this.style.backgroundImage='url(http://www.finleysaussies.com/WebImages/FinleyLeftGradient.jpg)';} if (tds[e].firstChild.nodeName.match(/a/i)) { nwRw.onclick=function() {pb_bubble=1; this.nextSibling.nextSibling.style.display='none'; this.nextSibling.style.display='';this.cells[0].style.backgroundImage='url(http://www.finleysaussies.com/WebImages/FinleyLeftGradient.jpg)';} } else { tst=postCell.getElementsByTagName('font')[0].getElementsByTagName('b') ; if (tst.length>1) { tst[1].innerHTML= "<font color='ddaa00'>Moderator</font>"; } status=''; } nwTbl=nwRw.cells[0].appendChild(document.createElement('table')); nwTbl.width='100%'; nwRw=nwTbl.insertRow(0); nwRw.insertCell(0);nwRw.insertCell(0);nwRw.insertCell(0); nwRw.cells[0].width=nwRw.cells[1].width=nwRw.cells[2].width='33%' nwRw.cells[0].align='left'; nwRw.cells[0].innerHTML=rank+" "+stars; nwRw.cells[1].align='center'; nwRw.cells[1].innerHTML=warn+" "+warnbar; nwRw.cells[2].align='right';
status= (status=='' ? '' : '<img src="' + (status.match(/online/) ? 'http://i220.photobucket.com/albums/dd63/sjhlforum/test/on-1.png' : 'http://i220.photobucket.com/albums/dd63/sjhlforum/test/off-1.png') + '" border="0">'); nwRw.cells[2].innerHTML=status;
tds[e].style.display="none"; postCell.colSpan=2; // hidden row nwRw=postCell.firstChild.insertRow(2); nwRw.style.display='none'; nwRw.onclick=function() {this.nextSibling.style.display=''; this.style.display='none'; pb_bubble=0;} nwRw.insertCell(0); nwRw.cells[0].colSpan=3; nwRw.cells[0].align='center'; nwTbl=nwRw.cells[0].appendChild(document.createElement('table')); nwTbl.width='674'; nwTbl.style.height='400'; nwTbl.style.backgroundImage='url('+bgJersColors+')'; nwTbl.cellSpacing="0"; if (sigSnag.nodeName.match(/font/i)) { for (bar=sigSnag.getElementsByTagName('hr'), rh=0; rh<bar.length; rh++) bar[rh].style.display="none"; nwRw.cells[0].appendChild(document.createElement('br')) nwRw.cells[0].appendChild(sigSnag); } nwRw=nwTbl.insertRow(0); nwRw.insertCell(0);nwRw.insertCell(0);nwRw.insertCell(0);nwRw.insertCell(0); nwRw.cells[0].align=nwRw.cells[1].align=nwRw.cells[2].align=nwRw.cells[3].align='center'; nwRw.cells[0].style.color=nwRw.cells[1].style.color=nwRw.cells[2].style.color=nwRw.cells[3].style.color='000000'; nwRw=nwTbl.insertRow(0); nwRw.insertCell(0);nwRw.insertCell(0);nwRw.insertCell(0);nwRw.insertCell(0); nwRw.cells[0].align=nwRw.cells[1].align=nwRw.cells[2].align=nwRw.cells[3].align='center'; nwRw.cells[0].style.color=nwRw.cells[1].style.color=nwRw.cells[2].style.color=nwRw.cells[3].style.color='000000'; nwRw=nwTbl.insertRow(0); nwRw.insertCell(0);nwRw.insertCell(0);nwRw.insertCell(0);nwRw.insertCell(0); nwRw.cells[0].align=nwRw.cells[1].align=nwRw.cells[2].align=nwRw.cells[3].align='center'; nwRw.cells[0].style.color=nwRw.cells[1].style.color=nwRw.cells[2].style.color=nwRw.cells[3].style.color='000000';
nwRw.cells[0].width='20%'; nwRw.cells[1].width='30%'; nwRw.cells[2].width='30%' nwTbl.rows[0].cells[0].style.height='75'; nwTbl.rows[1].cells[0].style.height='10'; nwTbl.rows[2].cells[0].style.height='120'; nwRw.cells[3].innerHTML=joined+"<br>"+postcount+"<br>"+karma+"<br>"+gender+"<br>"; nwTbl.rows[1].cells[2].innerHTML=auth; nwTbl.rows[1].cells[2].align='center'; nwTbl.rows[1].cells[2].vAlign='bottom'; if (jerseyback) nwTbl.rows[0].cells[1].appendChild(jerseyback); nwTbl.rows[0].cells[1].vAlign='bottom'; if (avt) nwTbl.rows[2].cells[1].appendChild(avt); if (ptext) { nwTbl.rows[2].cells[1].appendChild(document.createElement('br')); nwTbl.rows[2].cells[1].appendChild(document.createTextNode(ptext)); } jerseynum="00"; if (loc.match(/%(\d+)%/)) { jerseynum=RegExp.$1; loc=loc.replace(/%(\d+)%/, '') } jersStuff="<font style='font-size:56'>"+jerseynum+ "</font><br>"; nwTbl.rows[2].cells[2].innerHTML=jersStuff+loc.replace(/location:/i,''); nwTbl.rows[2].cells[2].align='center'; nwTbl.rows[2].cells[2].vAlign='top'; if (contacts.length>0) { for (c=0;c<contacts.length; c++) {nwTbl.rows[2].cells[3].appendChild(contacts[c]); nwTbl.rows[2].cells[3].appendChild(document.createElement('br')); } } } } }
// --> </script>
|
|
|
Post by eveready on Mar 1, 2010 20:54:01 GMT -8
^ this one above, the different backgrounds don't work. I took the one out of your source and it's fine. They are essentially the same, right?
|
|
|
Post by Wormopolis on Mar 1, 2010 23:49:10 GMT -8
that is DIRECT out of my headers.
I know what it is... the damn PBS UBBC compiler is transforming some of my variables into line breaks...
|
|
|
Post by Wormopolis on Mar 1, 2010 23:57:51 GMT -8
recopy. I changed the variable name.
|
|
|
Post by eveready on Mar 2, 2010 0:25:37 GMT -8
Got it. Thanks for the hard work.
|
|
|
Post by Wormopolis on Mar 3, 2010 20:12:24 GMT -8
its was a great idea. I hope your members like it when you get it all finalized. let me know if you have any feedback.
|
|
|
Post by Wormopolis on Mar 9, 2010 0:02:23 GMT -8
If you have a site you are using this on in a finalized version, I would love to see it.
|
|
|
Post by eveready on Mar 26, 2010 18:22:24 GMT -8
I'm taking a bit of time off right now since I have more pressing issues, but when I get things together I'm sure I'll be back here looking for more help, and you'll be able to have a look see at how things have come along. I think you'll be impressed.
|
|
|
Post by Wormopolis on Jun 7, 2010 21:25:55 GMT -8
hey Eveready...
Im going to remove the Jersey Logo and number codes from this forum since we are done with this remodel. I keep noticing people keep using them and it doesnt really make any sense for this site to have them really.
its going to mess up how this thread is displayed however.
If there turns out to be a reason to reactivate them, I will.
|
|
|
Post by eveready on Jun 8, 2010 3:31:49 GMT -8
Go right ahead.
|
|