301

(9 replies, posted in PunBB 1.2 troubleshooting)

I would change edit.php to offer the checkbox and not update the edited time, then you won't need to change viewtopic.php.

See also: Edit Grace Period

YtseJam wrote:

6. I can't seem to get the time correctly... It's really off!

Did you set both the server timezone and the timezone in your profile?

303

(1 replies, posted in PunBB 1.2 troubleshooting)

Comment out this section in index.php

    if ($cur_forum['moderators'] != '')
    {
        $mods_array = unserialize($cur_forum['moderators']);
        $moderators = array();

        while (list($mod_username, $mod_id) = @each($mods_array))
            $moderators[] = '<a href="profile.php?id='.$mod_id.'">'.pun_htmlspecialchars($mod_username).'</a>';

        $moderators = "\t\t\t\t\t\t\t\t".'<p><em>('.$lang_common['Moderated by'].'</em> '.implode(', ', $moderators).')</p>'."\n";
    }

304

(114 replies, posted in Programming)

Are there any Windows editors that can easily validate PHP code?

305

(45 replies, posted in News)

greatcan, look at this page: http://punbb.org/download/hdiff/hdiff-1 … .2.13.html

You just need to add the first set of blue lines and change the first set of green lines.

306

(45 replies, posted in News)

savasweb wrote:

1.2.12  to 1.2.13  code changes ?

Rickard linked to them in the first post.

Edit: The changes are also linked in the downloads page.

matt54311 wrote:

And if i get the admin password from the db, is there a way i can decode it?

No. However, you could encrypt a new password yourself and put that value in the db.

308

(2 replies, posted in PunBB 1.2 troubleshooting)

Open include/parser.php and find the arrays `$pattern` and `$replace` inside the `do_bbcode` function; You'll need to add an item to each of these arrays.

Find?

'#\[color=([a-zA-Z]*|\#?[0-9a-fA-F]{6})](.*?)\[/color\]#s');

?replace with:

'#\[color=([a-zA-Z]*|\#?[0-9a-fA-F]{6})](.*?)\[/color\]#s',
'#\[verse\](.*?)\[/verse\]#');

Find?

'<span style="color: $1">$2</span>');

?replace with:

'<span style="color: $1">$2</span>',
'<a href="http://www.biblegateway.com/passage/?search=$1&version=60">$1</a>');

309

(8 replies, posted in PunBB 1.2 discussion)

Find this in viewtopic.php?

        if ($pun_user['g_id'] < PUN_GUEST)
        {
            $user_info[] = '<dd>IP: <a href="moderate.php?get_host='.$cur_post['id'].'">'.$cur_post['poster_ip'].'</a>';

            if ($cur_post['admin_note'] != '')
                $user_info[] = '<dd>'.$lang_topic['Note'].': <strong>'.pun_htmlspecialchars($cur_post['admin_note']).'</strong>';
        }

?and replace it with something like this:

        if ($pun_user['g_id'] == PUN_ADMIN) // mod
            $user_info[] = '<dd>IP: <a href="moderate.php?get_host='.$cur_post['id'].'">'.$cur_post['poster_ip'].'</a>';
        if ($pun_user['g_id'] < PUN_GUEST && $cur_post['admin_note'] != '')
            $user_info[] = '<dd>'.$lang_topic['Note'].': <strong>'.pun_htmlspecialchars($cur_post['admin_note']).'</strong>';

310

(11 replies, posted in PunBB 1.2 bug reports)

Heh? Read better next time, elbekko. wink

Wikipedia wrote:

No apostrophe is used in the following possessive pronouns and adjectives: yours, his, hers, ours, its, theirs, and whose.

311

(11 replies, posted in PunBB 1.2 bug reports)

*checks a dictionary* ? No, Kevin is right.

312

(6 replies, posted in PunBB 1.2 discussion)

hcgtv wrote:

Maybe a column in the User list denoting group_id status?

I just edited the `get_title` function that userlist.php uses to include something like this:

    else if ($user['g_id'] == '' || $user['g_id'] == PUN_UNVERIFIED)
        $user_title = 'Unverified';

Try something like this: Edit Grace Period

Jansson wrote:

But modifications require a GPL licensed software to run, therefor he have to release them as GPL as well. This also goes for future extensions.

What if, hypothetically, I made my own software that was (technically) compatible with (but in no way derived from) PunBB's extension system, and that extensions worked as intended with either software. Where would the the deriving/modification/including-of-code occur in the actual extension file?

Would extensions be a derivative work?

316

(15 replies, posted in General discussion)

I know someone who has used the method that Dr. Jeckly mentioned, and they had excellent results. However, we did occasionally have people ask why they couldn't post (legitimate) links.

317

(5 replies, posted in Feature requests)

Why would you have to? Sounds more like a mod request. wink

318

(5 replies, posted in Feature requests)

What do you mean by flag? An icon?

This is what I've been using: Unordered List BBCode

<menu> isn't valid XHTML, nor is the <li> when it isn't closed.

321

(11 replies, posted in Feature requests)

Neo, extensions aside, do you really expect this to be an added feature. Where do you stop? I've edited the bbcode and generate_navlinks functions, should I put those in a different file? And what about this? and that? and another thing?

[This glyph didn't display right.]

322

(11 replies, posted in Feature requests)

Why not seperate your smiley array into a different file, and then have the parser include that file?

Look in "include/functions.php" for the function `generate_navlinks`.

If you want to add your own links there, check out the "Additional menu items" area in the admin options.

Code blocks?

Edit:

foo    123
bar    456

I don't think so; That could be a security issue.