501

(22 replies, posted in Discussions)

The extension was installed smile

502

(56 replies, posted in PunBB 1.3 extensions)

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

  • Now uses Securimage (phpcaptcha.org)

  • Allow setting restrictions for adding signatures of users.

There is no special API for this. In the file "<FORUM_ROOT>/include/functions.php" there is a function "add_topic", which adds new topics to a DB. The first argument of this function is an array with information about the new topic. You can see an example of adding a new topic in the file "<FORUM_ROOT>/post.php" (lines 221-237).

504

(2 replies, posted in PunBB 1.2 troubleshooting)

The patch is used for applying changes if you have an SVN version of the forum.

P.S.: PunBB 1.2.22 was released. It is strongly recommended to use it instead of PunBB 1.2.21.

505

(2 replies, posted in PunBB 1.3 additions)

There is no such functionality now. The feature you want to have can be implemented as an extension. Add an extension request to the Wiki and, perhaps, some of our members will implement it for you. Or create the extension by yourself. wink

The redirection page is generated in the function "redirect" of the file "<FORUM_ROOT>/include/functions.php". This template "<FORUM_ROOT>include/template/redirect.tpl" is used for this page.

507

(22 replies, posted in Discussions)

This feature was added to the pun_antispam extension. We are testing it now, and we are planning to install this extension on our forums today.

This happens because of this lines in your "profile.php" (lines 39-41):

// mod: no guest view
if ($pun_user['is_guest'])
    message($lang_common['No permission']);

This piece of code means that guests have no access to profile.

509

(151 replies, posted in PunBB 1.3 extensions)

Leroy wrote:

Is there any full list for hooks?

No, there is not full list of the hooks.

Leroy wrote:

I'm searching a hook for modifying '<div class="main-head">'.

Describe in more details, what you want to have, please.

Add an extension request, please. Perhaps, some of our community members will create it.

There is no such extension for PunBB 1.3. But you can create it yourself. It is not so hard. This mod for PunBB 1.2 should be a good example for you, I think.

Just copy the style directory from the archive with PunBB. smile

Could you send me an backup of your DB, please? (slava@informer.com)

514

(1 replies, posted in PunBB 1.3 troubleshooting)

There is no converter phpBB 2 -> punbb 1.3. But you can convert your phpBB forum to punbb 1.2, and upgrade punbb 1.2 to punbb 1.3 following these instructions.

This post should help you.

Did you reinstall pun_bbcode extension after updating manifest.xml?

517

(4 replies, posted in PunBB 1.3 additions)

Try this peace of code:

<a href="/forum/login.php?action=out&id=<?= $forum_user['id']?>&csrf_token=<?= generate_form_token('logout'.$forum_user['id']) ?>">Logout</a>

518

(22 replies, posted in Discussions)

Some kind of check is necessary. The spam protection can be implemented like an extension.

StevenBullen wrote:

Maybe you should make it so that a user must have one single post before he can add signature.

Got it.
Also we need some kind of checking for posts: for hidden links (via tag "color"), etc.
Signatures of users with no posts were cleared.

519

(2 replies, posted in PunBB 1.3 bug reports)

I think it will be enough to edit rewrite rules for this SEF-scheme. Thanks for reporting, we will fix this error.

520

(5 replies, posted in PunBB 1.3 troubleshooting)

Pun_poll is in development now. Try latest SVN-version of the extension.

Thanks for reporting. Fixed in [1291].

522

(5 replies, posted in PunBB 1.3 troubleshooting)

What is the version of extension?

523

(3 replies, posted in PunBB 1.3 troubleshooting)

if (!$forum_user['is_guest'])
{
    global $base_url;
    $links['rscd'] = '<li '.((FORUM_PAGE == 'PAGE_NAME') ? ' class="isactive"' : '').'><a href="'.$base_url.'/profile.php?section=rscd&id='.$forum_user['id'].'">PAGE_NAME</a></li>';
}

This is a draft of the code which will add a new link to the menu. Place it after the 455 line of <FORUM_ROOT>/include/functions.php. PAGE_NAME is the name of the new page.

524

(30 replies, posted in PunBB 1.2 troubleshooting)

Describe your problem in more detail, please. What order of links do you want to have?

tomasz wrote:

I don't know how to check size of the database online but I'll try to check that...

'You can view some server information (including the DB size) on this page: <FORUM_URL>/admin_index.php.