Nick Very Senior Member
Posts: 3,012 Status: Offline Gender: Male Location: vForums Age: 33 Joined:
pmwww | Info center help (28th Apr 10 at 2:29am UTC) Resolved | | I didn't want to do this, but I need help with JS
Code: - <table align="center" cellpadding="4" cellspacing="1" class="border" width="100%" id="info_center">
-
- <tr>
- <td class="title1" colspan="2">
- <font size="2">
- <img src="http://www.idirectory.x10.mx/images/favicon.gif"> <strong>Users Online</strong>
- </font>
- </td>
- </tr>
- <tr>
- <td width="24px" class="window1">
- <img src="http://www.idirectory.x10.mx/images/forum/whosonline.gif" align="middle">
- </td>
- <td class="window2">
- <font size="1">
- In total there are {all_online_total} users online :: <a href="/action/members">{total_members}</a> registered, and {guest_on} guests <br />
- Most users ever online was {today_total} (based on users active over the past 24 hours)<br />
- Online Now: {foreach:all_online}{user}{ifnot:foreach_last}, {/if}{/foreach}<br />
- Past Users: {foreach:all_online_today}{user}{if:invisible} (invisible){/if}{ifnot:foreach_last}, {/if}{/foreach}
- </font>
- </td>
- </tr>
- </table>
- <br />
-
- <table align="center" cellpadding="4" cellspacing="1" class="border" width="100%">
- <tr>
- <td class="title2" colspan="2">
- <font size="2">
- <img src="http://www.idirectory.x10.mx/images/favicon.gif"> <strong>Statistics</strong>
- </font>
- </td>
- </tr>
- <tr>
- <td width="24px" class="window1">
- <img src="http://www.idirectory.x10.mx/images/forum/stats.gif" align="middle">
- </td>
- <td class="window2">
- <font size="1">
- Total Boards {total_boards} | Total Categories {total_categories} | Total posts {total_posts} | Total topics {total_topics} | Total members {total_members} | Our newest member {foreach:newest_members:1}: {member}{/foreach} <br /><br />
- The last post made was {last_post} by {last_post_user} on {last_post_date}
- </font>
- </td>
- </tr>
- </table>
- <br />
-
- {if:guest}
- <table align="center" cellpadding="4" cellspacing="1" class="border" width="100%">
- <tr>
- <td class="title1" colspan="2">
- <font size="2">
- <img src="http://www.idirectory.x10.mx/images/favicon.gif"> <strong>Login</strong>
- </font>
- </td>
- </tr>
- <tr>
- <td align=center class="window1">
-
- <form action="/action/login" method="post" enctype="multipart/form-data" name="loginForm">
- <font size="1">Username:</font> <input type="text" tabindex="1" name="username" maxlength="35" value="" style="width: 100px;" />
- <font size="1">Password:</font> <input type="password" tabindex="1" name="password" maxlength="35" style="width: 100px;" />
- <font size="1">Stay Logged In For:</font> <select name="time" tabindex="1">
- <option value="session">This Session</option><option value="30">30 Minutes</option><option value="60">1 Hour</option><option value="120">2 Hours</option><option value="360">6 Hours</option><option value="720">12 Hours</option><option value="1440">1 Day</option><option value="10080">1 Week</option><option value="1051897" selected="selected">Forever</option></select>
- <input type="submit" tabindex="1" accesskey="s" value="Login Now" class="submit" />
- </form>
- </td>
- </tr>
- </table>
- {/if}
-
- {if:member}
- <table align="center" cellpadding="4" cellspacing="1" class="border" width="100%">
- <tr>
- <td class="title2" colspan="2">
- <font size="2">
- <img src="http://www.idirectory.x10.mx/images/favicon.gif"> <strong>Your Information</strong>
- </font>
- </td>
- </tr>
- <tr>
- <td width="24px" class="window1">
- <img src="http://www.idirectory.x10.mx/images/forum/whosonline.gif" align="middle">
- </td>
- <td class="window2">
- <font size="1">
- Logged in as: <a href="/action/view_profile">##username##</a>
- | Newest PM <a href="/action/pm/">{new_pms}</a> | Total PM <a href="/action/pm/">{total_pms}</a>
- </font>
- </td>
- </tr>
- </table>
- {/if}
I need help with the "Login" section, --Fixed | Now I need the "Logged in as:" section fixed. - Done used the ##username## code
I also want to remove the original login table too. - This is all I need done, then everything will be done!
If there is any other editing to fix anything, please do so if its necessary.
ed:
I also want the time of login as well.
ed:
I have updated the code with my code that is already done.
edit: everything is working properly now. final result:
http://idirectory.vforums.co.uk
I only had a small help, but I did all the rest. There was a conflict with this code:
<script type="text/javascript"><!-- if(get('loginForm','name')[0]) { get('loginForm','name')[0].firstChild.style.display = 'none'; get('loginForm','name')[0].parentNode.previousSibling.style.display = 'none'; get('loginForm','name')[0].parentNode.nextSibling.style.display = 'none'; } //--> </script>
and my info center login box/the QL both had the name="LoginForm" so in the info center I changed the name to name="login"
I am proud to say, I finally did something on my own for once! I did have the right code that removed the Quick Login, but as I said above there was a conflict, so in all reality, I didn't have any help! So-to-speak. xD
This may be locked if you desire too. | |
|