vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Improved Post Report System (https://vborg.vbsupport.ru/showthread.php?t=76582)

Diana Notacat 03-11-2005 12:20 AM

Thank you very much! This is going to be a beautiful addition for my mods! <3

HabboForum 06-23-2005 10:03 AM

Will this be converted so it is compatible with vBulletin 3.5?

Thanks.

Ghanem 06-24-2005 06:35 PM

Hi,

Thank you for the wounderfull job
there is a small problem..

All the modeaters and admins view all the reports and can update and change the status of the report.
In other words, the moderator should view only the rports that belongs to his forum..

Regards.

Ghanem 07-06-2005 10:48 PM

up :disappointed:

Ghanem 07-14-2005 10:11 PM

Another up but with request..

Each time I have to log to CP to chk if there is any report..
Could you do somthing to show number of reports say in the welcome panel under the private message numbers.
Ex:

Welcome, unicorn.
You last visited: Today at 01:25
Private Messages: 0 Unread, Total 2
Post Reports : 2 new, 3 pinding

Regards,
Ghanem.

King Kovifor 07-14-2005 10:56 PM

This would be useful... Going to bring it up to the "master"

boozehound 07-15-2005 04:19 PM

Quote:

Originally Posted by unicorn
All the modeaters and admins view all the reports and can update and change the status of the report.
In other words, the moderator should view only the rports that belongs to his forum..

I'm doing a new version (as well as converting for 3.5). You will be able to select one of three modes, in the admincp settings:

1) All moderators can see and edit all reports
2) All moderators can see all reports, but can only edit reports in their forums
3) Moderators can only see and edit reports in their forums

Quote:

Each time I have to log to CP to chk if there is any report..
Could you do somthing to show number of reports say in the welcome panel under the private message numbers.
Ex:

Welcome, unicorn.
You last visited: Today at 01:25
Private Messages: 0 Unread, Total 2
Post Reports : 2 new, 3 pinding
Next version.

If you want to add it now, you can do this (but it only shows open reports not pending, but you could easily modify that). This is a bit hacky, but it works and it's been used on a site I admin for months:

In global.php find:
Code:

$vbphrase['total_x_nav_compiled'] = construct_phrase($vbphrase['total_x_nav'], $bbuserinfo['pmtotal']);
Add below that:
Code:

$reportcount = 0;
if(can_moderate())
{
    $reports = $DB_site->query_first("
        SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "postreport AS pr
        WHERE pr.status = 0
    ");
    $reportcount = intval($reports['count']);
}

Then you just need to do something with $reportcount in the navbar template. I did the following:

In navbar template, find:
Code:

                                                        <if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase></if>
Add below that:
Code:

<if condition="can_moderate()">
<if condition="$reportcount == 1">
<a href="modcp/postreports.php?do=list"><br/><strong>1 post report</strong></a>
</if>
<if condition="$reportcount > 1">
<a href="modcp/postreports.php?do=list"><br/><strong>$reportcount post reports</strong></a>
</if>
</if>


Ghanem 07-15-2005 04:44 PM

Quote:

Originally Posted by boozehound
Next version.
If you want to add it now, you can do this (but it only shows open reports not pending, but you could easily modify that). This is a bit hacky, but it works and it's been used on a site I admin for months:

Tested working perfect on V3.0.7

Thanks a million, very nice neat jop.

Kindest Regards.

Jinovich 07-16-2005 07:19 AM

Is there any way that I can substitute the Modification for the standard VB email for certain usergroups?

Basically, we have the hack installed and the Moderators can use it, however our forum Vip's get their own subforum which they moderate but I would rather them being sent the standard Vbulletin email rather then them using the Modcp?

Also when is the new version coming out it sounds great!

boozehound 07-17-2005 01:43 AM

If anyone is interested, in my development version I have replaced, in report.php
Code:

        $mods = array();

        while ($moderator = $DB_site->fetch_array($moderators))
        {
                $mods[] = $moderator;
        }

with
Code:

                $mods = array();

                while ($moderator = $DB_site->fetch_array($moderators))
                {
                        if(can_moderate($foruminfo['forumid'], null, $moderator['userid']))
                        {
                                $mods[] = $moderator;
                        }
                }

which means moderators are only sent emails from reports in the fora they moderate, if you have emailing switching on. Otherwise, all moderators get the emails.

Quote:

Originally Posted by Jinovich
Is there any way that I can substitute the Modification for the standard VB email for certain usergroups?

Basically, we have the hack installed and the Moderators can use it, however our forum Vip's get their own subforum which they moderate but I would rather them being sent the standard Vbulletin email rather then them using the Modcp?

I'm not sure if you mean 'for certain usergroups' or 'for certain forums'. Do you want reports forums like this 'VIP' forum to be 'email-only' and not go into modcp at all, or something else?

Quote:

Also when is the new version coming out it sounds great!
Probably a week or so for a new version for 3.0.x, and a bit longer for 3.5 since I haven't really looked at that yet.


All times are GMT. The time now is 01:45 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.01068 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
  • (6)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)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