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,012
Status: Offline
Gender: Male
Location: vForums
Age: 35
Joined:  
Reputation: 62%  


pmwww
Info Center Help (25th Aug 09 at 8:25am UTC)
http://dmtesting.vforums.co.uk/

Code:
 
  1. <table align="center" cellpadding="4" cellspacing="1" class="border" width=100% id="info_center">
  2. <tr>
  3. <td align="center" class="title1" colspan="3">
  4. <font size="2">
  5. Advanced Info Center
  6. </font>
  7. </td>
  8. </tr>
  9. <tr>
  10. <td align="center" class="window1">
  11. <font size="2">
  12. <SCRIPT Language="JavaScript">
  13. <!-- http://icodes.vforums.co.uk
  14. var curDateTime = new Date()
  15. document.write(curDateTime.toLocaleString())
  16. //-->
  17. </SCRIPT>
  18. </font>
  19. </td>
  20. <td align="center" class="window1">
  21. <font size="2">
  22. Member of the Month: <i>None</i>
  23. </font>
  24. </td>
  25. </tr>
  26. <tr>
  27. <td align="center" class="title1" colspan="3">
  28. <!--Leave Blank-->
  29. </td>
  30. </tr>
  31. <tr>
  32. <td align="center" class="title1">
  33. <font size="2">
  34. Members Legend
  35. </font>
  36. </td>
  37. <td align="center" class="title1">
  38. <font size="2">
  39. Board Stats
  40. </font>
  41. </td>
  42. <td align="center" class="title1">  
  43. <font size="2">
  44. Your Info
  45. </font>
  46. </td>
  47. </tr>
  48. <tr>
  49. <td align="Left" class="window1">
  50. <font size="2">
  51. Staff: {staff_on}<br />
  52. Members: {member_on}<br />
  53. Guests: {guest_on}
  54. </font>
  55. </td>
  56. <td align="Left" class="window1">
  57. <font size="2">
  58. Members: {total_members} <br />
  59. Posts: {total_posts}<br />
  60. Topics: {total_topics}<br />
  61. Boards: {total_boards}<br />
  62. Categories: {total_categories}<br /><br />
  63. <a href="action/members/view/top_posters">Top Posters</a>
  64. </font>
  65. </td>
  66. <td align="Left" class="window1" width=25%>
  67. <font size="2">
  68. Welcome Back <br />
  69. You have: {new_pms} New Messages<br />
  70. You have: {total_pms} Old Messages <br /><br />
  71. <a href="/action/view_profile">Your Profile</a>
  72. </font>
  73. </td>
  74. </tr>
  75. <tr>
  76. <td align="center" class="title1"  colspan="3">
  77. <!--Leave Blank-->
  78. </td>
  79. </tr>
  80. <tr>
  81. <td align="center" class="title1">
  82. <font size="2">
  83. Online Info
  84. </font>
  85. </td>
  86. <td align="center" class="title1">
  87. <font size="2">
  88. History Info
  89. </font>
  90. </td>
  91. </tr>
  92. <tr>
  93. <td align="left" class="window1">
  94. <font size="2">
  95. Members Online: {online_total}<br />
  96. Newest Member to Our Forum: {foreach:newest_members:1}{number}: {member} ({user_name})<br />{/foreach}<br />
  97. Members viewing Our Forum: {foreach:members_online_today}{user}{ifnot:foreach_last}, {/if}{/foreach}
  98. </font>
  99. </td>
  100. <td align="center"  class="title1">
  101. <font size="2">
  102. View the <a href-"/action/recent/posts">Top most recent posts</a> of our forum.<br />
  103. The Most Members Online was: {today_total}<br />
  104. The Last Post was: {last_post}, by: {last_post_user}, at {last_post_date}
  105. </font>
  106. </td>
  107. </tr>
  108. <tr>
  109. <td align="center" class="title1"  colspan="3">
  110. <!--Leave Blank-->
  111. </td>
  112. </tr>
  113. <tr>
  114. <td align="center" class="title1">
  115. <font size="2">
  116. Events This Month:
  117. </font>
  118. </td>
  119. <td align="center" width=50% class="title1">
  120. <font size="2">
  121. Happy Birthday:
  122. </font>
  123. </td>
  124. <tr>
  125. <td align="center" class="window1">
  126. <font size="2">
  127. {foreach:events}{event} ({day}/{month}){ifnot:foreach_last}, {/if}{/foreach}
  128. </font>
  129. </td>
  130. <td align="center" class="window1">
  131. <font size="2">
  132. {foreach:birthdays}{member}{if:hidden} (Hidden){/if}{ifnot:foreach_last}, {/if}{/foreach}
  133. </font>
  134. </td>
  135. </tr>
  136. <tr>
  137. <td align="center" class="title1"  colspan="3">
  138. <!--Leave Blank-->
  139. </td>
  140. </tr>
  141. <tr>
  142. <td align="center" class="title1"  colspan="3">
  143. Active members in the last 24 hours:
  144. <td>
  145. </tr>
  146. <tr>
  147. <td align="center" class="window1">
  148. {foreach:staff_online_today}{user}{ifnot:foreach_last}, {/if}{/foreach}, {foreach:members_online_today}{user}{ifnot:foreach_last}, {/if}{/foreach}
  149. <td>
  150. </tr>
  151. </table>
  152.  
 



if you can see what I did wrong, do fix it for me please. You can see the preview in the link above. Also I can't get the date/time code to work... {Unsure}

Thanks.
ashkir
Full Member
***

[Avatar]

Posts: 1,159
Status: Offline
Gender: Male
Location: Cali!
Age: 35
Joined:  
Reputation: 42%  


pmtwitterskypemsnyahoo
Re: Info Center Help (25th Aug 09 at 6:47pm UTC)
Darkmage can I recommend using {if:member} ? So guests won't see PM links?

You can also use the ifs to show entire new sections, or hide them for events/birthdays, etc.
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,012
Status: Offline
Gender: Male
Location: vForums
Age: 35
Joined:  
Reputation: 62%  


pmwww
Re: Info Center Help (25th Aug 09 at 8:09pm UTC)
Yeah I know, I'm confused by the new system just a bit, been awhile since I've actually coded. and I do not want to hide those.

There is this whole section of black on the right hand side of the screen. and it's not showing anything I want. It's supposed to be divided in 3 sections each.
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 9 14
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
Re: Info Center Help (25th Aug 09 at 10:07pm UTC)
Half of the problem is a missing closing tag (it needs the red)


</tr>
<tr>
<td align="center" class="title1"  colspan="3"> 
Active members in the last 24 hours:
</td> 
</tr>
The rest of the issue comes from there only being two cells in the History and Birthday rows. You should either add an extra cell to each or use colspans to spread one cell over multiple columns.

Image
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,012
Status: Offline
Gender: Male
Location: vForums
Age: 35
Joined:  
Reputation: 62%  


pmwww
Re: Info Center Help (26th Aug 09 at 4:31am UTC)
Yeah I know it was supposed to be 3 cells, which it did at one point. o_O but I don't know how that happened. I don't even remember what was supposed to be in the 3rd columns.

I was copying a PB forums' info center because it looked cool.
 Printable View

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