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

Flag (reporting) categories | Forum

Topic location: Forum home » Support » General Questions
Graham
Graham Mar 28 '15
Is it possible to add extra categories when a user flags content?



Taissa Team
Taissa Apr 2 '15
Graham,

If I understand you correctly there are two possible solutions.
First. If you just want to have the same number of flags but with other names, you can change their names by changing the language keys value via the Admin Area>Settings>Languages section. 
Second. If you need to have more then three flag categories, you should modify the source code.
I can't give you detailed step by step instructions. I can only point where the changes need to be done.

- Add new language key with the desired value.
- Modify the /ow_system_plugins/base/components/flag.php file.

Find and edit this block of code:

 $element->setOptions(array(
            'spam' => OW::getLanguage()->text('base', 'flag_spam'),
            'offence' => OW::getLanguage()->text('base', 'flag_offence'),
        'illegal' => OW::getLanguage()->text('base', 'flag_illegal'))
        ); 


Once the changes are made don't forget to clear the browser cache and the smarty cache (DEV_MOD, use this manual:https://docs.oxwall.org/plugin-tuts:enable-debug ).

However you need to remember that all your customizations will be overwritten while next update of the software, so you need to remember them and apply again, or implement the changes via custom plugin.


The Forum post is edited by Taissa Apr 2 '15
Graham
Graham Apr 4 '15
Thanks Taissa, I will look into implementing this :)
Oxwall Tips
Oxwall Tips Apr 6 '15
For anyone interested, here are detailed instructions on this modification: https://skatips.wordpress.com/...ones/?preview_id=133