inherit
131126
0
Jan 29, 2017 6:10:21 GMT -8
''NOVANEBULA;;
Every sixty seconds you spend upset is a minute of happiness you never get back.
62
September 2008
novanebula
|
Post by ''NOVANEBULA;; on May 4, 2012 8:21:09 GMT -8
Is there a code that can take a log in and have it float at the side of the board with an icon next to it? Like this site does in the floating box? spin-the-stars.proboards.com/
|
|
inherit
131126
0
Jan 29, 2017 6:10:21 GMT -8
''NOVANEBULA;;
Every sixty seconds you spend upset is a minute of happiness you never get back.
62
September 2008
novanebula
|
Post by ''NOVANEBULA;; on May 6, 2012 14:55:02 GMT -8
^
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on May 7, 2012 4:22:19 GMT -8
I have a couple of codes, that, when combined and edited a little will give you what you want..
Put both these two codes in your Main Footer..
<style type="text/css"> <!-- #fBox { position: absolute; left: 10px; top: 50px; font-size: 8px; padding: 4px; border: 2px solid black; _top: expression( ignoreMe=50+document.body.scrollTop+"px"); } body > #fBox { position: fixed; } #fContent { background-color: #ffffff; } --> </style>
<div id="fBox" style="display: none;"> <div id="fContent" style="text-align: center"></div> </div>
<script type="text/javascript"> <!-- // fBox mechanics..
if(pb_action == 'home' && pb_username == 'Guest') { document.getElementById('fBox').style.display=''; } // --> </script>
<script type="text/javascript"> <!-- // Replace log-in table with smaller version in float box...
if(pb_action == 'home' && document.loginform) { var lgf = document.loginform; var lgContent = '<table class="bordercolor" cellspacing="1" cellpadding="4"><tbody>'; lgContent += '<tr><td class="titlebg" align="center"><font size="2">Login</font></td></tr>'; lgContent += '<tr><td class="windowbg" align="center">'; lgContent += '<table><tbody><tr><td align="center">Username<br><input id="uname" size="20" maxlength="18">'; lgContent += '<br><a href="/index.cgi?action=register">Create New Account</a>'; lgContent += '<br>Password<br><input id="pword" size="20">'; lgContent += '<br><a href="/index.cgi?action=forgotpassword">Forgot you password?</a>'; lgContent += '</td></tr></tbody></table>'; lgContent += '<table><tbody><tr>'; lgContent += '<td width="10%" align="center"><input type="button" value="Login" id="lgin"></td>'; lgContent += '</tr></tbody></table>'; lgContent += '</td></tr></tbody></table>'; lgContent += '</td></tr></tbody></table>'; document.getElementById('fContent').innerHTML = lgContent;
function lgClick() { lgf.username.value = document.getElementById('uname').value; lgf.password.value = document.getElementById('pword').value; lgf.submit(); return; }
var lgt = lgf.parentNode; while(lgt.className != 'bordercolor') { lgt = lgt.parentNode; } lgt.style.display = 'none'; lgt.previousSibling.style.display = 'none'; lgt.previousSibling.previousSibling.style.display = 'none';
document.getElementById('lgin').onclick = function(){lgClick();} } // --> </script>
|
|
inherit
131126
0
Jan 29, 2017 6:10:21 GMT -8
''NOVANEBULA;;
Every sixty seconds you spend upset is a minute of happiness you never get back.
62
September 2008
novanebula
|
Post by ''NOVANEBULA;; on May 10, 2012 14:41:34 GMT -8
THANK YOU! mmn, Is there a way to make it so the box can be seen while on another account so people can switch between accounts without having to logout to do it?
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on May 11, 2012 12:59:01 GMT -8
I'm afraid not.. The log-in form is not on the main page while you are logged in, the only way you can switch accounts without logging out is from the log-in page.
Sorry.
|
|
inherit
131126
0
Jan 29, 2017 6:10:21 GMT -8
''NOVANEBULA;;
Every sixty seconds you spend upset is a minute of happiness you never get back.
62
September 2008
novanebula
|
Post by ''NOVANEBULA;; on May 11, 2012 13:15:00 GMT -8
thats fine. :] Thank you Todge you were a big help.
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on May 11, 2012 13:29:41 GMT -8
No worries..
|
|