News:

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

Main Menu

I want to remove Guests showing in Users Online > Users

Started by SDMCC, September 13, 2013, 02:36:09 PM

Previous topic - Next topic

Kindred

SDMCC,
DO NOT delete a post and then repost the same thing just to bump a thread (but try to make it LOOK like you did not)....
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

SDMCC

How dare you to talk to me like that.  >:(
Let's get thing one thing straight, I did not delete the post and repost it to bump a thread, it's not in my nature to do or even think of such a thing.
I realized I had made a silly mistake (a senior moment) and put a reply post in the wrong topic and I then reposted in the correct topic, I currently have more than one topic in this forum.
I made a mistake, have you never made a mistake, maybe not because you are an expert, certainly not an expert in manners though.

Kindred

actually, the delete logs show exactly what you deleted.....   
yes you posted one answer in the incorrect thread. However, you ALSO posted the content here and then deleted THAT and reposted the one above.

As for manners... I merely told you not to do something. I was not insulting or rude about it. If you found my post insulting or rude, then I recommend leaving the internet, since, if you stay on, you'll have to deal with others who will be ACTUALLY insulting or rude.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

SDMCC

Quote from: Kindred on November 03, 2013, 12:59:03 PM
actually, the delete logs show exactly what you deleted.....   
yes you posted one answer in the incorrect thread. However, you ALSO posted the content here and then deleted THAT and reposted the one above.
I will say it again, I made a mistake, a mistake, a mistake, I got mixed up, I am not an expert, doing this sort of stuff is difficult.

Quote
As for manners... I merely told you not to do something. I was not insulting or rude about it. If you found my post insulting or rude, then I recommend leaving the internet, since, if you stay on, you'll have to deal with others who will be ACTUALLY insulting or rude.
Earlier you said "but try to make it LOOK like you did not" I call that rude, questioning my honesty. I have been on he internet a long while and this first time I have had to respond in this manner.

Angelina Belle

SDMCC,

I am sorry to hear you had a misunderstanding above.  Frequently, people do exactly what you were accused of, simply to get their topics bumped up to the top of the forum and attract more attention.  It is an understandable misunderstanding.

I just tested out what Oldiesmann suggested right here are SimpleMachines.org

http://www.simplemachines.org/community/index.php?action=who;members

Interestingly, I also found many, many, many guests listed.  Fewer than when I did http://www.simplemachines.org/community/index.php?action=who

I suspect that the ;members does not actually give a list of only members online.
I am not sure what ;members is supposed to do.
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

Arantor

I thought you had to use index.php?action=who;show_top=members

Angelina Belle

Interestingly, just testing that here, I see a long list of Guest unless I use the drop-down to show only members.
There seems to be more to it than just the query-string.
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

SDMCC

This might be an easier solution, of course I don't how to do I though.  ;)  ;D

Info Centre – Users Online, when we click on the Users or User we then get the users who on line, at the far bottom right there is the little drop down menu – Show – Everyone/Members Only/Guests Only.

Would it be possible to just disable/modify Everyone or Guests Only and just leave Members Only, or maybe somehow lock Members Only?

Arantor

As opposed to doing what we suggested that would just convert the link to that page into pointing to the Members Only item anyway...?

Angelina Belle

Can we do that? index.php?action=who;show_top=members  does not show "members only", unless you select "members only" from the drop-down.


For example, at http://www.simplemachines.org/community/index.php?action=who;show_top=members , by default, shows me everyone.
After I select "members only", then I see only members forever after, unless I again make a selection from the drop-down.
Similarly, If I select "guest only", that's what I see forever after; these query-string options do not seem to enforce "member only" behavior.

I assume this choice is stored in my cookie.

If I log out, then log back in again, http://www.simplemachines.org/community/index.php?action=who;show_top=members  goes back to showing me the default -- everyone -- both members and guests.
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

Arantor


kat

Just an aside... (I may be WAAAAY wrong, here)

If you don't need guests around, why not prevent them from even accessing the board?

If that'd do the job, go to Admin>Features and options and deselect "Allow guests to browse the forum".

:)

Angelina Belle

Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

SDMCC

What with one thing and another and some hosting issues I have only just been able to use the file manager. 
I have made the changes as suggested by Arantor and yourself, it did something but not enough.

Just below the Users Online banner, as is normal it  used to show the number of members and the number of guests online.

The good news is it now only shows the number of members, the guests are gone.

The bad news is that when I click on 'User' to see who is online it still shows guests.

I suppose it shows these unwanted guests about 50% of the time I visit Users Online.

Any more ideas how to get rid of these pesky guests please.



kat

Do you mean on this page?

http://www.simplemachines.org/community/index.php?action=who

If so, there's a selector wotist, where you can select "Everyone", "Members only", or "Guests" only.

So, I would assume that "Members only" could be the default setting and "Guests" could be removed from that list.

I'll see if I can figure-out how to do that...

kat

OK. I've figured-out the file.

I suspect that it's this bit, of Who.template.php:

<div class="selectbox floatright">', $txt['who_show1'], '
<select name="show_top" onchange="document.forms.whoFilter.show.value = this.value; document.forms.whoFilter.submit();">';

foreach ($context['show_methods'] as $value => $label)
echo '
<option value="', $value, '" ', $value == $context['show_by'] ? ' selected="selected"' : '', '>', $label, '</option>';
echo '
</select>
<noscript>
<input type="submit" name="submit_top" value="', $txt['go'], '" class="button_submit" />
</noscript>
</div>
</div>
<table class="table_grid" cellspacing="0">
<thead>
<tr class="catbg">
<th scope="col" class="lefttext first_th" width="40%"><a href="', $scripturl, '?action=who;start=', $context['start'], ';show=', $context['show_by'], ';sort=user', $context['sort_direction'] != 'down' && $context['sort_by'] == 'user' ? '' : ';asc', '" rel="nofollow">', $txt['who_user'], ' ', $context['sort_by'] == 'user' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
<th scope="col" class="lefttext" width="10%"><a href="', $scripturl, '?action=who;start=', $context['start'], ';show=', $context['show_by'], ';sort=time', $context['sort_direction'] == 'down' && $context['sort_by'] == 'time' ? ';asc' : '', '" rel="nofollow">', $txt['who_time'], ' ', $context['sort_by'] == 'time' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
<th scope="col" class="lefttext last_th" width="50%">', $txt['who_action'], '</th>
</tr>
</thead>
<tbody>';


Now, let me try a bit of the ol' "Trial and error", to see if I can figure this out...

kat

Grrr! I can't figure-out where, nor how "show=user" is defined.

The default seems to be "show=all" and we need to change that.

I can't check this, unfortunately. But, I think that getting rid of this, removes the selector, which is a start, I guess. Got to figure-out where to change the default setting of "all", now.

<div class="selectbox floatright">', $txt['who_show1'], '
<select name="show_top" onchange="document.forms.whoFilter.show.value = this.value; document.forms.whoFilter.submit();">';

foreach ($context['show_methods'] as $value => $label)
echo '
<option value="', $value, '" ', $value == $context['show_by'] ? ' selected="selected"' : '', '>', $label, '</option>';
echo '
</select>
<noscript>
<input type="submit" name="submit_top" value="', $txt['go'], '" class="button_submit" />
</noscript>
</div>

kat

Nope. Brain's fried. Let's hope someone can put me out of my misery.

Oldiesmann

Sources/Who.php

Find
$context['show_by'] = $_SESSION['who_online_filter'] = 'all';

Replace
$context['show_by'] = $_SESSION['who_online_filter'] = 'users';
Michael Eshom
Christian Metal Fans


Advertisement: