I see that the code has changed to <IF {ATTACHISIMAGE}><img src="{ATTACHTHUMBURL}" /></a><br /></IF> for showing thumbnail attachment in the details.tpl.
I show the actual image (not thumbnail) and currently have:
There is an {ATTACHDOWNLOADURL} equivilant of {ATTACHTHUMBURL}, but the longer download.php URL can still be used. I should probably change the templates to use {ATTACHDOWNLOADURL} though for consistency/cleanliness.
Edit: Actually I see the templates are already using {ATTACHDOWNLOADURL}.
You can use a bulk replacement program (I use KFileReplace, but I'm sure there's a Windows equivilant somewhere) to automatically replace all instances of download.php?id={LINKID}&attachid={ATTACHID} with {ATTACHDOWNLOADURL} in files and directories beneath /templates/ -- though as mentioned this is optional, the download.php URLs work exactly the same at least for now.
Comments on Template changes - attach image
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
Hi Paul
I see that the code has changed to <IF {ATTACHISIMAGE}><img src="{ATTACHTHUMBURL}" /></a><br /></IF> for showing thumbnail attachment in the details.tpl.
I show the actual image (not thumbnail) and currently have:
<IF {ATTACHISIMAGE}>
<img src="download.php?id={LINKID}&attachid={ATTACHID}" ></IF>
Has this code changed at all? if so, what should I have please?
Thanks,
Jill
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
There is an {ATTACHDOWNLOADURL} equivilant of {ATTACHTHUMBURL}, but the longer download.php URL can still be used. I should probably change the templates to use {ATTACHDOWNLOADURL} though for consistency/cleanliness.
Edit: Actually I see the templates are already using {ATTACHDOWNLOADURL}.
You can use a bulk replacement program (I use KFileReplace, but I'm sure there's a Windows equivilant somewhere) to automatically replace all instances of download.php?id={LINKID}&attachid={ATTACHID} with {ATTACHDOWNLOADURL} in files and directories beneath /templates/ -- though as mentioned this is optional, the download.php URLs work exactly the same at least for now.
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
Thanks Paul.
I love this new version! You're doing a great job