Author Topic: [Add-on] - Free Report Central [SUSPENDED]  (Read 14182 times)

KHDev

  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 512
  • Karma: +45/-2
  • Etano Contributor (Skins & Mods)
[Add-on] - Free Report Central [SUSPENDED]
« on: November 22, 2014, 09:07:01 AM »

Mod Version : V2.00 | Released : 22nd November 2014 | Last Updated : 7th April 2015
-- Please report any issues or bugs you find on this post or contact me directly --


IMPORTANT!!! If you are upgrading from a previous version please read the Update Guide!!

Introducing the all new Report Central! You can now allow your users to report Blog posts, Messages, Photos and Profiles! It also comes complete with admin panel support so you can manage reports :)

How It Works!
  • A user clicks the “Report” link
  • They are then presented with a pop-up box where they simply provide a reason for reporting the content. (All other required information such as usernames, content id’s etc are automatically collected)
  • On submission the reports are then sent to the dedicated database tables (Automatically created when you install the mod).

Admin Side
  • Admins will notice a “Report Central” link in menu which when click will take you to your current report stats page where you can access the relevant report collections.
  • Each report has basic info and a click to view the full report
  • While viewing the report you will provided all relevant information such as reason, who reported the content etc and also with some relevant actions such as delete photo, edit blog etc

Technical Stuff
  • PHP MYSQLI/MYSQL JQUERY

WHATS NEW IN V2.00?
  • Completely re-written to simplify things for future updates
  • Less information is passed from report form
  • Reported messages and blogs are backed-up so you can view the content even if the user has deleted the content before you had the chance to review it.
  • Less files needed



Design (IMPORTANT)
While I have included general styling for both admin and user sides you may need to make alterations so it fits in with your sites design such as the styling of the report links. For admin side you can simply download my Admin-NextGen skin (Featured in the screenshots) if you like.
IMPORTANT! PLEASE REFER TO THE INSTALLATION GUIDE AND BACK UP GUIDE IF YOU CHANGE EITHER YOUR SITES SKIN OR ADMIN SKIN AFTER YOU INSTALLED REPORT CENTRAL AS INSTALLING A NEW SKIN AFTER YOU HAVE INSTALLED REPORT CENTRAL WILL REPLACE CORE FILES!




Want More?
So be sure to let me know of any feedback and suggestions for future updates :)





UNDER REVIEW :)



KHDev

  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 512
  • Karma: +45/-2
  • Etano Contributor (Skins & Mods)
Re: [Add-on] - Report Central (BETA) - Let Members Report Content
« Reply #1 on: January 04, 2015, 11:31:37 AM »
Error #1 Fixed - Reported By blueeyeddevil (January 03, 2015)
Does NOT! affect new downloads as the download file has been updated!
Issue - Undefined Variable $loop



Error Log -
Code: [Select]
     [file] => admin/report_central.php
            [line] => 28
            [function] => general_error
            [args] => Array
                (
                    [0] => 8
                    [1] => Undefined variable: loop
                    [2] => admin/report_central.php
                    [3] => 28
                    [4] => Array

Fix -
Open report_central.php (Yoursite > Admin > report_central.php) and find and remove these 4 lines of code:
Code: [Select]
$tpl->set_loop('loop',$loop);
$tpl->process('content','content',TPL_LOOP | TPL_NOLOOP);
$tpl->drop_loop('loop');
unset($loop);

Reason for error?
I accidentally left in the $loop variables which are used in the advanced version of the mod.

Apologies, KHDev.   

KHDev

  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 512
  • Karma: +45/-2
  • Etano Contributor (Skins & Mods)
Re: [Add-on] - Report Central (BETA) - Let Members Report Content
« Reply #2 on: February 08, 2015, 12:20:45 PM »
Error #2 Fixed - Reported By blueeyeddevil (February 08, 2015)
Does NOT! affect new downloads as the download files have been updated!
Issue - Bot Submissions



Error Info -
Spam bots been able to post reports.

Fix -
Navigate to your etano root folder (Where your etano php files) and locate these 4 files
  • report_blog.php
  • report_message.php
  • report_photo.php
  • report_user.php

Find this code at the top of the files:
Code: [Select]
include_once('report_con.php');
require 'includes/common.inc.php';
require _BASEPATH_.'/includes/user_functions.inc.php';

And simply add this below it
Code: [Select]
check_login_member('auth');

So it will look like :
Code: [Select]
include_once('report_con.php');
require 'includes/common.inc.php';
require _BASEPATH_.'/includes/user_functions.inc.php';
check_login_member('auth');

Apologies, KHDev.


COMING SOON
A completely revamped version of Report Central (With new admin features), New Skins (including responsive ones) and a mod or 2 ;)

KHDev

  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 512
  • Karma: +45/-2
  • Etano Contributor (Skins & Mods)
Re: [Add-on] - Report Central (V2.00) - Let Members Report Content
« Reply #3 on: April 07, 2015, 10:17:51 AM »
Report Central V2.00 Now Available!

WHATS NEW IN V2.00?
  • Completely re-written to simplify things for future updates
  • Less information is passed from report form
  • Reported messages and blogs are backed-up so you can view the content even if the user has deleted the content before you had the chance to review it.
  • Less files needed

Marble

  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 1005
  • Karma: +56/-7
Re: [Add-on] - Report Central (V2.00) - Let Members Report Content
« Reply #4 on: April 07, 2015, 12:13:38 PM »
In the admin control panel, when I click on the View Report link under the Action column, the reason statement doesn't appear for:
Reported blogs
Reported Photos
Inbox reports
If you see that I'm logged in forever... it just means I turned the page on my browser and forgot to logout.

