Add this to the current BBCode arrays:

// find
'#\[\[([^\[]*?)\]\]#e',

// replace
'handle_url_tag(\'http://en.wikipedia.org/wiki/\'.str_replace(" ", "_", \'$1\'), \'$1\')',

PunBB prefers to use SHA1 for passwords, is that an option?

Not sure what that warning is about (it's coming from inside the `error` function).

As for the actual error, you'll need to repost the error after you turn on debug mode.

204

(12 replies, posted in Feature requests)

http://dev.punbb.org/browser/branches/p … extern.php

I think you can open register.php, find this?

        $mail_message = 'User \''.$username.'\' registered in the forums at '.$pun_config['o_base_url']."\n\n".'User profile: '.$pun_config['o_base_url'].'/profile.php?id='.$new_uid."\n\n".'-- '."\n".'Forum Mailer'."\n".'(Do not reply to this message)';

?and replace it with this:

        $mail_message = 'User \''.$username.'\' registered in the forums at '.$pun_config['o_base_url']."\n\n".'User profile: '.$pun_config['o_base_url'].'/profile.php?id='.$new_uid."\n\n".'User IP Address: '.get_remote_address()."\n\n".'-- '."\n".'Forum Mailer'."\n".'(Do not reply to this message)';

206

(11 replies, posted in Feature requests)

reviewum.com wrote:

I'm a huge fan of punBB and have it running on a lot of sites.  The only frustration is when there is an update to punBB I've got to go through the upgrade process for every single forum.

I would look for a way to automate this on your end.

Thanks for the correction; How about t.last_poster?

    if(!$pun_user['is_guest'] && $pun_config['o_subscriptions'] == 1)
    {
        $result_subscriptions = $db->query('SELECT COUNT(t.id) FROM '.$db->prefix.'topics AS t INNER JOIN '.$db->prefix.'subscriptions AS s ON (t.id=s.topic_id AND s.user_id='.$pun_user['id'].') INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_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) AND t.last_post>'.$pun_user['last_visit'].' AND t.last_poster<>'.$db->escape($pun_user['username'])) or error('Unable to fetch topic list', __FILE__, __LINE__, $db->error());

        if ($db->result($result_subscriptions, 0))
            $tpl_temp .= "\n\t\t\t\t".'<li><strong><a href="'.PUN_ROOT.'search.php?action=show_subscriptions">There are replies to subscribed topics</a></strong></li>';
    }

208

(20 replies, posted in PunBB 1.2 troubleshooting)

AlenNS wrote:

readme.txt ? readme-upgrade.txt

Which file did you use? You only use the upgrade one if you're upgrading from an older version of that mod.

I would look at the php files you uploaded to include/pms. If they start with (just) this?

<?

?then you probably need to change it to this:

<?php

Doesn't "new posts since last visit" work the same way? wink

Edit: Added something to the above code.

Edit: Moved edited code further down.

What about adding something like this to header.php?

Edit: Edited script posted further down.

211

(49 replies, posted in PunBB 1.2 discussion)

They're not taking bugs on 1.3 yet, because it's not ready for such testing.

212

(10 replies, posted in PunBB 1.2 troubleshooting)

teenagegluesniffer wrote:

I'm asking how it's encrypted, and how to incorporate the decrypt/encrypt it into my new profiles because I can currently only acquire the encrypted password.

So, you want to add password-changing functionality to this new profile page you're creating?

213

(15 replies, posted in Programming)

Try removing the clearer div after the breadcrumb links.

Edit: Any clearers besides the one above the footer?

214

(38 replies, posted in PunBB 1.2 discussion)

Rickard wrote:

Correct. We'll have at least PM, "Easy BBCode" and attachments. I'd like to get polls out as well, but it's not a priority. The plan it so have extensions that in some way affect most scripts so that these extensions can be used as "inspiration" for other extensions. After all, we should know how to write them properly smile

I was hoping to hear something to that effect.

Jérémie wrote:

Split&Merge threads, and user multigroups belonging aren't upper on the queue than PM and attachments?

I've been checking out some "split&merge" abilities via a plugin; It's on my list of extension ideas too. (So it multi-groups, but that's still a bit beyond me. tongue)

215

(38 replies, posted in PunBB 1.2 discussion)

Sonrep wrote:

Rickard just added a few hooks to the source code. That's great news for PunBB!

big_smile

Version 1.3 will allow multiple moderator groups?

How about backporting that functionality to 1.2?

218

(6 replies, posted in General discussion)

Burnsy86 wrote:

I should have been more clear, I just want them to enter a password, not have to create their own username and password.

You can still do that with PHP. Your web server might have additional methods that you can use (e.g. using a `.htaccess` file with Apache).

Define "very top."

http://punbb.org/forums/help.php#bbcode

Code blocks, please.

222

(1 replies, posted in PunBB 1.2 bug reports)

Those divs are closing the opening divs on the last forum.

                            <div class="conl">
                                <p><strong>Miscellaneous</strong></p>
                                <div class="rbox">
                                    <label><input type="checkbox" name="moderator_in[16]" value="1" />Whatever<br /></label>

                                    <label><input type="checkbox" name="moderator_in[17]" value="1" />Whatever<br /></label>

                                    <label><input type="checkbox" name="moderator_in[3]" value="1" />Whatever<br /></label>
                                </div>
                            </div>
                            <br class="clearb" /><input type="submit" name="update_forums" value="Update forums" />

223

(4 replies, posted in PunBB 1.2 discussion)

It could, but what file would you be calling it from?

224

(8 replies, posted in Feature requests)

guardian34 wrote:

Well, I know where to find the right `if` statement if I want it. smile

Just in case someone doesn't know? Look at how admin_users.php currently does it:

$user_title = get_title($user_data);

// This script is a special case in that we want to display "Not verified" for non-verified users
if (($user_data['g_id'] == '' || $user_data['g_id'] == PUN_UNVERIFIED) && $user_title != $lang_common['Banned'])
    $user_title = '<span class="warntext">Not verified</span>';

225

(8 replies, posted in Feature requests)

Well, I know where to find the right `if` statement if I want it. smile