| 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 . "/");
?>
| |