The Arcive of vBulletin Modifications Site. |
|
|
#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. |
![]() |
|
|