Deny membergroup from using BBC?

Started by Mayhem30, December 09, 2010, 01:30:04 AM

Previous topic - Next topic

Mayhem30

Is there a way to deny a membergroup from using BBC code?

Illori

not currently, you would have to request a mod or check the mod site.

Masterd

Ask someone to move this topic to Mod Requests for you.


DoctorMalboro

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 :)

Mayhem30

#5
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.

DoctorMalboro

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. :)

DarkTexas

That would be a really great mod, but I think there is still no mod like this one?

margarett

Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Kindred

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
Сл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: