Webmastersite.net
Register Log In

Template changes - attach image

Comments on Template changes - attach image

babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Sep 08, 2007 - 11:26 PM:

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
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Sep 09, 2007 - 11:53 AM:

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.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Sep 09, 2007 - 9:30 PM:

Thanks Paul.

I love this new version! You're doing a great job nod
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.