Nique, that`s coool ext. Thanks!
May be we can test it?
You are not logged in. Please login or register.
PunBB Forums → Posts by allineer
Pages 1
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
Sium, simple... THANKS!!!
faax, its will be a great work and I like this theme!
pepak, +1
the background or text should be darker
slickplaid, any beta version?
Can I delete text "Click here to see full size image" from result thumbnail?
No.
So bad
daris, it`s working good, thanks!
Hello!
Can I delete text "Click here to see full size image" from result thumbnail?
Thanks.
daris, thanks for extension!
Just one question: how i can use php in portal-pages?
sorry for my English
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'
);
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
$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"...
I have this problem too
Pages 1
PunBB Forums → Posts by allineer
Powered by PunBB, supported by Informer Technologies, Inc.