Advertisement:

Author Topic: Need help with BBC Permissions Mod  (Read 1389 times)

Offline w4rkr4f7

  • Semi-Newbie
  • *
  • Posts: 41
Need help with BBC Permissions Mod
« on: November 15, 2015, 05:23:48 AM »
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 :

Code: [Select]
// 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

Offline Livaco

  • Jr. Member
  • **
  • Posts: 169
  • Gender: Male
  • CEO of Localhost
    • Livaco on GitHub
    • @LivacoYT on Twitter
    • My Website Thing
Re: Need help with BBC Permissions Mod
« Reply #1 on: November 15, 2015, 07:06:28 AM »
Post this in the topic for the mod please: http://www.simplemachines.org/community/index.php?topic=110620

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,063
  • Gender: Male
    • Kindred-999 on GitHub
Re: Need help with BBC Permissions Mod
« Reply #2 on: November 15, 2015, 08:32:18 AM »
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.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.