Replacing
header.php, line 176

$gen_elements['<!-- forum_announcement -->'] = ($forum_config['o_announcement'] == '1' && $forum_user['g_read_board'] == '1') ? '<div id="brd-announcement" class="gen-content">'.($forum_config['o_announcement_heading'] != '' ? "\n\t".'<h1 class="hn"><span>'.$forum_config['o_announcement_heading'].'</span></h1>' : '')."\n\t".'<div class="content">'.$forum_config['o_announcement_message'].'</div>'."\n".'</div>'."\n" : '';

With

$gen_elements['<!-- forum_announcement -->'] = ($forum_config['o_announcement'] == '1' && $forum_user['g_read_board'] == '1' && $forum_user['username'] == 'Anonymous') ? '<div id="brd-announcement" class="gen-content">'.($forum_config['o_announcement_heading'] != '' ? "\n\t".'<h1 class="hn"><span>'.$forum_config['o_announcement_heading'].'</span></h1>' : '')."\n\t".'<div class="content">'.$forum_config['o_announcement_message'].'</div>'."\n".'</div>'."\n" : '';

Should work  smile

227

(14 replies, posted in PunBB 1.3 extensions)

@noodles Fixed

@SuperMAG Link fixed

229

(1 replies, posted in Feature requests)

I know that this topic is 2 months old, but I think this is quite common task so here's solution:

header('Content-type: text/html; charset=utf-8');

if (!defined('FORUM_ROOT'))
    define('FORUM_ROOT', './');
 
require FORUM_ROOT.'include/common.php';

$query = array(
    'SELECT'    => 'u.id, u.username, u.num_posts',
    'FROM'        => 'users AS u',
    'ORDER BY'    => 'u.num_posts DESC',
    'LIMIT'        => '10',
);

$result = $forum_db->query_build($query) or error(__FILE__, __LINE__);

echo "<ol>\n\n";
while($user = $forum_db->fetch_assoc($result)) {
    echo "<li>";
     echo "<a href='".forum_link($forum_url['user'], $user['id'])."'>";
      echo $user['username'];
     echo "</a>";
     echo " - ".$user['num_posts'];
    echo "</li>\n";
}
echo "\n</ol>";

230

(14 replies, posted in PunBB 1.3 extensions)

No, you can't ignore some user with that.
The difference between ban and silence is that with Silence you can read topics, send PMs, change your profile info etc. but with ban you can't.

231

(14 replies, posted in PunBB 1.3 extensions)

I was considering that, but I don't think that giving these sanctions is (and should) be so often for need to putting it into posts. But if I have time I might try doing it and we can decide then  wink

Info:
This extension allows you to 'silence' any user for X days (he can't reply in topics or start a new one).

Preview:
> Silenced: http://img340.imageshack.us/img340/7631/silence.png
> Admin: http://img442.imageshack.us/img442/4047/silenceadmin.png

Download:

v1.0 .zip

Suggestions / language corrections welcomed  wink

The database Query asks for last X topics, which can be seen by the user, so I guess it should work for sub forums as well (but I haven't tried this mod, maybe could you give me a link for it and I'll check if it works correctly).

$query = array(
    'SELECT'    => 't.id, t.poster, t.subject, t.posted, t.first_post_id, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to',
    'FROM'        => 'topics AS t',
    'JOINS'        => array(
        array(
            'LEFT JOIN'        => 'forum_perms AS fp',
            'ON'            => '(fp.forum_id=t.forum_id AND fp.group_id='.$forum_user['g_id'].')'
        )
    ),
    'WHERE'        => '(fp.read_forum IS NULL OR fp.read_forum=1) AND t.moved_to IS NULL',
    'ORDER BY'    => 't.last_post DESC',
    'LIMIT'        => $forum_config['p_active_topics']
);

I've fixed lang directory where I'd had wrongly named file. It should work fine, now. And well, because I have this extension for few days on my own forum and it's working correctly I changed version to 1.0.0 (removed Beta).

Enjoy

235

(32 replies, posted in PunBB 1.3 extensions)

chovy: Yup, just released (beta). Check this topic

Info:
This extension shows last X (you can set it Administration -> Settings -> Active topics shown) topics on forum index page.

Preview:
Here (at the bottom) wink

Download:
v1.1 .zip

237

(28 replies, posted in PunBB 1.3 additions)

Copper style isn't bad, but I've got question - will it be used as a default style (instead of Oxygen)? Oxygen looks really clean and simple, as PunBB IMO should be. Copper style has bigger fonts, which is good for some (usually older) people because of sight, but what's the first thing you do when you visit the forum? You look for new posts, and Copper style makes that harder for you, because you can see less forums (which means you have to scroll down...).

Don't take me wrong, Copper style looks good (I especially enjoy that navbar at top - that looks cool), but it's style only for some purposes (when I do forum for my parents I'll definitely use Copper style).

238

(18 replies, posted in Feature requests)

No answer? sad

239

(18 replies, posted in Feature requests)

Hi, I just wanted to ask how's the migration tool going. Thank you for answer.