Results 1 to 2 of 2

Thread: Show different attachment types separately

  1. #1
    Join Date
    Aug 2005
    Location
    Durham, UK
    Posts
    177

    Default Show different attachment types separately

    Is there a way to show different attachment types separately from each other? For example, I like to show the image attachments inline, horizontally, but would like to show the rar and zip files below these, vertically, instead of next to the images.
    Sim Fans UK - Sims downloads and discussion

  2. #2
    Join Date
    Aug 2005
    Location
    Durham, UK
    Posts
    177

    Default

    Managed to do something of the kind myself, by simply putting a <p> before and a </p> after the following piece of code in adv_dyna_showentry_attachments template:
    Code:
    <img class="inlineimg" src="{vb:stylevar imgdir_attach}/{vb:raw attach.extension}.gif" alt="{vb:rawphrase file_type_x, {vb:raw attach.attachmentextension}}" border="0" /> <a href="attachment.php?{vb:raw session.sessionurl}attachmentid={vb:raw attach.attachmentid}&amp;d={vb:raw attach.dateline}"{vb:raw target_blank}>{vb:raw attach.filename}</a> ({vb:raw attach.convertedfilesize}, {vb:rawphrase x_views, {vb:raw attach.views}})
    Last edited by angeljs; 07-25-2012 at 10:30 AM.
    Sim Fans UK - Sims downloads and discussion

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Show thumbnail attachment and ONLY non-Sticky threads in news module
    By SteveRobWhateve in forum "How Do I..." Questions
    Replies: 1
    Last Post: 12-02-2010, 01:26 PM
  2. Show the attachment on the front page
    By Arjan in forum Module & Modification Discussion & Requests
    Replies: 0
    Last Post: 04-11-2009, 10:22 AM
  3. Unsupported operand types?
    By PhilMcKrackon in forum Troubleshooting & Problems
    Replies: 1
    Last Post: 04-01-2009, 07:45 PM
  4. Attachment
    By Merjawy in forum Troubleshooting / "How do I..." Questions
    Replies: 12
    Last Post: 07-12-2004, 06:11 PM
  5. Show More Than One Attachment
    By Intex in forum Troubleshooting / "How do I..." Questions
    Replies: 5
    Last Post: 06-17-2004, 08:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •