Disable others extensions and try to upload archive with extension again, please.

You can replace query at lines 68-83 of "<FORUM_ROOT>/index.php" with this one.

453

(5 replies, posted in Programming)

The line

        $AmountArray[$field]=ereg_replace(' ','',$AmountArray[$field]);

will be:

        $AmountArray[$field]=str_replace(' ','',$AmountArray[$field]);

Here is the descriptions of explode and str_replace functions.

454

(3 replies, posted in Feature requests)

Now there is no extension for LDAP support in PunBB. But you can use this extension, which was developed by a FluxBB user.

Study the code of the function "do_bbcode" in the file "<FORUM_ROOT>/include/parser.php". This function replaces bbcode tags with HTML tags

456

(23 replies, posted in Supported extensions)

The new version of pun_karma 1.1 has been released.
Changes from previous version:

  • Added icons instead of +, -, X characters

  • Added calculating of users karma.

In the current version of PunBB there are no links to categories. But it is a nice idea, and we will implement it in future releases of PunBB.
You can create a page with categories by yourself. It will not so hard. As a base for this page you can get the file "<FORUM_ROOT>index.php". To get forums of some specific category you can use this query:

// Print the categories and forums
$query = array(
    'SELECT'    => 'c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.forum_desc, f.redirect_url, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster',
    'FROM'        => 'categories AS c',
    'JOINS'        => array(
        array(
            'INNER JOIN'    => 'forums AS f',
            'ON'            => 'c.id=f.cat_id'
        ),
        array(
            'LEFT JOIN'        => 'forum_perms AS fp',
            'ON'            => '(fp.forum_id=f.id AND fp.group_id='.$forum_user['g_id'].')'
        )
    ),
    'WHERE'        => 'fp.read_forum IS NULL OR fp.read_forum=1 AND c.id = '.$cat_id,
    'ORDER BY'    => 'c.disp_position, c.id, f.disp_position'
);

$cat_id in this peace of code is the category id.

458

(118 replies, posted in Supported extensions)

seikou wrote:

There was no error, just can't open the file after downloading sad

Is uploaded file attached to the post?

459

(55 replies, posted in Supported extensions)

The new version of pun_tags 1.4 has been released.
To get it, you can use pun_repository or visit the download page.
Changes from previous version:

  • Added page where an administrator could see all tags and edit them.

decola wrote:

I have just realised there is this hook call in the forum_setcookie:
fn_forum_setcookie_start

I can use that without even hacking the code. Am I right?
Hooks are so beautiful! smile

Yes, you are right. The hook will look like:

<hook id="fn_forum_setcookie_start"><![CDATA[
      global $forum_config;
      $time_threshold = time() + $forum_config['o_timeout_visit'];
      if ( ($expire >=  $time_threshold-3) && $expire <=  $time_threshold+3 ) // 3 secs of safety net
         $expire = 0;
    // Enable sending of a P3P header
    header('P3P: CP="CUR ADM"');

    if (version_compare(PHP_VERSION, '5.2.0', '>='))
        setcookie($name, $value, $expire, $cookie_path, $cookie_domain, $cookie_secure, true);
    else
        setcookie($name, $value, $expire, $cookie_path.'; HttpOnly', $cookie_domain, $cookie_secure);
    return TRUE;
]]></hook>

461

(5 replies, posted in Programming)

Try to debug the function "ShipUpdate" with help of var_dump function or some debug tools for PHP.

gplans wrote:

How can one add links  to be seen by signed-in users only?

The place where navlinks are generated is the function "generate_navlinks" (lines 413-469 of "<FORUM_ROOT>/include/functions.php").
This peace of code is used to determine whether the user is authorized or not

if (!$forum_user['is_guest'])
{
   //Your code here
}

463

(2 replies, posted in PunBB 1.3 troubleshooting)

piorun wrote:

I mean, the posts are not saved as unread when user will logout. This is very annoying. It is possible to fix that?

All unread posts stored in the cookie now and when user logout all unread messages erased.

piorun wrote:

Maybe there is any extension to save unread posts id in db?

There is now such extension now, add an extension request to Wiki, please.

464

(2 replies, posted in Discussions)

And read this article.

To hide Quick Post form it will be enough this code:

<hook id="vt_quickpost_end"><![CDATA[
$tpl_main = str_replace('<!-- forum_qpost -->', '', $tpl_main);
]]></hook>

466

(2 replies, posted in PunBB 1.3 extensions)

What is the version of pun_bbcode extension?

If I understand you correctly, you want to show certain categories depending on user's language in the profile?

What browser are you using? Check this in the browser options.

You don't need to edit the function "forum_setcookie". You need to find where this function is called in the core and set the expiry time to 0 (the files "<FORUM_ROOT>/include/functions.php", "<FORUM_ROOT>login.php", "<FORUM_ROOT>profile.php", "<FORUM_ROOT>register.php").

470

(3 replies, posted in PunBB 1.3 discussion)

This post was removed after the e-mail had been sent to you.

Thanks for the idea. We will think how to do this in the best way.

pun_antispam extension use CAPTCHAs.

473

(2 replies, posted in Feature requests)

More details, please.

474

(19 replies, posted in News)

I sent you a pm.

Go to "<FORUM_URL>/admin/settings.php?section=features" and enable "Put the PM Inbox link into the main navigation menu" option wink