 | |  | | | ReviewPost Installation & Upgrades If you're having problems getting ReviewPost Pro to work or receiving errors while running RP, seek help here. |
January 3rd, 2005, 03:56 PM
|
#1 (permalink)
| | Junior Member Verified Customer
Join Date: May 2003
Posts: 17
| Problem after editing header-inc.php
I have VB3 and the latest reviewpost installed http://club3series.com/reviewpost
After I edited header-inc.php file per the instructions to integrate my vb header and footers i get this error message Quote:
Warning: main(./languages/english/pp-inc.php): failed to open stream: No such file or directory in /usr/www/virtual/voom/www.club3series.com/reviewpost/pp-inc.php on line 62
Fatal error: main(): Failed opening required './languages/english/pp-inc.php' (include_path='.:/usr/local/lib/php') in /usr/www/virtual/voom/www.club3series.com/reviewpost/pp-inc.php on line 62
|
Here is my header-inc.php file Quote:
<?php
// vBulletin3 Integration
// Instead of using the static header/footer file specified in the Admin options
// panel, you can use your existing default vBulletin header/footer. Just change
// $vbpath and $pppath below to the proper full paths and remove the "//" slashes
// from the beginning of the 27 lines of code below. If classifieds has an odd
// background color or squished width, you will need to edit vbulletin's default
// "header" style input box / template and change "{pagebgcolor}" and "{tablewidth}"
// (near the bottom) to your preferred background color and table width, respectively.
$vbpath = "/usr/www/virtual/voom/www.club3series.com/forums"; // No ending slash
$pppath ="/usr/www/virtual/voom/www.club3series.com/reviewpost"; // No ending slash
chdir($vbpath);
require("./global.php");
$styleinclude = "";
if ($vboptions['storecssasfile']) {
$styleinclude = str_replace('clientscript', "$vboptions[bburl]/clientscript", $style['css']);
}
eval('$navbar = "' . fetch_template('navbar') . '";');
$vbheader = "$stylevar[htmldoctype]
<html dir=\"$stylevar[textdirection]\" lang=\"$stylevar[languagecode]\">
<head>
$styleinclude
$headinclude
{ppheader}
</head>
<body>
$header
$navbar
<div align=\"center\">";
$headvars = array( "\"clientscript", "url(images/", "\"search", "\"profile", "\"#usercp", "\"private", "\"member",
"\"subscription", "\"online", "\"misc", "\"forumdisplay", "\"faq", "\"register",
"\"{$vboptions[forumhome]}.php", "\"#usercptools", "\"usercp.php", "\"login.php", "'misc.php",
"\"calendar.php", "\"images/misc", "\"admincp.php" );
$headrepl = array( "\"{$vboptions['bburl']}/clientscript", "url({$vboptions['bburl']}/images/", "\"{$vboptions['bburl']}/search",
"\"{$vboptions['bburl']}/profile", "\"{$vboptions['bburl']}/#usercp", "\"{$vboptions['bburl']}/private",
"\"{$vboptions['bburl']}/member", "\"{$vboptions['bburl']}/subscription", "\"{$vboptions['bburl']}/online",
"\"{$vboptions['bburl']}/misc", "\"{$vboptions['bburl']}/forumdisplay",
"\"{$vboptions['bburl']}/faq", "\"{$vboptions['bburl']}/register",
"\"{$vboptions['bburl']}/{$vboptions[forumhome]}.php", "\"{$vboptions['bburl']}/#usercptools",
"\"{$vboptions['bburl']}/usercp.php", "\"{$vboptions['bburl']}/login.php", "'{$vboptions['bburl']}/misc.php",
"\"{$vboptions['bburl']}/calendar.php", "\"{$vboptions['bburl']}/images/misc",
"\"{$vboptions['bburl']}/admincp.php" );
$vbheader = str_replace( $headvars, $headrepl, $vbheader );
$footvars = array("\"$admincpdir", "\"$modcpdir", "\"archive", "\"sendmessage.php");
$footrepl = array("\"{$vboptions['bburl']}/$admincpdir","\"{$vboptions['bburl']}/$modcpdir","\"{$vboptions['bburl']}/archive", "{$vboptions['bburl']}/sendmessage.php");
$vbfooter = str_replace( $footvars, $footrepl, $vbfooter );
$vbfooter = process_replacement_vars($vbfooter);
$vbfooter = "</div>$vbfooter";
chdir($pppath . "/");
$HTTP_POST_FILES = $_FILES;
$HTTP_POST_VARS = $_POST;
// vB2 Integration
//chdir($vbpath);
//require("global.php");
//ob_start();
//eval("dooutput(\"".gettemplate('headinclude')."\",0);");
//$bodytag="<body>";
//echo dovars($bodytag,0);
//$vbheader="<head>";
//$vbheader.=ob_get_contents();
//$vbheader.="{ppheader}</head>";
//ob_end_clean();
//ob_start();
//eval("dooutput(\"".gettemplate('header')."\",0);");
//$vbheader.=ob_get_contents();
//ob_end_clean();
//ob_start();
//eval("dooutput(\"".gettemplate('footer')."\",0);");
//$vbfooter=ob_get_contents();
//ob_end_clean();
//chdir($pppath);
// vBPortal Integration
// If you want to include the vBPortal header, footer, and left menu, remove
// the "//" slashes from the beginning of the 16 lines of code below, and change
// "/home/public_html/vbportal" to your actual path to vbportal's main directory,
// and change "/home/public_html/classifieds" to your actual path to classifieds's
// directory. This will override the default header and footer variables set in the
// classifieds admin panel.
//$vbportal="/home/public_html/vbportal"; // No ending slash
//$pppath ="/home/public_html/classifieds"; // No ending slash
//chdir($vbportal . "/");
//require ("mainfile.php");
//$index = 0;
//global $Pmenu,$Pheader;
//$Pheader="P_themeheader";
//$Pmenu="P_thememenu_classifieds";
//require("header.php");
//$vbheader=ob_get_contents();
//ob_end_clean();
//ob_start();
//require("footer.php");
//$vbfooter=ob_get_contents();
//ob_end_clean();
//chdir($pppath . "/");
?>
| |
| |
January 3rd, 2005, 04:07 PM
|
#2 (permalink)
| | Registered User
Join Date: Jan 2004
Posts: 11
|
I had the exact problem 3 days ago. Go back edit your 'header-inc.php', put back the //'s like it was before you edited it and upload it.
Go to your admin control panel and goto 'Edit Config' in the 'Settings' section. The first field should say 'Path to ReviewPost Installation (must be set properly for script to work)'. Now, write your path in such as '/home/mysite/public_html/reviews' .
Then go back to your 'header-inc.php' and un-comment VBulletin part again.
And your problem should be sorted. It worked with me.
|
| |
January 3rd, 2005, 04:57 PM
|
#3 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,858
|
Looks like your $PP_PATH variable isn't set - check your Edit Config (config-inc.php) and make sure this is set to an actual path.
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| |
January 4th, 2005, 09:41 AM
|
#4 (permalink)
| | Junior Member Verified Customer
Join Date: May 2003
Posts: 17
|
works!
Thanks for the help guys
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 05:18 PM. | |