Results 1 to 2 of 2

Thread: Inline attachments showing number

  1. #1
    Join Date
    Feb 2008

    Default Inline attachments showing number

    I have an instance of dynamics being used for Articles and in many entries I start the article off with an in-line attached image.

    Attachment 6115

    I use the Lean template for the Random module which I edited by adding:
        <div align="justify">
            {vb:raw entry.pagetext_preview}
    to get a preview of the entry.

    The problem is I get the attachment number showing at the start of the preview:

    Attachment 6116

    Is there any way to get rid of the number at the start of the preview?


  2. #2
    Join Date
    Jan 2004
    Georgia, USA


    Thank you for pointing this out. It looks like vB's functions do allow for that to be stripped out, and it should be. This will be corrected in the next release (v2.0.2), which should be available today.
    Or if you would rather apply the fix to your current version manually, just look in the fourm/includes/vba_dyna_functions_cats.php file for this line:
    PHP Code:
    $entry['pagetext_preview'] = fetch_trimmed_title(htmlspecialchars(strip_bbcode(strip_tags($entry['pagetext_preview']))), $vba_options['dyna_desclength_browse']); 
    And replace with this:
    PHP Code:
                $entry['pagetext_preview'] = strip_bbcode($entry['pagetext_preview'], falsetruetruetrue);
    $entry['pagetext_preview'] = fetch_trimmed_title(htmlspecialchars(strip_tags($entry['pagetext_preview'])), $vba_options['dyna_desclength_browse']); 
    Frequently Asked Questions
    CMPS Users Manual

    For vBadvanced software assistance, please use the support forums.
    Unsolicted PMs, IMs, and email will not be responded to.
    If you have a non-software related question or problem with your account, please submit a support ticket.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Attachments using [attach] tag not showing
    By tavenger5 in forum Bugs & Issues From v2.0.1
    Replies: 4
    Last Post: 10-25-2010, 10:28 AM
  2. Attachments not showing in-line
    By ibaker in forum Bugs & Issues From v2.0.0
    Replies: 3
    Last Post: 06-24-2010, 06:07 PM
  3. Guests showing bad number of users online
    By Masiello in forum Troubleshooting & Problems
    Replies: 1
    Last Post: 09-19-2008, 02:57 PM
  4. Support inline attachments in News
    By Kirby in forum Feedback & Suggestions
    Replies: 6
    Last Post: 02-28-2007, 11:53 PM
  5. Inline images not showing in News module
    By noah977 in forum Troubleshooting & Problems
    Replies: 3
    Last Post: 04-28-2006, 06:51 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