Customizing SMF > Modifications and Packages

Hide Content

(1/25) > >>

kelvincool:
Link to Mod

Hide Content

Hide Content provides the ability to hide certain parts of a post and PM based on a number of specified criteria.

Requirements

This mod requires PHP 5.3 or above.

This mod will not work without Javascript, it has been tested in Firefox 34+, Chrome 39+ and IE 11.

Out of the Box

By default the following plugins are available to use:

* Hide By Post Count - restrict content to be viewable to users who have equal or greater post count required.
* Hide By Login - restrict content to be viewable to logged in users only.
* Hide By Karma - restrict content to be viewable to users with equal or greater karma required, karma is calculated by good minus bad.
* Hide By Group - restrict content to be viewable to users belonging to a specified group, please note you can select multiple groups with this plugin, it will act as an OR condition for each group.
Extensible

This mod is written to be extensible by other mods, the above plugins are all written this way. Writing a plugin for this mod is just a case of implementing some hooks, please see the above plugins for example code.

Say Thanks now supports this mod.

Additional Notes and known limitations


* Admins and moderators with required permissions can view any content without restriction
* You cannot quote hidden content
* The original hidden content in a PM is hidden if you quote it
* The hide tag is not designed to be nested inside another hide tag
* The permissions only hides the BBC button, the permissions do not stop the functionality working
Change Log

1.1.4

* Fixed preview which wasn't working in 2.0.10
* Fixed auto URL bug
1.1.3

* Minor fix to undefined variable warnings
* Permissions now persists after uninstallation unless checkbox to remove data is checked
1.1.2

* Minor fix to naming of permission
1.1.1

* Overflow fix if you have over 20 groups
* Added post and pm permissions to see hide button, by default all groups are allowed
1.1

* Improved compatibility with Simple Portal - quote fast works now
* Ability to disable on certain boards
* Ability to disable on PM
* Ability to check plugins to be used by default
* Post count required now includes remaining posts total required
1.0.1

* Support for SSI and rss
1.0

* Draft release
Resource Credits

Icon courtesy of Yusuke Kamiyamane (http://www.iconfinder.com/icondetails/26317/16/exclamation_eye_view_alert_warning_icon)
Base for modal window http://www.the-art-of-web.com/javascript/feedback-modal-window/

Support

Support for this modification can be found in the support topic.


This work is licensed under a Creative Commons Attribution 3.0 Unported License

Arantor:
Doesn't seem to account for SSI or RSS feeds?

kelvincool:
Thanks Arantor, been a long time since I've touched SSI.

Put out a new version to support both of these.

langel:
Awesome mod!! Thanks for sharing it!

@kelvincool Great work +10

motosimak:
hi, set of modes, but there was a problem with Quote Posts

Navigation

[0] Message Index

[#] Next page

Go to full version