The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
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;
|
|
#2
|
||||
|
||||
|
er... bump?
|
|
#3
|
||||
|
||||
|
No one can help?
|
|
#4
|
|||
|
|||
|
Well, you should post this in the vb3 programming forum, not in the general suggestion forum, i believe you will get more help there.
|
|
#5
|
||||
|
||||
|
Ok I'll try there, thanks.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|