News:

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

Main Menu

Hide Who's Online

Started by KGIII, February 28, 2007, 09:21:36 PM

Previous topic - Next topic

xtremecruiser

Quote from: KGIII on March 17, 2007, 09:49:27 PM
I don't imagine it would be too hard, I haven't ever tried it. Do you have an example of some collapsing code? If so then that would be easier. Using the SMF system to do so would be quite a pain in the butt I believe. At least it would be a pain for me - that would be above my current skillset level I believe.

I will look for some code for the collapse and post it, thanks

When you have a couple hundred users online it fills up the page

KGIII

You could change the variable so that it only appeared for admins or the likes if you wanted? Where it says 'is_logged' would be 'is_admin' instead. Though, then again, that doesn't do too much good if they WANT to see the information so, yeah, I could understand expaning that and contracting it. I am not home (I won't be until tomorrow night) but I will also take a look when I am home and not stuck on a laptop.

My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

xtremecruiser

I would everyone to just see just the numbers like how your mod does, and then if they clicked on the numbers its would show the names too ( to those that would be allowed access )

KGIII

That would be pretty neat - if you can find some code to play with then I will certainly TRY to do it though that isn't really what this mod was meant to do but, what the heck, it would make an interesting addition to it. I am not sure if I can get it to work just exactly the way you are wanting it to work but, what the heck, I will certainly give it a shot.

My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

xtremecruiser

Quote from: KGIII on March 18, 2007, 03:12:10 AM
That would be pretty neat - if you can find some code to play with then I will certainly TRY to do it though that isn't really what this mod was meant to do but, what the heck, it would make an interesting addition to it. I am not sure if I can get it to work just exactly the way you are wanting it to work but, what the heck, I will certainly give it a shot.

I am still looking for a how to "collapse"
Thanks

KGIII

Collapsing or changing it would be something other than what this mod does. This just removes it for folks who aren't logged in.

My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

veldfire

Quote from: KGIII on March 12, 2007, 06:46:09 PM
You could try adding -

if $context['user']['is_logged'] ahead of the echo statement where it echo's the users online today.
Sent you a PM about this as you asked but never received a response ?

KGIII

Nope, I don't respond to uninvited PMs though did you try this? I will not have time tonight but if you want I will go around and install a clean forum, install that mod, see what that mod does, and then see how to modify that mod to make it work with this one if you would like? In most cases it is just a matter of making sure that the user is logged if there is information for them to keep hidden from unlogged in users.

My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

veldfire

Yes, I am willing to wait. Thanks.

Incidentally, if you'll take a moment and read the bit below taking notice of the
highlighted bit you will see your invitation so my PM was not "uninvited".



Quote from: KGIII on March 12, 2007, 11:26:17 PM
Just prior to where it echo's the code for it - you can hide it probably. Just change it to read the above. I haven't tried it with this mod and the likes. If you are willing to wait until (MAYBE) tomorrow - kick me a PM if I haven't done so - I will poke at it but really I only work with the default and don't really know the mod inside and out that you speak of. It shouldn't be TOO tough though.

KGIII

Ah - well you shoulda kicked me harder. :P (Sorry - I see so many posts I didn't notice or remember.) I read a LOT of posts and get a billion PMs daily (many of which have nothing in them about where they came from) so please, accept my humble appologies. Give me a few moments and I will check.

My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

veldfire

Quote from: KGIII on April 09, 2007, 05:43:42 PM
Ah - well you shoulda kicked me harder. :P (Sorry - I see so many posts I didn't notice or remember.) I read a LOT of posts and get a billion PMs daily (many of which have nothing in them about where they came from) so please, accept my humble appologies. Give me a few moments and I will check.
LMAO, I can just imagine. I just didn't want you thinking I was PM'ing you uninvited as I know how that goes as I was part of the coding team of iB way back when and I went through much of the same as you describe and vowed never to do that to anyone else !

TIA,
Veldfire

KGIII

Here ya go:

Find:


// Users online today


Change to:


// Users online today
if ($context['user']['is_logged'])


That should do it - in the future if I take too long yell and say why, when, how, etc... I get a PILE of uninvited PMs.

My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

veldfire

Thanks ! Had to move it around to another bit but I got the idea.

KGIII

Not a problem, glad you got it sorted. It basically says, if, in context, the settings confirm that the user is logged in then echo the results and, in this case, send those results to the browser. It was easier than doing a check to see if the user was a guest and then commenting out the code.

My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

xtremecruiser

Quote from: KGIII on March 17, 2007, 09:49:27 PM
I don't imagine it would be too hard, I haven't ever tried it. Do you have an example of some collapsing code? If so then that would be easier. Using the SMF system to do so would be quite a pain in the butt I believe. At least it would be a pain for me - that would be above my current skillset level I believe.

Maybe this will help, thanks

http://www.simplemachines.org/community/index.php?topic=124294.0

KGIII

That's not so much help really - I am not seeing HOW to make it collapse. (That section, by default, isn't collapsable.)

My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

Advertisement: