vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: Info center help - View Topic
Topic Rating: *****
Printable View
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,009
Status: Offline
Gender: Male
Location: vForums
Age: 31
Joined:  
Reputation: 62%  


pm
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:
 
  1. <table align="center" cellpadding="4" cellspacing="1" class="border" width="100%" id="info_center">
  2.  
  3. <tr>
  4. <td class="title1" colspan="2">
  5. <font size="2">
  6. <img src="http://www.idirectory.x10.mx/images/favicon.gif"> <strong>Users Online</strong>
  7. </font>
  8. </td>
  9. </tr>
  10. <tr>
  11. <td width="24px" class="window1">
  12. <img src="http://www.idirectory.x10.mx/images/forum/whosonline.gif" align="middle">
  13. </td>
  14. <td class="window2">
  15. <font size="1">
  16. In total there are {all_online_total} users online :: <a href="/action/members">{total_members}</a> registered, and {guest_on} guests <br />
  17. Most users ever online was {today_total} (based on users active over the past 24 hours)<br />
  18. Online Now: {foreach:all_online}{user}{ifnot:foreach_last}, {/if}{/foreach}<br />
  19. Past Users: {foreach:all_online_today}{user}{if:invisible} (invisible){/if}{ifnot:foreach_last}, {/if}{/foreach}
  20. </font>
  21. </td>
  22. </tr>
  23. </table>
  24. <br />
  25.  
  26. <table align="center" cellpadding="4" cellspacing="1" class="border" width="100%">
  27. <tr>
  28. <td class="title2" colspan="2">
  29. <font size="2">
  30. <img src="http://www.idirectory.x10.mx/images/favicon.gif"> <strong>Statistics</strong>
  31. </font>
  32. </td>
  33. </tr>
  34. <tr>
  35. <td width="24px" class="window1">
  36. <img src="http://www.idirectory.x10.mx/images/forum/stats.gif" align="middle">
  37. </td>
  38. <td class="window2">
  39. <font size="1">
  40. 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 />
  41. The last post made was {last_post} by {last_post_user} on {last_post_date}
  42. </font>
  43. </td>
  44. </tr>
  45. </table>
  46. <br />
  47.  
  48. {if:guest}
  49. <table align="center" cellpadding="4" cellspacing="1" class="border" width="100%">
  50. <tr>
  51. <td class="title1" colspan="2">
  52. <font size="2">
  53. <img src="http://www.idirectory.x10.mx/images/favicon.gif"> <strong>Login</strong>
  54. </font>
  55. </td>
  56. </tr>
  57. <tr>
  58. <td align=center class="window1">
  59.  
  60. <form action="/action/login" method="post" enctype="multipart/form-data" name="loginForm">
  61. <font size="1">Username:</font> <input type="text" tabindex="1" name="username" maxlength="35" value="" style="width: 100px;" />
  62. <font size="1">Password:</font> <input type="password" tabindex="1" name="password" maxlength="35" style="width: 100px;" />
  63. <font size="1">Stay Logged In For:</font> <select name="time" tabindex="1">
  64. <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>
  65. <input type="submit" tabindex="1" accesskey="s" value="Login Now" class="submit" />
  66. </form>
  67. </td>
  68. </tr>
  69. </table>
  70. {/if}
  71.  
  72. {if:member}
  73. <table align="center" cellpadding="4" cellspacing="1" class="border" width="100%">
  74. <tr>
  75. <td class="title2" colspan="2">
  76. <font size="2">
  77. <img src="http://www.idirectory.x10.mx/images/favicon.gif"> <strong>Your Information</strong>
  78. </font>
  79. </td>
  80. </tr>
  81. <tr>
  82. <td width="24px" class="window1">
  83. <img src="http://www.idirectory.x10.mx/images/forum/whosonline.gif" align="middle">
  84. </td>
  85. <td class="window2">
  86. <font size="1">
  87. Logged in as: <a href="/action/view_profile">##username##</a>
  88. | Newest PM <a href="/action/pm/">{new_pms}</a> | Total PM <a href="/action/pm/">{total_pms}</a>
  89. </font>
  90. </td>
  91. </tr>
  92. </table>
  93. {/if}
 


I need help with the "Login" section, --Fixed | Now I need the "Logged in as:" section fixed. - Done used the ##username## code {Tongue Out}

I also want to remove the original login table too. - This is all I need done, then everything will be done! {Smile}

If there is any other editing to fix anything, please do so if its necessary.

{Smile}

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

{Grin} 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" {Tongue Out}

I am proud to say, I finally did something on my own for once! {Grin} 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! {Tongue Out} So-to-speak. xD

This may be locked if you desire too. {Tongue Out}
 Printable View

All times are GMT+0 :: The current time is 4:38am
Page generated in 0.234 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums