We'll create fresh WordPress site with BuddyPress Moderation installed. You have 20 minutes to test the plugin after that site we'll be deleted.
Site admins can already edit or delete every content in a BP community, but
analyzing every content posted could be a crazy/impossible work in big communities.
This plugin use crowdsourcing to help site admins finding contents to moderate.
It adds links/buttons to flag inappropriate user generated content in the site,
so members can easily flag contents as inappropriate. Admins can then see all the
reported contents in an organized table in the wp backend, order/filter them and
take actions (ignore, delete, mark/unmark the content author as spammer, …).
Another table show members, how many posts from them have been reported/moderated,
how many posts have they reported and moderated from admin. Here find bad/good
members and take action on them.
Note on private messages:
* private message sender: reporting this will flag the sender, not the thread, but the admin is not able to see the messages, effective against bulk spammer
* private message: in this case a sender is reported in a specific thread, the admin can see the messages, more useful for moderation (eg k-12 communities)
the latter is a bit hackish and could be less solid on future bp upgrades, the first one is based on apis that should be more stable
Use support forum on wordpress.org
for support and discussion.
The default style uses one icon from http://www.famfamfam.com/lab/icons/silk/
(cc-by-2.5) and one from http://damieng.com/creative/icons/silk-companion-1-icons
(cc-by-3.0), so if you use default style give credit to them somewhere in your site.
You can access the backend panel from the “BP Moderation” link in your
Wordpress admin menu.
There are three tabs on the top: “contents”, “users”, “settings”.
In this view you can see the reported contents.
Use the custom query filter/order contents.
The contents table has three columns:
In this view you can see users that reported a content or users whom contents
have been reported.
Use the custom query filter/order contents.
The contents table has three columns:
You can enable and disable hotkeys with the link displayed under contents and users tables.
I tried to make hotkeys similar wordpress comments table hotkeys, if you never
used them, give a look to this codex page.
When a row is selected with hotkeys the possible keys will be shown next to the actions links.
Hotkeys in both tables:
Only in contents table:
Only in user table:
Bulk hotkeys:
Some keys can be triggered on all selected rows if pressed with shift.
Those keys are s,u,a,m,d.
= Introduction =
This guide aims to explain how integrate bp-moderation with custom content types,
wp/bp core content types are already covered by the plugin, but you can write your
own custom content type definitions also for them.
It’s important to understand how bp-moderation differentiate/recognize contents:
each content have to be identified by an internal content type slug (you choose
it in your custom content type definition) and one or two bigint ids.
Decide a convention with 2 ids for your content type, is not something you can change
later. You have to call bp-moderation methods using always the same convention and
bp-moderation will use the same one when referring to your contents.
If your contents are tied with the activity stream you already have chosen a convention
for primary and secondary ids, using the same convention you use with activities
will make things easier. If you only have one id use 0 for the secondary id.
The main entry point in bp-moderation is bpModeration::register_content_type(), it
allows you to register a content type and has to be called at every page load.
You’ll need to provide:
examples/bpMod_ContentType_BlogPostExample.php is a code sample that shows
how to integrate content types with bp-moderation taking blog posts as an example,
you can also modify and adapt it to your content type.
Other informations are in the doc of bpModeration::register_content_type()
and
bpModFrontend::get_link(), those are most likely the only two bp-moderation
methods you need to use.
All core content types are in bpModDefaultContentTypes.php, but they are hardcoded
for speed reasons, so don’t use them as an example.
If you use the same primary and secondary id convention for activities and bp-moderation
you only have to tell the activity types of your content when registering,
bp-moderation is already hooked in the activity loop and will print the links
for your contents too.
Instead if some reason you cat use the same convention or you want to customize
the activity loop flag button, you can use the filter
bp_moderation_activity_loop_link_args_{the activity type}
where {the activity type}
is the activity type you’d like to filter.
Look in bpModFrontend::activity_loop_link()
to see what to filter.
It’s possible to have contents generated by not members (e.g. blog comments).
If you have to provide a user id to bp-moderation give 0 for it, but you’ll also
need to filter author information for displaying them in backend table. Use the filter
bp_moderation_author_details_for_{slug used in content type registration}
to add missing info, look in bpModBackend::author_details()
to see info needed.
If you have coded a custom content type and you think that could be widely useful,
contact me and it could easily get included in the bp-moderation plugin.
If you integrated your plugin and you prefer to keep the custom content type in
your plugin it’s fine, I guess is more convenient and you can update it together
with your plugin.
Remember to check if bp-moderation is active before including unnecessary code
or calling non-existing functions: safest way is to use the action bp_moderation_init
for including/registering it.
If none of the above this is the easier way to get a custom content type loaded:
wp-content/plugins/bp-moderation-content-types/
define('BPMOD_LOAD_CUSTOM_CONTENT_TYPES', true);