![]() |
The problem with file inclusion is that this is completely contrary to the way in which vBulletin handles it's output buffering.
It doesn't generate line after line, it generates the entire page, and then sends that to the browser once it's compiled it. For includes to work properly, anything (echos, output, etc.) would have to be stored as variables within the include, which are then echoed by the template itself. |
DraX - and what is the solution? Any code ideas?
|
Hello, sorry if this has been answered, I have read through and can't find anyhting relating to my problem.
I have installed the hack, I then dropped '<? ?>' (without the quotes) into the header of one of our templates. When I view the page it's not parsing the php, I can see the php tags in the source. I then tried dropping an include in the same place but I then just get a blank page. I read that there are issues with using includes in the templates and I can live without using them although it would be very useful if I could. Can you shead any light, let me know if you need any more details. Thanks for your help people :) |
You're not the only one.
I can't get php working in my 2.3 templates too. Any solutions in v3? Anybody, Fil, xenon?! |
Can you retrive information from the database with this hack?
|
Theoreticaly it operates template DB. Theoreticaly.
|
Great hack!
I am so glad that I found this hack, but the problem is that I'm having trouble installing it. I did exactly what is written in the file, the simple replacement of the code but this is what I get on the top of myVBindex.php. Warning: Failed opening 'randomride.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/importhookup/public_html/forums/admin/functions.php(1095) : eval()'d code on line 1 Parse error: parse error, unexpected T_INCLUDE in /home/importhookup/public_html/forums/admin/functions.php(1095) : eval()'d code on line 1 Parse error: parse error, unexpected T_INCLUDE in /home/importhookup/public_html/forums/admin/functions.php(1095) : eval()'d code on line 1 Can someone help me with this? Thanks! |
If I use include statements, it works but always puts the include file at the top of the page. Any way around this?
Thanks for the cool hack! |
Not working... at least not in the postbit.
Code used: PHP Code:
Code:
<? |
Is it working in v3?
|
All times are GMT. The time now is 03:26 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|