thanks for that link, here's what i have so far.
custom_page.php looks like this:
PHP Code:
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'custom_page'); // change this depending on your filename
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array(
);
// get special data templates from the datastore
$specialtemplates = array(
);
// pre-cache templates used by all actions
$globaltemplates = array(
'custom_template',
);
// pre-cache templates used by specific actions
$actiontemplates = array(
);
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################
$navbits = array();
$navbits[$parent] = 'Viewing Custom Page';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('custom_template') . '");');
?>
custom_template looks like this:
HTML Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle]</title>
$headinclude
</head>
<body>
$header
$navbar
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">$vbphrase[custom_header]</td>
</tr>
<tr>
<td class="alt1">$my_included_php_file</td>
</tr>
</table>
$footer
</body>
</html>
my_included_php_file plugin looks like this:
PHP Code:
ob_start();
include('C:\Program Files\EasyPHP1-8\www\custom\index.php');
$my_included_php_file = ob_get_contents();
ob_end_clean();
my custom\index.php file looks like this:
PHP Code:
<?php
echo 'hey, vBulletin rox!';
?>
Can you please explain me what i should do now?
do you mean i should put
custom_page.php code inside
custom\index.php then i should delete the plugin instead? then just to create a navbar link to
custom\index.php?
thank you