The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
how do i use a vB template on a non VB page
I am trying to use some vb templates on a non vb page.
For example i want to use the vBulletin "lostpw" template without the vbulletin header whilst it is on the non VB page. I would like to do the same for "Edit Profile" template and for "private messages", but i am not sure what is the template name. I am wanting the messages section from "Show Messages From" down to the last message. Thanks in advanced. |
#2
|
||||
|
||||
well, you have included global.php in your non-vb-file?
then add after that: $header=""; $footer="" after that you can use the gettemplate and eval things as you'd use in on a vb page, just header and footer would be gone |
#3
|
||||
|
||||
Thanks XENON,
Would any one happen to know what are the vB templates for the "editprofile" and "private messages" template? Thanks |
#4
|
||||
|
||||
the first is modifyprofile
the second i think privfolder there is a vboption to add templatenames in comments to the site, perhaps you should enable this, could help with finding the right names |
#5
|
||||
|
||||
Thanks again,
My apologies for my questions but i am trying to learn as much as i can. How do i use the use the gettemplate and eval things ??? |
#6
|
||||
|
||||
best way is to look into the code of vb, so you'll learn fastest way
for outputing a template: Code:
eval("dooutput(\"".gettemplate("templatenamehere")."\");"); |
#7
|
||||
|
||||
Make sure you add that 'templatename' template to the nearest $templatesused variable so as to not add an extra query to your page
- miSt |
#8
|
||||
|
||||
Thanks Xenon, I have been looking into the vB code from the template section but that does not show me how to output the template, and i dont think that i can simply voew the source code from a displayed vB page as it only shows the html properties and not the php info.
Thanks Mist, from what Xenon has passed on, i cant see how to integrate your template used variable in what Xenon has written. |
#9
|
||||
|
||||
open for example index.php and you'll see how the templates are used
there you can also see what Mist meant by $templatesused |
#10
|
||||
|
||||
Hehe everyone forgets the $templatesused variable hehe
- miSt |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|