We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Dev Documentation: Moderation/Flag function docs available? | Forum

ketkew
ketkew Oct 19 '15
Is there some developer documentation available which describes the moderation/flag part of Oxwall?

I've updated an old plugin which works now fine for me, but I would like to add a flag function so if a user is posting inappropriate content, moderators will be notified via the standard Flag/moderation function..
The Forum post is edited by ketkew Oct 19 '15
ketkew
ketkew Oct 26 '15
Is there anybody out there who can point me to the right direction?
Mike
Mike Oct 28 '15
Hey,

there are 2 Methods to flag an Item.

Javascript:
    OW.flagContent(entityType, entityId);

PHP:
    BOL_FlagService::getInstance()->addFlag(entityType, entityId, reason, userId);

reason is a string (sex, moderat, etc)

But now you also need a ContentProvider Class.
I attached a sample with some comments.


Mike
Attachments:
  content_provider.php.txt (6Kb)
ketkew
ketkew Oct 28 '15
Hi Mike,

Great! Many thanks, this will certainly put me in the right direction!
Mike
Mike Oct 28 '15
Hey,

no Problem :)