|
Post by Wormopolis on Aug 22, 2009 23:20:26 GMT -8
Browser Tested: IE and FF placement: main footer Moves login boxes above boards and reduces input box sizes. code: <script type="text/javascript"> <!-- // nats login remodel v.1.51 // apparently V3 style // By Wormopolis - www.wormocodes.com // keep header intact
placementmode=1; //1=above boards, 2=above welcome table
if (document.loginform && !location.href.match(/action=login/)) { internalstuff=document.loginform.getElementsByTagName('table')[0]; logTable1=document.loginform.parentNode.parentNode; logTable1.style.backgroundColor="transparent"; logTable1.className=""; logTable1=logTable1.parentNode.parentNode.parentNode; logTable2=logTable1.parentNode.parentNode.parentNode.parentNode; logTable2.style.height=10; logTable1.style.backgroundColor=logTable2.style.backgroundColor="transparent"; logTable1.style.height="100%"; logTable1.rows[0].style.display="none"; nwrw=internalstuff.insertRow(-1); nwcl=nwrw.insertCell(0); nwcl.id="logcell"; internalstuff.align="right"; nwcl.align="right"; for (i=0; i<4; i++) { internalstuff.rows[i].style.display="none"; internalstuff.rows[i].cells[1].firstChild.style.marginLeft=internalstuff.rows[i].cells[1].firstChild.style.marginRight=5; nwcl.appendChild(document.createTextNode(internalstuff.rows[i].cells[0].innerHTML.substring(0,4))); if (i<3) internalstuff.rows[i].cells[1].firstChild.style.width=50; nwcl.appendChild(internalstuff.rows[i].cells[1].firstChild); } hmm=document.links; for (i=0; i<hmm.length; i++) { if (hmm[i].className=='nav') { keep=hmm[i].parentNode; break; } } topper=document.createElement('table'); topper.insertRow(0); topper.rows[0].insertCell(0); topper.id="boardtoptable"; topper.width="100%";
if (placementmode=2) { document.body.insertBefore(topper,document.getElementsByTagName('table')[0]); } else { cur=hmm[i]; if (cur.previousSibling.nodeName.match(/br/i)) cur.previousSibling.style.display="none"; while ( !cur.nodeName.match(/script|table/i) ) { nxt=cur.nextSibling; if (cur.nodeName.match(/br/i)) cur.style.display="none"; topper.rows[0].cells[0].appendChild(cur); //cur.style.display="none"; cur=nxt; } keep.insertBefore(topper, keep.firstChild); if (topper.nextSibling.nodeName.match(/text/i)) topper.nextSibling.nextSibling.style.display="none"; } topper.rows[0].insertCell(-1); topper.rows[0].cells[1].align="right"; topper.rows[0].cells[1].vAlign=topper.rows[0].cells[0].vAlign="bottom"; topper.rows[0].cells[1].appendChild(logTable2);
}
// --> </script>
preview: www.wormocodes.com/index.cgi?nohook&natslogin
|
|
|
Post by Wormopolis on Nov 22, 2009 23:42:08 GMT -8
fixed bug that occured when news fader was turned on.
|
|
Pachi & Chiraamii
Not New Member
[Sj1:0]
Posts: 1
Pachi & Chiraamii said 0 great things
|
Post by Pachi & Chiraamii on Jul 14, 2010 11:16:52 GMT -8
I'm having a problem with the code. Are there any codes that can interfere with it? EDIT: Nevermind, I managed to get it to work.
|
|
macflurry
Not New Member
Posts: 4
macflurry said 0 great things
|
Post by macflurry on Aug 3, 2010 14:20:09 GMT -8
Hi, with the code on this site there are the smaller login boxes displayed above the forum but if you got to the main login button on the banner the next page shows the login boxes in a full table in the centre of the screen.
When I used this code on my site the smaller boxes show above the forum but when you click on the main login button the boxes load in the fulll table then jump to the right of the screen and shrink to look like the home page. If that makes sense!?!?
How can I get my login boxes to behave like the ones on this site and also how can I move the quick login boxes to the very top of the forum above the banner??
Thanks in advance, Stu.
|
|
|
Post by Wormopolis on Aug 3, 2010 22:47:09 GMT -8
you mentioned several sites in there but didnt link to any of them. it will help me if you want me to follow along with what you are asking.
|
|
macflurry
Not New Member
Posts: 4
macflurry said 0 great things
|
Post by macflurry on Aug 4, 2010 11:31:33 GMT -8
Apollogies, the site is: fz750.proboards.com/index.cgiOn the index page the log in boxes appear above the forum as per the mod. If you follow the log in button on the menu bar the log in boxes load in a central table then jump over to the right, but on Wormocodes it stays central in the propper box. How can I get them to stay central and in a proper table like Wormocodes?? Also how can I move the login boxes to the very top, above the banner, on the index page? Cheers, Stu.
|
|
|
Post by Wormopolis on Aug 4, 2010 16:30:13 GMT -8
Ok I get it now. you want it when the member is actually ON a login page, that the login page doesnt get affected. I can do that.
moving the above the banner is a littl emore difficult but I believe it can be done. I will post a updated version as soon as I can test it.
|
|
|
Post by Wormopolis on Aug 4, 2010 18:01:50 GMT -8
v 1.5 posted. new variable now allows for placement above welcome table. also fixed it so it doesnt affect login page.
|
|
macflurry
Not New Member
Posts: 4
macflurry said 0 great things
|
Post by macflurry on Aug 5, 2010 0:43:47 GMT -8
You are a legend, thank you.
|
|
|
Post by Wormopolis on Aug 5, 2010 1:14:08 GMT -8
looks good!
recopy the code to get v1.51
then if you add some CSS into your global header:
<style type="text/css"> #logcell {color:#FFFFFF;} </style>
it might make that text easier to read
|
|