> Forums > Active Forums > Community Support > [BODYTEXT] and [BODY:XX] in What's New template
Last Post 04 Nov 2010 01:15 PM by rlively. 3 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
rlively
Customers
rlively
Post Count:36

--
04 Nov 2010 12:36 PM
    • Active Forums Version: 4.2.7
    • DotNetNuke Version: 5.5.0
    The Template for my "Active Forums What's New" module contains:

    [BODY:100]


    [BODY:XX] Replace the XX with the number of plain text characters that you would like displayed.

    To display only the first 100 characters of the post as a teaser text. This works great for all plaintext posts, but when there is an image or some formatting, the token or HTML code is displayed instead of only the post text.

    I would like to use this token to strip all formatting:

    [BODYTEXT] Removes all HTML formatting from the post.

    But I still want to limit the number of characters. Is there a way to achieve this? I tried [BODYTEXT:XX] but it doesn't work.

    In addition, the [BODYTEXT] toek doesn't appear to do what the help text states - HTML tags and tokens still appear in the text instead of only the user's content.

    See example in this screenshot:


    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7672

    --
    04 Nov 2010 12:47 PM
    What editor are you using in the forums? The BODY:XX token does remove all html before output.
    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    rlively
    Customers
    rlively
    Post Count:36

    --
    04 Nov 2010 12:53 PM
    For the styled sample I used the quick reply function and the buttons for bold, italic, and underline.

    For the attachment I clicked "Add New Topic" and then used the attachment function to create a thumbnail. The editor for the "Add New Topic" full form has no functionality for styling the text. In the forum settings "HTML Input:" is set to "Off" and the "Topic Form:" template is set to "TopicEditor" which has the [AF:INPUT:BODY] token specified. I hope that's what you were asking for - if there's another setting to check let me know.
    rlively
    Customers
    rlively
    Post Count:36

    --
    04 Nov 2010 01:15 PM
    I should also add that the full post on the Forum itself is displayed properly with the HTML formatting and tokens replaced with image thumbnails and the like. It's only the "What's New" module that exhibits these problems.
    You are not authorized to post a reply.
    > Forums > Active Forums > Community Support > [BODYTEXT] and [BODY:XX] in What's New template
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy