Customization > Blocks and Modifications

[Plugin] SP - Extra Shoutbox Permissions/Options

(1/15) > >>

Chen Zhen:
[Plugin] SP - Extra Shoutbox Permissions/Options

This will install:
* extra options within each unique Simple Portal shoutbox settings
* membergroup permissions under the heading of SimplePortal 
The extra permissions can be enabled/disabled for any existing membergroup and the extra options can be specific to each shoutbox which will allow a forum administrator more control over shoutbox functions.   


      Simple Portal Extra Shoutbox Options v1.7
      Developed for SMF 2.0.X forums c/o Chen Zhen @ web-develop.ca
      Copyright 2013, 2014, 2015, 2016 webdev@web-develop.ca
      This software package is distributed under the terms of the GNU General Public License
      http://www.gnu.org/licenses/gpl.txt


Constituents

New Features

These are additional features that are available within each shoutbox unique settings.

* Custom Permissions -> Read Only [R]
* Force Lowercase (possibly used for regex)
* Regex filter (flavour/pattern)
* Regex callback (PHP)
* Reset regex to defaults option
* Exempt Administrators from the regex filter
* Consecutive shout limit
* Consecutive limit exceeded warning (BBCode parsed)
* Maximum single shout input characters setting
* Disallowed hyperlink warning (BBCode parsed)
Permissions

These are site wide permissions meaning they affect all Simple Portal shoutboxes on your website.
Unique shoutbox permissions work in conjunction with these although the newer permission set has authority.
They are available in your membergroup permission settings.

* Allow/Disallow viewing of shouts
* Allow/Disallow posting of shouts
* Allow/Disallow posting links
* Allow/Disallow deletion of own shouts
* Allow/Disallow editing of own shouts
* Allow/Disallow whispering option
* Enable/Disable filter of shout text via regex & callback (configurable)
* Enable/Disable limiting amount of consecutive shouts
* The above settings are available for Guest permissions (<- can opt guests to use the shoutbox)
General Features

These are general features that were added and/or changed from the shoutbox default behaviour.
They do not require any change of options as they are automatically applied.

* Word-wrap added to css of each shout to prevent possible horizontal scroll bar
* General warning displayed in some circumstances instead of fatal error message

Default behaviour relies on this setting:
Enable: Force Lowercase Text

Default regex for v1.5+

--- Code: ---(?:^|[\.\!\?]\s+)\w|([^:]\b[i|o]\b)

--- End code ---

Default callback for v1.5+

--- Code: ---mb_strtoupper($m[0], $encoding)

--- End code ---

Annotation:

* the globals:  ~ $context, $smcFunc & $modSettings  ~ are already available within your callback
* $encoding is also available (default forum character encoding) which may be necessary within some php functions
* Unicode is automatically configured for all regex usage so long as UTF-8 encoding is being used
* SMF 2.0.X branch uses XHTML therefore the constant of ENT_XHTML is used within some PHP functions
* PHP 5.4+ is required to use this plug-in


CLICK TO DOWNLOAD v1.71


If you are updating this modification, you will need to uninstall/delete the older version prior to installing the updated version.
The default regex may change with version updates so be sure to check them if you use the defaults.

phantomm:
awesome! :)
This permissions should be by default in SP package :)

Chen Zhen:

SP-xtra_shout-perms_v1.1x.zip

Changes:

+ SMF 2.0x support only
+ Added ability to allow selected membergroups to delete their own shouts

inter:

--- Quote from: phantomm on August 22, 2012, 03:08:23 AM ---awesome! :)
This permissions should be by default in SP package :)

--- End quote ---
+ 1

thanks

PokemonS:
SP 2.3.5

Hi,

There are two shoutbox in my forum. One is for member chat, and the other is for news.
Shoutbox for news should not be shoutted by members.

So, how to add shout permission for every shoutbox?
Yes, I have this plugin, and I still use it, but cannot add shout permission for every shoutbox.

Help?

Navigation

[0] Message Index

[#] Next page

Go to full version