The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Is it possible to see if a file exists in a template? If so, how is it done?
|
#2
|
|||
|
|||
![]()
You can use something like
HTML Code:
<if condition="file_exists('path/to/file')"> <!-- DISPLAY SOME HTML --> </if> |
#3
|
||||
|
||||
![]()
You cannot use the function file_exists() in a template conditional unless you first add it to the template safe functions list.
|
#4
|
|||
|
|||
![]()
Ah I thought you could use any PHP code
![]() May be better just to use a plugin then. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|