The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
HOW DO I: test if file exists in a template?
I'm just a novice coder and I can't seem to find an answer to this in Google or any of the XHTML sites, so please help.
Is there some bit of code that I could include in a vB3 template that would test if some particular file exists. Something like this: Code:
<If exist ("/path/to/foo.txt")> do something </if> Thanks! |
#2
|
||||
|
||||
I would check in the phpinclude_start template, and set a variable.
Then, check that variable in whatever template you like with <if condition="$var == 1">//foo</if> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|