The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
calling includes
Sorry if this is the wrong place to post this, or my question isn't too clear - im a bit of a n00b when it comes to PHP - bring on WYSIWIG HTML and i'd be fine...!
Basically I'm trying to include a file (gallery latest photos FYI) from my forum home. I've created a template, forumhome_latestphotos and have placed the code for it in forum home. The table section that i've placed in the template so far shows up so I know i haven't messed that bit up :classic: My question: How can i get PHP Code:
TYIA Ollie |
#2
|
|||
|
|||
You can just use phpinclude.
|
#3
|
|||
|
|||
So if i wanted to make it so that wherever i put $getlphotos, it includes thumbs.php in that area, would i use something like
$getlphotos=<?php include("thumbs.php") ?> or would i need to use eval? if i do - how?!?!?! lol or would i have to use another method? Ollie |
#4
|
|||
|
|||
ne1?
TIA Ollie |
#5
|
||||
|
||||
PHP Code:
|
#6
|
|||
|
|||
Thanks Kriek,
Was almost going to sleep there :P Is that meant to go in PHP Incl.? If i put it in there i get parse errors at top of page... so should it go in index.php? If so, where abouts? Thanks Ollie |
#7
|
|||
|
|||
Sorted it!
Used ob Thanks neway! Ollie |
#8
|
||||
|
||||
Also make sure you use your parentheses (the brackets) correctly.
E.g. PHP Code:
|
#9
|
||||
|
||||
What do you think about this? It must work on Windows as well as on UNIX:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|