vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Moderators Functions - Pedro!'s Post Report Manager 0.93 (https://vborg.vbsupport.ru/showthread.php?t=205087)

RedeemedWarrior 02-26-2009 11:11 AM

works fantastic :D

kud0gfx 03-02-2009 09:58 AM

Have a really nice look, you think you could implement in the future report signatures, avatars or nicks? thyou

itsheinz 03-08-2009 07:05 AM

Finally i made it..Thanks Pedro!

maxicep 03-13-2009 10:50 AM

Quote:

Originally Posted by Pedro! (Post 1746246)
Well, it means that when a mod goes to open/closed reports in the CP it will only show the reported posts in the forums they can moderate. It also checks moderator permissions with pictures, picture comments and visitor messages.

We have a problem.
Category Moderators see all reported posts from all forums.

Category Moderators should only show the reported posts in the forums they can moderate.

How can fix that ?

Also,
When i enable the "Acknowledge moderator permissions when displaying reports?" option

if Moderators clicks the open or closed reports links then:
Code:

    Database error in vBulletin 3.8.1:
 
  Invalid SQL:
 
                          SELECT COUNT(*) AS count
                          FROM pprmReports AS reports
                          WHERE reports.status != 'closed' AND reports.type != gm AND reports.type != gp AND reports.type != pap AND reports.type != papc AND reports.type != gpc AND reports.type != vm ORDER BY reports.prID DESC;
 
  MySQL Error  : Unknown column 'gm' in 'where clause'
  Error Number  : 1054

I fixed that with edit the modcp/pprm.php file
Code:

if (pprm_ack_perms() == true) {

    //Do crazy ANDs for permissions
   
    $z = 0;
   
    $reporttype = array('post','gm','gp','pap','papc','gpc','pm','vm');

    while ($z < 8) {
   
        if (pprm_check_perms($reporttype[$z]) == false) {
       
            $where .= "AND reports.type != " . $reporttype[$z] . " ";
       
        }
       
        $z++;
   
    }
   
}

to

Code:

if (pprm_ack_perms() == true) {

    //Do crazy ANDs for permissions
   
    $z = 0;
   
    $reporttype = array('post','gm','gp','pap','papc','gpc','pm','vm');

    while ($z < 8) {
   
        if (pprm_check_perms($reporttype[$z]) == false) {
       
            $where .= "AND reports.type != '" . $reporttype[$z] . "' ";
       
        }
       
        $z++;
   
    }
   
}

What is wrong ?

andyh2 03-20-2009 01:13 PM

After I install this mod on 3.8.1, none of the reports show up. It looks like this. Can anyone help?

joe1989 03-21-2009 04:12 PM

Quote:

Originally Posted by andyh2
After I install this mod on 3.8.1, none of the reports show up. It looks like this. Can anyone help?

I think the problem you're running into is it only adds reports to the system that were reported AFTER you installed the mod. Make sense? So if you installed the mod on Mar 20, a report from Mar 19 will not show up. This is not a bug; that's just how it works.

To verify this, do a "test report" (after the mod is installed) and make sure it shows up in the system.

Make sense?

andyh2 03-21-2009 04:21 PM

Quote:

Originally Posted by joe1989 (Post 1773484)
I think the problem you're running into is it only adds reports to the system that were reported AFTER you installed the mod. Make sense? So if you installed the mod on Mar 20, a report from Mar 19 will not show up. This is not a bug; that's just how it works.

To verify this, do a "test report" (after the mod is installed) and make sure it shows up in the system.

Make sense?

We've gotten many, many reports after I installed it, but none of them showed up.

joe1989 03-22-2009 06:52 PM

Are you getting any errors? Try uninstalling, and re-doing everything. I don't know why it wouldn't be working at all; it works fine for me. Let me know of any error messages you receive...

Pedro! 03-23-2009 07:12 PM

Quote:

Originally Posted by andyh2 (Post 1772551)
After I install this mod on 3.8.1, none of the reports show up. It looks like this. Can anyone help?

I'm not sure what's going on as everyone elses seems to be working okay... can you look in your database and see if anything exists in the pprmReports table? Are you running any other report hacks/mods? If so try and disable those and see if it makes a difference...

Oh, also sorry I haven't brought out any updates, I've been rather busy lately! Will be giving this hack some attention and hopefully be implementing some of the suggested features soon (including an ImpEx tool)

Pedro! 03-23-2009 07:21 PM

Quote:

Originally Posted by maxicep (Post 1767103)
We have a problem.
Category Moderators see all reported posts from all forums.

Category Moderators should only show the reported posts in the forums they can moderate.

How can fix that ?


Ah, I think I forgot to make it check the forum ID so it just checking if they can moderate any forum. I'll fix this in the next release. I'll also fix the SQL error.


All times are GMT. The time now is 08:38 AM.

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.01316 seconds
  • Memory Usage 1,750KB
  • 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
  • (3)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete