News:

Wondering if this will always be free?  See why free is better.

Main Menu

Users Online Today Mod

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

Previous topic - Next topic

kat

I've downed both the packages and looked through the files.


No clues, there, that I could find.


That doesn't mean the clues aren't there, though.


I just can't find 'em!  ;)

Carceri

I guess at some point I forgot to update the text when I uploaded a new version.

I have now removed the version intended for older versions of the 2.0 series, since I think it is fair to assume that people interested in helping with the development of SMF 2.0 by using betas and release candidates are always running the latest version.

Rumboogy

Is there anyway to put this into a Simple Portal block...I would like to have it show up in a block on the front page of my website. I am using SMF 2.0 RC3.

Thanks for any help.

Wally

kat

Quote from: Carceri on April 06, 2010, 08:41:48 AM
I guess at some point I forgot to update the text when I uploaded a new version.


I see the edits. ;)


Thanks, Carceri!

Paul_Pauline

Hiya.

Could you tell me how to achieve this please   :)

I do not permit hidden users on my forum and would like it to just say "Total : 6"

And all this to be removed " (Visible: 6, Hidden: 0)"

Thanks, Paul.
"In every life, no matter how full or empty one's purse, there is tragedy. It is the one promise life always fulfills.
Happiness is a gift and the trick is not to expect it, but to delight in it when it comes and to add to other people's store of it."
Pauline was one of those rare people who increased the store of happiness in the world.

kat

Try removing this line, from board.index.php, in the default theme's directory, Paul:


['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_today'], ')';

Paul_Pauline

Hi Kat.

Do you have a line number, my head is starting to spin now   :o
"In every life, no matter how full or empty one's purse, there is tragedy. It is the one promise life always fulfills.
Happiness is a gift and the trick is not to expect it, but to delight in it when it comes and to add to other people's store of it."
Pauline was one of those rare people who increased the store of happiness in the world.

kat

Does your text editor not have a Search thingy?


I have no idea, to be honest. I looked at the parser, on the mod's page.

Paul_Pauline

I must be going stir crazy, I installed the mod manually as well .

Is it part of the code i've edited, I can't see for looking now  :(
"In every life, no matter how full or empty one's purse, there is tragedy. It is the one promise life always fulfills.
Happiness is a gift and the trick is not to expect it, but to delight in it when it comes and to add to other people's store of it."
Pauline was one of those rare people who increased the store of happiness in the world.

kat

* Kat goes for a look at Paul's site in ftp...

kat

OOPS! Sorry, mate. Line was scrunched-up, in the parser.


It should be:


' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_today'], ')';



Might just need to delete the second part of that line, after all.


Sorry, 'bout that.

Paul_Pauline

Kat I found it, but its only part of a line, do I just remove the part you said or the whole line ?
"In every life, no matter how full or empty one's purse, there is tragedy. It is the one promise life always fulfills.
Happiness is a gift and the trick is not to expect it, but to delight in it when it comes and to add to other people's store of it."
Pauline was one of those rare people who increased the store of happiness in the world.

Paul_Pauline

what about the echo that starts the line ?
"In every life, no matter how full or empty one's purse, there is tragedy. It is the one promise life always fulfills.
Happiness is a gift and the trick is not to expect it, but to delight in it when it comes and to add to other people's store of it."
Pauline was one of those rare people who increased the store of happiness in the world.

kat

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';

Paul_Pauline

Close, but no cigar  ;)

I removed that last code you told me and it removed what i wanted to keep and left the rest  :o
"In every life, no matter how full or empty one's purse, there is tragedy. It is the one promise life always fulfills.
Happiness is a gift and the trick is not to expect it, but to delight in it when it comes and to add to other people's store of it."
Pauline was one of those rare people who increased the store of happiness in the world.

kat

Did you try replacing that line with this, oh support member of the month?


echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';

Paul_Pauline

Done it I reckon  :)

I removed this line  ............

echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';
"In every life, no matter how full or empty one's purse, there is tragedy. It is the one promise life always fulfills.
Happiness is a gift and the trick is not to expect it, but to delight in it when it comes and to add to other people's store of it."
Pauline was one of those rare people who increased the store of happiness in the world.

kat

Didn't that remove everything, not just the hiddens?

Paul_Pauline

"In every life, no matter how full or empty one's purse, there is tragedy. It is the one promise life always fulfills.
Happiness is a gift and the trick is not to expect it, but to delight in it when it comes and to add to other people's store of it."
Pauline was one of those rare people who increased the store of happiness in the world.


Advertisement: