UseBB Community

UseBB support, discussion and development

Show topic list

Moderators: Gaia.

Post Reply

Page: 1

Author Post
Member
Registered: Oct 2009
Posts: 7
I want to make a new location on my site. It as a wiget but it shows the latest topics present. I found {topic_name} (variable). I think it is used. I think so. But I do not know how

<?php
if ( !defined('INCLUDED') )
exit();
$templates['header'] = '
<table class="maintable">
<tr>
<th class="icon"></th>
<th>{l_Forum}</th>
<th>{l_Topic}</th>
<th class="count">{l_Replies}</th>
<th class="count">{l_Views}</th>
<th class="lastpostinfo">{l_LatestPost}</th>
</tr>
';
$templates['topic'] = '
<tr>
<td class="icon"><img src="{img_dir}{topic_icon}" alt="{topic_status}" /></td>
<td class="atforum">{forum}</td>
<td><div class="topicname">{topic_name}</div><div class="topicpagelinks">{topic_page_links}</div><div class="author">&mdash; {author}</div></td>
<td class="count">{replies}</td>
<td class="count">{views}</td>
<td class="lastpostinfo">{by_author} <a href="{last_post_url}">&gt;&gt;</a><div>{on_date}</div></td>
</tr>
';

$templates['footer'] = '
</table>
';

?>


For example, I want the latest topic about 25 posts on forums today, only the headlines and click on the link when I do?
Or I want the 25 random topic in the entire forum I do?

I expected to do a sidebar to make it
Developer
Registered: Apr 2004
Posts: 2230
Location: Belgium
Duplicate thread: http://www.usebb.net/community/topic-2382.html

Please do not post multiple topics for the same question.

Post Reply

Page: 1

UseBB Community is powered by UseBB 1 Forum Software