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)

Gary King 03-22-2004 12:03 AM

Put the following, probably best place would be at the very end right before the ?>

PHP Code:

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



AshAbed 03-22-2004 12:42 AM

http://www.maddpc.com/~ashraf/index.php
the index page works fine, I added the extra code you put to the end of index.php but when I put something like http://www.maddpc.com/~ashraf/index.php?page=psdmain I'm not brought to the template index_psdmain, how would this be done?

Grendel 03-22-2004 08:52 AM

Quote:

Originally Posted by Gary W
Well I haven't looked into how the code creates the events data, but I suppose it would require more than index.php then. I will look into it when I have time, or maybe someone else could give it a go :)

That would be great. I'll take a look as well, but I tried various things yesterday and none was working.

SVTBlackLight01 03-23-2004 02:35 AM

Quote:

Originally Posted by AshAbed
http://www.maddpc.com/~ashraf/index.php
the index page works fine, I added the extra code you put to the end of index.php but when I put something like http://www.maddpc.com/~ashraf/index.php?page=psdmain I'm not brought to the template index_psdmain, how would this be done?

Have you gotten this to work? This could be useful for me as well.

AshAbed 03-23-2004 10:14 AM

Quote:

Originally Posted by SVTBlackLight01
Have you gotten this to work? This could be useful for me as well.

unfortunatley I haven't, I'll work on it and tell you how it goes

Osterling 03-23-2004 10:30 AM

is tehre a way to have it seach pages that are not off the forum?

Gary King 03-23-2004 01:14 PM

Quote:

Originally Posted by SVTBlackLight01
Have you gotten this to work? This could be useful for me as well.

I've placed instructions in the first post a few days ago :)

Silverstangs 03-23-2004 05:14 PM

Thank you Gary W for the tutorial, I needed that!

Silver

SVTBlackLight01 03-23-2004 05:54 PM

Quote:

Originally Posted by Gary W
I've placed instructions in the first post a few days ago :)

OK. I have it working now. Thanks.

Gary King 03-23-2004 06:52 PM

No problem glad it worked :)


All times are GMT. The time now is 11:10 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.03080 seconds
  • Memory Usage 1,740KB
  • 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)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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