I can't work out why this is happening.... I've uploaded images and I'm trying to show them as thumbnails... I can see the following code in details.tpl but it won't display the image (the attachment shows up as a link....). The code below looks ok to me so I can't see why it's not displaying the images....
No, that shouldn't work without all the required attachment html around it as is in displaylinks.tpl, of course. You're referencing {ATTACHID} when you're not, at least in what you've posted, within the scope of any particular attachment.
well this is displaylinks.tpl below - I can't see what's missing......!
<!-- BEGIN REGULAR LINKS --> <td {LINKWIDTH} valign="top" class="borderb feed18"> <IF {LINKFILEFIELD}> <a href="link.php?action=detail&id={LINKID}"><img src="thumbnail.php?id={LINKID}&attachid={ATTACHID}&thumbwidth=100&thumbheight=100"></a></IF><a href="link.php?action=detail&id={LINKID}" class="feed18">{LINKTITLE}</a> {LINKNEW} {LINKISUPDATED} {LINKSTARS} {LINKADMIN} <br><span class="text7">{LANG_SHOWLINKS_SUBMITTED} {LINKDATE} <IF {LINKLASTEDIT} is greater than {LINKTIME}> | <i>{LANG_SHOWLINKS_EDITED} {LINKLASTEDITDATE}</i></IF></span> <br><IF {THISMEMBERUSERGROUP} is greater than 1 and {THISMEMBERID} is {LINKOWNERID}> <IF {SPONSORUSELINK} is yes><a class="feed5" href="link.php?action=sponsor&id={LINKID}">Move your listing to the top: sponsor this category</a><br></IF></IF>{LINKDESCRIPTION} <br> <IF {LINKPRICE}><span class="price">{LINKCURRENCY}{LINKPRICE}</span></IF> | <IF {SWITCH_HITS}>{PALL_LANG_GENERAL_HITSOUT}: {LINKHITS}</IF> | <IF {SWITCH_REPORTS}><a href="report.php?id={LINKID}" class="feed21">{LANG_GENERAL_REPORT}</a> | </IF><IF {THISMEMBERGROUPCANEMAIL}><a href="email.php?id={LINKID}" class="feed21">{LANG_GENERAL_EMAIL}</a> | </IF><IF {SWITCH_ALBUMS} and {THISMEMBERISREGISTERED}> <a href="albums.php?add={LINKID}" class="feed21">{LANG_SHOWLINKS_ADDTOLIST}</a></IF> <IF {SWITCH_COMMENTS}>| <a href="comments.php?id={LINKID}" class="feed21">{P_LANG_GENERAL_COMMENTS} ({LINKNUMCOMMENTS})</a></IF><br>
<IF {LINKFILEFIELD}><br>{LANG_SHOWLINKS_ATTACHED}:<br> <!-- BEGIN LINK ATTACHMENTS --> <a href="download.php?id={LINKID}&attachid={ATTACHID}">{ATTACHFILETITLE}</a> ({ATTACHKB} {LANG_GENERAL_KB}, {ATTACHDOWNLOADS} {LANG_DETAILS_DOWNLOADS})<br> <!-- END LINK ATTACHMENTS --> </IF> </td> <!-- END REGULAR LINKS -->
So given that you haven't actually placed an img tag anywhere, how in the world are you expecting an image to show up? See the manual entry on thumbnails.
So given that you haven't actually placed an img tag anywhere, how in the world are you expecting an image to show up? See the manual entry on thumbnails, or use the img tag directly on the download url if you want the whole image.
Perhaps the post was edited, but I see the img tag.
If he is using 3.26 then wouldn't he need the begin and end tags
<!-- BEGIN LINK ATTACHMENTS --> <img src="thumbnail.php?id={LINKID}&attachid={ATTACHID}" alt="image" border="0"> <!-- END LINK ATTACHMENTS -->
I don't remember needing these before but I had to add them in 3.2+ versions of wsnlinks.
EDIT: the image tags and begin/end tags are in different spots. Which explains why Paul didn't see the img tag and I didn't see the begin/end tags. Make sure that the attachment/thumbnail stuff is inside the begin/end tags as I listed above.
btw, your using the classifieds stuff? PM me if you need any help.
ok i now ensured those tags were in place, see code below:
<!-- BEGIN LINK ATTACHMENTS --> <a href="download.php?id={LINKID}&amp;attachid={ATTACHID}">{ATTACHFILETITLE}</a> ({ATTACHKB} {LANG_GENERAL_KB}, {ATTACHDOWNLOADS} {LANG_DETAILS_DOWNLOADS})<br> <IF {ATTACHISIMAGE}><img src="thumbnail.php?id={LINKID}&amp;attachid={ATTACHID}"></a> </IF> <!-- END LINK ATTACHMENTS -->
Comments on images are not showing up... they just
Forum Regular
Usergroup: Customer
Joined: Aug 05, 2005
Total Topics: 94
Total Comments: 272
I can't work out why this is happening.... I've uploaded images and I'm trying to show them as thumbnails... I can see the following code in details.tpl but it won't display the image (the attachment shows up as a link....). The code below looks ok to me so I can't see why it's not displaying the images....
any ideas?
Forum Regular
Usergroup: Customer
Joined: Aug 05, 2005
Total Topics: 94
Total Comments: 272
i ran the classifiedsupgrade.php script.. if that has impacted in any way....
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Well I can't see there if it's in the proper scope, but &amp; if it wasn't an artifact of the forum is wrong.
Forum Regular
Usergroup: Customer
Joined: Aug 05, 2005
Total Topics: 94
Total Comments: 272
Here's the code from the displaylinks.tpl template:
that should display a thumbnail....
what do you mean by 'can't see there if it's in the proper scope'?
its the forum thats converting the '&' into amp;
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
No, that shouldn't work without all the required attachment html around it as is in displaylinks.tpl, of course. You're referencing {ATTACHID} when you're not, at least in what you've posted, within the scope of any particular attachment.
Forum Regular
Usergroup: Customer
Joined: Aug 05, 2005
Total Topics: 94
Total Comments: 272
well this is displaylinks.tpl below - I can't see what's missing......!
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
So given that you haven't actually placed an img tag anywhere, how in the world are you expecting an image to show up? See the manual entry on thumbnails.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
So given that you haven't actually placed an img tag anywhere, how in the world are you expecting an image to show up? See the manual entry on thumbnails, or use the img tag directly on the download url if you want the whole image.
Forum Regular
Usergroup: Customer
Joined: Feb 19, 2004
Location: Michigan
Total Topics: 57
Total Comments: 185
Perhaps the post was edited, but I see the img tag.
If he is using 3.26 then wouldn't he need the begin and end tags
<!-- BEGIN LINK ATTACHMENTS -->
<img src="thumbnail.php?id={LINKID}&attachid={ATTACHID}" alt="image" border="0">
<!-- END LINK ATTACHMENTS -->
I don't remember needing these before but I had to add them in 3.2+ versions of wsnlinks.
EDIT: the image tags and begin/end tags are in different spots. Which explains why Paul didn't see the img tag and I didn't see the begin/end tags. Make sure that the attachment/thumbnail stuff is inside the begin/end tags as I listed above.
btw, your using the classifieds stuff? PM me if you need any help.
Forum Regular
Usergroup: Customer
Joined: Aug 05, 2005
Total Topics: 94
Total Comments: 272
ok i now ensured those tags were in place, see code below:
That is following the manual: http://scripts.webmastersite.net/wsnlinks/wsnmanu...
But it still doesn't work... see attached image:
I can't work out whats wrong....!? The properties for the broken image point to www.domain.com/classifieds/...il.php?id=9&attachid=7 which doesn't seem right....
Attached Files:
Forum Regular
Usergroup: Customer
Joined: Feb 19, 2004
Location: Michigan
Total Topics: 57
Total Comments: 185
Have you looked at the settings options under "File" in your admin panel.
Specifically
Choose your prefered graphics method (for thumbnails):
I had to change mine to GD in order for thumbnails to work.
Forum Regular
Usergroup: Customer
Joined: Aug 05, 2005
Total Topics: 94
Total Comments: 272
that was it! Brilliant, thanks very much!