scruby
11-20-2005, 11:12 PM
What I want to do is something lots of people have done as mentioned in
11895.
I'm using vbadvanced 2.0.0 and vbulletin 3.5.1, and have followed the instructions to the letter in http://www.vbadvanced.com/membersarea.php?do=viewusermanual&productid=4&pageid=6
what happens is that the page I'm adding (original vbulletin index.php) replaces the entire page without any of the other modules showing.
this is the top of index.html:
<?php
define('VBA_PORTAL', true);
define('VBA_PAGE', 'include');
/*======================================================================*\
this is what's in includes/functions.php:
function print_output($vartext, $sendheader = true)
{
global $pagestarttime, $querytime, $vbulletin;
global $vbphrase, $stylevar;
if (defined('VBA_PORTAL') AND !defined('SKIP_OUTPUT') AND !defined('VBA_
SCRIPT'))
{
define('SKIP_OUTPUT', true);
global $home;
print_portal_output($home, $vartext);
}
if ($vbulletin->options['addtemplatename'])
{
if ($doctypepos = @strpos($vartext, $stylevar['htmldoctype']))
{
$comment = substr($vartext, 0, $doctypepos);
$vartext = substr($vartext, $doctypepos + strlen($stylev
ar['htmldoctype']));
$vartext = $stylevar['htmldoctype'] . "\n" . $comment .
$vartext;
}
11895.
I'm using vbadvanced 2.0.0 and vbulletin 3.5.1, and have followed the instructions to the letter in http://www.vbadvanced.com/membersarea.php?do=viewusermanual&productid=4&pageid=6
what happens is that the page I'm adding (original vbulletin index.php) replaces the entire page without any of the other modules showing.
this is the top of index.html:
<?php
define('VBA_PORTAL', true);
define('VBA_PAGE', 'include');
/*======================================================================*\
this is what's in includes/functions.php:
function print_output($vartext, $sendheader = true)
{
global $pagestarttime, $querytime, $vbulletin;
global $vbphrase, $stylevar;
if (defined('VBA_PORTAL') AND !defined('SKIP_OUTPUT') AND !defined('VBA_
SCRIPT'))
{
define('SKIP_OUTPUT', true);
global $home;
print_portal_output($home, $vartext);
}
if ($vbulletin->options['addtemplatename'])
{
if ($doctypepos = @strpos($vartext, $stylevar['htmldoctype']))
{
$comment = substr($vartext, 0, $doctypepos);
$vartext = substr($vartext, $doctypepos + strlen($stylev
ar['htmldoctype']));
$vartext = $stylevar['htmldoctype'] . "\n" . $comment .
$vartext;
}