- Version: 1.71
- Downloads: 2173
- File Size: 19.05 kB
- Date Added: 26/09/15
- Last Update: 26/09/15
Note: PHP 5.5+ is required to use this plug-inConstituentsNew FeaturesThese are additional features that are available within each shoutbox unique settings.
Default behaviour relies on this setting:Enable: Force Lowercase TextDefault regex for v1.5+:
- 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)
- 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)
- 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 TextDefault regex for v1.5+:
Code: [Select]
(?:^|[.!?]s+)w|([^:][i|o])
Default callback for v1.5+Code: [Select]
mb_strtoupper($m[0], $encoding)
Note:The globals: ~ $context, $smcFunc & $modSettings ~ are already available within your callback. The variable of $encoding is also available which is already set to your forum's default character encoding setting 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.Since this modification is currently only designed for the SMF 2.0.X branch, the constant of ENT_XHTML is used within some PHP functions to force XHTML formatting.