Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vB Report Manager 2.0 (Admin CP) - Report to Email, PM, Staff Forum as a new Thread! Details »»
vB Report Manager 2.0 (Admin CP) - Report to Email, PM, Staff Forum as a new Thread!
Version: 2.1, by Erwin Erwin is offline
Developer Last Online: May 2013 Show Printable Version Email this Page

Version: 3.0.6 Rating:
Released: 01-04-2004 Last Update: 01-29-2005 Installs: 132
DB Changes
 
No support by the author.

vB Report Manager 2.1 (Admin CP) - Report to Email, PM, Staff Forum as a new Thread!

By Dr Erwin Loh

What does this hack do?

When a member reports a post, the report goes to:

1) Email (as per normal)
2) PM
3) A new thread in your private Staff Forums
4) In the report, there will be a link to the new thread in your private Staff Forums

Or ANY of the above combination!

The thread title now has the Date/ Time of Report, Originating Forum and Reported Poster!

There is now Admin CP support under vBulletin Options - you can choose to switch on or off any of the notification methods, and set the FORUM ID for the Staff Forum you want the posts to appear in.

All you need to do is run install_vbreport.php and modify 1 file - report.php.

Update Version 2.0

1. Added Admin CP support - choose to switch on and off each notification method. Also specify your Staff Forum ID in Admin CP.

2. Added more info to the THREAD TITLE - now with NAME OF FORUM, USERNAME OF POSTER, AND DATE/ TIME OF REPORT!

Update Version 2.1

1. Fixed email option bug

2. Fixed URL parsing bug

To upgrade, it's easiest just to reinstall this hack over a CLEAN REPORT.PHP file.

Admin CP installer and install instructions in HTML file in ZIP below.
Screenshots attached.

Enjoy!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #102  
Old 12-06-2004, 10:26 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Erwin
I'm missing a closing tag it seems - must have missed it since I coded this off the top of my head.

Above the LAST:

// Erwin's Report Hack

Add another:

}

See if that fixes it.
I'm an idiot.

Add 2 }

So above the LAST:

// Erwin's Report Hack

Add 2 closing tags:

}
}

In total there should be 3 closing tags above the comment.

See if that works.
Reply With Quote
  #103  
Old 12-06-2004, 10:27 PM
Moparx Moparx is offline
 
Join Date: Jul 2004
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that fixed it..
Reply With Quote
  #104  
Old 12-06-2004, 10:34 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Moparx
that fixed it..
Step (e) was the problem - I told you to find the wrong code, and do the wrong thing to it.

I've fixed the install.html file.

NOTE: If you installed the hack and get an error - what I would do is to start with a FRESH report.php file, and redo the code changes AGAIN.

This is because in step (e) I told you to find the wrong code - I have removed the vbmail function which should not be removed.

So if you downloaded the install.html file BEFORE this post, I suggest doing it again, and then reinstalling with a fresh REPORT.PHP file. No need to run the installer again though or do the phrase changes.
Reply With Quote
  #105  
Old 12-06-2004, 10:37 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I repeat, even if adding the 3 closing tags fixes your problem, your report.php may be missing 1 line that ends the vbmail function. So I suggest re-downloading the updated install.html and redoing just the code changes to a fresh report.php just to be safe.
Reply With Quote
  #106  
Old 12-06-2004, 11:40 PM
rh2004 rh2004 is offline
 
Join Date: Nov 2004
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi it works but when you receive a PM its just blank...

The emails send ok, and the forum posts fine too :squareeyed: :nervous: :nervous:
Reply With Quote
  #107  
Old 12-07-2004, 12:00 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rh2004
Hi it works but when you receive a PM its just blank...

The emails send ok, and the forum posts fine too :squareeyed: :nervous: :nervous:
I see the problem - it happens when you switch OFF threads but turn ON PMs.

To fix this,

1.In report.php find:

PHP Code:
eval(fetch_email_phrases('reportbadpost'));
$message convert_url_to_bbcode($message); 
CUT it out and MOVE it to ABOVE this:

PHP Code:
if ($vboptions['vbreportthread'] == '1') { 
2. Then find:

PHP Code:
$today vbdate('m-d-Y'TIMENOWfalsefalse); 
Also, CUT it out and MOVE it to ABOVE this:

PHP Code:
if ($vboptions['vbreportthread'] == '1') { 
That will fix it. You will also get the DATE in the title of your PMs even if you switch Threads off.

I've updated the ZIP file.
Reply With Quote
  #108  
Old 12-07-2004, 12:10 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As far as I can tell, the current ZIP file has all the bug fixes. Sorry about the bugs - I added the new features quickly and didn't have time to test them out out extensively.

Things should work properly now.
Reply With Quote
  #109  
Old 12-07-2004, 01:06 AM
rh2004 rh2004 is offline
 
Join Date: Nov 2004
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for all the help its working now
Reply With Quote
  #110  
Old 12-07-2004, 04:49 PM
The Markus The Markus is offline
 
Join Date: Nov 2004
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Erwin
As far as I can tell, the current ZIP file has all the bug fixes. Sorry about the bugs - I added the new features quickly and didn't have time to test them out out extensively.

Things should work properly now.
What does it mean, install it over a clean report.php?

I installed the one before you updated it, and am somehwhat of an amature at the moment.
Reply With Quote
  #111  
Old 12-07-2004, 06:42 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by The Markus
What does it mean, install it over a clean report.php?

I installed the one before you updated it, and am somehwhat of an amature at the moment.
Reinstall the hack into an unhacked report.php.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:13 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05190 seconds
  • Memory Usage 2,315KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete