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

Register | Forgot Password

Template changes - attach image

Version: 4.1.0 RC1
printPrint


Template changes - attach image
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 312
Total Posts: 1032
Posted 09/08/07 - 10:26 PM:
quote post
#1
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
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6316
Posted 09/09/07 - 10:53 AM:
quote post
#2
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.

Edited by Paul on 09/09/07 - 11:57 AM

"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
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 312
Total Posts: 1032
Posted 09/09/07 - 08:30 PM:
quote post
#3
Thanks Paul.

I love this new version! You're doing a great job nod
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.