View Full Version : Moderators Functions - United-Forum report via private message
Mooff
07-29-2011, 10:00 PM
A very easy to install and straight forward modification which enables the private message system for reports.
install
- import product
- done :p
features
- sends pms to all affected moderators
- given there are no moderators in the parentforum/article the pms are send to admins instead
- also works for cms
- no support for blogs
language support
- german/ english currently
- language is hardcoded and that won't change
- adding a new language product file is easy, just edit this part to your needs:
//language blob
$titel_text = 'Post reported by ';
$auto_report = 'Automated private message via report system.';
$url_text = 'reported post';
$mods_text = 'moderators: ';
$reason_text = 'reason: ';
$content_text = 'post content:';
(if someone wants to improve my english in there, feel free to do so)
- please share your translations in this thread.
support
- we are using it in our live board, so yes, it will be supported.
additional languages
persian version by LOGECT (https://vborg.vbsupport.ru/showpost.php?p=2226850&postcount=6)
brasilian version by DonosOdD (https://vborg.vbsupport.ru/showpost.php?p=2242579&postcount=17)
Mooff
07-30-2011, 08:57 AM
Changelog
Version 1.0.1
removed a bug in the supermoderator part
added security check to only send pms for article comments and posts
my123world
07-30-2011, 09:12 AM
Installed It on 4.1.5.. Really, No Idea How This WOrks! Any Demo?
Mooff
07-30-2011, 09:14 AM
User sends in a report -> all affected moderators receive a private message.
Can't think of a way to demonstrate it. I would propose installing it in your testboard and report a post.
thedvs
07-30-2011, 09:21 AM
I used another mod like this on the older vb's, this is so much better than email reports & way more efficient. Being able to edit the content of the report also is brilliant.
Many, many thanks Mooff.
Nominated.
LOGECT
07-30-2011, 01:50 PM
Great mod, thanks a lot.
Here is Persian translation of this mod.
LOGECT
07-30-2011, 01:59 PM
I'm getting the following error when i'm trying to report a post:
https://vborg.vbsupport.ru/attachment.php?attachmentid=131503&stc=1&d=1312037922
Mooff
07-30-2011, 02:36 PM
Bug should be fixed. Files updated to 1.0.1.
Thanks for the persian version, which i unfortunally can't upgrade to 1.0.1 personally, cause editing and saving it on my pc causes the persian characters to go corrupt.
LOGECT
07-30-2011, 02:49 PM
Bug should be fixed. Files updated to 1.0.1.
Thanks for the persian version, which i unfortunally can't upgrade to 1.0.1 personally, cause editing and saving it on my pc causes the persian characters to go corrupt.
Thanks for the update, i've attached v101.
LOGECT
07-30-2011, 02:52 PM
I'm getting the following error after upgrading to the new version v101 :D
https://vborg.vbsupport.ru/attachment.php?attachmentid=131507&stc=1&d=1312041132
Skyrider
07-30-2011, 03:24 PM
Doesn't seem to work, checked the private messages of the assigned moderators but he never received any private message what so ever.
Mooff
07-30-2011, 03:30 PM
Damn missed that one. I do not get this warning on my board (though i know where the problem lies, error message is pretty clear). Can you check for me if the warning goes away when we use an empty permission string?
old:
$vB_DataManager_PM->set_recipients($modlist);
new:
$permissions = array();
$vB_DataManager_PM->set_recipients($modlist, $permissions);
If not, i'm gonna need some time to find out how exactly i have to design that permission thing.
@FF|Skyrider
Did you report a post or an article comment?
This mod does not work for blogs, pms ...
Skyrider
07-30-2011, 03:39 PM
Mooff, I simply reported a post / thread.
LOGECT
07-30-2011, 03:44 PM
Damn missed that one. I do not get this warning on my board (though i know where the problem lies, error message is pretty clear). Can you check for me if the warning goes away when we use an empty permission string?
old:
$vB_DataManager_PM->set_recipients($modlist);
new:
$permissions = array();
$vB_DataManager_PM->set_recipients($modlist, $permissions);
If not, i'm gonna need some time to find out how exactly i have to design that permission thing.
Thanks for your support, that solved the problem, but i will no longer see the redirect page after submitting a report.
Mooff
07-30-2011, 06:25 PM
Thanks for the feedback. Edited that part in and updated the files - no version change though - minor bug.
As for the redirect page, last line of the report.php
eval(print_standard_redirect('redirect_reportthank s'));
}
does that. This should not be affected by my addon at all.
Btw. on our board i neither see the redirect page regardless of having the addon actived nor deactived.
@FF|Skyrider
I'm totally lost here. Please try to reinstall the addon or try to report a post in a forum where no moderator will be affected, only you (and the other admins) and check if that does work.
johnrizz
07-30-2011, 10:50 PM
work good !
DonosOdD
09-06-2011, 12:27 PM
*clicking install button*
Thank you very much. You have no idea on how much I needed this!
EDIT: Adding a Brazilian Portuguese translation for this.
Mooff
09-06-2011, 01:17 PM
Thanks DonosOdD.
Language added in the first post.
sbelle731
09-17-2011, 05:20 PM
Great Mod...Thank you!
Is there a way to send a notification to all mods when someone reports a private message?
Realy nice, thanks!
Made a norwegian translation.
mostafa10601
06-08-2012, 04:24 PM
hi, plz update this mod for vb 4.2.0
tnx...
EliasAlucard
08-02-2012, 01:59 AM
Installed and nominated, great stuff!
shakir1401
06-18-2013, 05:18 PM
i installed this on vb4.2.1 and installed correctly but no pm is being sent for reports made.
is this compatible with vb 4.2.1?
Zelda-King
03-25-2018, 07:44 AM
I'm aware this is a really old mod but just for anyone browsing for mods like this, on vB 4.2.5 it does this when submitting a report:
[] operator not supported for strings on line 29 in /path.../report.php(132) : eval()'d code
#0 /home/viainfinito/public_html/forums/report.php(132): eval()
#1 {main}
chudvs
07-20-2019, 07:17 AM
any fix for v4.2.5?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.