Cum adaug total postatori jos
Reguli forum
Aveti o problema si vreti sa primiti ajutor? Click aici ! Nu uitati si de regulamentul forumului !
Aveti o problema si vreti sa primiti ajutor? Click aici ! Nu uitati si de regulamentul forumului !
- RapKid
- Utilizator înregistrat
- Mesaje: 108
- Membru din: 26-Dec-2010, 23:44:45
- Versiune: 3.0.5
- Ext: Da
- Server: Windows
- Nivel phpBB: Puţin experimentat
- Contact:
Cum adaug total postatori jos
Salutare din nou sper ca nu va stresez cu intrebarile meledar vreu sa iasa ceva bine si daia pun atatea intrebari .
As mai avea o intreare cum pot face si eu sa imi apara parteneri jos aici care o sa iii bag si total postatori
Un print screen este in josul pagini acest lucru.
http://img152.imageshack.us/img152/4439/ghjh.jpg
As mai avea o intreare cum pot face si eu sa imi apara parteneri jos aici care o sa iii bag si total postatori
Un print screen este in josul pagini acest lucru.
http://img152.imageshack.us/img152/4439/ghjh.jpg
- bogdan
- Mesaje: 10888
- Membru din: 18-Oct-2002, 13:14:27
- Versiune: 3.0.11
- Ext: Da
- Server: UNIX/Linux
- Nivel phpBB: Experimentat
- Nivel php: Mediu
- Localitate: Bucuresti
- Contact:
Re: Cum adaug total postatori jos
Vezi:
viewtopic.php?f=47&t=15612
viewtopic.php?p=115590#p115590
Cauta in forumurile 3.0.x dupa cuvantul parteneri si o sa gasesti mai multe
viewtopic.php?f=47&t=15612
viewtopic.php?p=115590#p115590
Cauta in forumurile 3.0.x dupa cuvantul parteneri si o sa gasesti mai multe
- RapKid
- Utilizator înregistrat
- Mesaje: 108
- Membru din: 26-Dec-2010, 23:44:45
- Versiune: 3.0.5
- Ext: Da
- Server: Windows
- Nivel phpBB: Puţin experimentat
- Contact:
Re: Cum adaug total postatori jos
Imi puteti spune cu ce editor pot modifica alea ca nu reusesc de nici un fel?
- bogdan
- Mesaje: 10888
- Membru din: 18-Oct-2002, 13:14:27
- Versiune: 3.0.11
- Ext: Da
- Server: UNIX/Linux
- Nivel phpBB: Experimentat
- Nivel php: Mediu
- Localitate: Bucuresti
- Contact:
Re: Cum adaug total postatori jos
Ce intelegi prin "alea"? Unde ai invatat sa vorbesti asa?
- PKK
- Utilizator înregistrat
- Mesaje: 192
- Membru din: 11-Noi-2010, 06:00:10
- Versiune: 3.0.9
- Ext: Da
- Server: UNIX/Linux
- Nivel phpBB: Neexperimentat
- Nivel php: Neexperimentat
- Contact:
Re: Cum adaug total postatori jos
RapKid scrie:Imi puteti spune cu ce editor pot modifica alea ca nu reusesc de nici un fel?
Foloseste Notepad++
- Ivan Petre Paul
- Mesaje: 4055
- Membru din: 26-Aug-2009, 02:13:39
- Versiune: 3.1.10
- Ext: Da
- Server: UNIX/Linux
- Nivel phpBB: Experimentat
- Nivel php: Puţin experimentat
- Localitate: Brașov
- Contact:
Re: Cum adaug total postatori jos
UltraEdit
phpBB România will rise again. Soon.. Stay close! @phpbb.ro
-
- Utilizator înregistrat
- Mesaje: 97
- Membru din: 31-Iul-2009, 09:26:32
- Versiune: 3.0.8
- Ext: Da
- Server: UNIX/Linux
- Nivel phpBB: Experimentat
Re: Cum adaug total postatori jos
uite cele editate de mine... 
top_five.php care vine in includes
si cred ca restul le ai si tu , pentru ca sunt default si la mine.

