The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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. |
#2
|
||||
|
||||
Try using this https://vborg.vbsupport.ru/showthread.php?t=59939
|
#3
|
||||
|
||||
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 |
#4
|
||||
|
||||
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 |
#5
|
||||
|
||||
besides missing the ' after $var not script errors.
loads php but no template was shown. |
#6
|
||||
|
||||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|