Users Online Today Mod

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

Previous topic - Next topic

TroyG

OK every thing works great on my default theme.
On my SMF Gunge theme I am getting a error that I just can not figure out. The mod does show up and looks like everything is working except for the error.

I am running 1.1.6 and my download was 1.4.0

Here is the error I am getting

QuoteToday at 11:06:50 AM 
72.34.188.13     cf25edd15d333ba502f6d46ce19ef1cb 
http://www.oakbendnevada.com/forum/index.php 
8: Undefined index: uot_users_online_today
File: /home/content/o/a/k/oakbendnevada/html/forum/Themes/SMF_Grunge/BoardIndex.template.php (main sub template - eval?)
Line: 443

   Troy & Kristi   Today at 11:06:50 AM 
72.34.188.13     cf25edd15d333ba502f6d46ce19ef1cb 
http://www.oakbendnevada.com/forum/index.php 
8: Undefined index: uot_users_online_today
File: /home/content/o/a/k/oakbendnevada/html/forum/Themes/SMF_Grunge/BoardIndex.template.php (main sub template - eval?)
Line: 440


I have attached my BoardIndex.template.php

This is driving me crazy and I need someones help PLEASEEEEEEEEEEE.

Thanks in advance

TroyG


DirtRider

Nope I cannot get this mod to work

SMF 1.1.6
Users_Online_Today_1.5.4.zip

I have added the two files as instructed
I have added the code to BoardIndex.template.php
However I cannot find where I need to add the code to ./Sources/BoardIndex.php

As below  :'(

Find:

// If they are logged in, but statistical information is off... show a personal message bar.

and replace with

// Users online today
echo '
<div class="infocenter_section">
<h4 class="headerpadding titlebg">', $txt['uot_users_online_today'], '</h4>
<div class="windowbg">
<p class="section">
<img src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['uot_users_online_today'], '" />
</p>
<div class="windowbg2 sectionbody">
<div class="smalltext">';
echo
$txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';

if ($context['viewing_allowed'])
echo
' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_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['viewing_allowed'])
{
echo          '<br />', implode(', ', $context['list_users_online_today']);

// Showing membergroups?
if (!empty($settings['show_group_key']) && !empty($context['membergroups']))
echo          '<br />[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']';
}
echo '
</div>
</div>
</div>
</div>';





I have added my boardindex.php if someone would be so kind as to have a look at this for me  ;D
http://www.triumphtalk.com

"The real question is not whether machines think but whether men do. "

JimM

You are using the wrong file.  This is from the first page of the mod:

1.4.0: SMF 1.1.x
1.5.4: SMF 2.0 Beta 4

You should be installing 1.4.0, not 1.5.4.
Jim "JimM" Moore
Former Support Specialist

TroyG


DirtRider

Ok now using 1.4.0: SMF 1.1.x I get the following
http://www.triumphtalk.com

"The real question is not whether machines think but whether men do. "

JimM

That's what a guest would see.  A registered member would see a list of members that have logged in.
Jim "JimM" Moore
Former Support Specialist

DirtRider

Yes I know but I got it working it was the theme that had it's own BoardIndex.template and did not use the default one
http://www.triumphtalk.com

"The real question is not whether machines think but whether men do. "

psynx

#1089
hello,

i like this mod and i want it in my dilber mc theme to work too.

i tried installing it but i got test failed error, please tell me what to edit if this mod is possible in my current theme. i tried the manual edit but sad to say i dont have a boardindex.php file in my theme.  thanks.

i have attached the errors.



DartaWeb

I have installed USERS ONLINE TODAY MOD and I would like that users not logged cannot see the list. Can you help me with code addiction?

Adish - (F.L.A.M.E.R)

@ psynx
Which package are you using, go on the download page, choose the SMF version for the pack you are using, and then check the manual edits in there.

@DartaWeb 
It is by default that the guests cannot see it. Its only the logged in users.

DartaWeb

Quote from: F.L.A.M.E.R on November 09, 2008, 10:19:07 AM


@DartaWeb 
It is by default that the guests cannot see it. Its only the logged in users.
thank you for the fast reply!
look at this: hxxp:www.grilliromani.it/forum [nonactive]! online user are shown to visitors! :-(

Adish - (F.L.A.M.E.R)

Can you tell me which language is that, i am trying to translate the page to help you out. :)

DartaWeb

Quote from: F.L.A.M.E.R on November 09, 2008, 10:32:40 AM
Can you tell me which language is that, i am trying to translate the page to help you out. :)

italian! :-)

DartaWeb

#1095
Quote from: F.L.A.M.E.R on November 09, 2008, 10:32:40 AM
Can you tell me which language is that, i am trying to translate the page to help you out. :)

anyway I solved the problem here http://www.simplemachines.org/community/index.php?topic=273288.msg1789901#msg1789901

anyway if you find the code to modify only User Online Today it could be useful to leave some information on the info center without hidding all! ;-)

funcouldron

i have installed it on my forum

www.funcouldron.co.cc

and it got installed successfuly but its not worknig .. y?
Visit us at  ww.4moreFun.com

psynx

Quote from: F.L.A.M.E.R on November 09, 2008, 10:19:07 AM
@ psynx
Which package are you using, go on the download page, choose the SMF version for the pack you are using, and then check the manual edits in there.

i have solved it. thanks.

happyfeet

Is there a way to adapt this mod so that the logged in today stats could be displayed in a php block for Tinyportal 0.98? What code snippet would be included in the php block?

psynx

hello,

i have installed this mod but why is it only tells the number of members who are logged in for today? their names are not going to be listed? i want their names to be listed too.




Advertisement: