vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Extra page (Template Called) (https://vborg.vbsupport.ru/showthread.php?t=65725)

Rampag33 06-01-2004 05:17 PM

Extra page (Template Called)
 
Yes I know there's some extra page mod but I looking for a spefic one.

I want for example:
website.com/page.php (Brings up the Page template)
website.com/page.php?template=Downloads (Brings up the download template)
website.com/page.php?template=Links (Brings up the links template)
website.com/page.php?template=Games (Brings up the games template)

I want this on a seperate php file not a modifcation of an already existing file.

Zachery 06-01-2004 05:18 PM

Try using this :) https://vborg.vbsupport.ru/showthread.php?t=59939

Rampag33 06-01-2004 05:27 PM

Well that was pretty much exactly what I wanted but I wanted something where I didn't need to edit tthe php file every time. Instead it will call whatever custom template I put

template=ANY_CUSTOM_TEMPLATE

Zachery 06-01-2004 05:44 PM

Might want to look at vBa CMPS over at vBadvanced.com to use that or look at the code and see how brian does it.

apon thinking about it you could try

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

Not sure if that will even work though

Rampag33 06-01-2004 06:53 PM

besides missing the ' after $var not script errors.
loads php but no template was shown.

Rampag33 06-02-2004 05:17 AM

Well I tried looking at the vbadvanced and saw some coded reflecting it but couldn't figure out how to achieve the extra page I wanted.

After I started thinking about it more it may not be possible to do it becuase of the security in vb3.


All times are GMT. The time now is 03:39 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.00947 seconds
  • Memory Usage 1,714KB
  • 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
  • (6)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