Results 1 to 4 of 4

Thread: Found a bug regarding attachments and the news module.

  1. #1
    Join Date
    Feb 2004
    Posts
    5

    Default Found a bug regarding attachments and the news module.

    I had a memember today tell me that they could not download one of the attachments on the board (a doc file). After investigating I found a typo in the adv_portal_newsbits_attach_inline template.

    This part in that template looked fishy..
    Code:
    <a href="$vbulletin->options[bburl]/attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]">$attachment[filename]</a>
    I checked out the template used for the thunbmails and the statement used to show the thumbnails was different, so I changed the inline one to match since thumnails worked fine. Voila, my problem was fixed.

    Code:
    <a href="$vboptions[bburl]/attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]">$attachment[filename]</a>
    Just thought I'd let others know, incase someone else has the same problem.

  2. #2
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: Found a bug regarding attachments and the news module.

    Thank you for pointing this out. The attachment stuff was originally just printed within the news.php file, so it looks like I forgot to change that variable when I moved it from the file into a template. I'll be sure that's corrected with the next release.

  3. #3
    Join Date
    Nov 2006
    Posts
    13

    Default Re: Found a bug regarding attachments and the news module.

    Had the same problem, the fix posted solved this but my VBA shows that adv_portal_newsbits_attach_inline template is uncached.

    Anyone found the samething ?
    quantnet.org - Financial Engineering Online Community
    http://www.quantnet.org

  4. #4
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: Found a bug regarding attachments and the news module.

    That should have been added to the 'Templates Used' section for that module when you upgraded. If it wasn't, just edit the module, add it to the list, and that should take care of the problem.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Attachments in news module
    By zand in forum Bugs From 3.0 RC1
    Replies: 4
    Last Post: 05-23-2007, 07:11 PM
  2. News Attachments
    By ConqSoft in forum Bugs From 2.0.0
    Replies: 6
    Last Post: 05-08-2006, 10:51 PM
  3. News Attachments: Only 1 thumbnail
    By Frankenberrie in forum Troubleshooting / "How do I..." Questions
    Replies: 4
    Last Post: 05-08-2006, 09:36 PM
  4. News attachments
    By glorify in forum Troubleshooting & Problems
    Replies: 2
    Last Post: 12-19-2005, 11:13 PM

Posting Permissions

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