vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   External vBulletin pages with their own content instead of a template. (https://vborg.vbsupport.ru/showthread.php?t=141143)

Dark_Konoko 03-04-2007 09:16 PM

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 :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.


All times are GMT. The time now is 09:29 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00903 seconds
  • Memory Usage 1,712KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete