Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
July 29, 2014, 03:39:09 am

Login with username, password and session length
Members
Total Members: 11298
Latest: qs12345
Stats
Total Posts: 35192
Total Topics: 5894
Online Today: 74
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 49
Total: 49
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Display All Most User Online  (Read 22985 times)
Furqon
Newbie
*
Offline Offline

Posts: 6


View Profile
« on: November 11, 2006, 05:43:29 am »

Hello,

could be any chance to display all most user online like PHPBB ?
this is the sample from another PHPBB Forum



Thanks for reply my request ..

Regrads,

Furqon
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 12017


View Profile
« Reply #1 on: November 11, 2006, 07:11:15 am »

That is just the standard who's online for phpBB are you looking who's been online today?
Logged
Furqon
Newbie
*
Offline Offline

Posts: 6


View Profile
« Reply #2 on: November 11, 2006, 10:47:25 am »

That is just the standard who's online for phpBB are you looking who's been online today?

Yup .. that's what i mean ..
i hope SMFHacks will help me to solve this problem

Thanks
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 12017


View Profile
« Reply #3 on: November 11, 2006, 11:50:55 am »

Check out this mod
http://mods.simplemachines.org/index.php?mod=217
Logged
Furqon
Newbie
*
Offline Offline

Posts: 6


View Profile
« Reply #4 on: November 11, 2006, 05:18:47 pm »

Thanks SMFHacks, i already install that mod

But i've another problem, that mods cannot show if i used another Themes, could you help me to solve this problem

Thanks
Logged
Furqon
Newbie
*
Offline Offline

Posts: 6


View Profile
« Reply #5 on: November 11, 2006, 05:24:43 pm »

Wups .. i found that code ..

Just put this code at BoardIndex.template.php

Find this code

Code:
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);

echo '
<br />
', $context['show_stats'] && !$settings['show_sp1_info'] ? '<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>
<tr>
<td class="windowbg2" width="100%">
<span class="middletext">
', $txt['most_online_today'], ': <b>', $modSettings['mostOnlineToday'], '</b>.
', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')
</span>
</td>
</tr>';

Add this code after

Code:

// Users online today

echo '
<tr>
<td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
  echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
echo '<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';


Thanks for the help
Logged
lakestclair
SMF Gallery Pro Customer
Full Member
*****
Offline Offline

Posts: 106



View Profile
« Reply #6 on: March 04, 2008, 07:02:51 pm »

Mine displays the users online today, but doesn't update the correct number online or most users online ever feature...Wondering what is causing this?
Logged
marjinalhakan
Newbie
*
Offline Offline

Posts: 1


View Profile
« Reply #7 on: March 24, 2008, 06:27:35 am »

hi.

A subject which my need becomes.. Cool

thank you very much, Wink
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 02:42:52 am]

[July 28, 2014, 03:10:30 pm]

[July 28, 2014, 12:58:26 pm]

[July 28, 2014, 10:43:03 am]

[July 24, 2014, 03:15:32 pm]

[July 24, 2014, 01:07:19 pm]

[July 23, 2014, 07:52:40 am]

[July 22, 2014, 09:55:50 pm]

by donk
[July 22, 2014, 12:25:04 am]

[July 20, 2014, 11:37:03 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.19 | SMF © 2013, Simple Machines
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 1.264 seconds with 20 queries.