1,026

(4 replies, posted in Discussions)

In PunBB 1.2 it's not working properly, I will check it,  in 1.3 it working well

1,027

(2 replies, posted in PunBB 1.2 troubleshooting)

Make sure that your PHP is support short tags (<? ?>). Check up file php.ini: short_open_tag should be on.

1,028

(12 replies, posted in PunBB 1.3 discussion)

Try:add this after 330 line of extern.php:

include FORUM_ROOT.'include/parser.php';

Than add this code after 335 line of extern.php:

if ($forum_config['o_smilies'] == '1')
    $cur_post['message'] = do_smilies($cur_post['message']);
if ($forum_config['p_message_bbcode'] == '1')
    $cur_post['message'] = do_bbcode($cur_post['message']);

Is there is what you want? Maybe it will be needed to add link to css-file to function "output_rss"

1,029

(3 replies, posted in PunBB 1.2 discussion)

Maybe it would be better to highlight important threads? List of threads are created at "viewforum.php" on lines 143-190

1,030

(6 replies, posted in PunBB 1.3 discussion)

No, there is no features, that you have described, in core. It can be an extension.

1,031

(8 replies, posted in PunBB 1.3 troubleshooting)

No, it's not. There is no special tools to change code from 1.2 to 1.3

1,032

(8 replies, posted in PunBB 1.3 troubleshooting)

forum_htmlspecialchars -> forum_htmlencode. Look at forum pages which functions is used now

1,033

(8 replies, posted in PunBB 1.3 troubleshooting)

In vars and function prefix "pun_" should be replaced with "forum_"

Read this http://punbb.informer.com/forums/help/img/

1,035

(8 replies, posted in PunBB 1.3 troubleshooting)

You should modify your code. For example

  • Replace PUN_ROOT constant with FORUM_ROOT

  • $pun_user should be $forum_user

  • $db it's $forum_db now

  • PUN_ADMIN should be FORUM_ADMIN

And some others vars and functions should be replace.

Extensions don't use 'o_additional_navlinks' key in config table, but they can use the same method as for generating additional navlinks to add link to correct place at navbar.

Garciat wrote:

The PM link is added to the sub-navbar in a rather strange way...

Agree with you, we will discussed it.

KeyDog wrote:

If I had PM installed. How would I get an image navpm.png to show ?

If all installed extensions will use method like this in 'fn_generate_navlinks_end' hook:

array_insert($links, 'pm', '<li id="navextra"><a href="pm_link">pm_link</a></li>');

you can check up for navlinks of installed extension with this code:

if (isset($links['pm']))    

Also you need to change priority for your 'fn_generate_navlinks_end' hook.

1,037

(19 replies, posted in PunBB 1.3 extensions)

No, it is not. I think it will be finished at the next week.

1,038

(6 replies, posted in PunBB 1.3 discussion)

Add an extension request, please. Describe more exactly what features you want to have.

1,039

(5 replies, posted in PunBB 1.3 discussion)

We will upgrade extension pun_karma for 1.3.2

This script will show only online users:

<?php
require_once FORUM_ROOT.'lang/'.$forum_user['language'].'/index.php';

if ($forum_config['o_users_online'] == '1')
{
    // Fetch users online info and generate strings for output
    $query_online = array(
        'SELECT'    => 'o.user_id, o.ident',
        'FROM'        => 'online AS o',
        'WHERE'        => 'o.idle=0',
        'ORDER BY'    => 'o.ident'
    );

    $result_online = $forum_db->query_build($query_online) or error(__FILE__, __LINE__);
    $num_guests = $num_users = 0;
    $users = array();

    while ($forum_user_online = $forum_db->fetch_assoc($result_online))
    {
        if ($forum_user_online['user_id'] > 1)
        {
            $users[] = ($forum_user['g_view_users'] == '1') ? '<a href="'.forum_link($forum_url['user'], $forum_user_online['user_id']).'">'.forum_htmlencode($forum_user_online['ident']).'</a>' : forum_htmlencode($forum_user_online['ident']);
            
        }
    }

    if (!empty($users))
    {

    ?>
    <div id="brd-online" class="gen-content">
        <p><?php echo implode($lang_index['Online list separator'], $users) ?></p>

    </div>
    <?php

    unset($users);
    
    }
}
?>

There is function "cookie_login" in "<FORUM_ROOT>/include/functions.php", not "check_cookie"

1,042

(3 replies, posted in PunBB 1.3 discussion)

No, they can't. We think that use of method, like in phpBB, is not secure. It is easy to substitute UserAgent-value in HTML-request

That error mean that your database encoding is LATIN1, not UTF-8. You need to change it.

This problem was discussed here

1,045

(9 replies, posted in PunBB 1.3 troubleshooting)

If some users choose a style that you want to delete you should update the table <DB_PREFIX>_users with this SQL:
UPDATE <DB_PREFIX>_users
SET style = 'Oxygen'
WHERE style = '<Another Style>'
Then remove the style from the "style" directory.

No, it is not. Just interesting what changes do you want to do? Maybe, there is other way to do what you needed

1,047

(9 replies, posted in PunBB 1.3 discussion)

You should read this:

Hi, I think this will be work (after ps_do_bbcode_replace hook):

$pattern[] = '#\[hr\]#i';
$replace[] = '</p><hr/><p>';

1,049

(6 replies, posted in PunBB 1.3 troubleshooting)

Check out cookie values after setting it with script, that you have posted above (domain and path)

No, it wouldn't. <hr /> tags not displayed at the page because of css:

.brd br, .brd hr, .brd .hr, .brd .hidden {
    display: none;
    }