PDA

View Full Version : Extra page (Template Called)


Rampag33
06-01-2004, 05:17 PM
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.