vForums Support > vForums :: Report a Bug :: > info center Birthday error

info center Birthday error - Posted By Nick (nickb) on 30th Apr 10 at 1:30am
Ok so when I try to add in a birthday table for the info center it shows up like this: http://i185.photobucket.com/albums/x20/magedesigns/misc/bday-ic.jpg

This is the code:
Code:
 
  1. {if:birthdays}
  2. <table align="center" cellpadding="4" cellspacing="1" class="border" width="100%">
  3. <tr>
  4. <td class="title2" colspan="2">
  5. <font size="2">
  6. <img src="http://www.idirectory.x10.mx/images/favicon.gif"> <strong>Birthdays</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/birthday.gif" align="middle">
  13. </td>
  14. <td class="window2">
  15. <font size="1">
  16. There are a total of {birthday_total} Birthdays<br />
  17. {foreach:birthdays}{member}{if:hidden} (Hidden){/if}{ifnot:foreach_last}, {/if}{/foreach}
  18. </font>
  19. </td>
  20. </tr>
  21. </table>
  22. <br />
  23. {/if}
  24.  
 


But I do not see any errors. I'm not sure if this is a coding error, or a bug. But a bug is what came to mind. {Tongue Out}

I think the {foreach:birthdays}{member}{if:hidden} (Hidden){/if}{ifnot:foreach_last}, {/if}{/foreach} is broken to be honest. {Tongue Out}

Re: info center Birthday error - Posted By Aiken (ionfortuna) on 30th Apr 10 at 5:33am
I've never been able to put b-days and events in my info center because of something similar

Re: info center Birthday error - Posted By Ross (admin) on 30th Apr 10 at 10:57pm
I tried the code you provided on my test forum and got no issues. Which suggests the problems lies somewhere else in your info center template. Possibly this is embedded within another {if} or {foreach} statement which is causing the issue?

Can you provide the entire template or put it onto a test board I can look at? {Smile}

Re: info center Birthday error - Posted By Nick (nickb) on 1st May 10 at 6:02am
Oddly enough. . . it sorted it's self out. o.o

I took a picture, so I know I'm not crazy! {Cheesy}


http://dmtesting.vforums.co.uk/

I always add codes onto my testing forum, to make sure they work, and see what they do, before I officially add them to the main forum, I am adding it too. {Tongue Out}