Thanks for the suggestion. Page was updated.

427

(115 replies, posted in Supported extensions)

Thanks for reporting! The error appeared because of misprint in the install hook. Fixed in pun_poll 1.1.4.

428

(23 replies, posted in Supported extensions)

Add your request to the extension's Wiki page, please.

429

(3 replies, posted in PunBB 1.3 discussion)

s0me0ne wrote:

Why is this happening so much? Is it because they are spam posts?

Yes, it is.

430

(6 replies, posted in PunBB 1.3 additions)

Roel Schreurs wrote:

i had have a hard time, translating the same kind of words over and over again

Het lijkt erop dat je niet begonnen bent met de language pack voor 1.2.x die ik had gemaakt. Jammer, want het grootste deel van de teksten is daarin al vertaald en met wat manipulatie had je de nieuwe resources er wel tussen kunnen krijgen...

Post deleted. Write in English, please.

431

(3 replies, posted in Discussions)

There is official pun_antispam extension for spam protection.

  • Go to "<FORUM_URL>/profile.php?section=admin&id=<user_id>"

  • Assign user to moderators group

  • Select the forums the user will moderate.

433

(115 replies, posted in Supported extensions)

Cx wrote:

I tried on a new forum and the result was the same :

The error occurred on line 94 in /mnt/137/sdc/8/9/myforum/newforum/admin/extensions.php(176) : eval()'d code

Database reported: ERROR: column "p_pun_poll_enable_read" does not exist LINE 1: SELECT 1 FROM forum_config WHERE conf_name = "p_pun_poll_ena... ^ .

It also worked like a charm on another forum (based on mysql not postgresql), which seems to confirm that it has some link with the postgresql database.

The problem and solution was described here. Fixed in pun_poll 1.1.3.

434

(115 replies, posted in Supported extensions)

The pun_poll 1.1.3 extension has been released!
Changes from previous version:

  • Fixed some bugs in the extension

  • Added poll preview

  • Polls can be unlimited now.

435

(31 replies, posted in Supported extensions)

Describe the problem in more detail way, please.

436

(3 replies, posted in PunBB 1.2 troubleshooting)

Post here the link to the site, please.

437

(23 replies, posted in Supported extensions)

Here the script for migration from user_karma to pun_karma 1.1. Other instructions are the same.

<?php

if (!defined('FORUM_ROOT'))
    define('FORUM_ROOT', './');
require FORUM_ROOT.'include/common.php';

@set_time_limit(0);

$forum_db->add_field('posts', 'karma', 'INT(10)', TRUE);

$pun_karma_query = array(
    'SELECT'    =>    'post_id, SUM(mark) AS sum_mark',
    'FROM'        =>    'pun_karma',
    'GROUP BY'    =>    'post_id'
);
$pun_karma_res = $forum_db->query_build($pun_karma_query) or error(__FILE__, __LINE__);

while ($cur_karma = $forum_db->fetch_assoc($pun_karma_res))
{
    $pun_karma_query = array(
        'UPDATE'    =>    'posts',
        'SET'        =>    'karma = '.$cur_karma['sum_mark'],
        'WHERE'        =>    'id = '.$cur_karma['post_id']
    );
    $forum_db->query_build($pun_karma_query) or error(__FILE__, __LINE__);
}

$forum_db->add_field('users', 'karma', 'INT(10)', TRUE);
$pun_karma_query = array(
    'SELECT'    =>    'poster_id, SUM(mark) AS user_karma',
    'FROM'        =>    $forum_db->prefix.'posts AS p, '.$forum_db->prefix.'pun_karma AS pk',
    'WHERE'        =>    'p.id = pk.post_id',
    'GROUP BY'    =>    'poster_id',
    'PARAMS'    =>    array(
        'NO_PREFIX'    =>    true
    )
);
$pun_karma_res = $forum_db->query_build($pun_karma_query) or error(__FILE__, __LINE__);

