Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 03-04-2007, 09:16 PM
Dark_Konoko's Avatar
Dark_Konoko Dark_Konoko is offline
 
Join Date: Dec 2004
Location: Reading, South England.
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 03-05-2007, 01:08 AM
Kungfu Kungfu is offline
 
Join Date: Dec 2005
Posts: 242
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 03-05-2007, 04:37 PM
Dark_Konoko's Avatar
Dark_Konoko Dark_Konoko is offline
 
Join Date: Dec 2004
Location: Reading, South England.
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:50 PM.


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.06544 seconds
  • Memory Usage 2,174KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete