![]() |
do not display certain attachments.
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:
|
Try:
PHP Code:
Thanks, ALan. |
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". |
What template are you editing, and where are you putting the edit?
|
It's a template from a custom hack, but it contains the following
PHP Code:
|
ooops, sorry - type on my part. It should look something like:
PHP Code:
|
Thanks for your help.
PHP Code:
|
All times are GMT. The time now is 04:50 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|