Login | Forgot password | Register

X

What is OpenID?

OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.

With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.

For more information visit the official OpenID site.

Jump to:

17478 Posts in 4473 Topics by 1972 members

Archive

SilverStripe Forums » Archive » Forum pages messing up

Our old forums are still available as a read-only archive.

Page: 1
Go to End
Author Topic: Forum pages messing up 746 Views
  • grilldan
    avatar
    Community Member
    135 posts

    Forum pages messing up Link to this post

    For some reason, on my "Forum" posts, the HolderAbstract shows the html code, instead of what the html code does. Example, "<p>" becomes "&lt;p&gt;".

    It should show up like (it shows up correctly on pages where there aren't posts):

    If this is your first visit, you will need to register before you can post. However, you can browse all messages below.

    It is showing up as:

    <p>If this is your first visit, you will need to <a href="ForumMemberProfile/register" title="Click here to register">register</a> before you can post. However, you can browse all messages below.</p>

    Forum <-- shows up correct
    ---Forum 1 <-- shows up correct
    ------Topic 1 <-- shows up wrong
    ------Topic 2 <-- shows up wrong

    I have tried changing how they are stored in the database from Text, to varchar, and htmltext.

    I have also tried changing ForumHeader.ss on line 29.

    <% if Abstract %>$Abstract<% else %>$Content<% end_if %>


    I tried: $Abstract.RAW, $Content.RAW, $Abstract.HTML, $Content.HTML

    Any ideas?

  • Willr
    avatar
    Moderator
    2727 posts

    Re: Forum pages messing up Link to this post

    Try the latest version on dailybuild.silverstripe.com I thought I fixed this issue a couple weeks ago

  • grilldan
    avatar
    Community Member
    135 posts

    Re: Forum pages messing up Link to this post

    Could you tell me (or point me in the right direction) the changes you made to fix it? I am using a heavily modified version of the forum, and I would hate to have to redo the modifications.

    In the mean time, I will download the daily build, and see if I can figure it out.

    **update**

    forum.php
    line 1504
    change function to:

       function getAbstract() {
          $abstract = DataObject::get_one("ForumHolder")->HolderAbstract;
          $output = new HTMLText('Abstract');
          $output->setValue($abstract);
          return $output;
       }

    Works awesome Thank you.

    746 Views
Page: 1
Go to Top

Currently Online: Motoma, Kiran, lise, Mohammed, steve_nyhof, Thomas B. Nielsen

Welcome to our latest member: jhstripe

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.