Is there a way to deny a membergroup from using BBC code?
not currently, you would have to request a mod or check the mod site.
Ask someone to move this topic to Mod Requests for you.
Please move this to Mod Requests.
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 :)
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.
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. :)
That would be a really great mod, but I think there is still no mod like this one?
http://custom.simplemachines.org/mods/index.php?mod=449
Go through the support topic, it seems to be able to work in 2.0
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