Webmastersite.net
Register Log In

controlling attachments display....

Title controlling attachments display....
Message Text Hi Paul, this code is from my displaylinks.tpl
<!-- BEGIN LINK ATTACHMENTS -->
<a href="download.php?id={LINKID}&amp;amp;amp;attachid={ATTACHID}">{ATTACHFILETITLE}</a> ({ATTACHKB} {LANG_GENERAL_KB}, {ATTACHDOWNLOADS} {LANG_DETAILS_DOWNLOADS})<br>
<IF {ATTACHISIMAGE}>
<a href="link.php?action=detail&amp;amp;amp;amp;id={LINKID}"><img src="thumbnail.php?id={LINKID}&amp;amp;amp;attachid={ATTACHID}"></a>
</IF>
<!-- END LINK 
ATTACHMENTS -->
  1. Is there some sort of conditional which will allow me to not display the ({ATTACHKB} {LANG_GENERAL_KB}, {ATTACHDOWNLOADS} {LANG_DETAILS_DOWNLOADS}) for image filetypes? That is, I don't mind it for .doc files, but I don't want it for .jpg...
  2. If a user uploads 7 images. I only want to display 3 thumbnails, with a message saying 'more images available...'. I know you can limit the display of attachments by using <!-- BEGIN 3 LINK ATTACHMENTS --> to show just 3 but how to output a message saying 'more..'
Thanks!
Rating
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
0/5 based on 0 votes.
Ownership capitaine
Views 451 views. Averaging 0 views per day.
Similar Topics
Submission Date May 17, 2006 - 7:35 PM