vForums Support > vForums :: Support :: > Something broke.

Something broke. - Posted By Nick (nickb) on 22nd Oct 10 at 5:11pm
Forum URL: http://idirectory.vforums.co.uk
Experienced By: me
Browser: Chrome 6.0
Operating System: Ubuntu 10.04

Problem:

In the Info center, a bit of coding looks like it is broken, even though it was working before. It seems to work just fine on another one of my forums though, but nothing has changed.

I'm not quite sure where the problem is.

Here is the code:
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.us/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.us/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
  17. Most users ever online was {today_total} (based on users active over the past 24 hours)<br /> <br />
  18. Online Now: {foreach:all_online}{user}{ifnot:foreach_last}, {/if}{/foreach} {foreach:bots_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} {foreach:bots_online_today}{user}{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.us/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.us/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.  
  47. {if:birthdays}
  48. <br />
  49. <table align="center" cellpadding="4" cellspacing="1" class="border" width="100%">
  50. <tr>
  51. <td class="title2" colspan="2">
  52. <font size="2">
  53. <img src="http://www.idirectory.us/images/favicon.gif"> <strong>Birthdays</strong>
  54. </font>
  55. </td>
  56. </tr>
  57. <tr>
  58. <td width="24px" class="window1">
  59. <img src="http://www.idirectory.us/images/forum/birthday.gif" align="middle">
  60. </td>
  61. <td class="window2">
  62. <font size="1">
  63. There are a total of {birthday_total} Birthdays<br />
  64. {foreach:birthdays}{member}{if:hidden} (Hidden){/if}{ifnot:foreach_last}, {/if}{/foreach}
  65. </font>
  66. </td>
  67. </tr>
  68. </table>
  69. <br />
  70. {/if}
  71.  
  72. {if:member}
  73. <br />
  74. <table align="center" cellpadding="4" cellspacing="1" class="border" width="100%">
  75. <tr>
  76. <td class="title2" colspan="2">
  77. <font size="2">
  78. <img src="http://www.idirectory.us/images/favicon.gif"> <strong>Your Information</strong>
  79. </font>
  80. </td>
  81. </tr>
  82. <tr>
  83. <td width="24px" class="window1">
  84. <img src="http://www.idirectory.us/images/forum/whosonline.gif" align="middle">
  85. </td>
  86. <td class="window2">
  87. <font size="1">
  88. Logged in as: <a href="/profile/">##username##</a>
  89. | New PM's <a href="/action/pm/">{new_pms}</a> | Total PM's <a href="/action/pm/">{total_pms}</a> | <a href="/action/markasread/type/boards">Mark all Boards as read</a> | <a href="/action/recent">View Most recent posts</a>
  90. </font>
  91. </td>
  92. </tr>
  93. </table>
  94. {/if}
 


edit:

I notice it says V2.4 now. So it has to be something in the new version that caused this. As my other forum http://icodes.vforums.co.uk is 2.3 and it looks fine.

Re: Something broke. - Posted By Michael (wrighty) on 22nd Oct 10 at 8:30pm
Unfortunately Maintenance Mode is enabled - could you perhaps elaborate on the areas that are displaying incorrectly? {Smile}

Re: Something broke. - Posted By Nick (nickb) on 22nd Oct 10 at 9:03pm
Ok it's open, but just in case the forum converts here is a screen shot: http://wimg.co.uk/4WD.png

Re: Something broke. - Posted By xcessive (xcessive) on 23rd Oct 10 at 12:05am
Is it your forum width code at all..?

I'm also seeing some more problems, like the random "{/foreach}".

Re: Something broke. - Posted By Ross (admin) on 23rd Oct 10 at 12:22am
Hi Nick,

Should be good now.

Looks like a bug fix (relating to birthdays) was applied to the older version but not the newer one (while it was being tested). Have copied that fix over and all seems to be good again. Have also applied the bug to our development version to ensure the same thing doesn't happen again next time {Smile}

- Ross

Re: Something broke. - Posted By Nick (nickb) on 23rd Oct 10 at 4:03am
Ok, thanks. {Smile} Looks good.