1

(16 replies, posted in Feature requests)

Nope - the calculations depend on GMT (a constant) and provision of the user's difference to GMT (specified in profile).

2

(16 replies, posted in Feature requests)

Yes, I *think* it would help. Try reading the manual (http://uk2.php.net/date + http://uk2.php.net/gmdate), especially the bit about "I".

3

(16 replies, posted in Feature requests)

<?php 
$timezone=5; 
$summer=$timezone+3600*date("I"); 
echo gmdate("D, j M Y H:i:s", time() + $summer);
?>

$timezone is difference to GMT.  I *think* that works, but not tested.

Well, better to have something in meta description than nothing IMHO.  Also, this isn't just about SEO - the meta description is often used by SEs for the description in search results.

Board title order: fair point re. bookmarking.  I guess this comes down to personal preference, and I'd rather keep search engines happy than people who bookmark individual threads.

If "Newest registered user" is allowed for indexing then the SEs will index each user profile and then not be able to access the page (by following links from the website) once it's no longer the newest.  Depending on the SE, the 'orphan' page would eventually be dropped from the index.  Besides, I can't think of any benefit in having user profiles indexed, and indexing pages without keyword-rich content is a no-no for SEO.

Hi Rickard,

There's only 'rel="nofollow"' to attach to <a href="...">...<a/> - there isn't 'rel="follow"' AFAIK.  For just a few bytes code added to markup you stop spiders indexing unnecessary content (SEO benefit).  Meta tags don't allow quite the same level of control.  You could use the '110%' method and use both, although unnecessary IMHO.

I've been watching SVN - looking forward to 1.3 smile.

P.S.  Big fan of the PunBB coding / usability / feature set. big_smile

Connorhd wrote:

out of interest, who uses meta description?

Everyone that matters - Google, MSN, Yahoo, etc.

Connorhd wrote:

its better with noindex, follow cos then links are followed, those pages you said would not be indexed as they also contain the noindex tag

OK, I didn't spot the noindex on the pages I gave as example.  Still, my argument stands - 'rel="nofollow"' is a better solution and nofollow is better because the bot doesn't need to visit 'forgotten password', etc. to discover it shouldn't index it!

meta keywords - probably not used, but why take the chance? wink
meta description - definitely used, definitely important

Ah, I hadn't spotted the meta ROBOTS.  It should probably be added to 'user list' as well.  Although meta ROBOTS achieves a similar result, 'rel="nofollow"' is better because the bot doesn't need to load the page to know it shouldn't be indexed.  Also, meta ROBOTS should use 'noindex,nofollow', otherwise (e.g.) 'not registered yet' and 'forgotten password' would be indexed even though the login page is not.

Yeah, I knew 1.3 is adding clean URLs.  Looking forward to that.

[First post - excellent script, Rickard, Paul + anyone else responsible smile]

Surprised to see no meta tags in default install - pretty essential for SEO.

I'm working on my first PunBB and started on SEO for it:

* header.php, after

<title><?php echo $page_title ?></title>

add

<meta name="description" content="<?php echo $page_title ?>." />
<meta name="keywords" content="keyword1 keyword2 <?php echo $page_title ?>" />

It's not a 'perfect' solution but at least gets keywords in the right place.  One improvement would be to output "description" with $page_title and a few characters from opening post (if viewtopic).

* to prevent indexing of unnecessary content, includes/functions.php add 'rel="nofollow"':

    if ($pun_config['o_rules'] == '1')
        $links[] = '<li id="navrules"><a href="misc.php?action=rules" rel="nofollow">'.$lang_common['Rules'].'</a>';

    if ($pun_user['is_guest'])
    {
        if ($pun_user['g_search'] == '1')
            $links[] = '<li id="navsearch"><a href="search.php" rel="nofollow">'.$lang_common['Search'].'</a>';

        $links[] = '<li id="navregister"><a href="register.php" rel="nofollow">'.$lang_common['Register'].'</a>';
        $links[] = '<li id="navlogin"><a href="login.php" rel="nofollow">'.$lang_common['Login'].'</a>';

* to prevent indexing of unnecessary content, index.php add 'rel="nofollow"':

                <dd><?php echo $lang_index['Newest user'] ?>: <a href="profile.php?id=<?php echo $stats['last_user']['id'] ?>" rel="nofollow"><?php echo pun_htmlspecialchars($stats['last_user']['username']) ?></a></dd>

* to prevent indexing of unnecessary content, footer.php add 'rel="nofollow"':

        if ($pun_user['g_search'] == '1')
        {
            echo "\n\t\t\t".'<dl id="searchlinks" class="conl">'."\n\t\t\t\t".'<dt><strong>'.$lang_common['Search links'].'</strong></dt><dd><a href="search.php?action=show_24h" rel="nofollow">'.$lang_common['Show recent posts'].'</a></dd>'."\n";
            echo "\t\t\t\t".'<dd><a href="search.php?action=show_unanswered" rel="nofollow">'.$lang_common['Show unanswered posts'].'</a></dd>'."\n\t\t\t".'</dl>'."\n";
        }

* move 'board title' to end of <title> in viewforum.php and viewtopic.php (keywords in title should be placed first for SEO + I think it's nicer for users):
viewforum.php:

$page_title = pun_htmlspecialchars($cur_forum['forum_name'].' - '.$pun_config['o_board_title']);

viewtopic.php:

$page_title = pun_htmlspecialchars($cur_topic['subject'].' - '.$pun_config['o_board_title']);

All we need now are clean URLs! big_smile