[RC1] ReportSystem

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
User avatar
Wicher
Registered User
Posts: 1806
Joined: Wed May 07, 2003 10:33 pm
Location: Netherlands or Holland, your choice..
Contact:

[RC1] ReportSystem

Post by Wicher » Thu May 24, 2007 11:34 am

Due to the fact of the retiring of phpBB2 soon, any further support for this mod can best be asked at http://www.wichersmods.nl

Code: Select all

#################################################################
## MOD Title: ReportSystem
## MOD Author: Wicher < N/A > (N/A) http://www.detecties.com/modforum
## MOD Description:  This mod adds an reportbutton at every posting.
##                   Reports are viewable by the admin in the ACP.
##                   This mod is a spinoff from PostOptions MOD.
##                   
## MOD Version: 1.0.7	
## 
## Installation Level: easy 
## Installation Time:  20 minutes 
## 
## Files To Edit:    viewtopic.php
##                   admin/admin_board.php
##                   admin/index.php
##                   includes/constants.php
##                   includes/page_header.php
##                   
##                   language/lang_english/lang_main.php
##                   templates/subSilver/overall_header.tpl
##                   templates/subSilver/subSilver.cfg
##                   templates/subSilver/subSilver.css
##                   templates/subSilver/viewtopic_body.tpl
##                   templates/subSilver/admin/board_config_body.tpl
##
## Included Files: report.php
##                 admin/admin_reports.php
##                 templates/subSilver/report_body.tpl
##                 templates/subSilver/admin/reports_body.tpl
##                 templates/subSilver/images/lang_english/icon_report.gif
##                 templates/subSilver/images/report.gif
##                 templates/subSilver/images/reportstatus_red.gif
##                 templates/subSilver/images/reportstatus_orange.gif
##                 templates/subSilver/images/reportstatus_blue.gif
##                 templates/subSilver/images/celpic1small.gif
## 
## License:      http://opensource.org/licenses/gpl-license.php GNU General Public License v2 
## 
############################################################## 
## For security purposes, please check: http://www.phpbb.com/mods/ 
## for the latest version of this MOD. Although MODs are checked 
## before being allowed in the MODs Database there is no guarantee 
## that there are no security problems within the MOD. No support 
## will be given for MODs not found within the MODs Database which 
## can be found at http://www.phpbb.com/mods/ 
############################################################## 
## Author Notes:   
##		   This mod has been tested on phpbb 2.0.22
##
############################################################## 
## MOD History: 
##
##   2007-08-10 Version 1.0.7 
##    Added choice wether to let multiple users report the same post and show the reported message in the post only to admins and mods. 
##   2007-06-05 Version 1.0.6 
##    'New reports link'. in header did not go directly to the admin/reports page 
##     when there was no admin session,
##    Fixed some security issues
##   2007-06-05 Version 1.0.5 
##    New reports link in header now goes directly to the reports page in acp.
##   2007-05-30 Version 1.0.4 
##    Few fixes in report.php
##   2007-05-29 Version 1.0.3 
##    Few fixes 
##   2007-05-28 Version 1.0.2 
##    Added sid's in report.php 
##   2007-05-25 Version 1.0.1 
##    Added possibility to remove the message "reported post" 
##    from the reported post without deleting the post..
##   2007-05-10 Version 1.0.0 
##    Created this spinoff.
##
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 
 
In previous version an file called index.php has slipped into the zip which did not belong there.
If you have copied that index.php to the root of your forum files, you probably need to put your backup index.php back you made before you installed reportsystem 1.0.5.


Download: ReportSystem1.0.7.zip

Demo's

ACP:
Image

Viewtopic:
Image
Last edited by Wicher on Wed Nov 26, 2008 6:52 pm, edited 12 times in total.

User avatar
Wicher
Registered User
Posts: 1806
Joined: Wed May 07, 2003 10:33 pm
Location: Netherlands or Holland, your choice..
Contact:

Re: [BETA] ReportSystem

Post by Wicher » Thu May 24, 2007 11:37 am

[reserved]

AOCpzck
Registered User
Posts: 94
Joined: Tue Apr 10, 2007 5:30 pm

Re: [BETA] ReportSystem

Post by AOCpzck » Fri May 25, 2007 6:39 am

cool, installed perfectly. one thing though...

is it possible that when a report is closed (by pressing the blue button) that the post doesnt say "reported post" anymore? the only way to get rid of it is if you delete the report (and i like saving things). :D

User avatar
Wicher
Registered User
Posts: 1806
Joined: Wed May 07, 2003 10:33 pm
Location: Netherlands or Holland, your choice..
Contact:

Re: [BETA] ReportSystem

Post by Wicher » Fri May 25, 2007 12:54 pm

Sure:

Updated to 1.0.1

## 2007-05-25 Version 1.0.1
## Added possibility to remove the message "reported post"
## from the reported post without deleting the post..

AOCpzck
Registered User
Posts: 94
Joined: Tue Apr 10, 2007 5:30 pm

Re: [BETA] ReportSystem

Post by AOCpzck » Fri May 25, 2007 3:38 pm

