|
Post by dave on Nov 24, 2010 7:13:57 GMT -8
Thanks mate that worked
Now could we move the "member is online"
to just under the money code but with a break line in between
Instead of being at the very bottom along as a break line in between the username and display pic
|
|
|
Post by Wormopolis on Nov 24, 2010 18:49:36 GMT -8
replace this:
bottommrgnrow.style.height=30; bottommrgnrow.vAlign="middle"; statuscell=bottommrgnrow.insertCell(0); statuscell.align="left"; fontholder=document.createElement('font'); fontholder.size=2; fontholder.innerHTML=status; statuscell.appendChild(fontholder); statuscell.className="mpbottomcell";
with this:
if (status) { fontholder=document.createElement('font'); fontholder.size=2; fontholder.innerHTML=status; mainrow.cells[0].appendChild(document.createElement('hr')); mainrow.cells[0].appendChild(fontholder); mainrow.cells[0].appendChild(brk.cloneNode(true)); }
|
|
|
Post by Wormopolis on Nov 24, 2010 18:50:16 GMT -8
There is already a line between the username and the avatar?
|
|
|
Post by dave on Nov 24, 2010 20:51:18 GMT -8
Cheers that worked Sorry 1 little minor adjustment could we move the posting level bar under the money and leave the online status under the level posting bar with the break line And looking at the profile i dont see a break line between the username and display pic To make it look like this > img.photobucket.com/albums/v696/boltonboy/Profile.jpgCheers mate
|
|
|
Post by Wormopolis on Nov 25, 2010 1:31:18 GMT -8
ok.. apparently when the border stuff was changed, it erased the natural border that used to be there (like the one you see to the left).
so find this line:
unamecell.appendChild(fontholder);
and after it add:
unamecell.appendChild(document.createElement('hr'));
the posting activity thing is going to take a lot more because it comes from a different code AND it encompasses multilines.
|
|
|
Post by dave on Nov 25, 2010 2:16:28 GMT -8
Ok il try that when I get home from work
Thanks wormo
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on May 15, 2011 2:00:08 GMT -8
Hi Wormo Just a quick mod to this <script type="text/javascript"> // viper MP // concept by viper // coding by Wormopolis - wormocodes.proboards.com // do not repost - keep header intact
for (tds=document.getElementsByTagName('td'), i=0; i<tds.length; i++) { if (tds[i].width=="20%" && tds[i].align=="left" && tds[i].vAlign=="top" && tds[i].className.match(/windowbg/)) { // get parts uname=avpic=rname=jdate=rImgs=gender=karma = ptext=loc=postcount=ctitle=contactstuff=status=""; partsArray=tds[i].innerHTML.split(/<br>/i); uname=partsArray[0]; rname=partsArray[1]; if (rname!="Guest") { rImgs=partsArray[2]; if (rImgs.match(/member is/)) { var status=rImgs; rImgs=""; partsArray[3]=partsArray[2]; } ctitle=partsArray[3]; if (ctitle.match(/member is/)) { var status=ctitle; ctitle=""; } else { if (!status) var status=partsArray[4]; } avsectionstuff=tds[i].getElementsByTagName('center')[0]; for (p=0; p<partsArray.length;p++) { if (partsArray[p].match(/Joined:/)) jdate=partsArray[p]; if (partsArray[p].match(/Gender:/)) gender=partsArray[p]; if (partsArray[p].match(/Posts:/)) postcount=partsArray[p]; if (partsArray[p].match(/Location:/)) loc=partsArray[p]; if (partsArray[p].match(/Karma:/)) karma=partsArray[p]; } if (avsectionstuff.getElementsByTagName('img')[0] && avsectionstuff.getElementsByTagName('img')[0].alt=="[avatar]") avpic = avsectionstuff.getElementsByTagName('img')[0] if (avsectionstuff.childNodes[3] && avsectionstuff.childNodes[3].nodeName=="#text") ptext = avsectionstuff.childNodes[3].nodeValue; var contactstuff=document.createElement('span'); for (cntcts=avsectionstuff.getElementsByTagName('a'), cnt=cntcts.length-1; cnt>=0; cnt--) { contactstuff.appendChild(cntcts[cnt]); } } nwtbl=document.createElement('table'); nwtbl.width="100%" nwtbl.style.height="100%"; nwtbl.className=tds[i].className; topmrgnrow=nwtbl.insertRow(0); mainrow=nwtbl.insertRow(-1); bottommrgnrow=nwtbl.insertRow(-1); topmrgnrow.style.height=30; topmrgnrow.vAlign="middle"; unamecell=topmrgnrow.insertCell(0); unamecell.align="center"; fontholder=document.createElement('font'); fontholder.size=2; fontholder.innerHTML=uname; unamecell.appendChild(fontholder); unamecell.appendChild(document.createElement('hr')); unamecell.className="mptopcell"; mainrow.align="center"; mainrow.insertCell(0); mainrow.cells[0].style.verticalAlign="top"; brk=document.createElement('br'); hrbar=document.createElement('hr'); hrbar.style.width="80%"; if (avpic) { mainrow.cells[0].appendChild(avpic); mainrow.cells[0].appendChild(brk.cloneNode(true)); mainrow.cells[0].appendChild(hrbar.cloneNode(true)); } if (ctitle) { fontholder=document.createElement('font'); fontholder.size=2; fontholder.innerHTML=ctitle; mainrow.cells[0].appendChild(fontholder); mainrow.cells[0].appendChild(brk.cloneNode(true)); mainrow.cells[0].appendChild(hrbar.cloneNode(true)); } if (rname) { fontholder=document.createElement('font'); fontholder.size=2; fontholder.innerHTML=rname; mainrow.cells[0].appendChild(fontholder); if (rImgs) { mainrow.cells[0].appendChild(brk.cloneNode(true)); fontholder=document.createElement('font'); fontholder.size=2; fontholder.innerHTML=rImgs; mainrow.cells[0].appendChild(fontholder); } if (ptext) { mainrow.cells[0].appendChild(brk.cloneNode(true)); fontholder=document.createElement('font'); fontholder.size=2; fontholder.innerHTML=ptext; mainrow.cells[0].appendChild(fontholder); } mainrow.cells[0].appendChild(brk.cloneNode(true)); mainrow.cells[0].appendChild(hrbar.cloneNode(true)); } if (contactstuff.firstChild) { mainrow.cells[0].appendChild(contactstuff); mainrow.cells[0].appendChild(brk.cloneNode(true)); mainrow.cells[0].appendChild(hrbar.cloneNode(true)); } if (postcount) { fontholder=document.createElement('font'); fontholder.size=2; fontholder.innerHTML=postcount; mainrow.cells[0].appendChild(fontholder); mainrow.cells[0].appendChild(brk.cloneNode(true)); } if (karma) { fontholder=document.createElement('font'); fontholder.size=2; fontholder.innerHTML=karma; mainrow.cells[0].appendChild(fontholder); mainrow.cells[0].appendChild(brk.cloneNode(true)); } if (gender) { fontholder=document.createElement('font'); fontholder.size=2; fontholder.innerHTML=gender; mainrow.cells[0].appendChild(fontholder); mainrow.cells[0].appendChild(brk.cloneNode(true)); } if (loc) { fontholder=document.createElement('font'); fontholder.size=2; fontholder.innerHTML=loc; mainrow.cells[0].appendChild(fontholder); mainrow.cells[0].appendChild(brk.cloneNode(true)); } if (jdate) { fontholder=document.createElement('font'); fontholder.size=2; fontholder.innerHTML=jdate; mainrow.cells[0].appendChild(fontholder); mainrow.cells[0].appendChild(brk.cloneNode(true)); } bottommrgnrow.style.height=30; bottommrgnrow.vAlign="middle"; statuscell=bottommrgnrow.insertCell(0); statuscell.align="left"; fontholder=document.createElement('font'); fontholder.size=2; fontholder.innerHTML=status; statuscell.appendChild(fontholder); statuscell.className="mpbottomcell"; nwcl=document.createElement('td'); nwcl.appendChild(nwtbl); nwcl.width="20%"; nwcl.className="mptable"; tds[i].style.display="none"; tds[i].parentNode.insertBefore(nwcl, tds[i].nextSibling); } } </script>
Can i please have 2 spaces added for the following 2 codes 1) Posting Activity Bar2) Longevity BarThanks
|
|
|
Post by Wormopolis on May 15, 2011 14:34:14 GMT -8
where in the MP do you want them to show?
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on May 15, 2011 14:53:13 GMT -8
where in the MP do you want them to show? Under the Joined Please
|
|
|
Post by Wormopolis on May 15, 2011 19:11:03 GMT -8
wait.. actually.. looking at them they should place in the MP remodel just as they do without one. do you have these running after the MP remodel?
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on May 16, 2011 3:09:34 GMT -8
Yeah both codes are below the remodel code
|
|
|
Post by Wormopolis on May 16, 2011 3:34:39 GMT -8
in the activity meter code, find these 3 lines
if (tds[t].width=='20%' && tds[t].className.match(/windowbg/) && tds[t].vAlign=='top' && tds[t].innerHTML.match(/posts: (.*?)<br>/i)) { pstcnt=parseInt(RegExp.$1.replace(/,/g,'')); datechk=tds[t].innerHTML.match(/joined: (.*?) (\d+)<br>/i);
change to
if (tds[t].width=='20%' && tds[t].className.match(/windowbg/) && tds[t].vAlign=='top' && tds[t].innerHTML.match(/posts: (.*?)<\/font>/i)) { pstcnt=parseInt(RegExp.$1.replace(/,/g,'')); datechk=tds[t].innerHTML.match(/joined: (.*?) (\d+)<\/font>/i);
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on May 16, 2011 3:36:58 GMT -8
Ok thats been changed Still not showing
|
|
|
Post by Wormopolis on May 16, 2011 3:39:42 GMT -8
dammit... hold on
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on May 16, 2011 3:41:59 GMT -8
I got go to work now mate il be back later tonight
|
|