As is usually the case with forums attached to a main site, the forum is kept seperate in either a folder (yourdomain.com/forums) or a sub-domain (forums.yourdomain.com).

With the Expression Engine Discussion Forum Module, it’s easy to display your most recent topics in one of your main website templates. This is a snippet of the code I’ve used to display and link through to the top 5 most recent forum threads:

<ul>
{exp:forum:topic_titles orderby="post_date" sort="desc" limit="5"}
<li>
<h3><a href="{auto_thread_path}">{title}</a></h3>
<p>{topic_date format="%d/%m/%Y %h:%i %a"}</p>
</li>
{/exp:forum:topic_titles}
</ul>

You can find a list of the parameters and variables you can use with the {exp:forum:topic_titles} tag in the ExpressionEngine User Guide > Displaying Recent Forum Topics.

  1. meteoracle posted this