controlling attachments display....
Version: 3.3.17
URL:
|
capitaine
Forum Regular Usergroup: Customer Joined: Aug 05, 2005 Total Topics: 94 Total Posts: 273 |
Posted 05/17/06 - 4:35 PM:
Hi Paul, this code is from my displaylinks.tpl
Edited by capitaine on 05/18/06 - 7:13 AM Truth don die |
|
capitaine
Forum Regular Usergroup: Customer Joined: Aug 05, 2005 Total Topics: 94 Total Posts: 273 |
Posted 05/18/06 - 8:37 AM:
1. <IF not {ATTACHISIMAGE}>html here</IF> doesn't seem to work...? Truth don die |
|
Paul
developer Usergroup: Administrator Joined: Dec 20, 2001 Location: Diamond Springs, California Total Topics: 65 Total Posts: 7614 |
Posted 05/18/06 - 12:18 PM:
It works, that's just not what you want unless you want to show the stuff only for non-images. To show something only when it's an image attachment, the code is already there in what you quoted: <IF {ATTACHISIMAGE}> <a href="link.php?action=detail&id=6461"><img src="thumbnail.php?id=6461&attachid={ATTACHID}"></a> </IF> 2. I don't see one presently, so for 3.3.18 I'll add a 0 which gives you the number of attachments so you can do an <IF 0 is greater than 3> Edited by Paul on 05/18/06 - 12:23 PM |
|
capitaine
Forum Regular Usergroup: Customer Joined: Aug 05, 2005 Total Topics: 94 Total Posts: 273 |
Posted 05/18/06 - 4:10 PM:
It works, that's just not what you want unless you want to show the stuff only for non-images. cool, that is exactly what I wanted and in fact, it was working... ![]() 2. You do have it: see the Misc section here: http://scripts.webmastersite.net/wsnlinks/wsnmanu... but I tried it and not sure it works... it doesn't limit it to just three attachments... Edited by capitaine on 05/18/06 - 4:40 PM Truth don die |
|
Paul
developer Usergroup: Administrator Joined: Dec 20, 2001 Location: Diamond Springs, California Total Topics: 65 Total Posts: 7614 |
Posted 05/20/06 - 6:16 AM:
capitaine wrote: 2. You do have it: I added that to the manual entry at the time of my post. It's not in 3.3.17. 1. <IF not {ATTACHISIMAGE}>html here</IF> doesn't seem to work...? Perhaps you're editing the wrong spot. |
|
Paul
developer Usergroup: Administrator Joined: Dec 20, 2001 Location: Diamond Springs, California Total Topics: 65 Total Posts: 7614 |
Posted 05/21/06 - 5:49 AM:
Had to change this to 0 in order to fix a conflict on the suggest link page. |
|
||
This thread is closed, so you cannot post a reply.

Print
