Speechless wrote:Well for now when are trying to get rickard to do the obvious things.
-change the last post from being a time to title.
I agree, that would be nice.
However, it can very easily be done yourself. I did it on some of my boards, it's even too small to call it a mod.
First, open index.php and go to line 42:
$result = $db->query('SELECT c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.forum_desc, f.redirect_url, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster FROM '.$db->prefix.'categories AS c INNER JOIN '.$db->prefix.'forums AS f ON c.id=f.cat_id LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE fp.read_forum IS NULL OR fp.read_forum=1 ORDER BY c.disp_position, c.id, f.disp_position', true) or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error());
Change this to
$result = $db->query('SELECT c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.forum_desc, f.redirect_url, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster, t.subject FROM '.$db->prefix.'categories AS c INNER JOIN '.$db->prefix.'forums AS f ON c.id=f.cat_id
LEFT JOIN '.$db->prefix.'posts as p on p.id=f.last_post_id LEFT JOIN '.$db->prefix.'topics as t on p.topic_id=t.id
LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE fp.read_forum IS NULL OR fp.read_forum=1 ORDER BY c.disp_position, c.id, f.disp_position', true) or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error());
Now find this around line 109
// If there is a last_post/last_poster.
if ($cur_forum['last_post'] != '')
$last_post = '<a href="viewtopic.php?pid='.$cur_forum['last_post_id'].'#p'.$cur_forum['last_post_id'].'">'.format_time($cur_forum['last_post']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_forum['last_poster']).'</span>';
and change it to:
if ($cur_forum['last_post'] != '')
$last_post = '<a href="viewtopic.tbi?pid='.$cur_forum['last_post_id'].'#p'.$cur_forum['last_post_id'].'" style="font-weight:bold">'.$cur_forum['subject'].'</a><br />'.
$lang_common['by'].' '.pun_htmlspecialchars($cur_forum['last_poster']).'<br />
<a href="viewtopic.tbi?pid='.$cur_forum['last_post_id'].'#p'.$cur_forum['last_post_id'].'">'.format_time($cur_forum['last_post']).'</a> <span class="byuser">';
This will show you both the subject and the date.
Speechless wrote:-add more language pack in the actual download, including french, spanish, german, and chinese
I asked Rickard for that and he said (and he is most probably right there) that once you do that everybody wants his/her/its language to be included. The multi-language download system will do it more efficiently: http://punbb.org/forums/viewtopic.php?id=8957
Speechless wrote:-convert the pm mod into an actual feature.
What I love about PunBB is that it does not fall for everybody wanting his favourite mod to become a feature
No offense meant, but f.e. I see no use for a PM at all, never did and never used it anywhere. So I really appreciate a board *without* it ....
I don't mean to start a discussion on how useful a PM is, it's just an example.
The German PunBB Site:
PunBB-forum.de