vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   How to create your own vBulletin-powered page! (uses vB templates) (https://vborg.vbsupport.ru/showthread.php?t=62164)

Adrian Schneider 06-03-2005 12:29 AM

No it's the basic script vBulletin uses for all of its pages. You could make it into anything you want. :)

Personally I did this for all my custom content, more control this way rather than using a CMS, but if you're not much of a coder, go with the CMS.

Marcus Lau 06-10-2005 08:46 AM

Good stuffs!.

MrToasty 06-15-2005 03:15 PM

Would this page need to be altered much, if at all for v3.5? I've yet to try it, but has anyone had success?

Andreas 06-15-2005 03:24 PM

It should work the same in 3.5, except the WOL stuff which can be done with Plugins now.

theoperative 06-24-2005 09:01 AM

This hack works fine for me when logged in...however, when I am not logged in...I get this error message on a blank white page:

Unable to add cookies, header already sent.

Line 2

Thanks for the help.

Edit: PROBLEM fixed...It was white space I had left before the <?php at the top.

JohnBee 06-24-2005 09:50 AM

Quote:

Im not understanding this hack. Is this a replacement for the cpms system? Where I could take my current homepage, and just make php includes to call whatever info i want?
It works as advertised but know that you are limited to declaring your php includes
through variables in your php include start template, you cannot do any php include
straight from your pages. (which is quite limiting)

otherwise I would use it all over my site.

mismatch 06-24-2005 11:49 AM

I've read all 21 pages of this and have the same qu a number of others had.

I can get this to work within my forums directory - which is great, thank you, especially for additional info pages.

But I want it working outside my forum directory in my own folder as I have a lot of other pages i simply want to integrate the navbar/login aspect with.

I have tried the suggestions eg chdir and stating which directory I am working in and I've tried commenting out the template call in preference of my own text and also tried someone suggestion of putting
$vbulletin[bburl] at the top. my navbar and vb header scripts etc.. all have full url so the links should work - if they ever show lol!

like others all I get is a blank page which suggests its not finding something.

Can someone repost this script as though it were for a page that resides outside the forums as no doubt it is simply an incorrect pathway or similar on my part - eg I get lost with the ../howmanydots../andslashes./beforethefolder/

Many Thanks

Snake 06-27-2005 10:21 AM

Quote:

Also if you want to create your own pages 'within' current vBulletin files, do the following:

Open the file you want, and then right before the final ?> in the source code, add the following:

PHP Code:

if ($_REQUEST['do'] == 'xxx')
{
    eval(
'print_output("' fetch_template('TEMPLATE_XXX') . '");');


Replace 'xxx' with whatever you want ?do= in the query string to be (for example, replace 'xxx' with 'showprofile' so then someone would type in example.php?do=showprofile to view this template.) Then of course, change TEMPLATE_XXX to your template name, it's that simple! :D
Uh... what do you mean by that?

Adrian Schneider 06-27-2005 03:54 PM

It allows one php file to output more than one template according to the address bar.


PHP Code:

// file.php?do=eggnog
if ($_REQUEST['do'] == 'eggnog')
{
    
// Outputs the eggnog template
    
eval('print_output("' fetch_template('eggnog') . '");');
}

// file.php?do=vbulletin
elseif ($_REQUEST['do'] == 'vbulletin')
{
    
// Outputs the vbulletin template
    
eval('print_output("' fetch_template('vbulletin') . '");');



Stachel 06-30-2005 01:56 AM

Then, putting

$eggnog

is what triggers that "if" to execute?

Stachel


All times are GMT. The time now is 12:57 AM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03643 seconds
  • Memory Usage 1,743KB
  • 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete