Nique, that`s coool ext. Thanks!

May be we can test it?

or:

//                          \|/
//                         (0 0)
//=[ knyshow ]========oo0===(_)===0oo====================
// не нужен нам список модераторов разделов
//
//        if ($cur_forum['moderators'] != '')
//        {
//            $forum_page['mods_array'] = unserialize($cur_forum['moderators']);
//            $forum_page['item_mods'] = array();
//
//            foreach ($forum_page['mods_array'] as $mod_username => $mod_id)
//                $forum_page['item_mods'][] = ($forum_user['g_view_users'] == '1') ? '<a href="'.forum_link($forum_url['user'], $mod_id).'">'.forum_htmlencode($mod_username).'</a>' : forum_htmlencode($mod_username);
//
//            ($hook = get_hook('in_row_modify_modlist')) ? eval($hook) : null;
//
//            $forum_page['item_subject']['modlist'] = '<span class="modlist">('.sprintf($lang_index['Moderated by'], implode(', ', $forum_page['item_mods'])).')</span>';
//        }
//=======================================================

in index.php

3

(27 replies, posted in PunBB 1.3 extensions)

Sium, simple... THANKS!!! big_smile

4

(6 replies, posted in PunBB show off)

faax, its will be a great work and I like this theme! tongue
pepak, +1
the background or text should be darker

slickplaid, any beta version? tongue

6

(27 replies, posted in PunBB 1.3 extensions)

Can I delete text "Click here to see full size image" from result thumbnail?

No.

So bad sad

7

(170 replies, posted in PunBB 1.3 extensions)

daris, it`s working good, thanks!

8

(27 replies, posted in PunBB 1.3 extensions)

Hello!

Can I delete text "Click here to see full size image" from result thumbnail?

Thanks.

9

(170 replies, posted in PunBB 1.3 extensions)

daris, thanks for extension!

Just one question: how i can use php in portal-pages?

sorry for my English sad

10

(22 replies, posted in PunBB 1.3 extensions)

It seems like it will randomly shows up and then sometimes it doesn't show at all.

Garciat,

$todays_users_diff = ($forum_user['timezone'] + ($forum_user['dst']-1)) * 3600;
$todays_users_now = time();

$query = array(
    'SELECT'    =>    'id, username',
    'FROM'        =>    'users',
    'WHERE'    =>    'last_visit>"'.strtotime(gmdate('M d Y', $todays_users_now + $todays_users_diff)).'" and group_id>0',
    'ORDER BY'    =>    'username'
);

11

(22 replies, posted in PunBB 1.3 extensions)

You can use AnyCode Tool:

solution name - today_users
hook - in_info_end

code if you want to Guests can see links to user-profiles:

$todays_users = array();
$query = array(
    'SELECT'    =>    'id, username',
    'FROM'       =>    'users',
    'WHERE'    =>    'last_visit>"'.strtotime(gmdate("M d Y")).'"',
    'ORDER BY'   =>    'username'
);
$result = $forum_db->query_build($query) or error(__FILE__, __LINE__);

while(list($id, $username) = $forum_db->fetch_row($result))
{
  $todays_users[] = '<a href="'.forum_link($forum_url['user'], $id).'">'.forum_htmlencode($username).'</a>';
}
if (!empty($todays_users))
{
?>
    <div id="brd-todayonline" class="gen-content">
        <h3 class="hn"><span>
<?
 echo $lang_index['Today online'] . implode(', ', $todays_users);
?>
        </span></h3>
    </div>
<?
}

code if you don`t want to Guests can see links to user-profiles:

$todays_users = array();
$query = array(
    'SELECT'    =>    'id, username',
    'FROM'       =>    'users',
    'WHERE'    =>    'last_visit>"'.strtotime(gmdate("M d Y")).'"',
    'ORDER BY'   =>    'username'
);
$result = $forum_db->query_build($query) or error(__FILE__, __LINE__);

while(list($id, $username) = $forum_db->fetch_row($result))
{
 if (!$forum_user['is_guest'])
 {
  $todays_users[] = '<a href="'.forum_link($forum_url['user'], $id).'">'.forum_htmlencode($username).'</a>';
 }
 else
 {
  $todays_users[] = forum_htmlencode($username);
 }
}
if (!empty($todays_users))
{
?>
    <div id="brd-todayonline" class="gen-content">
        <h3 class="hn"><span>
<?
 echo $lang_index['Today online'] . implode(', ', $todays_users);
?>
        </span></h3>
    </div>
<?
}

if you don`t want to edit lang-pack - just replace "$lang_index['Today online']" on "Today\`s online:"


Fixed by punbb.ru forum users.


but it would be bitter if it was converted to extension.

I can`t do this - I`m a noob:)

Sorry for my English roll

12

(22 replies, posted in PunBB 1.3 extensions)

$todays_users = array();
$result = $forum_db->query("SELECT id,username FROM users WHERE last_visit>'".strtotime(gmdate("M d Y"))."' ORDER BY username");
while(list($id, $username) = $forum_db->fetch_row($result))
{
 if (!$forum_user['is_guest'])
 {
  $todays_users[] = '<a href="'.forum_link($forum_url['user'], $id).'">'.$username.'</a>';
 }
 else
 {
  $todays_users[] = $username;
 }
}
if (!empty($todays_users))
{
?>
<div id="brd-online" class="gen-content">
    <h3 class="hn"><span>
<?
 echo $lang_index['Today online'] . implode(', ', $todays_users);
?>
    </span></h3>
</div>
<?
}

http://umix.no-ip.biz:8080/forum/index.php

look in table name in your forum`s database: "pun_users" or "users"...

13

(10 replies, posted in PunBB 1.3 extensions)

I have this problem too sad