Log in

View Full Version : External vBulletin pages with their own content instead of a template.


Dark_Konoko
03-04-2007, 09:16 PM
Recently I found a nice little tutorial entitled "How to create your own vBulletin-powered page!" by Gary King (https://vborg.vbsupport.ru/showthread.php?t=62164). I'd like to know if it would be possible to adjust his work slightly.

Basically i'm looking to wrap vbulletin around the content I have already. Rather then define a template to use, i'd like to include the template I want to use (headinclude, header, navibar, footer) within the external page and nestle my custom content between them without referencing a custom template.

I'm sure this is possible, and in turn sure this has been done already. If anyone can explain how do to this (or provide URL's to a relevent topic) I would be most greatful. And yes, I have searched various terms :p

Kungfu
03-05-2007, 01:08 AM
it would probably be easier to put everything in a template but if you really want to you can echo the content.

<?php
require_once('./global.php');
eval('$navbar = "' . fetch_template('navbar') . '";');
?>

<?php
echo $header;
echo $navbar;
echo $status;
?>

<table>html goes here. </table>

<?php echo $footer ?>

basically follow the guide you linked except take out
eval('print_output("' . fetch_template('TEST') . '");'); and replace it with the html you need and
<?php
echo $header;
echo $navbar;
echo $status;
?>

etc....

although its probably easier to just make a template in vbulletin.

you can always get your template in vbulletin then just create a variable to pass stuff along like $maincontent then in your php page just put like

$maincontent .= "<table> html stuff </table>"; etc...

hope that makes sense and its clear enough.

Dark_Konoko
03-05-2007, 04:37 PM
Thank you for the quick reply Kungfu. I'll play around with both options you suggested and see which will work best. If vBulletin.org used the reputation system - you'd be getting some positive reputation now. As it does not I'll just have to sing you praises.