top_five.php care vine in includes
Cod: Selectaţi tot
<?php
/**
*
* @package phpBB3
* @version $Id:
* @copyright (c) 2010 Rich McGirr
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
exit;
}
/**
* Include only once.
*/
if (!defined('INCLUDES_TOP_FIVE_PHP'))
{
define('INCLUDES_TOP_FIVE_PHP', true);
global $auth, $cache, $user, $db, $phpbb_root_path, $phpEx, $template;
$user->add_lang('mods/top_five');
// grab auths that allow a user to read a forum
$forum_array = array_unique(array_keys($auth->acl_getf('!f_read', true)));
// we have auths, change the sql query below
$sql_and = '';
if (sizeof($forum_array))
{
$sql_and = ' AND ' . $db->sql_in_set('t.forum_id', $forum_array, true);
}
// grab all posts that meet criteria and auths
$sql_ary = array(
'SELECT' => 'u.user_id, u.username, u.user_colour, t.topic_title, t.forum_id, t.topic_last_post_id, t.topic_last_post_time, t.topic_last_poster_name',
'FROM' => array(TOPICS_TABLE => 't'),
'LEFT_JOIN' => array(
array(
'FROM' => array(USERS_TABLE => 'u'),
'ON' => 't.topic_last_poster_id = u.user_id',
),
),
'WHERE' => 't.topic_approved = 1 AND t.topic_status <> ' . ITEM_MOVED . ' ' . $sql_and,
'ORDER_BY' => 't.topic_last_post_time DESC',
);
$result = $db->sql_query_limit($db->sql_build_query('SELECT', $sql_ary), 10);
$is_row = false;
while( $row = $db->sql_fetchrow($result) )
{
$is_row = true;
$view_topic_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id'] . '&p=' . $row['topic_last_post_id'] . '#p' . $row['topic_last_post_id']);
$topic_title = censor_text($row['topic_title']);
$is_guest = $row['user_id'] != ANONYMOUS ? false : true;
$template->assign_block_vars('top_five_topic',array(
'U_TOPIC' => $view_topic_url,
'USERNAME_FULL' => $is_guest ? $user->lang['BY'] . ' ' . get_username_string('full', $row['user_id'], $row['username'], $row['user_colour'], $row['topic_last_poster_name']) : $user->lang['BY'] . ' ' . get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']),
'LAST_TOPIC_TIME' => $user->format_date($row['topic_last_post_time']),
'TOPIC_TITLE' => $user->lang['IN'] . ' ' . $topic_title));
}
$db->sql_freeresult($result);
// if user doesn't have permission to read any forums, show a message
if (!$is_row)
{
$template->assign_block_vars('top_five_topic', array(
'NO_TOPIC_TITLE' => $user->lang['NO_TOPIC_EXIST'],
));
}
// top five posters
// an array of user types we dont' bother with
// could add board founder (USER_FOUNDER) if wanted
$ignore_users = array(USER_IGNORE, USER_INACTIVE);
if (($user_posts = $cache->get('_top_five_posters')) === false)
{
$user_posts = array();
// grab users with most posts
$sql = 'SELECT user_id, username, user_colour, user_posts
FROM ' . USERS_TABLE . '
WHERE ' . $db->sql_in_set('user_type', $ignore_users, true) . '
AND user_posts <> 0
ORDER BY user_posts DESC';
$result = $db->sql_query_limit($sql, 10);
while ($row = $db->sql_fetchrow($result))
{
$user_posts[$row['user_id']] = array(
'user_id' => $row['user_id'],
'username' => $row['username'],
'user_colour' => $row['user_colour'],
'user_posts' => $row['user_posts'],
);
}
$db->sql_freeresult($result);
// cache this data for five minutes, this improves performance
$cache->put('_top_five_posters', $user_posts, 300);
}
foreach ($user_posts as $row)
{
$username_string = get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']);
$template->assign_block_vars('top_five_active',array(
'S_SEARCH_ACTION' => append_sid("{$phpbb_root_path}search.$phpEx", 'author_id=' . $row['user_id'] . '&sr=posts'),
'POSTS' => $row['user_posts'],
'USERNAME_FULL' => $username_string)
);
}
// newest registered users
if (($newest_users = $cache->get('_top_five_newest_users')) === false)
{
$newest_users = array();
// grab most recent registered users
$sql = 'SELECT user_id, username, user_colour, user_regdate
FROM ' . USERS_TABLE . '
WHERE ' . $db->sql_in_set('user_type', $ignore_users, true) . '
AND user_inactive_reason = 0
ORDER BY user_regdate DESC';
$result = $db->sql_query_limit($sql, 10);
while ($row = $db->sql_fetchrow($result))
{
$newest_users[$row['user_id']] = array(
'user_id' => $row['user_id'],
'username' => $row['username'],
'user_colour' => $row['user_colour'],
'user_regdate' => $row['user_regdate'],
);
}
$db->sql_freeresult($result);
// cache this data for ever, cache is purged when adding or deleting users
$cache->put('_top_five_newest_users', $newest_users);
}
foreach ($newest_users as $row)
{
$username_string = get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']);
$template->assign_block_vars('top_five_newest',array(
'REG_DATE' => $user->format_date($row['user_regdate']),
'USERNAME_FULL' => $username_string)
);
}
}
?>

Cs.Cutitarii.Ro » Dr.Cutitarii.Ro » Pub.Cutitarii.Ro
Brebu.Cutitarii.Ro » GG.Cutitarii.Ro » Respawn.Cutitarii.Ro
Brebu.Cutitarii.Ro » GG.Cutitarii.Ro » Respawn.Cutitarii.Ro
- dorin
- Fost coleg
- Mesaje: 4620
- Membru din: 24-Iun-2003, 23:23:29
- Versiune: 3.1.10
- Ext: Da
- Server: UNIX/Linux
- Nivel phpBB: Mediu
- Nivel php: Puţin experimentat
- Contact:
Re: Cum adaug total postatori jos
Ce înseamnă "postatori" ?
- RapKid
- Utilizator înregistrat
- Mesaje: 108
- Membru din: 26-Dec-2010, 23:44:45
- Versiune: 3.0.5
- Ext: Da
- Server: Windows
- Nivel phpBB: Puţin experimentat
- Contact:
Re: Cum adaug total postatori jos
Gata am resuit multulesc

- Ivan Petre Paul
- Mesaje: 4055
- Membru din: 26-Aug-2009, 02:13:39
- Versiune: 3.1.10
- Ext: Da
- Server: UNIX/Linux
- Nivel phpBB: Experimentat
- Nivel php: Puţin experimentat
- Localitate: Brașov
- Contact:
Re: Cum adaug total postatori jos
Cum ai rezolvat?
phpBB România will rise again. Soon.. Stay close! @phpbb.ro
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 6 vizitatori