Status
Not open for further replies.

Erica

Customer
Hi i am getting this error when Seperate Staff and Staff Legend is on cant see forum
Code:
Fatal error: [] operator not supported for strings in /home/uorevolu/public_html/forums/forum.php(653) : eval()'d code on line 32

Now if i disable those 2 forum shows and info panel how do i fix this thanks.
 
Could you please disable all other plugins that run on forumhome_complete and then try it again? It's most likely just a simple conflict :)

If that works, please re-enable them one by one until you find the culprit, then paste its code here.
 
Ok it's this part from spider plugin that makes it do that error if i turn off plugin of spider then it works.
Display Spiders on Forumhome:

Code:
$groups = explode(',', $vbulletin->options['boofo_spiders_view']);

if ((is_member_of($vbulletin->userinfo, $groups) OR $groups[0] == 0) AND ($vbulletin->options['displayloggedin'] == 1 OR $vbulletin->options['displayloggedin'] == 2 OR ($vbulletin->options['displayloggedin'] > 2 AND $vbulletin->userinfo['userid'])) AND !$show['search_engine'] AND !empty($vbulletin->wol_spiders))
{
	$datecut = TIMENOW - $vbulletin->options['cookietimeout'];
	$spiders = $db->query_read("
		SELECT useragent
		FROM " . TABLE_PREFIX . "session
		WHERE lastactivity > " . intval($datecut) . "
			AND userid = 0
	");

	$spiderlist = array();
	while ($spidercand = $db->fetch_array($spiders))
	{
		if (preg_match('#(' . $vbulletin->wol_spiders['spiderstring'] . ')#si', $spidercand['useragent'], $agent))
		{
			$agent = strtolower($agent[1]);
			$spider = $vbulletin->wol_spiders['agents']["$agent"];
			$spiderlist["$spider[name]"]++;
		}
	unset($spidercand);
	}
	$db->free_result($spiders);

	$sc_start = "<span style=\"color: " . vB_Template_Runtime::fetchStyleVar('boofo_spiders_color') . "; white-space: nowrap;\" title=\"" . $vbphrase['boofo_display_bspider'] . "\">";
	$sc_end = "</span>";

	foreach ($spiderlist AS $spidername => $spidercount)
	{
		$activeusers[] = array(
			'buddymark' => "$sc_start" . $spidername . ($spidercount == 1 ? "$sc_end" : " ($spidercount)$sc_end")
		);
	$numberspiders = $numberspiders + $spidercount;
	}
	unset($spiderlist);
	$numberguest -= $numberspiders;
}

if ($numberspiders)
{
	if ($vbulletin->products['digitalpoint_usermap'])
	{
		$vbphrase['x_members_and_y_guests'] .= $numberspiders==1 ? "" . $vbphrase['boofo_display_spider'] . " – <a href=\"usermap.php\" target=\"_blank\">" . $vbphrase['boofo_view_map'] . "</a>" : "" . construct_phrase($vbphrase['boofo_display_spiders'], $numberspiders) . " – <a href=\"usermap.php\" target=\"_blank\">" . $vbphrase['boofo_view_map'] . "</a>";
	}
	else
	{
		$vbphrase['x_members_and_y_guests'] .= $numberspiders==1 ? "" . $vbphrase['boofo_display_spider'] . "" : "" . construct_phrase($vbphrase['boofo_display_spiders'], $numberspiders) . "";
	}
}
elseif ($activeusers && $vbulletin->products['digitalpoint_usermap'])
{
	$vbphrase['x_members_and_y_guests'] .= " – <a href=\"usermap.php\" target=\"_blank\">" . $vbphrase['boofo_view_map'] . "</a>";
}
 
I mean change InfoPanels' forumhome_complete plugin to 2, leave Boofo's at 1.
 
ok thanks its ok just wanted to know where the conflict was at i will just turn off seperate staff not a big deal ;)
 
Status
Not open for further replies.

Legacy InfoPanels

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
870
Customer rating
0.00 star(s) 0 ratings
Back
Top