Webmastersite.net
Register Log In

images are not showing up... they just
list as attachments. Want to see the thumbnail!

Comments on images are not showing up... they just

capitaine
Forum Regular

Usergroup: Customer
Joined: Aug 05, 2005

Total Topics: 94
Total Comments: 272
Posted Sep 18, 2005 - 1:10 PM:

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

<IF {ATTACHISIMAGE}><img src="thumbnail.php?id={LINKID}&amp;amp;attachid={ATTACHID}"></a><br></IF>


any ideas?
capitaine
Forum Regular

Usergroup: Customer
Joined: Aug 05, 2005

Total Topics: 94
Total Comments: 272
Posted Sep 20, 2005 - 2:32 PM:

i ran the classifiedsupgrade.php script.. if that has impacted in any way....
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Sep 24, 2005 - 12:20 AM:

Well I can't see there if it's in the proper scope, but &amp;amp; if it wasn't an artifact of the forum is wrong.
capitaine
Forum Regular

Usergroup: Customer
Joined: Aug 05, 2005

Total Topics: 94
Total Comments: 272
Posted Sep 25, 2005 - 1:47 PM:

Here's the code from the displaylinks.tpl template:

<IF {LINKFILEFIELD}>
<a href="link.php?action=detail&id={LINKID}"><img src="thumbnail.php?id={LINKID}&attachid={ATTACHID}&thumbwidth=100&thumbheight=100"></a></IF>


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

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Sep 26, 2005 - 5:25 AM:

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.
capitaine
Forum Regular

Usergroup: Customer
Joined: Aug 05, 2005

Total Topics: 94
Total Comments: 272
Posted Oct 01, 2005 - 7:27 AM:

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&amp;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&amp;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 -->

Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Oct 01, 2005 - 1:37 PM:

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

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Oct 01, 2005 - 1:38 PM:

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.
mrowton
Forum Regular

Usergroup: Customer
Joined: Feb 19, 2004
Location: Michigan

Total Topics: 57
Total Comments: 185
mrowton
Posted Oct 02, 2005 - 1:45 AM:

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.
capitaine
Forum Regular

Usergroup: Customer
Joined: Aug 05, 2005

Total Topics: 94
Total Comments: 272
#10 - Quote - Permalink
Posted Oct 02, 2005 - 6:08 AM:

ok i now ensured those tags were in place, see code below:
<!-- BEGIN LINK ATTACHMENTS -->
<a href="download.php?id={LINKID}&amp;amp;attachid={ATTACHID}">{ATTACHFILETITLE}</a> ({ATTACHKB} {LANG_GENERAL_KB}, {ATTACHDOWNLOADS} {LANG_DETAILS_DOWNLOADS})<br>
<IF {ATTACHISIMAGE}><img src="thumbnail.php?id={LINKID}&amp;amp;attachid={ATTACHID}"></a>
</IF>
<!-- END LINK ATTACHMENTS -->

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:
mrowton
Forum Regular

Usergroup: Customer
Joined: Feb 19, 2004
Location: Michigan

Total Topics: 57
Total Comments: 185
mrowton
#11 - Quote - Permalink
Posted Oct 02, 2005 - 2:35 PM:

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.

capitaine
Forum Regular

Usergroup: Customer
Joined: Aug 05, 2005

Total Topics: 94
Total Comments: 272
#12 - Quote - Permalink
Posted Oct 02, 2005 - 2:55 PM:

that was it! Brilliant, thanks very much!
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



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