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.
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.
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.
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?
Comments on help with displaying thumbnails
Member
Usergroup: Customer
Joined: Apr 15, 2006
Total Topics: 7
Total Comments: 15
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
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
In the default 'show links in category' template you'll find this:
Change it to this:
If you have GD (or imagemagick with the correct path), you now have thumbnails for images.
Member
Usergroup: Customer
Joined: Apr 15, 2006
Total Topics: 7
Total Comments: 15
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
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Are you putting the html somewhere outside the scope of a link, rather than where it is by default?
Member
Usergroup: Customer
Joined: Apr 15, 2006
Total Topics: 7
Total Comments: 15
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.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Maybe you inserted it for reciprocal links but not for regular links? Do you see a broken image or just nothing?
Member
Usergroup: Customer
Joined: Apr 15, 2006
Total Topics: 7
Total Comments: 15
Ok so there are two instances of the code... it's working now, thanks!
Member
Usergroup: Customer
Joined: Apr 15, 2006
Total Topics: 7
Total Comments: 15
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
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.
Member
Usergroup: Customer
Joined: Apr 15, 2006
Total Topics: 7
Total Comments: 15
Thanks, Paul