ok, now it does show "reported post" at all. maybe i worded it wrong. what i was thinking of is if a user reports a post, it says "reported post" until a blue card is issued to that post. when a blue card IS issued, the "reported post" goes away.

User avatar
Wicher
Registered User
Posts: 1806
Joined: Wed May 07, 2003 10:33 pm
Location: Netherlands or Holland, your choice..
Contact:

Re: [BETA] ReportSystem

Post by Wicher » Sun May 27, 2007 3:51 pm

You can make the choice to display the message yourself now in the reports page in the ACP.

User avatar
Wicher
Registered User
Posts: 1806
Joined: Wed May 07, 2003 10:33 pm
Location: Netherlands or Holland, your choice..
Contact:

Re: [BETA] ReportSystem

Post by Wicher » Mon May 28, 2007 2:24 pm

updated to 1.0.2

t8b
Registered User
Posts: 7
Joined: Mon May 28, 2007 2:36 pm

Re: [BETA] ReportSystem

Post by t8b » Mon May 28, 2007 2:45 pm

Hi Wicher, Does this mod work with Categories Hierarchy?

Many Thanks
IG - Join the fantabolous instinctive gaming community! A Gaming, Gadgets, Technology, lifestyle Magazine / Services and much more! Not only that but special promotions too!

User avatar
Wicher
Registered User
Posts: 1806
Joined: Wed May 07, 2003 10:33 pm
Location: Netherlands or Holland, your choice..
Contact:

Re: [BETA] ReportSystem

Post by Wicher » Mon May 28, 2007 8:38 pm

I dont think it will give any problems, but make backups before installing since i did not test that.

Let me know if you run into problems.

t8b
Registered User
Posts: 7
Joined: Mon May 28, 2007 2:36 pm

Re: [BETA] ReportSystem

Post by t8b » Tue May 29, 2007 10:47 am

Hey i had a quick attempt last night, the only major error i could see was below; when accessing the admin panel.

redundant backtrace error, common.php line 30

Code: Select all

function _backtrace($comment='', $return=false)
the edited files following the instructions dont seem to cause a problem although the buttons seem to not wanna show.. removeing the additional files like report_body.tpl, reports.php etc resolves the error..

Any thoughts?
IG - Join the fantabolous instinctive gaming community! A Gaming, Gadgets, Technology, lifestyle Magazine / Services and much more! Not only that but special promotions too!

User avatar
Wicher
Registered User
Posts: 1806
Joined: Wed May 07, 2003 10:33 pm
Location: Netherlands or Holland, your choice..
Contact:

Re: [BETA] ReportSystem

Post by Wicher » Tue May 29, 2007 1:14 pm

I can be that for CH the images have to be placed in a different location, of which i am not sure.
I would have to install CH on my testboard to see that, but i dont have the time for that at the moment.

Click with your rightmouse on the place the image should be and click properties, that should tell you where the image should be located.

User avatar
Wicher
Registered User
Posts: 1806
Joined: Wed May 07, 2003 10:33 pm
Location: Netherlands or Holland, your choice..
Contact:

Re: [BETA] ReportSystem

Post by Wicher » Tue May 29, 2007 3:07 pm

Updated to 1.0.3, just upload report.php and you'll be having the new version.

User avatar
Wicher
Registered User
Posts: 1806
Joined: Wed May 07, 2003 10:33 pm
Location: Netherlands or Holland, your choice..
Contact:

Re: [BETA] ReportSystem

Post by Wicher » Wed May 30, 2007 9:44 am

Updated to 1.0.4, just upload report.php and you'll be having the new version.

t8b
Registered User
Posts: 7
Joined: Mon May 28, 2007 2:36 pm

Re: [BETA] ReportSystem

Post by t8b » Wed May 30, 2007 10:49 am

Wicher wrote:I can be that for CH the images have to be placed in a different location, of which i am not sure.
I would have to install CH on my testboard to see that, but i dont have the time for that at the moment.

Click with your rightmouse on the place the image should be and click properties, that should tell you where the image should be located.
Hey,
Just to let you know, i asked the author of ch about the error, "Fatal error: Cannot redeclare _backtrace() (previously declared in /forum/common.php:30) in /forum/common.php on line 30

(admin_reports.php - error)"

And he replied..
This file is not designed to be used in admin context. Please report to the original author ($setmodule check ie is missing).
Hope this is some use to you at some point :)
IG - Join the fantabolous instinctive gaming community! A Gaming, Gadgets, Technology, lifestyle Magazine / Services and much more! Not only that but special promotions too!

User avatar
Wicher
Registered User
Posts: 1806
Joined: Wed May 07, 2003 10:33 pm
Location: Netherlands or Holland, your choice..
Contact:

Re: [BETA] ReportSystem

Post by Wicher » Wed May 30, 2007 11:46 am

$setmodule is in the file.

Code: Select all

if ($board_config['ReportSystem'])
{
	if( !empty($setmodules) )
	{
		$filename = basename(__FILE__);
		$module['General']['Reports ('.$total_reports.')'] = $filename;

		return;
	}

Post Reply

Return to “[2.0.x] MODs in Development”