This line is the best place for the function call. If you use some kind of e-mail server emulators, e-mail letters should placed in some tmp directory.

477

(118 replies, posted in Supported extensions)

Do any errors appear after uploading the files? Describe in more detail way, please.

478

(56 replies, posted in PunBB 1.3 extensions)

Have you tried to directly run the script which generates the image? You can do this by copying the uri of the image. Perhaps, there are some errors there.

The pun_antispam extension was installed a week ago with the improvements suggested by StevenBullen in this topic.

It is better to use forum's Web interface for correction and deletion of posts/topics. User's post count is not updated upon removing the user's posts.

Get only one row for certain forum from the channel and output it.
Perhaps, I don't understand the problem. Please, write in more detail what problem is.

If you want just to update url to the forum, change the $base_url variable in the file "<FORUM_ROOT>/config.php".

After what actions did this error appear? Maybe, you installed some mods or changed something in the DB?

alias wrote:

1 - post url  ... maybe 'f.redirect_url'? to send the link by mail

This code generates link to the edited post:

viewtopic.php?pid=<?php echo $id.'#p'.$id ?>">
alias wrote:

username that change the post ... maybe $pun_user['username']?

Yes, it is. All information about user stored in the $pun_user variable.

alias wrote:

How can i add another function on "submit" event?

Message send php, not JavaScript, you don't need to add some other events. After post updating to send message you need to use PunBB function pun_mail($to, $subject, $message, $from = '').

Here is the short plan of extension.
Installation.
You should add new column to the table "forums". The code will look like:

<install><![CDATA[
     $forum_db->add_field('forums', 'consult_url', 'VARCHAR(200)', true);
]]></install>

Viewforum page.
You need to get consult_url of forum. The best place to do it - hook "vf_qr_get_forum_info". The code of extensions will look like:

        
<hook id="vt_qr_get_topic_info"><![CDATA[
      $query['SELECT'] .= ', f.consult_url';
]]></hook>

The consult_url stored in $cur_forum['consult_url'] now.
For output link you can use hook "vf_pre_topic_loop_start".
Forums page. Study out the code of "<FORUM_ROOT>/admin/forums.php" (lines 251-400). You can find here how to update forums parameters. If you have some questions, we will help you smile

486

(12 replies, posted in PunBB 1.3 extensions)

New version of pun_repository was released. The mechanism of extension updating was improved. This is the description of problem.

487

(56 replies, posted in PunBB 1.3 extensions)

Casemon wrote:

No word on re-captcha support?

Our site uses re-captcha more than once for various infos, and mixing solutions is not preferred.

Re-captcha is very popular and works well... why no PunBB plugin support?

It is planned for the next versions of the extension. But I can't say when exactly re-captcha support will be added.

488

(3 replies, posted in Discussions)

I don't think so. There are also other forums which are not directly related to PunBB. Should we remove them too?

489

(23 replies, posted in Supported extensions)

TwincamSam wrote:

Great...we were awaiting this release for quite a while.

Works perfectly.

Can i replace the + and - Karma buttons with images?

It is planned in the next pun_karma release.

esupergood wrote:

I've had this in use for many many months. is this a new version or something?

It is the first official release of extension. I suppose you use the extension "user_karma". It was the base for pun_karma. The major changes from user_karma:

  • Table "user_karma" was renamed to "pun_karma"

  • Added a new field "karma" to table "posts"

  • Added SEF-support

  • Added posibility to disable the down mark to posts

  • Added posibility to set the number of minutes users have to wait before voting for a post (two options for down and up mark)

  • Added protection from CSRF attacks.

If you want to migrate to pun_karma extension, do the following:

  • Make a backup of table "<DB_PREFIX>user_karma"

  • Disable the extension "user_karma"

  • Rename the "user_karma" table to "pun_karma"

  • Run this script:

<?php

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

$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__);
}

echo 'Done.';

?>

490

(55 replies, posted in Feature requests)

First of all you should check:

  • The option "Show smilies as graphic icons" should be enabled in user profile

  • The option "Convert smilies to small icons in posts" should be enabled on the page "<FORUM_URL>/admin/settings.php?section=features".

491

(56 replies, posted in PunBB 1.3 extensions)

The new version of pun_antispam 1.3.1 has been released. Changes from previous version:

  • Allow setting restrictions for adding url of users.

492

(4 replies, posted in PunBB 1.3 extensions)

pun_karma extension was released.

493

(19 replies, posted in PunBB 1.3 extensions)

The extension was updated to the latest punbb version.

494

(23 replies, posted in Supported extensions)

Here is description of the extension.
Download links:

Or you can download pun_karma with help of pun_repository extension.
Feel free to report any bugs.

495

(22 replies, posted in Discussions)

I think 3 posts are enough to detect spam.

StevenBullen wrote:

Plus the website info for users needs to have the same restriction. Because if you check latest users since turning the 'pun_antispam' on they all add a website link instead of going for the signature. Spam is so annoying!

It will be implemented in a few days. Thanks for the suggestion.

496

(3 replies, posted in PunBB 1.3 troubleshooting)

StevenBullen wrote:

It would probably help if the download page was updated with the 1.3.4 files...

Sorry for this, fixed.

StevenBullen wrote:

Note to people in charge: I posted three days ago about this but no one replied or even fixed the problem.

Who is in charge of PunBB?? and DO NOT say informer. I want the person who makes decisions.

Perhaps, I have missed your post.

497

(30 replies, posted in News)

StevenBullen wrote:

If you check out the download page it does not mention 1.3.4 only 1.3.3, you might want to fix that.

Thanks for reporting, fixed.

Benny wrote:

Kind of confuzed.
There is no option to change Ecodeing on the forum files?
i have to take the change on the database tables?!

No, there is no special option for this. All files and DB should b in UTF-8.

Bor wrote:

Ik ben er weer aan begonnen. Sorry dat er zo lang tussen heeft gezeten...

Deleted. Post in English, please.

Perhaps, you banned yourself by IP-address.

  • Open the file "<FORUM_ROOT>/cache/cache_bans.php"

  • Find the corresponding record in the ban list and edit it

  • Than login to your forum, and edit the ban via the administration console.