vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Moderators Functions - United-Forum report via private message (https://vborg.vbsupport.ru/showthread.php?t=267674)

Mooff 07-29-2011 10:00 PM

United-Forum report via private message
 
1 Attachment(s)
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:
Code:

                //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
brasilian version by DonosOdD

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

1 Attachment(s)
Great mod, thanks a lot.
Here is Persian translation of this mod.

LOGECT 07-30-2011 01:59 PM

1 Attachment(s)
I'm getting the following error when i'm trying to report a post:

https://vborg.vbsupport.ru/attachmen...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

Quote:

Originally Posted by Mooff (Post 2226863)
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

1 Attachment(s)
I'm getting the following error after upgrading to the new version v101 :D

https://vborg.vbsupport.ru/attachmen...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:
Code:

                       
        $vB_DataManager_PM->set_recipients($modlist);

new:
Code:

                       
        $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

Quote:

Originally Posted by Mooff (Post 2226885)
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:
Code:

                       
        $vB_DataManager_PM->set_recipients($modlist);

new:
Code:

                       
        $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
Code:

        eval(print_standard_redirect('redirect_reportthanks'));
}

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

1 Attachment(s)
*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?

xabo 11-28-2011 09:14 PM

1 Attachment(s)
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?


All times are GMT. The time now is 04:59 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01179 seconds
  • Memory Usage 1,764KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete