Quote:
Originally Posted by all-the-vb
add this code in hotornot/index2.php file
find:
after that add:
PHP Code:
chdir(/home/***/public_html/forum');
require_once('./global.php');
eval('$headinclude = "' . fetch_template('headinclude') . '";');
eval('$header = "' . fetch_template('header') . '";');
eval('$footer = "' . fetch_template('footer') . '";');
eval('$navbar = "' . fetch_template('navbar') . '";');
don't forget edit *** to your username in site...
Example...
PHP Code:
<html>
<head>
<title></title>
</head>
<body>
<?php
chdir(/home/***/public_html/forum');
require_once("./global.php");
eval('$headinclude = "' . fetch_template('headinclude') . '";');
eval('$header = "' . fetch_template('header') . '";');
eval('$navbar = "' . fetch_template('navbar') . '";');
echo $headinclude;
echo $header; echo $navbar; ?>
</body>
</html>
|
close
but it should be:
add this to your hotornot file, preferably at the top of the file after <?PHP
PHP Code:
chdir('/username/public_html/forumroot/');
require_once('./global.php');
remeber to replace username with the login name you use to access your hosting cpanel and replace forumroot with the directory your forum is in.
then where you echo/print each page, place this before it:
PHP Code:
eval('$navbar = "' . fetch_template('navbar') . '";');
you now have the variables $header, $headerinclude, $footer, and $navbar available to use.