Webmastersite.net
Register Log In

help with displaying thumbnails

Comments on help with displaying thumbnails

mattydread
Member

Usergroup: Customer
Joined: Apr 15, 2006

Total Topics: 7
Total Comments: 15
Posted Apr 23, 2006 - 5:29 PM:

I can't figure out how to display thumbnails in my listing, it only shows as an attachment. I've tried the manual but I'm not understanding how to do it.

thanks
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 23, 2006 - 6:08 PM:

In the default 'show links in category' template you'll find this:

<IF {LINKFILEFIELD}><br>Attached files:<br>
<!-- BEGIN LINK ATTACHMENTS -->
<a href="download.php?id={LINKID}&attachid={ATTACHID}">{ATTACHFILETITLE}</a> ({ATTACHKB} KB, {ATTACHDOWNLOADS} downloads)<br>
<!-- END LINK ATTACHMENTS -->
</IF>


Change it to this:

<IF {LINKFILEFIELD}><br>Attached files:<br>
<!-- BEGIN LINK ATTACHMENTS -->
<a href="download.php?id={LINKID}&attachid={ATTACHID}">{ATTACHFILETITLE}</a> ({ATTACHKB} KB, {ATTACHDOWNLOADS} downloads)<br>
<IF {ATTACHISIMAGE}><a href="download.php?id={LINKID}&attachid={ATTACHID}"><img src="thumbnail.php?id={LINKID}&attachid={ATTACHID}" alt="image"></a><br></IF>
<!-- END LINK ATTACHMENTS -->
</IF>


If you have GD (or imagemagick with the correct path), you now have thumbnails for images.
mattydread
Member

Usergroup: Customer
Joined: Apr 15, 2006

Total Topics: 7
Total Comments: 15
Posted Apr 23, 2006 - 6:41 PM:

The image only shows when I go to the 'details' section of the link.

GD is enabled according my info.php file...

Any other suggestions?

thanks
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 24, 2006 - 6:41 AM:

Are you putting the html somewhere outside the scope of a link, rather than where it is by default?
mattydread
Member

Usergroup: Customer
Joined: Apr 15, 2006

Total Topics: 7
Total Comments: 15
Posted Apr 24, 2006 - 7:28 AM:

Not sure what you mean, are there any other templates I need to edit?

I made the above template edit you suggested, all the settings are correct under 'files', GD is enabled... I've tried uploading an attachment and still no thumbnails.
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 25, 2006 - 12:30 AM:

Maybe you inserted it for reciprocal links but not for regular links? Do you see a broken image or just nothing?
mattydread
Member

Usergroup: Customer
Joined: Apr 15, 2006

Total Topics: 7
Total Comments: 15
Posted Apr 25, 2006 - 7:15 AM:

Ok so there are two instances of the code... it's working now, thanks!
mattydread
Member

Usergroup: Customer
Joined: Apr 15, 2006

Total Topics: 7
Total Comments: 15
Posted May 10, 2006 - 2:55 PM:

Is there a way to have the thumbs align horizontally rather than vertically?

Also, is there a way to remove the attachment text around the thumbs that shows the name and size of the attachments?



thanks


Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted May 10, 2006 - 10:59 PM:

Under settings->general set the number of attachments per row to a desired number, and then encolose the template area with <table><tr>
</tr></table>, and inside the <!-- BEGIN LINK ATTACHMENTS --> use <td></td>, the same as with any html table.

is there a way to remove the attachment text around the thumbs that shows the name and size of the attachments?

Remove said text from the template.
mattydread
Member

Usergroup: Customer
Joined: Apr 15, 2006

Total Topics: 7
Total Comments: 15
#10 - Quote - Permalink
Posted May 11, 2006 - 7:52 AM:

Thanks, Paul
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



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