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)
-   -   vB Report Manager 2.0 (Admin CP) - Report to Email, PM, Staff Forum as a new Thread! (https://vborg.vbsupport.ru/showthread.php?t=59709)

pokesph 11-29-2004 03:47 PM

ok hmmm did this hack in 3.0.3,, seems to have gone in fine EXCEPT one little thing.. now the report post icon / link is gone.... any ideas??

linkage: http://pokecommunity.com/showthread....ewpost&t=23623

edit: Nevermind.. seems I can't report my own posts, lol

*clicks install*

WoodiE 11-30-2004 11:08 PM

I too would be interested in this ONLY creating the thread, and NOT sending out a PM or email!

-Michael

WoodiE 12-05-2004 04:57 PM

Has anyone been able to make this ONLY create a thread in a certain forum?

-Michael

Erwin 12-05-2004 09:51 PM

Quote:

Originally Posted by WoodiE
Has anyone been able to make this ONLY create a thread in a certain forum?


-Michael

I promise I will post an update to this hack to do this. :)

Erwin 12-06-2004 10:51 AM

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!

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 in 1st post.

Screenshots attached. :)

Enjoy!

WebMasterAJ 12-06-2004 12:01 PM

Erwin - great hack! However, as soon as I installed this hack I get the error:

Parse error: parse error, unexpected $ in /home/fhco/public_html/boardvb2/report.php on line 246

Any ideas?

Erwin 12-06-2004 06:42 PM

Quote:

Originally Posted by WebMasterAJ
Erwin - great hack! However, as soon as I installed this hack I get the error:

Parse error: parse error, unexpected $ in /home/fhco/public_html/boardvb2/report.php on line 246

Any ideas?

What's on line 246?

rh2004 12-06-2004 07:37 PM

Hi I got that error to on line 246

Code:

        vbmail_end();

// Erwin's Report Hack
foreach ($mods AS $index => $moderator)
{
if (!empty($moderator['email']))
{
eval(fetch_email_phrases('reportbadpost', $moderator['languageid']));
if ($vboptions['vbreportemail'] == '1') {
vbmail($moderator['email'], $subject, $message);
}

if ($vboptions['vbreportpm'] == '1') {
$DB_site->query("INSERT INTO " . TABLE_PREFIX . "pm (pmtextid, userid, messageread) VALUES ($pmtextid, $moderator[userid], 0)");
$DB_site->shutdown_query("UPDATE " . TABLE_PREFIX . "user SET pmtotal=pmtotal+1, pmunread=pmunread+1 WHERE userid = $moderator[userid]");
}// Erwin's Report Hack
       
        eval(print_standard_redirect('redirect_reportthanks'));
}

/*======================================================================*\
|| ####################################################################
|| # Downloaded: 10:20, Tue Nov 30th 2004
|| # CVS: $RCSfile: report.php,v $ - $Revision: 1.47 $
|| ####################################################################
\*======================================================================*/
?>

Line 246 is

?>

WebMasterAJ 12-06-2004 08:01 PM

Same thing here... error on line 246 is ?>

Wierd...

Erwin 12-06-2004 08:42 PM

Strange posting times... it's out of order...

rh2004 12-06-2004 08:51 PM

Hi I got a simular error when reporting posts: error to on line 247

Parse error: parse error, unexpected $ in /home/username/public_html/community/report.php on line 247

Code:

        vbmail_end();

// Erwin's Report Hack
foreach ($mods AS $index => $moderator)
{
if (!empty($moderator['email']))
{
eval(fetch_email_phrases('reportbadpost', $moderator['languageid']));
if ($vboptions['vbreportemail'] == '1') {
vbmail($moderator['email'], $subject, $message);
}

if ($vboptions['vbreportpm'] == '1') {
$DB_site->query("INSERT INTO " . TABLE_PREFIX . "pm (pmtextid, userid, messageread) VALUES ($pmtextid, $moderator[userid], 0)");
$DB_site->shutdown_query("UPDATE " . TABLE_PREFIX . "user SET pmtotal=pmtotal+1, pmunread=pmunread+1 WHERE userid = $moderator[userid]");
}// Erwin's Report Hack
       
        eval(print_standard_redirect('redirect_reportthanks'));
}

/*======================================================================*\
|| ####################################################################
|| # Downloaded: 10:20, Tue Nov 30th 2004
|| # CVS: $RCSfile: report.php,v $ - $Revision: 1.47 $
|| ####################################################################
\*======================================================================*/
?>

Line 246 is

?>


Sorry for the two the server was not being found

Erwin 12-06-2004 08:53 PM

I've changed the install instructions. It's because I cut and paste wrongly:

In the report.php file,

Change:
}// Erwin's Report Hack

To:

}
// Erwin's Report Hack

rh2004 12-06-2004 09:52 PM

Hi I went through it all again and still get the error


Parse error: parse error, unexpected $ in /home/username/public_html/community/report.php on line 249


I have included my report.php file, it has no mods I don't think except your
one, can you see what the problem is :ermm:


Many thanks

Erwin 12-06-2004 10:01 PM

Quote:

Originally Posted by rh2004
Hi I went through it all again and still get the error


