Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 11227
Latest: vwdiesel
New This Month: 14
New This Week: 0
New Today: 0
Stats
Total Posts: 33677
Total Topics: 6006
Most Online Today: 94
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 0
Guests: 73
Total: 73

Author Topic: Display All Most User Online  (Read 27185 times)

0 Members and 2 Guests are viewing this topic.

Offline Furqon

  • Newbie
  • *
  • Posts: 6
    • View Profile
Display All Most User Online
« 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

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 12297
    • View Profile
Re: Display All Most User Online
« 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?
Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.

Offline Furqon

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Display All Most User Online
« 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

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 12297
    • View Profile
Re: Display All Most User Online
« Reply #3 on: November 11, 2006, 11:50:55 am »
Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.

Offline Furqon

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Display All Most User Online
« 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

Offline Furqon

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Display All Most User Online
« 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: [Select]
// 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: [Select]

// 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

Offline lakestclair

  • SMF Gallery Pro Customer
  • Full Member
  • *****
  • Posts: 106
    • View Profile
Re: Display All Most User Online
« 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?

Offline marjinalhakan

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Display All Most User Online
« Reply #7 on: March 24, 2008, 05:27:35 am »
hi.

A subject which my need becomes.. 8)

thank you very much, ;)

 

+- Recent Topics

No thumbnail coming from this Youtube video by shuban
October 19, 2014, 12:05:59 pm

Member not able to upload by SMFHacks
October 18, 2014, 11:20:38 pm

Gallery block spitting out errors. by shuban
October 18, 2014, 11:55:28 am

Zoom support by Michel68
October 15, 2014, 11:58:42 am

Problem in uploading videos by SMFHacks
October 14, 2014, 10:46:56 am

This is an interesting mode. by Labradoodle-360
October 14, 2014, 08:35:43 am

Convert phpbb Gallery? by SMFHacks
October 13, 2014, 05:47:24 am

My Listings by SMFHacks
October 12, 2014, 01:40:43 pm

Gallery Pro 6.5 - undefined index by Saftek
October 12, 2014, 01:02:21 pm

upgrading SMF Advanced Profile Fields to include lists and then linking with,,, by DenDen60
October 12, 2014, 04:09:29 am

Powered by EzPortal