Need help with BBC Permissions Mod

Started by w4rkr4f7, November 15, 2015, 05:23:48 AM

Previous topic - Next topic

w4rkr4f7

Hi ,can I get some help with this mod http://www.simplemachines.org/community/index.php?topic=110620.msg3220655#msg3220655
Yes ,I've installed that mod on Beta version of SMF
Successfully installed but I cannot post anything now due to a error "Fatal error:  Function name must be a string in /Sources/Subs-Post.php on line 264   
line 264 is     global $db_prefix;

what new lines was added to Subs-Post.php :


// What groups is the user in?
$groups = implode('\', \'', $user_info['groups']);
// Get the  disallowed code from all the membergroups that the user is in.
global $db_prefix;
$request = $smcFunc['db_query']('', "
SELECT disallowed
FROM {db_prefix}bbc_permissions
WHERE id_group IN ('$groups')" );

// Make an array of what to find and replace.
$find = array();
$replace = array();
while ($row = mysql_fetch_assoc($request))
{
// Loop through each disallowed tag and add find an replace commands.
$disallowed = empty($row['disallowed']) ? array() : explode(',', $row['disallowed']);
foreach ($disallowed as $tag)
{
// Turn [tag into [tag.
$find[] = '[' . $tag;
$replace[] = '[' . $tag;
// Turn [/tag into [/tag.
$find[] = '[/' . $tag;
$replace[] = '[/' . $tag;
}
}
mysql_free_result($request);

// Now do the actual finding and replacing.
if (!empty($disallowed))
$message = str_replace($find, $replace, $message);


Thank you in advance

Livaco


Kindred

Additionally -- we do not support mods -- that is up to the authors of the mods.
Specifically -- since you are trying to install a 2.0 mod on 2.1 --- actually, you are trying to install an unauthorized version of the mod --  there will be no support for it here.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: