Gossamer Forum
Quote Reply
post_message problem
I'm trying to customize the threaded view template to display all the threads below the threaded listing (like DCForum does) but the post_message values are returning SCALAR(0x5a4de74) etc instead of the messages. How can I fix this? All of the other post_whatever values work fine.


Realiiity.com Forums
Quote Reply
Re: [ajvsm] post_message problem In reply to
Can you attach the template here? Or if you would rather not post it publically, mail it to me: http://jason@gossamer-threads.com

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [jagerman] post_message problem In reply to
I emailed you the whole template since it's a little long to post here. Basically I just added the following bit to the post_view_threaded template after the thread_display include:

Code:
<%if threads%>
<p>
<%loop threads%>

<% if first%>
<% nextloop%>
<% endif%>
<%body_table%>
<tr>
<td width="<%post_depth * 15%>">&nbsp;</td><td>
<%body_font%>
<% if last%>
<a name="last"></a>
<% endif%>
<% include include_post_display.html%>
<br>
<%/body_font%>
</td>
</tr>
<%/body_table%>

<%endloop%>
<%endif%>


Realiiity.com Forums
Quote Reply
Re: [ajvsm] post_message problem In reply to
Okay, I've isolated the problem (it's a GForum problem, your template works).

Somewhere around lines 344/345 there are two lines like this:

Code:
GForum::Post::normalize($post_loop);
GForum::Post::attachments($post_loop);

(Search for '$post_loop' in the file if you can't find it)

They shouldn't be there - take them out, and everything works well. You should be able to use FileMan to make the change (Admin -> Tools -> FileMan)

GForum 1.1.0 will have this fixed.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [jagerman] post_message problem In reply to
Thanks so much! To clarify for anyone else who might be interested, the changes were in View.pm


Realiiity.com Forums