Parse error: parse error, unexpected $ in /home/username/public_html/community/report.php on line 249


I have included my report.php file, it has no mods I don't think except your
one, can you see what the problem is :ermm:


Many thanks

I see the problem.

This is what happens when you change your original install file... and the instructions have changed.

The last code change, instead of adding the code below, REPLACE the code.

So, step (e) should REPLACE the code, not add below.

Sorry about this - the install file has been edited. It should work now.

I've deleted the report.php file from your post anyway as that is against our rules. :) But it helped me identify the problem which was my instructions! :)

Erwin 12-06-2004 10:04 PM

I repeat, if you downloaded the old ZIP for version 2 and get an error, in step (e), you REPLACE the old code with new, you do NOT add below (which just creates a repeat of the code). :)

The ZIP has been updated.

Moparx 12-06-2004 10:11 PM

im still getting the error even with the latest update :\

Erwin 12-06-2004 10:12 PM

Quote:

Originally Posted by Moparx
im still getting the error even with the latest update :\

Post your report.php and I'll take a look. I'll delete it after. It's weird that there's still an error.

Moparx 12-06-2004 10:16 PM

here you go

Erwin 12-06-2004 10:19 PM

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.

Moparx 12-06-2004 10:21 PM

still nothing

Erwin 12-06-2004 10:26 PM

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. :)

Moparx 12-06-2004 10:27 PM

that fixed it.. :)

Erwin 12-06-2004 10:34 PM

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.

Erwin 12-06-2004 10:37 PM

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. :)

rh2004 12-06-2004 11:40 PM

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:

Erwin 12-07-2004 12:00 AM

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.

Erwin 12-07-2004 12:10 AM

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.

rh2004 12-07-2004 01:06 AM

Thanks for all the help its working now :)

The Markus 12-07-2004 04:49 PM

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.

Erwin 12-07-2004 06:42 PM

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.

W4arab 12-08-2004 10:06 AM

Thanx a lot ..

i've a problem in PM's

when there is NO moderator the admin get the report >> That's OK

BUT when there is a moderator NO report in PM's at all! >> here the PROBLEM

Erwin 12-08-2004 08:47 PM

Quote:

Originally Posted by W4arab
Thanx a lot ..

i've a problem in PM's

when there is NO moderator the admin get the report >> That's OK

BUT when there is a moderator NO report in PM's at all! >> here the PROBLEM

Well, that's odd. :) Mods of a forum WILL get a PM report if the PM option is chosen.

W4arab 12-08-2004 09:44 PM

Quote:

Originally Posted by Erwin
Well, that's odd. :) Mods of a forum WILL get a PM report if the PM option is chosen.

OK,

Can you give us "report.php" after edited ?

note : delete Licence Number for security :o

W4arab 12-11-2004 03:19 PM

it's OK Now

thanx a lot :)

mOdEtWo 01-12-2005 01:40 AM

Erwin;

I wondered if you would be so kind to show me what to do when I want to use this hack without running the install_vbreport.php file. I don't want to add hacks that alters my database at all, in case I need official support later.

I had it working before I had to upgrade to vB 3.0.5, but you have now updated your original thread with the new system.

Thanks in advance, it's a great hack!

mholtum 01-12-2005 02:10 AM

Sweet, installed

Erwin 01-12-2005 04:43 AM

Quote:

Originally Posted by mOdEtWo
Erwin;

I wondered if you would be so kind to show me what to do when I want to use this hack without running the install_vbreport.php file. I don't want to add hacks that alters my database at all, in case I need official support later.

I had it working before I had to upgrade to vB 3.0.5, but you have now updated your original thread with the new system.

Thanks in advance, it's a great hack!

If you modify your report.php that would void official support anyway. :)

In any case, adding new option settings can be done through your Admin CP in debug mode, so it's not like it's doing anything that vB is not set out to do. If I have time I can give you code to bypass the options - it's quite simple.

mOdEtWo 01-12-2005 11:53 AM

Quote:

Originally Posted by Erwin
If you modify your report.php that would void official support anyway. :)

True, but it is easier to just overwrite that file with a clean one, than unhacking the database. :p

Quote:

If I have time I can give you code to bypass the options - it's quite simple.
That'd be great! :)

kall 01-12-2005 10:58 PM

Quote:

Originally Posted by y2krazy
[high]* y2krazy clicks install![/high]

Odd...for some reason it's all working fine, except the 'reported thread' that gets created in the Reported Post forum has no id at the end of the url (the very last part of the thread).

Ie: Please respond to this post as applicable.

The Report Thread in the Staff Forum is here:
http://forums.nzboards.com/showthread.php?t=

Erwin 01-13-2005 02:04 AM

Quote:

Originally Posted by kall
Odd...for some reason it's all working fine, except the 'reported thread' that gets created in the Reported Post forum has no id at the end of the url (the very last part of the thread).

Ie: Please respond to this post as applicable.

The Report Thread in the Staff Forum is here:
http://forums.nzboards.com/showthread.php?t=

Bizarre - is this happening to anyone else?


All times are GMT. The time now is 01: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
  • Page Generation 0.01475 seconds
  • Memory Usage 1,844KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_php_printable
  • (16)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
  • (40)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