Advertisement:

Author Topic: Users Online Today Mod  (Read 691478 times)

Offline jaccione

  • Jr. Member
  • **
  • Posts: 150
    • Maths Made Easy
Re: Users Online Today Mod
« Reply #940 on: July 01, 2008, 10:56:31 AM »
try replacing the 'is_admin'  with 'is_member' and see if that works
www.math.net.au for all your math homework needs

Offline ccbtimewiz

  • SMF Hero
  • ******
  • Posts: 5,300
  • Gender: Male
  • OXEN
Re: Users Online Today Mod
« Reply #941 on: July 01, 2008, 02:26:59 PM »
Your best bet would be to use:

Code: [Select]
if ((!$context['user']['is_guest']) && $context['user']['is_logged'])

Offline allymcbeal

  • Jr. Member
  • **
  • Posts: 166
Re: Users Online Today Mod
« Reply #942 on: July 02, 2008, 02:25:14 AM »
First I put the code in a wrong line, now I fix it and now it works!!!

Thank you!!!

Offline EugeneLoza

  • Semi-Newbie
  • *
  • Posts: 12
  • Gender: Male
    • God's Peace Church, Kyiv, Ukraine
Re: Users Online Today Mod
« Reply #943 on: July 03, 2008, 06:55:26 AM »
Probably I'll post this translation for the second time, but here's Russian UTF-8 for the mod I've made recently. These should be copied to Modifications.russian-utf8.php.

Offline Rhyme

  • Semi-Newbie
  • *
  • Posts: 79
  • Gender: Female
Re: Users Online Today Mod
« Reply #944 on: July 07, 2008, 07:32:29 AM »
How do I make this work on other skins?

Offline ccbtimewiz

  • SMF Hero
  • ******
  • Posts: 5,300
  • Gender: Male
  • OXEN
Re: Users Online Today Mod
« Reply #945 on: July 07, 2008, 10:17:15 AM »
You'll be needing to manually edit your files in your theme.  :)

Offline Rhyme

  • Semi-Newbie
  • *
  • Posts: 79
  • Gender: Female
Re: Users Online Today Mod
« Reply #946 on: July 07, 2008, 12:02:18 PM »
You'll be needing to manually edit your files in your theme.  :)

I figured that, but I wanted to know what I would need to add.  Do I do this in the FTP and place the files into each theme, or is there CSS I can add to the style sheets?

Offline ccbtimewiz

  • SMF Hero
  • ******
  • Posts: 5,300
  • Gender: Male
  • OXEN
Re: Users Online Today Mod
« Reply #947 on: July 07, 2008, 12:07:02 PM »
mm, you'll be needing to edit the files (via FTP) in:

/Sources

and

/Themes/*your_theme*/

Look in the install.xml to find the files that the modification itself edits.

Offline Rhyme

  • Semi-Newbie
  • *
  • Posts: 79
  • Gender: Female
Re: Users Online Today Mod
« Reply #948 on: July 07, 2008, 12:25:02 PM »
mm, you'll be needing to edit the files (via FTP) in:

/Sources

and

/Themes/*your_theme*/

Look in the install.xml to find the files that the modification itself edits.

Thanks, I'll check that out when I get home later.  I'm at work right now I don't have an FTP set up here.

Offline clanny

  • Jr. Member
  • **
  • Posts: 151
Re: Users Online Today Mod
« Reply #949 on: July 10, 2008, 02:35:10 AM »
how to put it so it shows all the user/guest or only user online in the past 24 hours
i added the mod in the forum btw, easyfreezone.com/forum

it shows


Users Logged In Today
  Total: 1 (Visible: 1, Hidden: 0)
Mike 

Offline stfox100

  • Jr. Member
  • **
  • Posts: 157
    • Bluto's Hosting
Re: Users Online Today Mod
« Reply #950 on: July 14, 2008, 10:47:54 AM »
Well, I went to install the new version , since it's now compatible with 1.1.5.
However, I get an error when I try to uninstall the old version:
5.     Execute Modification     ./Themes/default/languages/Modifications.english.php     Test failed
I installed the older version manualy. I also installed it to a custom theme, so maybe  the edits are missing in the default themes file. Should I proceed with the uninstall anyway? And them apply the new version? Or, should I wait for the manual edits files in the download section?

Offline gtron

  • Semi-Newbie
  • *
  • Posts: 98
  • Gender: Male
    • gtron
