51

(9 replies, posted in PunBB 1.2 discussion)

I'm up to date now; Thanks.

I've actually been meaning to ask what people would think about that idea.

Edit: ... because it can be annoying to edit a post (or post a new reply, etc.) and then be redirected to a page where the topic id is not readily available.

53

(9 replies, posted in PunBB 1.2 discussion)

On the command line? I've been having problems with this myself:

$ svn checkout 'http://punbb.org/svn/punbb/branches/punbb-1.3-dev'
svn: PROPFIND request failed on '/'
svn: PROPFIND of '/': 200 OK (http://punbb.org)

Edit: svn, version 1.4.4 (r25188)

A SHA1 hash could still be useful...

55

(2 replies, posted in PunBB 1.2 troubleshooting)

http://punbb.org/forums/viewtopic.php?id=2295

`pun_include` looks for files in /include/user/.

http://punbb.org/docs/faq.html#faq3_4

57

(13 replies, posted in General discussion)

I don't know of any either...

http://www.punres.org/viewtopic.php?id=3015

Jérémie wrote:

Beside, most of the user of other markup language or typographic helper (Textile, Markdown, etc.) already have a board under BBcode that will need conversion of some kind.

Someone could make a conversion extension.

Just out of curiosity... Has there been any consideration of making PunBB's BBCode implementation into an extension for 1.3 (and still using it by default)?

60

(10 replies, posted in General discussion)

sirena wrote:

But isn't it just based on the same Gecko engine as Firefox?

WebKit is based on KHTML.

WebKit.org wrote:

WebKit is an open source web browser engine. WebKit is also the name of the Mac OS X system framework version of the engine that's used by Safari, Dashboard, Mail, and many other OS X applications. WebKit's HTML and JavaScript code began as a branch of the KHTML and KJS libraries from KDE.

Thanks Smartys. smile

62

(13 replies, posted in PunBB 1.2 discussion)

http://dev.punbb.org/timeline
http://dev.punbb.org/report/6

Change the [filename] from AP_Whatever.php to AMP_Whatever.php.

64

(114 replies, posted in Programming)

guardian34 wrote:

TextMate on OS X.

PunBB TextMate Bundle

wii wrote:

The title says it all

The forums are listed in a table, but I'll assume you're talking about the board info.

Open index.php and find:

// Collect some statistics from the database
$result = $db->query('SELECT COUNT(id)-1 FROM '.$db->prefix.'users') or error('Unable to fetch total user count', __FILE__, __LINE__, $db->error());
$stats['total_users'] = $db->result($result);

$result = $db->query('SELECT id, username FROM '.$db->prefix.'users ORDER BY registered DESC LIMIT 1') or error('Unable to fetch newest registered user', __FILE__, __LINE__, $db->error());
$stats['last_user'] = $db->fetch_assoc($result);

$result = $db->query('SELECT SUM(num_topics), SUM(num_posts) FROM '.$db->prefix.'forums') or error('Unable to fetch topic/post count', __FILE__, __LINE__, $db->error());
list($stats['total_topics'], $stats['total_posts']) = $db->fetch_row($result);

?>
<div id="brdstats" class="block">
    <h2><span><?php echo $lang_index['Board info'] ?></span></h2>
    <div class="box">
        <div class="inbox">
            <dl class="conr">
                <dt><strong><?php echo $lang_index['Board stats'] ?></strong></dt>
                <dd><?php echo $lang_index['No of users'].': <strong>'. $stats['total_users'] ?></strong></dd>
                <dd><?php echo $lang_index['No of topics'].': <strong>'.$stats['total_topics'] ?></strong></dd>
                <dd><?php echo $lang_index['No of posts'].': <strong>'.$stats['total_posts'] ?></strong></dd>
            </dl>
            <dl class="conl">
                <dt><strong><?php echo $lang_index['User info'] ?></strong></dt>
                <dd><?php echo $lang_index['Newest user'] ?>: <a href="profile.php?id=<?php echo $stats['last_user']['id'] ?>"><?php echo pun_htmlspecialchars($stats['last_user']['username']) ?></a></dd>
<?php

if ($pun_config['o_users_online'] == '1')
{
    // Fetch users online info and generate strings for output
    $num_guests = 0;
    $users = array();
    $result = $db->query('SELECT user_id, ident FROM '.$db->prefix.'online WHERE idle=0 ORDER BY ident', true) or error('Unable to fetch online list', __FILE__, __LINE__, $db->error());

    while ($pun_user_online = $db->fetch_assoc($result))
    {
        if ($pun_user_online['user_id'] > 1)
            $users[] = "\n\t\t\t\t".'<dd><a href="profile.php?id='.$pun_user_online['user_id'].'">'.pun_htmlspecialchars($pun_user_online['ident']).'</a>';
        else
            ++$num_guests;
    }

    $num_users = count($users);
    echo "\t\t\t\t".'<dd>'. $lang_index['Users online'].': <strong>'.$num_users.'</strong></dd>'."\n\t\t\t\t".'<dd>'.$lang_index['Guests online'].': <strong>'.$num_guests.'</strong></dd>'."\n\t\t\t".'</dl>'."\n";


    if ($num_users > 0)
        echo "\t\t\t".'<dl id="onlinelist" class= "clearb">'."\n\t\t\t\t".'<dt><strong>'.$lang_index['Online'].': </strong></dt>'."\t\t\t\t".implode(',</dd> ', $users).'</dd>'."\n\t\t\t".'</dl>'."\n";
    else
        echo "\t\t\t".'<div class="clearer"></div>'."\n";

}
else
    echo "\t\t".'</dl>'."\n\t\t\t".'<div class="clearer"></div>'."\n";


?>
        </div>
    </div>
</div>

Delete it or comment it all out.

Edit: This probably belongs in Modifications.

66

(2 replies, posted in PunBB 1.2 modifications, plugins and integrations)

intimidat0r wrote:

I guess this should be moved to the bug reports section?

Modifications, because that's what this is.

67

(3 replies, posted in PunBB 1.2 troubleshooting)

intimidat0r wrote:

Also, when I read people's posts, it still takes about 20 minutes for the icon next to the forum to change from blue to gray. Is this normal?

Yes; "new" posts are determined by the time of your last visit.

68

(4 replies, posted in General discussion)

*looks for a large trout*

Edit: http://dev.punbb.org/report/3

I don't use it myself, but I've heard that CSSEdit is a good one for Mac OS X.

70

(2 replies, posted in PunBB 1.2 bug reports)

There appear to be six non-localized messages in current 1.3-dev [961] and two non-localized messages in 1.2.15 (excluding the admin files).

The other line in 1.2.15 is profile.php:543 (that line also exists in 1.3-dev).

Smartys wrote:

Yes. The extension system for 1.3 aims to address these issues wink

http://blog.punbb.org/2007/02/14/mods-extensions/ smile

Subscribe to the PunBB Newsletter to receive notification of updates and other important events regarding PunBB.

http://punbb.org/newsletter.php

73

(3 replies, posted in General discussion)

http://dev.punbb.org/changeset/960

Rickard wrote:

www is so 1998.

That made me laugh. big_smile

74

(4 replies, posted in PunBB 1.2 discussion)

PunBB forum index wrote:

Bug reports
Find a bug? Report it here. Note: Report security related bugs here.

75

(7 replies, posted in Feature requests)

You might have to skip the width/height check (unless it works for Flash).

            // Now check the width/height
            list($width, $height, $type,) = getimagesize($pun_config['o_avatars_dir'].'/'.$id.'.tmp');