News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Users Online Today Mod

Started by Nibogo, November 06, 2005, 01:42:31 AM

Previous topic - Next topic

watchhorse

#540
I want to put this:
Quote// 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>';

on the stats-page so the list is not on the index of the forum but on the stats-page.
It want work now , the list is empty but when i put the code on de index-template i see the members.

What is wrong ... how can i put it on the stats-page so i will see the members???


Btw: sorry when my english is bad.
Wij zoeken diergerelateerde fora ter overname.
Pb gerust als je geen tijd of zin meer hebt om uw forum te onderhouden.

auroramae

I am hoping that someone will be kind enough to tell me how to manually edit the slick_pro graphite theme to show
Users Logged In Today
When I apply the mod to that theme it doesn't apply all of the changes.
It displays 
Users Online
but not
Users Logged In Today

Any help would be greatly appreciated.

aurora

Bigguy

This should be the only edit you have to do. In your BoardIndex.template.php find:

</span>
</td>
</tr>';


Before that add:

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



auroramae

QuoteThis should be the only edit you have to do. In your BoardIndex.template.php find:

A thousand thank yous!
Worked like a charm.

SvenJTD

Finaly got it working :), but is there a way to make it line the users in alfabetical order ????
Thanks
New here - help

watchhorse

Is there now way to put it in de stats-page.
The list in my forum is too big to put it in the index so i will put it in de stats-page.


Any help would be greatly appreciated.

Thanks
Wij zoeken diergerelateerde fora ter overname.
Pb gerust als je geen tijd of zin meer hebt om uw forum te onderhouden.

thegpg

I installed this mod on my forums (1.1.1) and it doesn't seem to be working.  Currently using the default theme.  Help please?

GC

Quote from: auroramae on January 14, 2007, 11:50:47 AM
I am hoping that someone will be kind enough to tell me how to manually edit the slick_pro graphite theme to show
Users Logged In Today
When I apply the mod to that theme it doesn't apply all of the changes.
It displays 
Users Online
but not
Users Logged In Today

Any help would be greatly appreciated.

aurora

How come nobody ever reads the modification file?

auroramae

I tried.  I think I am too stupid to understand it.

auroramae

If I disable the SP1 style of stats I lose the list of users logged in today.
When I enable the SP1 stats I lose the
stats at the top of the page with welcome newest member.
Is there any way around this.
I want the users logged in today list
without the SP1 stats

txleo

I am using the default themes also. Is this what I need to edit, in my case?  Same thing. It is not displaying the users-online-today even though the mod was installed.



Quote from: Bigguy on January 14, 2007, 02:05:41 PM
This should be the only edit you have to do. In your BoardIndex.template.php find:

</span>
</td>
</tr>';


Before that add:

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




vodkanestum

hi, i'm using smf 1.1.1 on my forum and the theme Dilber Multicolor and i'd like to use the users online today mod on that theme but i don't know how to do it, can someone help me? :/


mohoganybrwn

Hi.  Installed this mod, now I have the following at the top of my forum:

Quote$txt['uot_users_online_today']='Users Logged In Today'; $txt['uot_yesterday']='Yesterday at '; $txt['uot_total']='Total'; $txt['uot_visible']='Visible'; $txt['uot_hidden']='Hidden';


Can anyone tell me how I can remove this please?

Croco

Quote from: mohoganybrwn on January 19, 2007, 01:15:20 AM
Hi.  Installed this mod, now I have the following at the top of my forum:

Quote$txt['uot_users_online_today']='Users Logged In Today'; $txt['uot_yesterday']='Yesterday at '; $txt['uot_total']='Total'; $txt['uot_visible']='Visible'; $txt['uot_hidden']='Hidden';


Can anyone tell me how I can remove this please?


read this :
http://www.simplemachines.org/community/index.php?topic=143769.0
I am back. I will try to catch up with some stuff soon.
Regards,
Croco

My sites
Andareena.com
Andareen.net(Under Constraction :P)

New plans coming soon


Good links for you to visit:
Docs
Search

watchhorse

I try again:

I want to but the list on the stats-page and not on the index-page.
How can i do this???


Please help....
Wij zoeken diergerelateerde fora ter overname.
Pb gerust als je geen tijd of zin meer hebt om uw forum te onderhouden.

xtremecruiser

How about adding the guest count for the day too, just the number like it does for Users Online

Thanks

Tick

#557
I recently installed this mod , I am using smf 1.1.1 and the theme classic YaBB SE theme.  I know that you have to modify the boardindex.  templete.  The prob I am having is I have no idea how to do this.  I am a fish out of water here .  I someone could give me a step by step to do this I would appreciate it.  THanks

Tick

#558
I finally got it on the page.  Is it supposed to have a users logged on today title above it?  Mine does  not .  If it is supposed to please someone tell me how to add it.   Thanks ahead of time.

Tick

Can anybody tell me why the title users logged in today above where it shows users logged in today

Advertisement: