The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
External vBulletin pages with their own content instead of a template.
Recently I found a nice little tutorial entitled "How to create your own vBulletin-powered page!" by Gary King. 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 |
#2
|
|||
|
|||
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. |
#3
|
||||
|
||||
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.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|