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)

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


All times are GMT. The time now is 11:34 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.01067 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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