Forums
-
- Forum
- Posts
-
- Installation
- 28,499
- Troubleshooting
- 62,628
- Themes
- 10,432
- Plugins
- 15,360
- Requests & Feedback
- 14,971
- Showcase
- 3,257
-
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>";