Jump to the post that solved this thread.
Not Solved Upgrade from 1.8.6 to 1.8.22
#3
Not Solved
Hi Omar. Line 398 is at the end of the EVAL function with just the one bracket. In the "PHP" block it is line 15.

$forum_list = build_forumbits();
$forums = $forum_list['forum_list'];

$plugins->run_hooks('index_end');

eval('$index = "'.$templates->get('index').'";');
output_page($index);
	$query = $db->query("
		SELECT f.*, fr.dateline AS lastread
		FROM ".TABLE_PREFIX."forums f
		LEFT JOIN ".TABLE_PREFIX."forumsread fr ON (fr.fid = f.fid AND fr.uid = '{$mybb->user['uid']}')
		WHERE f.active != 0
		ORDER BY pid, disporder
	");
}

while($forum = $db->fetch_array($query))
{
	if($mybb->user['uid'] == 0)
	{
		if(!empty($forumsread[$forum['fid']]))
		{
			$forum['lastread'] = $forumsread[$forum['fid']];
		}
	}
	$fcache[$forum['pid']][$forum['disporder']][$forum['fid']] = $forum;
}
$forumpermissions = forum_permissions();

// Get the forum moderators if the setting is enabled.
$moderatorcache = array();
if($mybb->settings['modlist'] != 0 && $mybb->settings['modlist'] != 'off')
{
	$moderatorcache = $cache->read('moderators');
}

$excols = 'index';
$permissioncache['-1'] = '1';
$bgcolor = 'trow1';

// Decide if we're showing first-level subforums on the index page.
$showdepth = 2;
if($mybb->settings['subforumsindex'] != 0)
{
	$showdepth = 3;
}


I will also attach the entire file.
Reply
Jump to the post that solved this thread.


Messages In This Thread
Upgrade from 1.8.6 to 1.8.22 - by grincher99 - 2020-04-08, 11:07 PM
RE: Upgrade from 1.8.6 to 1.8.22 - by Omar G. - 2020-04-08, 11:32 PM
RE: Upgrade from 1.8.6 to 1.8.22 - by grincher99 - 2020-04-09, 12:07 AM
RE: Upgrade from 1.8.6 to 1.8.22 - by Omar G. - 2020-04-09, 12:14 AM
RE: Upgrade from 1.8.6 to 1.8.22 - by grincher99 - 2020-04-09, 01:42 AM
RE: Upgrade from 1.8.6 to 1.8.22 - by Omar G. - 2020-04-09, 02:15 AM
RE: Upgrade from 1.8.6 to 1.8.22 - by grincher99 - 2020-04-09, 03:25 AM
RE: Upgrade from 1.8.6 to 1.8.22 - by .m. - 2020-04-09, 03:51 AM
RE: Upgrade from 1.8.6 to 1.8.22 - by Omar G. - 2020-04-09, 04:21 AM
RE: Upgrade from 1.8.6 to 1.8.22 - by grincher99 - 2020-04-09, 03:48 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)