MyBB Community Forums

Full Version: Error in Thread Viewer mod
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I became PHP error after mod activating Thread Viewer
Parse error: parse error, unexpected T_VARIABLE, expecting '}' in z:\home\ppp.ru\www\forums\showthread.php(824) : eval()'d code on line 1

Warning: Cannot modify header information - headers already sent by (output started at z:\home\ppp.ru\www\forums\showthread.php(824) : eval()'d code:1) in z:\home\ppp.ru\www\forums\inc\functions.php on line 78
Can somebody help?
Can somebody help?

In showthread.php this place is

// Build thread moderation dropdown
		if(!empty($customthreadtools))
		{
			eval("\$customthreadtools = \"".$templates->get("showthread_moderationoptions_custom")."\";");
		}
		eval("\$moderationoptions = \"".$templates->get("showthread_moderationoptions")."\";");
	}
	$lang->newthread_in = sprintf($lang->newthread_in, $forum['name']);
	eval("\$showthread = \"".$templates->get("showthread")."\";");
	$plugins->run_hooks("showthread_end");
	output_page($showthread);
}

in inc/functions 78 line is:

header("Content-type: text/html; charset={$lang->settings['charset']}");

Mod Thread viewer is here
Bump.
Please don't bump threads before 24 hours have passed.
http://mods.mybboard.net/forum/showthrea...49#pid4849

I've peplaced the code in Template - Showthread so:

Find:
{$similarthreads$viewer}

Replace with:

{$similarthreads} {$viewer}