The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I'm trying to write a simple if statement to disallow the forum from displaying image attachments with the name "thumb.jpg".
$attachment[filename] returns the name of the image, so that's working just fine. However, the if statement below displays the text thumbnail at all times. What am I doing wrong here? (the code below is stated in one of the templates). I've just started looking into php ![]() PHP Code:
|
|
#2
|
|||
|
|||
|
Try:
PHP Code:
Thanks, ALan. |
|
#3
|
|||
|
|||
|
I've tried that and it still returns thumbnail no matter what.
Are statements somehow limited in templates? I haven't seen any if statements in other template files except for "if condition etc". |
|
#4
|
|||
|
|||
|
What template are you editing, and where are you putting the edit?
|
|
#5
|
|||
|
|||
|
It's a template from a custom hack, but it contains the following
PHP Code:
|
|
#6
|
|||
|
|||
|
ooops, sorry - type on my part. It should look something like:
PHP Code:
|
|
#7
|
|||
|
|||
|
Thanks for your help.
PHP Code:
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|