2017-03-02, 01:15 PM
I'm using PageManager plugin and I've got some information that I only want to be shown for a couple of usergroups.
I'm getting a Parse error. I wrapped the ' ' in / but it didn't fix it. I'm seeking assistance.
Here's my full code.
<if $GLOBALS['mybb']->user['usergroup'] == 4 then>
code was here
</if>
I'm getting a Parse error. I wrapped the ' ' in / but it didn't fix it. I'm seeking assistance.
Here's my full code.
<?php
global $headerinclude, $header, $theme, $footer, $templates, $lang, $user, $usergroup;
$template = '<html>
<head>
<title>' . $pages['name'] . '</title>
{$headerinclude}
</head>
<body>
{$header}
{$errors}
<if $GLOBALS['mybb']->user['usergroup'] == 4 then>
Code removed
</if>
{$footer}
</body>
</html>';
$template = str_replace("\'", "'", addslashes($template));
add_breadcrumb($pages['name']);
eval("\$page = \"" . $template . "\";");
output_page($page);
?>