Create file "<FORUM_URL>/include/user/online_list.php". Place this peace of code in this file:

<?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']);
            ++$num_users;
        }
        else
            ++$num_guests;
    }

    $online_info = array();
    $online_info['guests'] = ($num_guests == 0) ? $lang_index['Guests none'] : sprintf((($num_guests == 1) ? $lang_index['Guests single'] : $lang_index['Guests plural']), forum_number_format($num_guests));
    $online_info['users'] = ($num_users == 0) ? $lang_index['Users none'] : sprintf((($num_users == 1) ? $lang_index['Users single'] : $lang_index['Users plural']), forum_number_format($num_users));

?>
<div id="brd-online" class="gen-content">
    <h3 class="hn"><span><?php printf($lang_index['Currently online'], implode($lang_index['Online stats separator'], $online_info)) ?></span></h3>
<?php if (!empty($users)): ?>
    <p><?php echo implode($lang_index['Online list separator'], $users) ?></p>
<?php endif; ?>
</div>
<?php

unset($users, $online_info, $num_guests, $num_users);
}

?>

Modify main.tpl like shown below:

<div id="brd-main">
    <!-- forum_main_title -->    
    <!-- forum_include "online_list.php" -->
    <!-- forum_crumbs_top -->
    <!-- forum_main_menu -->

And the final step for you to do is to modify the css-files for sightly displaying the list of online users. wink

1,052

(3 replies, posted in PunBB 1.3 bug reports)

Fixed in [987]

1,053

(3 replies, posted in PunBB 1.3 bug reports)

Thanks for reporting, fixed in [988]. To manually fixed this bug, just add this line to lang-array in "lang/English/admin_forums.php":

'Forum perms info 2'        =>    'This is a redirect forum. Only the "Read forum" permission is editable.',

I modified your code, now it works. Report here, if I missed something.

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE extension SYSTEM "ext-1.0.dtd">

<!--
/**
 * BBCode [center][/center] extension for PunBB forum
 * A new BBcode tag to center text.
 *
 * @author whatrevolution - http://www.honestlyillustrated.com
 * @license GPL - http://www.gnu.org/copyleft/gpl.html
 * @package pun_bbcode_center
 */
-->

<extension engine="1.0">
    <id>bbcode_center</id>
    <title>BBCode [center][/center]</title>
    <version>0.1.0</version>
    <description>A new BBcode tag to center text.</description>
    <author>whatrevolution - http://www.honestlyillustrated.com</author>
    <minversion>1.3</minversion>
    <maxtestedon>1.3.1</maxtestedon>

    <hooks>
        <hook id="ps_start"><![CDATA[

// tag handling function
function handle_center_tag($inputText) {
    return '<center>'.$inputText.'</center>';
}

        ]]></hook>

        <hook id="ps_preparse_tags_start"><![CDATA[

// add our tag to the list
$tags[] = 'center';
$tags_opened[] = 'center';
$tags_closed[] = 'center';
$tags_inline[] = 'center';
$tags_trim[] = 'center';

        ]]></hook>
        <hook id="ps_do_bbcode_replace"><![CDATA[

// add pattern to catch [center]blahblah[/center]
$pattern[] = '#\[center\](.*?)\[/center\]#se';
$replace[] = 'handle_center_tag(\'$1\')';

        ]]></hook>
    </hooks>
</extension>

1,055

(19 replies, posted in PunBB 1.3 extensions)

We would like to know your opinion regarding some questions of pun_poll development. Today, we have discussed the behavior of this extension in case of voting editing. We have had several options about what to do when a user wants to edit a question/answer or add/remove an answer:
1)  clear voting results, showing an alert, and start the voting over again. But in this case if a user finds a misprint in a voting, the voting results will be lost. So we have another option:
2) the user should contact with an administrator and the admin will fix the voting. In this case the user can only remove voting results at the edit page.

It will be interesting to hear your opinion and suggestions about this.

1,056

(27 replies, posted in News)

Yes, it is

Do have you updated your forum to 1.2.17?

What is version of your forum? First of all you need to ensure that new location is valid HTTP-URL. After that remove .php files from forum-cache directory.

I think, the features that you have described can be included in one or more extensions. Not in the Forum core. Most of the users don't need priorities and ownership to threads, for example. They need a fast and lightweight forum. Lets think here how we can group these features, this will become a base for extensions.

1,060

(3 replies, posted in PunBB 1.3 extensions)

Add an extension request at wiki

Try to enable the debug mode. Maybe some errors will be shown.

1,062

(27 replies, posted in News)

anggiawan wrote:

...there is an error in the top : Undefined index: hotfix in /home/xxxxxx/public_html/forum/include/cache.php on line 374

This error was fixed in [978]

1,063

(3 replies, posted in PunBB 1.3 bug reports)

Thanks for reporting, fixed in [967]

1,064

(6 replies, posted in PunBB 1.3 troubleshooting)

Describe what you want to do in more detail, please. Do you want to autologin a user to the forum, when that user logins to your site?

Thanks for posting, we will test sending e-mail at forum

1,066

(3 replies, posted in PunBB 1.3 discussion)

Maybe, extern.php can help you. This script is used for including different forum-information from outside. More instructions you can find in php-comments of this file.

1,067

(1 replies, posted in PunBB 1.3 discussion)

You need to do this:
1) Replace pattern as you wrote:

$text = preg_replace('#(?<=[\s\]\)])(<)?(\[)?(\()?([\'"]?)(https?|ftp|news|kommute){1}://([\w\-]+\.([\w\-]+\.)*[\w]+(:[0-9]+)?(/[^\s\[]*[^\s.,?!\[;:-])?)\4(?(3)(\)))(?(2)(\]))(?(1)(>))(?![^\s]*\[/(?:url|img)\])#ie', 'stripslashes(\'$1$2$3$4\').handle_url_tag(\'$5://$6\', \'$5://$6\', true).stripslashes(\'$4$10$11$12\')', $text);

2) In function "handle_url_tag" change condition from

if (!preg_match('#^([a-z0-9]{3,6})://#', $url))

to

if (!preg_match('#^([a-z0-9]{3,7})://#', $url))

1,068

(2 replies, posted in PunBB 1.2 troubleshooting)

On what page this error appeared? Ensure that PHP of your hosting provider support MySQLi.

1,069

(3 replies, posted in PunBB 1.3 troubleshooting)

For sending e-mail function "forum_mail" is used ("include/email.php"). If you don't use SMTP server, check result value of function mail() (Line 105 in "include/email.php").

Try to rebuild search index via admin console

I like it, but there is too much white space at http://101themag.com/forum(bottom part of page), I think

I visited your site. At the first glance, I didn't find any issues with CSS. What problem is?

As Anatoly wrote, we have an unofficial PunBB repository now. Use it! You can store your styles and extensions there. It will be more convenient to upload your style for other users, I think.

When I uploaded an avatar with jpg or gif extension, it was shown. Describe your problem in more detail.

Are you sure that you use these features correctly?