Re: Users Online Today Mod
« Reply #951 on: July 14, 2008, 08:18:13 PM »
is there a way to let guests see the member names for users online today?

Offline Johno69

  • Jr. Member
  • **
  • Posts: 231
Re: Users Online Today Mod
« Reply #952 on: July 14, 2008, 08:37:25 PM »
there is a line in Boardindex.Template.php

Code: [Select]
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
I would guess it changing this somehow?

maybe to:

Code: [Select]
if (!empty($context['users_online_today'])
I'm just guessing, so "BACKUP" if you do try that.

Offline DareDevil1990

  • Jr. Member
  • **
  • Posts: 397
Re: Users Online Today Mod
« Reply #953 on: July 18, 2008, 07:22:47 AM »
i am using Users Online Today Mod can it be edited some how to show the users active it past48 hours and not in the past 24 hours ???....and then change the colour of user who were active 24hours a ago to some else color so there could be a sepration between todays members and yesterday members....l.. i hope u got it .... :)
« Last Edit: July 18, 2008, 07:25:14 AM by keshav »

Offline ranKoto

  • Semi-Newbie
  • *
  • Posts: 49
Re: Users Online Today Mod
« Reply #954 on: July 19, 2008, 11:13:49 AM »
Ok I tried the version 1.4.0 and it installed. I get the following stats from my board     

Most Online Today: 16. Most Online Ever: 16 (Yesterday at 09:02:45 PM)


hi DirtRider

can you tell me where did you get that stat ? is that from the mod ?

i actually want to have that "Most Online Ever" in this mod

im using SMF 1.1.4 and users online today mod ver. 1.4.0

Offline DirtRider

  • SMF Hero
  • ******
  • Posts: 1,415
  • Gender: Male
  • Just Looking
    • TriumphTalk
Re: Users Online Today Mod
« Reply #955 on: July 20, 2008, 05:53:23 AM »
Ok I tried the version 1.4.0 and it installed. I get the following stats from my board     

Most Online Today: 16. Most Online Ever: 16 (Yesterday at 09:02:45 PM)


hi DirtRider

can you tell me where did you get that stat ? is that from the mod ?

i actually want to have that "Most Online Ever" in this mod

im using SMF 1.1.4 and users online today mod ver. 1.4.0

No that is just the normal SMF stats at the bottom of the forum         
http://www.triumphtalk.com

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

Offline atomico

  • Semi-Newbie
  • *
  • Posts: 23
Re: Users Online Today Mod
« Reply #956 on: July 26, 2008, 07:29:38 AM »
i isntalled this mod and all work fine now but..

the normal smf option: user online , don't work anymore.

I log with admin, after i log with a normal member, and i log again as admin.

well in user online today it show admin and member normally but in user online in the last 15min it show only my user and not the other.

why?
ty

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

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,614
  • Gender: Male
  • I am a ninja!
    • adishpatel on Facebook
    • https://www.linkedin.com/in/adishpatel on LinkedIn
Re: Users Online Today Mod
« Reply #957 on: July 26, 2008, 02:15:54 PM »
I got almost everything right...

There is special box which is created at the base but the name displays somewhere else...

chk yout this image:-


Hmm.. So what maybe the problem..???

Please Help me out..

Thanks...

Offline General_Naga

  • Jr. Member
  • **
  • Posts: 162
  • Gender: Male
    • Traction Wars Hompage
Re: Users Online Today Mod
« Reply #958 on: July 28, 2008, 08:50:16 AM »
Posted this earlier up, this will hide it to only admin, you can probably change the permisson to whatever level you want.
just wrap your block of code in this

if ($context['user']['is_admin'])
{

the code for the mod here
}

I've tried using this method and I have successfully hidden the information. It still however displays the block with just a single colon inside. How can I hide this block when I hide the information?

EDIT:

Solved it, I had forgotten to add the code to the theme files as well.  ;)
« Last Edit: July 28, 2008, 08:54:10 AM by General_Naga »

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

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,614
  • Gender: Male
  • I am a ninja!
    • adishpatel on Facebook
    • https://www.linkedin.com/in/adishpatel on LinkedIn
Re: Users Online Today Mod
« Reply #959 on: July 28, 2008, 09:39:51 AM »
sorry for the question but is there anyone who would help me with the problem shown in the image ??? Please help me out.

Thanks.