WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

Check for attachments
doesn't work here

Version: WSN Links 4.2.0 Alpha 13
printPrint


Check for attachments
chris
Member
Avatar

Usergroup: Customer
Joined: May 04, 2008
Location: Liège, BELGIUM
Total Topics: 13
Total Posts: 39
Posted 06/15/08 - 12:32 PM:
quote post
#1
I use the following condition syntax in detailcomments.tpl:


<IF {LINKHASATTACHMENT}>
YES
<OTHERWISE>
NO
</IF>


The result is always "YES" no matter if I have an attachment or not.

What am I doing wrong?

Edited by chris on 06/15/08 - 01:00 PM. Reason: Wrong code
chris
Member
Avatar

Usergroup: Customer
Joined: May 04, 2008
Location: Liège, BELGIUM
Total Topics: 13
Total Posts: 39
Posted 06/15/08 - 01:01 PM:
quote post
#2
It worked with the following code:


<IF {LINKNUMBEROFATTACHMENTS} is greater than 0>
YES
<OTHERWISE>
NO
</IF>
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6339
Posted 06/27/08 - 10:17 AM:
quote post
#3
Documentation issue, that function isn't listed but is mentioned in an example. Updating doc.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.