Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Mod Requests => Topic started by: Mayhem30 on December 09, 2010, 01:30:04 AM

Title: Deny membergroup from using BBC?
Post by: Mayhem30 on December 09, 2010, 01:30:04 AM
Is there a way to deny a membergroup from using BBC code?
Title: Re: Deny membergroup from using BBC?
Post by: Illori on December 09, 2010, 06:05:28 AM
not currently, you would have to request a mod or check the mod site.
Title: Re: Deny membergroup from using BBC?
Post by: Masterd on December 09, 2010, 07:42:42 AM
Ask someone to move this topic to Mod Requests for you.
Title: Re: Deny membergroup from using BBC?
Post by: Mayhem30 on December 12, 2010, 03:31:58 AM
Please move this to Mod Requests.
Title: Re: Deny membergroup from using BBC?
Post by: DoctorMalboro on December 13, 2010, 12:46:17 PM
for 2.0 it *could* be like this...

./Sources/ManagePermissions.php
search:
'profile_remote_avatar' => array(false, 'profile', 'use_avatar'),
then add:
            'use_bbocde' => array(false, 'general', 'make_post'),

./Themes/default/GenericControls.template.php
search:
if ($context['show_bbc'] && $bbcContainer !== null)

and then replace it for:
if ($context['show_bbc'] && $bbcContainer !== null && isAllowedTo('use_bbcode'))

./Themes/default/languages/Modifications.english.php (if you have another language it would be Modifications.yourlanguage.php)
before:
?>

add:
$txt['permissionname_use_bbcode'] = 'Watch Snow';
$txt['permissionhelp_use_bbcode'] = 'Is allow to watch the snow';

and that would be it... tell me if you have any issues :)
Title: Re: Deny membergroup from using BBC?
Post by: Mayhem30 on December 14, 2010, 04:55:58 AM
Quote from: DoctorMalboro on December 13, 2010, 12:46:17 PM
for 2.0 it *could* be like this...

./Sources/ManagePermissions.php
search:
'profile_remote_avatar' => array(false, 'profile', 'use_avatar'),
then add:
            'use_bbocde' => array(false, 'general', 'make_post'),

./Themes/default/GenericControls.template.php
search:
if ($context['show_bbc'] && $bbcContainer !== null)

and then replace it for:
if ($context['show_bbc'] && $bbcContainer !== null && isAllowedTo('use_bbcode'))

./Themes/default/languages/Modifications.english.php (if you have another language it would be Modifications.yourlanguage.php)
before:
?>

add:
$txt['permissionname_use_bbcode'] = 'Watch Snow';
$txt['permissionhelp_use_bbcode'] = 'Is allow to watch the snow';

and that would be it... tell me if you have any issues :)

I really appreciate your help - but this thread was pulled from the SMF 1.1.12 help section (my fault)

Any idea on how to handle this issue with SMF 1.1.2? I'll pay you for your time.

What would be great is to deny users (array?) based on group number.
Title: Re: Deny membergroup from using BBC?
Post by: DoctorMalboro on December 14, 2010, 08:37:04 AM
Ok, try this...

./Sources/ManagePermissions.php
search:
'calendar' => array(
'calendar_view' => false,
'calendar_post' => false,
'calendar_edit' => true,
),

and after that insert:
            'bbcode' => array(
                'use_bbcode' => false,
            ),

./Themes/default/Post.template.php
search:
if ($context['show_bbc'])

and replace it for:
if ($context['show_bbc'] && AllowedTo('use_bbcode'))

And finally... ./Themes/default/Modifications.english.php
before ?> add...
$txt['permissionname_use_bbcode'] = 'BBCodes';
$txt['permissionhelp_use_bbcode'] = 'Allow users to see and use BBCodes in post';

Tell me if it works... i do not have any 1.1.x test site right now. :)
Title: Re: Deny membergroup from using BBC?
Post by: DarkTexas on August 11, 2015, 09:30:05 AM
That would be a really great mod, but I think there is still no mod like this one?
Title: Re: Deny membergroup from using BBC?
Post by: margarett on August 11, 2015, 10:05:39 AM
http://custom.simplemachines.org/mods/index.php?mod=449

Go through the support topic, it seems to be able to work in 2.0
Title: Re: Deny membergroup from using BBC?
Post by: Kindred on August 11, 2015, 04:48:50 PM
although, now that you have pointed that out, we may have to remove it, since a mod update as an attachment by a non-author is not typically allowed per the rules of the mod board and may be a license violation