The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Birthdays = Array?
Hi,
I'm currently running vB 3.7.3. On the bottom of my forum index, birthdays show up as "Array" instead of listing the birthdays of the forum members. Looks like this: Below is my site's birthday.php Code:
$tdate = vbdate('Y-m-d', TIMENOW, false, false); if (!is_array($vbulletin->birthdaycache) OR ($tdate != $vbulletin->birthdaycache['day1'] AND $tdate != $vbulletin->birthdaycache['day2'])) { include_once('./includes/functions_databuild.php'); $vbulletin->birthdaycache = build_birthdays(); } switch($tdate) { case $vbulletin->birthdaycache['day1']: $birthdays =& $vbulletin->birthdaycache['users1']; break; case $vbulletin->birthdaycache['day2']; $birthdays =& $vbulletin->birthdaycache['users2']; break; } $show['tablerow'] = true; $birthdays_str = ''; // Birthdays change from a string to array in vB 3.7 RC3 if (is_array($birthdays)) { if (empty($birthdays)) { $birthdays_str = $vbphrase['none']; } else { foreach ($birthdays AS $birthkey => $birthinfo) { $birthdays_str .= '<a href="' . $vbulletin->options['bburl'] . '/member.php?' . $vbulletin->session->vars['sessionurl'] . 'u=' . $birthinfo['userid'] . '">' . $birthinfo['username'] . '</a>' . iif($birthinfo['age'], ' (' . $birthinfo['age'] . ')') . '<br />'; } } } else if ($birthdays) { $birthdays_str = str_replace(array('member.php', ','), array($vbulletin->options['bburl'] . '/member.php', '<br />'), $birthdays); } else { $birthdays_str = $vbphrase['none']; } ($hook = vBulletinHook::fetch_hook('vba_cmps_module_birthdays')) ? eval($hook) : false; $home[$mods['modid']]['content'] = $birthdays_str; |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|