The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#21
|
||||
|
||||
Guys, how can I include php in every template I need?
I mean require and so on. Tried a hack called PHP Embed - it does not works for me. Sos! |
#22
|
|||
|
|||
Please start your own thread, don't hijack somebody else's...
|
#23
|
|||
|
|||
Quote:
With the usefulness of the simple example now past, I attempted to add in some php code in the phpinclude template but it seems I pushed my luck a bit too far. It was a basic count script to display TESTING 123 three times: $testing = ($i = 0; $i < 3) { echo "TESTING 123" } I know this breaks the no echo rule for phpinclude but what would be a way to incorporate external php in this manner? Thanks again. |
#24
|
||||
|
||||
that is no valid php code here.
You should really learn to code php correctly before trying to hack vb. There are good books out to learn the basics of php, you won't get it by just try and whenever there is an error ask here... |
#25
|
|||
|
|||
Quote:
I have written some php code on an external file that DOES WORK. My only problem here as I see it, is that I'm having difficulties implementing it within formbit templates. I have created similar variables all linked to other php files within phpinclude which work correctly on the header and footer templates. Formbit, as I'm lead to believed, works differently and that is now my only hurdle. No, I'm certainly no expert in PHP, but little examples are all the push I need here. Thanks in advance. |
#26
|
||||
|
||||
PHP Code:
to write valid php it should look somehow like that: PHP Code:
|
#27
|
|||
|
|||
Quote:
|
#28
|
|||
|
|||
bump
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|