Results 1 to 12 of 12

Thread: Attachements display in newsbit

  1. #1

    Default Attachements display in newsbit

    Not sure if this is a bug but attachement don't display correctly
    there is no linebreak between two attachements

    how can I fix this?

  2. #2
    Join Date
    Aug 2006
    Posts
    1

    Default Re: Attachements display in newsbit

    I have a similar problem... I'd like tu show my attach exactly as in the post order (like image, title and text), but I can see just a link to the image "Attach 3790".

    Any help for us?

  3. #3

    Default Re: Attachements display in newsbit

    Anyone investigating the matter?

  4. #4
    Join Date
    Jan 2004
    Posts
    3,185

    Default Re: Attachements display in newsbit

    It hasn't even been 12 hours, so now, However I believe that this is currently slightly a vBulletin issue. I'll need to have Brian investgate.
    Zachery
    I may or may not do things.

  5. #5

    Default Re: Attachements display in newsbit

    I am ok to take any fix even if that requires php files editing.

  6. #6

    Default Re: Attachements display in newsbit

    seems like this one is a pain in the ass :/

  7. #7

    Default Re: Attachements display in newsbit

    sorry for double post but....
    it seems a very important bug to me
    is a fix planned for next release?

  8. #8
    Join Date
    Jan 2004
    Posts
    3,185

    Default Re: Attachements display in newsbit

    Its not a bug so much, its a feature working as its designed too.
    Zachery
    I may or may not do things.

  9. #9

    Default Re: Attachements display in newsbit

    Lies! :P

    they aren't supposed to show like that


    there should be a linebreak between attachement
    obviously a bug
    Last edited by Cobra SA; 09-30-2006 at 07:41 AM.

  10. #10
    Join Date
    Jan 2004
    Posts
    3,185

    Default Re: Attachements display in newsbit

    Sorry, I totally thought you were asking about something else.

    I'll see if I can get this fixed.
    Zachery
    I may or may not do things.

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

    Default Re: Attachements display in newsbit

    Thanks for pointing this out. If you'll look in your modules/news.php file for this code:
    PHP Code:
    $news['attachment'] .= '<img class="inlineimg" src="' $stylevar['imgdir_attach'] . '/' $attachment['attachmentextension'] . '.gif" alt="' construct_phrase($vbphrase['file_type_x'], $attachment['attachmentextension']) . '" width="16" height="16" border="0" style="vertical-align:baseline" /> <a href="' $vbulletin->options['bburl'] . '/attachment.php?' $session['sessionurl'] . 'attachmentid=' $attachment['attachmentid'] . '">' $attachment['filename'] . '</a> (' vb_number_format($attachment['filesize'], 1true) . ', ' construct_phrase($vbphrase['x_views'], $attachment['counter']) . ')'
    Replace with this:
    PHP Code:
    $news['attachment'] .= '<div><img class="inlineimg" src="' $stylevar['imgdir_attach'] . '/' $attachment['attachmentextension'] . '.gif" alt="' construct_phrase($vbphrase['file_type_x'], $attachment['attachmentextension']) . '" width="16" height="16" border="0" style="vertical-align:baseline" /> <a href="' $vbulletin->options['bburl'] . '/attachment.php?' $session['sessionurl'] . 'attachmentid=' $attachment['attachmentid'] . '">' $attachment['filename'] . '</a> (' vb_number_format($attachment['filesize'], 1true) . ', ' construct_phrase($vbphrase['x_views'], $attachment['counter']) . ')</div>'
    And that should take care of the problem.

  12. #12

    Default Re: Attachements display in newsbit

    Worked like a charm
    Thanks Brian and Zach
    You rock!!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. More then one newsbit?
    By rayden in forum Troubleshooting / "How do I..." Questions
    Replies: 2
    Last Post: 03-29-2005, 09:53 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
  •