The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
When I say phpinclude I am not talking about the phpinclude template.
I tried dumping the phpinclude before the template output and its before the template and the template is underneath. Then when I moved it below it was below everything. So I installed the limited php functionality template hack and then dumped the phpinclude in the template, and its back up at the top. Any suggestions or ideas, besides asking me why I want to do this or blah blah. |
#2
|
||||
|
||||
![]()
you can use php in templates wherever you want it in your script, you just have to call the templates in another way in your script files (like phpinclude is called in global.php)
|
#3
|
|||
|
|||
![]()
I eventually got it to work almost the way I wanted it I am calling the unclude at the end of the template and for some stupid reason it still displays above the template.
|
#4
|
||||
|
||||
![]()
you mean the output of it?
that's normaly, because the output is the last thing on a vb file, so every echo... will be before the template. dooutput creates the actual output, so your phpinclude should output everything into an variable which is called from your outputtemplate.. |
#5
|
|||
|
|||
![]()
So I could for example If i created a template called getinfoinclude I could call it in addition to the getinfo template and it should display at the end of the getinfo template correct?
eval("dooutput(\"".gettemplate("getinfo")."\");"); eval("dooutput(\"".gettemplate("getinfoinclude")." \");"); |
#6
|
||||
|
||||
![]()
correct, but it will be displayed below the footer (if $footer is inside getinfo
|
#7
|
||||
|
||||
![]()
Actually i do believe a hack was released to allow you to use php in templates...
http://www.vbulletin.org/hacks/index...ack&hackid=856 Regards - miSt |
#8
|
|||
|
|||
![]()
Yes I know there was a hack released as I said above I installed one and it still wasn't displaying it the way I think it should render.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|