17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1250 Views |
-
Forum pages messing up

2 October 2008 at 6:32pm Last edited: 2 October 2008 6:33pm
For some reason, on my "Forum" posts, the HolderAbstract shows the html code, instead of what the html code does. Example, "<p>" becomes "<p>".
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 wrongI 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.HTMLAny ideas?
-
Re: Forum pages messing up

3 October 2008 at 6:07pm
Try the latest version on dailybuild.silverstripe.com I thought I fixed this issue a couple weeks ago
-
Re: Forum pages messing up

4 October 2008 at 12:26pm Last edited: 4 October 2008 12:44pm
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.
| 1250 Views | ||
|
Page:
1
|
Go to Top |


