Users Online Today Mod

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

Previous topic - Next topic

Bigguy

In modifications.english.php search for these lines and take them out. ;)

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

Grozzy

And where do I find modifications.english.php ?

Bigguy

In the langauge folder of the theme you are using. Or in the default theme's language folder.

Grozzy

How do I open PHP files ?

And I don't manually add them to the forum, I upload and install the ZIP file.

Bigguy

Download them to your desktop and open them with a php editor. Something like "Php Designer" although note pad will do. :)

Grozzy

How can I download the files from the site AND keep the changes I will make ?  ::)

Inflame

Quote from: Grozzy on March 01, 2007, 07:28:12 AM
How can I download the files from the site AND keep the changes I will make ?  ::)

Get into the site with the FTP
Find the file, and drag them to your desktop,
Open it with Note Path, and remove the lines given above.

Then save the file again, and drag the file back to your FTP folder,

It should be fixed now,

If you don't know how to access your FTP, contact the person or company which give syou the webhosting, and ask them for the log-in and any help you need

veldfire

Is there a way to hide the list from guests ?

smoothlab

i've seen this asked but don't think a definitive answer was ever posted.

is there a fix for this mod when running SMF 1.1.2 and the DilberMC theme?

thanks for your help

symon

Nowhere to edit the boardindex.template in Babylon :(

But it still shows the onlines wrong. I had nearly 100 of my members online today. Yet it shows 24! It seems to be the number that was online at the same time...not the whole day. Does anyone know why SMF does this?

Does anyone know a way to show a days total?

Ta :)

smoothlab


symon

#591
The Online Today stat in SMF is absolutely stupid. It's the most online at once...not over the whole day. Today mine says 27...when clearly I have had 300 people online.

It's showing me up.

How do I get rid of it?

Edit* Retracting stupid remark as I found how to use this mod in Babylon and it works sweeeet. After altering the previous language files to make the default stats clearer this mod shows the daily totals :D

See later post to how to install in Babylon

Tick

#592
I got this mod installed fine. The only problem I am having is the words Users Logged In today does not show up.  I am using smf 1.1.2  .  Tiny portal is the only other mod I have installed.


It also doesnt say   (visible  ,  hidden)  just the numbers



Edit:  never mind I got it .

smoothlab

anyone get it working with DilberMC theme?

Tick

yes this is the theme I am using.  It works fine for me.  What kind of problems are you having?

smoothlab

it just doesn't appear.  it installs fine, but nothing appears in the forum index.

Tick

did you modify your board index template php.   if you didnt  first make a backup copy (incase you mess up)
go to you dilber mc board index template .php   find this code

', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')
</span>
</td>
</tr>';


add after it.
// 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>';

smoothlab

worked like a charm.  Thanks so much

Tick

sure thing.  I too am just learning how to really do things  .  One helpfull tip for you is do what I do.  I have spent many many hours on this site just reading and learning. I also have a test forum that I can learn on.  I try to take what I read here and appy it there.  It is real helpful.  Glad I could help you.

Peter_Roehlen

I installed this mod under 1.1.2 and it didn't work. I get the following line of code now at the top of every page in my forum:

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

What's worst, is that the uninstall doesn't uninstall it.  Anyone got any tips on how I can get rid of this mod?


Advertisement: