Forums
-
- Forum
- Posts
-
- Installation
- 28,380
- Troubleshooting
- 62,269
- Themes
- 10,391
- Plugins
- 15,313
- Requests & Feedback
- 14,924
- Showcase
- 3,252
-
And you can just keep making it fancier and fancier.
Let’s say you want to also show how many posts each topic has.
echo "<li><a href='/forums/topic.php?id=".$result->topic_id."'>".$result->topic_title."</a> (".$result->topic_posts." posts)</li>";
or how old the last reply is
echo "<li><a href='/forums/topic.php?id=".$result->topic_id."'>".$result->topic_title."</a> (".human_time_diff(strtotime($result->topic_time." GMT"))." ago)</li>";