2013-10-22, 12:33 PM
Here's the function:
I want to block gid 1,5,7,12 from seeing links in the forum.
I assume I need to change 'if ($mybb->user['uid'] == 0)'
But I'm not sure of the proper syntax.
Any help appreciated
function registeredlinks_process(&$message)
{
global $lang, $mybb;
if ($mybb->user['uid'] == 0)
{
$lang->load('registeredlinks');
$lang->reglinks_text = str_replace("{bburl}",$mybb->settings['bburl'],$lang->reglinks_text);
$message = preg_replace('#<a href="(.*?)</a>#i', $lang->reglinks_text, $message);
}
return $message;
}
I want to block gid 1,5,7,12 from seeing links in the forum.
I assume I need to change 'if ($mybb->user['uid'] == 0)'
But I'm not sure of the proper syntax.
Any help appreciated