if ($forum_db->num_rows($pun_karma_res) > 0)
{
    while ($cur_karma = $forum_db->fetch_assoc($pun_karma_res))
    {
    $pun_karma_update_query = array(
        'UPDATE'    =>    'users',
        'SET'        =>    'karma = '.$cur_karma['user_karma'],
        'WHERE'        =>    'id = '.$cur_karma['poster_id']
       );
       $forum_db->query_build($pun_karma_update_query) or error(__FILE__, __LINE__);
    }
}

echo 'Done.';
?>
esupergood wrote:

How do you "run" the above script?

  • Copy/paste this script to the file "<FORUM_ROOT>/migration_user_karma_to_pun_karma.php"

  • Request the page "<FORUM_URL>/migration_user_karma_to_pun_karma.php"

  • Remove the file "<FORUM_ROOT>/migration_user_karma_to_pun_karma.php".

438

(10 replies, posted in PunBB 1.3 extensions)

The pun_admin_broadcast_email extension has been released.

439

(31 replies, posted in Supported extensions)

This is a release of new extension pun_admin_broadcast_email. It is first release of the extension. It is allows administrators to send e-mail messages to groups of users.
Links:

It will be great to hear your opinions and suggestions on improvement of the extension.

Is this code works for you?

function ParseMessage(string)
{
     var search_arr = new Array(/&amp;/g, /&quot;/g, /&#039;/g, /&lt;/g, /&gt;/g);
     var replace_arr = new Array('&', '"', '\'', '<', '>');
     for (var replace_num = 0; replace_num < search_arr.length; replace_num++)
         string = string.replace(search_arr[replace_num], replace_arr[replace_num]);
     string = string.replace('(Скрытый текст доступен для пользователей с определенным количеством сообщений.)', '');
     return string;
}

441

(7 replies, posted in PunBB 1.2 troubleshooting)

Consult with your hoster with this problem.

442

(2 replies, posted in PunBB 1.3 troubleshooting)

Please, provide several images that would display some forum pages.

443

(3 replies, posted in Feature requests)

anilj wrote:

what are the chances of porting that over to PunBB?

The extension should work fine on PunBB.

anilj wrote:

Any specific reason why LDAP is not yet in PunBB?

This feature will be implemented in the next release of PunBB.

444

(5 replies, posted in PunBB 1.3 discussion)

The 458 line of "<FORUM_ROOT>/include/functions.php" will look like:

if (!$forum_user['is_guest'] && $forum_config['o_additional_navlinks'] != '' && preg_match_all('#([0-9]+)\s*=\s*(.*?)\n#s', $forum_config['o_additional_navlinks']."\n", $extra_links))

445

(8 replies, posted in Discussions)

Perhaps the pun_approval extension will help you. Posts and new registrations should be approved by moderators (you can set this for separate users groups). This extension is in development now, but you can try to use it and help us to find possible bugs smile

446

(7 replies, posted in PunBB 1.2 troubleshooting)

What is your local mail program? Post settings of this program, please.

447

(2 replies, posted in Discussions)

You can use the pun_attachment extension to add images and other files to posts.

448

(2 replies, posted in PunBB 1.3 troubleshooting)

Error code 28: No space left on device. Your drive filled up and your server doesn't have enough space to complete the operation. Contact your host.

I think it will be better to modify the function "ParseMessage". It will be:

function ParseMessage(string)
{
     var search_arr = new Array(/&amp;/g, /&quot;/g, /&#039;/g, /&lt;/g, /&gt;/g);
     var replace_arr = new Array('&', '"', '\'', '<', '>');
     for (var replace_num = 0; replace_num < search_arr.length; replace_num++)
         string = string.replace(search_arr[replace_num], replace_arr[replace_num]);
     string = string.replace(/\[hide=?\].*\[\/hide\]/g, '');
     return string;
}

Report about results of this changes, please.

450

(4 replies, posted in PunBB 1.3 additions)

The link was added to the index page. Thanks for reporting.