davis31b
12-11-2011, 10:40 PM
I have tried every possible combination of trying to get this done and have got close, but it still isn't working correctly.
What I want to do is include my auction site, which can be viewed here: http://www.generalaviationonline.com/auction/ into a separate PHP file that I have created that was integrated into the navbar mod & used the How to create your own VB page (https://vborg.vbsupport.ru/showthread.php?t=228112) article.
So my file, which is auction.php contains the following code:
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'auction_plug');
define('CSRF_PROTECTION', true);
// 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('auction',
);
// pre-cache templates used by specific actions
$actiontemplates = array();
// ######################### REQUIRE BACK-END ############################
// if your page is outside of your normal vb forums directory, you should change directories by uncommenting the next line
// chdir ('/path/to/your/forums');
require_once('./global.php');
// ################################################## #####################
// ######################## START MAIN SCRIPT ############################
// ################################################## #####################
$navbits = construct_navbits(array('' => 'Auction'));
$navbar = render_navbar_template($navbits);
// ###### YOUR CUSTOM CODE GOES HERE #####
$pagetitle = 'General Aviation Auction';
$content = file_get_contents('http://www.generalaviationonline.com/auction/');
echo $content;
// ###### NOW YOUR TEMPLATE IS BEING RENDERED ######
$templater = vB_Template::create('navbar_auction');
$templater->register_page_templates();
$templater->register('navbar', $navbar);
$templater->register('pagetitle', $pagetitle);
print_output($templater->render());
?>
While this is the closest code (which is highlighted in red) that I have been able to use to somewhat do what I want, when it outputs the auction site, it doesn't load it in between: vb:raw navbar & vb:raw footer, instead it displays it at the very top of the page (see attachment photo) and it doesn't even load all the images.
Any ideas what I need to do? I would even pay someone to help me fix it. Thanks!
What I want to do is include my auction site, which can be viewed here: http://www.generalaviationonline.com/auction/ into a separate PHP file that I have created that was integrated into the navbar mod & used the How to create your own VB page (https://vborg.vbsupport.ru/showthread.php?t=228112) article.
So my file, which is auction.php contains the following code:
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'auction_plug');
define('CSRF_PROTECTION', true);
// 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('auction',
);
// pre-cache templates used by specific actions
$actiontemplates = array();
// ######################### REQUIRE BACK-END ############################
// if your page is outside of your normal vb forums directory, you should change directories by uncommenting the next line
// chdir ('/path/to/your/forums');
require_once('./global.php');
// ################################################## #####################
// ######################## START MAIN SCRIPT ############################
// ################################################## #####################
$navbits = construct_navbits(array('' => 'Auction'));
$navbar = render_navbar_template($navbits);
// ###### YOUR CUSTOM CODE GOES HERE #####
$pagetitle = 'General Aviation Auction';
$content = file_get_contents('http://www.generalaviationonline.com/auction/');
echo $content;
// ###### NOW YOUR TEMPLATE IS BEING RENDERED ######
$templater = vB_Template::create('navbar_auction');
$templater->register_page_templates();
$templater->register('navbar', $navbar);
$templater->register('pagetitle', $pagetitle);
print_output($templater->render());
?>
While this is the closest code (which is highlighted in red) that I have been able to use to somewhat do what I want, when it outputs the auction site, it doesn't load it in between: vb:raw navbar & vb:raw footer, instead it displays it at the very top of the page (see attachment photo) and it doesn't even load all the images.
Any ideas what I need to do? I would even pay someone to help me fix it. Thanks!