Many thanks. Your help showed me the plugin that caused this:
"Just join us" in Forumhome affected the hook location forumhome_complete.
How do I find line 264 of the plugin?
here is the content of the plugin:
PHP Code:
if($vbulletin->options['justjoin_active'] == 1) {
$userid = $vbulletin->userinfo['userid'];
$languageid = $vbulletin->userinfo['languageid'];
$user = $vbulletin->db->query_first_slave("
SELECT language.phrasegroup_justjoin AS phrasegroup_justjoin
FROM ".TABLE_PREFIX."user AS user
LEFT JOIN ".TABLE_PREFIX."language AS language
ON (language.languageid = " . (!empty($languageid) ? $languageid : "IF(user.languageid = 0, " . intval($vbulletin->options['languageid']) . ", user.languageid)") . ")
WHERE user.userid = $userid
");
$tmp = unserialize($user["phrasegroup_justjoin"]);
$vbphrase = array_merge((array)$vbphrase, $tmp);
require_once('includes/functions_user.php');
require_once('includes/functions_bigthree.php');
$limit = $vbulletin->options['justjoin_count'];
$joinus = $vbulletin->db->query_read("
SELECT *
FROM ".TABLE_PREFIX."user
WHERE usergroupid=2
ORDER BY joindate DESC
LIMIT $limit
");
while ($team = $vbulletin->db->fetch_array($joinus)){
$avatarurl = fetch_avatar_url($team['userid']);
if (!$avatarurl) {
$teamavatar = 'images/misc/noavatar.gif';
} else {
$teamavatar = $vbulletin->options['bburl'] . '/' . $avatarurl[0];
}
$userinfo = verify_id('user', $team['userid'], 1, 1);
$userinfo['lastactivitydate'] = vbdate($vbulletin->options['dateformat'], $userinfo['lastactivity'], true);
$userinfo['lastactivitytime'] = vbdate($vbulletin->options['timeformat'], $userinfo['lastactivity']);
$useronline = fetch_online_status($userinfo, true);
$userinfo['onlinestatuskey'] = $userinfo['onlinestatus'];
$totalcount ++;
eval('$justjoinbits .= "' . fetch_template('justjoin_joinbits') . '";');
}
unset($teamarray);
eval('$justjoin .= "' . fetch_template('justjoin_main') . '";');
$footer = '<br />'.$justjoin.$footer;
}
I assume it is due to this line:
PHP Code:
$vbphrase = array_merge($vbphrase, $tmp);
How can I fix this?