![]() |
Improved Post Report System
This hack will place post reports into modcp, and enable moderators to give feedback to users via a page that users can see which includes all of their own post reports.
Post reports have three possible statuses: open, pending or closed. When a post report is made, the report is put into a page in modcp called 'outstanding reports', and has a status of 'open'. There is a new option in admincp which governs whether or not the post report emails are sent to moderators; so if this is switched on, the emails are still sent. Moderators can then see who reported the post and the time at which it was reported, and the comment given by the user. There are also links to the post itself, the thread the post is on, the forum the thread is in, the user who posted the post and the user who reported the post. The user page can be linked anywhere you choose; I have included instructions for linking it on the quicklinks menu. This system can be switched on or off from admincp. When off, the behaviour of post reports is as normal. I've also included an optional scheduled task which will remove post reports from the system than are older than an age specified in days in admincp. Moderators can then update the status of the report, and add a comment. The user who reported the post can then see these changes reflected in their page - it will show the name of the moderator dealing with the report, the comment (if any) left by the moderator, and the time at which the report was last updated. When a moderator sets the status of a report to 'closed', it is moved to another page in modcp called 'closed post reports'. Post reports that are in the pending state are still kept in the 'outstanding post reports' page. This hack has been tested on 3.0.3, 3.0.4, 3.0.5 and 3.0.6, and can be seen in action on The Student Room where it has been up and running since 18th January 2005. Screenshots: 1) What the user sees 2) A closed report in modcp 3) The admincp settings 4) An open report and the modcp menu items Updated 26th Feb 2005: installer now calls build_language so there is no need to rebuild the phrase cache manually. |
I am getting this error....
Code:
Invalid SQL: |
nvm, figured it out. If anyone else has a table prefix for their vbulletin you'll need to open modcp/postreport.php and change....
Code:
$searchquery = " Code:
$searchquery = " |
Quote:
|
and there would appear to be two instances of this to change in the file
|
sorry the above error I had was in modcp/postreport.php
did you put the missing TABLE_PREFIX in the root/postreports.php which would fix this error I had Code:
Invalid SQL: |
and I had to remove more " . TABLE_PREFIX . " from the root/postreports.php file in the same place as I listed above a few posts. Don't ask me why?
But anyhow it works for me now :) Thanks |
Quote:
|
hi people,
i'm getting this error Code:
Database error in vBulletin 3.0.6: my /modcp/postreports.php works fine |
did you read my posts?
Change The Code:
" . TABLE_PREFIX . "postreport.*, Code:
postreport.*, |
Quote:
PHP Code:
|
yes, for some reason those first four " . TABLE_PREFIX . " were messing things up. Unless he missed something somewhere that would make it work
|
Ok, the problems with the TABLE_PREFIXes... I've updated the files in the zip to work correctly with table prefixes, and also switched the SQL queries for an installer. The installer should add the correct table prefix to the new table.
There is a possibility that if you just ran the queries as they were, on a system that uses table prefixes, you could still have a problem. But you should be able to fix that by removing " . TABLE_PREFIX . " from the FROM clause of the queries. |
Wow, this hack looks great! I am going to install it tonight! Great work!!!!
|
yeag that seems to be solved now thanks for fixing that ;)
|
Quote:
|
Wow, this is how post report should have been!
Installing! |
Works like a charm.
One question or suggestion: Can there be that when a mod looks @ the postreport pages, that he sees al reports, and not the ones from himself? Or somewhere a counter so they can easy see there are open post reports waiting. |
Quote:
Quote:
|
hi,
ok dumb question but i'm gonna ask anyhow :D i logged in with my normal user account i use for testing stuff like this and i reported a post.I receive an e-mail with stuff "post reported" but that table remains empty ? also in /modcp/ there's nothing there it says no posts have been reported :s what am i doing here |
hi,
nevermind i figured it out it works ok now i did something wrong while editing report.php up and running [high]* Delphiprogrammi clcks install [/high] i will add this hack to my list ;) |
any chance u can add it in the admincp as well so i dont have to use the modcp lol on my site and my mods can use it on the modcp. Most appreciated if you can do this for me thanks in advance ,. Awsome hack Thanks again.
|
Quote:
|
to add this to AdminCp Do these edits. And Copy postreports.php from modcp over to admincp folder
Find in This: /admincp/index.php Find This Code: construct_nav_group($vbphrase['users']); Below This Add: construct_nav_option($vbphrase['postreports_new'], "postreports.php?do=list"); construct_nav_option($vbphrase['postreports_closed'], "postreports.php?do=closed"); construct_nav_group($vbphrase['postreports'], '<hr />', "$df"); |
Will this work along with Erwin's vB Report Manager or will there be a future versions where you can have a report note sent to Mod's Forum or PMs? I rather like this mod for letting user's know they're being heard but I like using the other so staff can discuss reported threads if needed! :]
|
I would like to know this as well.
Quote:
|
Quote:
|
Ok, assuming you've first installed the other hack, go about installing this one as normal, except when you come to the part that says:
Code:
find: Code:
My report.php with both hacks installed if I've not explained it very well: Code:
<?php |
I installed this mod, well i tried. Followed everything correctly but they links arent showing up in modcp, the tables around them are their but no links!
Is it something i've done wrong, can someone help thanks! |
Quote:
I really should have put a call to build_language in the installer, but I didn't know about it at the time. |
Ok, thanks for that it works.
Nice mod it will help with my forum alot ;) |
Quote:
Edit any phrase, and save it without changing anything. |
I have a question, i've put postreport.php in the usercp but when i open it it deosn't have the usercp links at the side, i was wondering if someone could help, thanks!
|
Quote:
Code:
$pagenav Code:
eval('print_output("' . fetch_template('postreports') . '");'); Code:
eval('$HTML = "' . fetch_template('postreports') . '";'); |
Wow, thankyou.
You made my day, thanks! Another problem (i know i fuss, but it's needed :p) The user cp link in reportpost.php have no class for the td their in, their just white! |
For some reason the reports are not making it into the database. I dont have prefix's and I am using your report.php from the post above since I use Erwins hack aswell. His is still functioning but the reportpost table is empty.
Any ideas? Thanks! -Jason |
Ok, never mind :) :) figured it out!
|
Ok, drats. Got most of it working. The only problem is that when a user goes to their postreports.php it is just the headers, no reports that they submitted.
Any ideas? Thanks again, -Jason |
Ah ok, spelled the bits template wrong... dorh.... :)
|
Good job pig. I think I will install this some time soon, just for the fun of it considering that no one on my forum ever reports posts.
|
All times are GMT. The time now is 05:19 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|