After what actions did this problem appear?

302

(8 replies, posted in PunBB 1.3 troubleshooting)

What changes did you make to integrate the PunBB forum in your site?

You can see how content hiding is implemented in these extensions and write your own extension for your needs.
http://punbb.informer.com/forums/topic/ … or-guests/
http://punbb.informer.com/forums/topic/ … dden-code/

304

(7 replies, posted in PunBB 1.3 discussion)

It can be implemented as an extension. You can create it yourself, it is not so hard. We will be glad to help you if you will have some questions.

mixart wrote:

My question is, does 1.3 still user mostly the same function names, user table names, routine names, and still reference $pun_user[] for all the user vars?

Nearly all functions and global variables have been renamed. Now the prefix "forum_" is used for names instead of "pun_". These two articles explain the Forum's constants and global variables.

This code will send notifications about new post. Add this code after the line 208 in <FORUM_ROOT>/post.php. Replace the <LANGUAGE> and <EMAIL> parameters with those you need. I haven't tested this code myself, there may be some errors.

$mail_tpl_full = trim(file_get_contents(PUN_ROOT.'lang/'.<LANGUAGE>.'/mail_templates/new_reply_full.tpl'));
$first_crlf = strpos($mail_tpl_full, "\n");
$mail_subject_full = trim(substr($mail_tpl_full, 8, $first_crlf-8));
$mail_message_full = trim(substr($mail_tpl_full, $first_crlf));

$mail_subject_full = str_replace('<topic_subject>', '\''.$cur_posting['subject'].'\'', $mail_subject_full);
$mail_message_full = str_replace('<topic_subject>', '\''.$cur_posting['subject'].'\'', $mail_message_full);
$mail_message_full = str_replace('<replier>', $username, $mail_message_full);
$mail_message_full = str_replace('<message>', $message, $mail_message_full);
$mail_message_full = str_replace('<post_url>', $pun_config['o_base_url'].'/viewtopic.php?pid='.$new_pid.'#p'.$new_pid, $mail_message_full);
$mail_message_full = str_replace('<board_mailer>', $pun_config['o_board_title'].' '.$lang_common['Mailer'], $mail_message_full);

pun_mail(<EMAIL>, $mail_subject_full, $mail_message_full);

Here  is the description of link prefetching. And this code block such requests.

308

(2 replies, posted in PunBB 1.2 discussion)

This function will not work correct with UTF-8.

309

(5 replies, posted in Discussions)

If you are talking about Forum internal links, they are generated based on the 'o_base_url' config parameter. It is stored in the "config" table. So you don't need to modify any url except this.
If you are talking about links in posts, then yes, you need to write a script which will modify all the links in the posts. But I think it will be easier to store two post messages for one post id - the original message and the updated message - where urls have already been modified.

You need to edit the file "<FORUM_ROOT>/include/template/main.tpl". Add your HTML code in this file.

Have you tried to search such mod at punres.org?

Are you sure that language pack placed in the "lang" folder and it is valid?

313

(7 replies, posted in PunBB 1.3 discussion)

This plugin is for PunBB 1.2.

314

(3 replies, posted in PunBB 1.3 additions)

esupergood wrote:

I'd like to do this also.
I know how to do a file include but it doesn't work when I try to include a php file into my main.tpl file.  Is that where I'm going wrong?

Have you tried to use "<!-- forum_include "*" -->" in the template, as it described here?

315

(3 replies, posted in PunBB 1.3 additions)

This feature may be implemented as an extension.

316

(5 replies, posted in Discussions)

The sqlite database is stored in a single file on a host. It should be enough just to back up your database on the default server and revert the backup on another server. Perhaps, this article will be useful for you, despite it is about sqlite3.

317

(8 replies, posted in PunBB 1.3 troubleshooting)

I registered at your forum, same problem for me. Have you any extensions installed, except official extensions?

This topic should help you.

Add an extension request with a more detailed description of the extension, please.

320

(3 replies, posted in PunBB 1.3 additions)

You can use extern.php file for this. Or you can adapt one of these examples for your needs.

321

(8 replies, posted in PunBB 1.3 troubleshooting)

Could you give the link to your Forum, please?

322

(7 replies, posted in PunBB 1.3 discussion)

maxh wrote:

How can I merge two users in PunBB 1.3? I've seen the user merge admin plugin, but it says to install it in the plugins folder, which doesn't exist. I tried manually creating a plugins folder and putting it there, but it didn't seem to work.

What plugin have you tried to use?

This language key can't be used in extensions until a new release in the PunBB 1.3 branch.

  • Find this user via the administration console on the page <FORUM_URL>/admin/users.php

  • Select the user from the list, and press the "Change group" button

  • Change the user's group.

325

(5 replies, posted in Discussions)

Do you want to use one merged DB for these forums? Provide more details, please.