KHDev

  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 512
  • Karma: +45/-2
  • Etano Contributor (Skins & Mods)
Re: [Add-on] - Report Central (V2.00) - Let Members Report Content
« Reply #5 on: April 07, 2015, 12:19:51 PM »
In the admin control panel, when I click on the View Report link under the Action column, the reason statement doesn't appear for:
Reported blogs
Reported Photos
Inbox reports

Is the reason logged in the database?

Marble

  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 1005
  • Karma: +56/-7
Re: [Add-on] - Report Central (V2.00) - Let Members Report Content
« Reply #6 on: April 07, 2015, 12:25:38 PM »
yes
If you see that I'm logged in forever... it just means I turned the page on my browser and forgot to logout.

Marble

  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 1005
  • Karma: +56/-7
Re: [Add-on] - Report Central (V2.00) - Let Members Report Content
« Reply #7 on: April 07, 2015, 12:45:02 PM »
I did a test in the admin/skin/view_report_photo.html file and added this code in line 16, just above <div class="report_reason">. It was originally missing in there.

Code: [Select]
<h2 id="report_user"><strong>Reported Photo:</strong> <a href="profile.php?uid={output.user_reported_id}">{output.reported_photo}</a> </h2>
Now it works. Did I edit all of the contents of this code correctly?
Now I'll try this with the other files.
If you see that I'm logged in forever... it just means I turned the page on my browser and forgot to logout.

KHDev

  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 512
  • Karma: +45/-2
  • Etano Contributor (Skins & Mods)
Re: [Add-on] - Report Central (V2.00) - Let Members Report Content
« Reply #8 on: April 07, 2015, 12:54:15 PM »
I did a test in the admin/skin/view_report_photo.html file and added this code in line 17. It was originally missing in there.

Code: [Select]
<h2 id="report_user"><strong>Reported Photo:</strong> <a href="profile.php?uid={output.user_reported_id}">{output.reported_photo}</a> </h2>
Now it works. Did I edit all of the contents of this code correctly?
Now I'll try this with the other files.

That line which you've edited from the user report file was only meant to be the user report file so technically it wasnt missing from the other files.

I'll just do a reinstall to see if I can replicate your issue as mines displaying fine..

Marble

  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 1005
  • Karma: +56/-7
Re: [Add-on] - Report Central (V2.00) - Let Members Report Content
« Reply #9 on: April 07, 2015, 12:56:24 PM »
I see. Well, something seems to be missing. Because without that line, the reason doesn't appear.
If you see that I'm logged in forever... it just means I turned the page on my browser and forgot to logout.

Marble

  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 1005
  • Karma: +56/-7
Re: [Add-on] - Report Central (V2.00) - Let Members Report Content
« Reply #10 on: April 07, 2015, 01:12:37 PM »
oh! I forgot to mention something strange that I see on my screen. The formatting of that pink bar where it shows the name of the reported user in the User Reports page has been pushed over to the far right of the screen and extending off the page. I have to use the bottom scroll bar to read it. I haven't touched the css files.
If you see that I'm logged in forever... it just means I turned the page on my browser and forgot to logout.

Marble

  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 1005
  • Karma: +56/-7
Re: [Add-on] - Report Central (V2.00) - Let Members Report Content
« Reply #11 on: April 07, 2015, 01:21:55 PM »
Ah! That's it. It's just a layout problem.
I looked at the other pages with the original code. The reason why I didn't see the reason message is that it was pushed off to the right of the page. The message was there all along, I just didn't know it was there.
If you see that I'm logged in forever... it just means I turned the page on my browser and forgot to logout.

KHDev

  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 512
  • Karma: +45/-2
  • Etano Contributor (Skins & Mods)
Re: [Add-on] - Report Central (V2.00) - Let Members Report Content
« Reply #12 on: April 07, 2015, 01:35:00 PM »
Ah! That's it. It's just a layout problem.
I looked at the other pages with the original code. The reason why I didn't see the reason message is that it was pushed off to the right of the page. The message was there all along, I just didn't know it was there.

Haha, had me in a pickle then trying figure it out.

Right, missing reason only affected user reports??

Which admin skin does your site use?, as my layout looks fine using etano v2.00 admin skin..



Marble

  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 1005
  • Karma: +56/-7
Re: [Add-on] - Report Central (V2.00) - Let Members Report Content
« Reply #13 on: April 07, 2015, 01:46:09 PM »

Which admin skin does your site use?, as my layout looks fine using etano v2.00 admin skin..

version 2.0. It was included with a zip file called: etano_version2_update_instructions.zip which I downloaded on 12/15/2014
Had there been changes to the 2.0 admin skin since then?
If you see that I'm logged in forever... it just means I turned the page on my browser and forgot to logout.

KHDev

  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 512
  • Karma: +45/-2
  • Etano Contributor (Skins & Mods)
Re: [Add-on] - Report Central (V2.00) - Let Members Report Content
« Reply #14 on: April 07, 2015, 02:09:42 PM »
version 2.0. It was included with a zip file called: etano_version2_update_instructions.zip which I downloaded on 12/15/2014
Had there been changes to the 2.0 admin skin since then?

NOTE TO USERS! The download file has been corrected

Actually it didn't matter.

It's my fault with the styling provided in view_report.css

For me it looks fine in chrome but other browsers are causing the reason pull off screen.

can be fixed by adding clear: both; to :


.report_reason  and h2#report_user