Oh, yea and after the function is called in the templates, the return values is used like this:
<tr>
<td class="ftablecol"><%if post_post_replies%>
<img src="/images/forum/with_replies.gif" width="13" height="15" border="0"
align="absmiddle" alt="With Replies">
<%else%>
<img src="/images/forum/no_replies.gif" width="13" height="15" border="0"
align="absmiddle" alt="No Replies">
<%endif%>
</td>
<td class="ftablecol"><a href="/cgi-bin/forum/gforum.cgi?post=<%post_post_id%>;page=unread#unread">
<%short_post_post_subject%></a></td>
<td class="ftablecol" align="center" style="border-right:0px"><%post_post_replies%></td>
</tr>
<%~endloop%>
Sacrifice is not about what you lose,
it is about what you gain in the process.
Code:
<%loop posts_loop%> <tr>
<td class="ftablecol"><%if post_post_replies%>
<img src="/images/forum/with_replies.gif" width="13" height="15" border="0"
align="absmiddle" alt="With Replies">
<%else%>
<img src="/images/forum/no_replies.gif" width="13" height="15" border="0"
align="absmiddle" alt="No Replies">
<%endif%>
</td>
<td class="ftablecol"><a href="/cgi-bin/forum/gforum.cgi?post=<%post_post_id%>;page=unread#unread">
<%short_post_post_subject%></a></td>
<td class="ftablecol" align="center" style="border-right:0px"><%post_post_replies%></td>
</tr>
<%~endloop%>
Sacrifice is not about what you lose,
it is about what you gain in the process.