vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Make my "guest count" go away please. (https://vborg.vbsupport.ru/showthread.php?t=293181)

eboggs_jkvl 12-21-2012 06:23 PM

Make my "guest count" go away please.
 
On the bottom of the forum, I show users online.

I see something like 8 members and 4 guests

My forum is completely private. All IDs are individually approved.
My permissions for "unregistered or not logged in" are set to "NO" in all options on ALL forums.

Why are there guests being shown?

My "Who's Online options are:
Show Who's online: Yes
Refresh: 5 seconds
Show guests: No:confused:
Resolve IP: Yes
Show Spiders: No

Some of the members are paranoid. They think there are "guests" lurking that can't be seen who can spy on the forum. I have that forum locked down. If you aren't registered AND approved you don't see squat.

How do I get the "guest" count to show "0" and STAY there.:confused:

TIA,


Boggs

kh99 12-21-2012 06:41 PM

I think you could edit the phrase "x_members_and_y_guests", and enter a translation at the bottom that just says "{1} members". (or maybe "{1} members and 0 guests" if you prefer).

eboggs_jkvl 12-21-2012 06:58 PM

Ok, I understand. You're suggesting that I edit the line to only allow the members to show and then have the guest stop being "read" by VB4 and simply show the "0" as a text that doesn't have to read from VB4?

Dare I ask why the guests even tallies now? I think that I've shut down the "guest" access and the VB4 should show a 0 as it is.

Boggs

setishock 12-21-2012 09:57 PM

I can waltz right in to the private sections. Southern > the plantation
Texas > when I get my $h!t fixed.

Doesn't look like it's completely private. I can get that far but not see any other posts. I would venture you'd have to make the whole shooting match private. And I came in as a guest.

eboggs_jkvl 12-21-2012 10:14 PM

Well, sir, maybe you should go to the correct forum that is running the VB4 and not the LS2.com site that is open to the public.

Try this one: http://www.jaxvette.com/forum/forum.php

See how far you get into that site as that's the private site for the Jacksonville Corvette Club where I'm having the "Guest" count problem.


Boggs

kh99 12-21-2012 10:46 PM

Quote:

Originally Posted by eboggs_jkvl (Post 2392103)
Ok, I understand. You're suggesting that I edit the line to only allow the members to show and then have the guest stop being "read" by VB4 and simply show the "0" as a text that doesn't have to read from VB4?

Yes. It seems like a reasonable solution if you're certain that guests can't access your site and you only want to stop the registered members from worrying.

Quote:

Dare I ask why the guests even tallies now? I think that I've shut down the "guest" access and the VB4 should show a 0 as it is.

Boggs
I'd have to test it to find out for sure, but I think what happens is that anyone who accesses any page, even if it ends up with a "no permission" message, is assigned a session, and any session assigned to someone who's not logged in is counted as a guest.

eboggs_jkvl 12-21-2012 11:58 PM

Quote:

Originally Posted by kh99 (Post 2392138)
Yes. It seems like a reasonable solution if you're certain that guests can't access your site and you only want to stop the registered members from worrying.



I'd have to test it to find out for sure, but I think what happens is that anyone who accesses any page, even if it ends up with a "no permission" message, is assigned a session, and any session assigned to someone who's not logged in is counted as a guest.


I see 2 members and 5 guests right now on my site. I click on "7 users on line" and I see the 2 members but not any thing shows as "guest". You might be correct about the session count. It may be the easiest to just edit a small white lie into that section and have the darn thing simply read 0 and not chase at windmills to have VB4 correct it to 0.


Boggs

--------------- Added [DATE]1356138118[/DATE] at [TIME]1356138118[/TIME] ---------------

Quote:

Originally Posted by setishock (Post 2392124)
I can waltz right in to the private sections. Southern > the plantation
Texas > when I get my $h!t fixed.

Doesn't look like it's completely private. I can get that far but not see any other posts. I would venture you'd have to make the whole shooting match private. And I came in as a guest.

I read my response to you and it didn't come out at I intended. It was a bit harsh.


First, thank you for taking the trouble to try and help me, I really do appreciate it. I guess I should have mentioned the jaxvette forum in my OP to help make it clearer.

Sorry, if I didn't appear too polite in my previous response.

Boggs

--------------- Added [DATE]1356138625[/DATE] at [TIME]1356138625[/TIME] ---------------

I just did the edit and that still leaves an issue. I see 7 users on line and 2 members and 0 guests. Now the math doesn't add up. It needs to be 2 users on line to match the 2 members that are actually online.

I thought the edit was a quick easy fix.

This is not simple, huh?

kh99 12-22-2012 01:06 AM

Quote:

Originally Posted by eboggs_jkvl (Post 2392148)
I just did the edit and that still leaves an issue. I see 7 users on line and 2 members and 0 guests. Now the math doesn't add up. It needs to be 2 users on line to match the 2 members that are actually online.

I thought the edit was a quick easy fix.

This is not simple, huh?

Yeah, sorry, I didn't think of that. But what you can do is edit template FORUMHOME, and look for this line (you can search for there_are_x_y_online_link):
Code:

<p>{vb:rawphrase there_are_x_y_online_link, {vb:raw totalonline}, {vb:raw session.sessionurl_q}} <span class="shade">{vb:rawphrase x_members_and_y_guests, {vb:raw numberregistered}, {vb:raw numberguest}}</span></p>

and change {vb:raw totalonline} to {vb:raw numberregistered}, like:
Code:

<p>{vb:rawphrase there_are_x_y_online_link, {vb:raw numberregistered}, {vb:raw session.sessionurl_q}} <span class="shade">{vb:rawphrase x_members_and_y_guests, {vb:raw numberregistered}, {vb:raw numberguest}}</span></p>

In fact you could have changed this line to say whatever you wanted instead of translating that other phrase, but I didn't think of it.

eboggs_jkvl 12-22-2012 02:25 AM

Quote:

Originally Posted by kh99 (Post 2392155)
Yeah, sorry, I didn't think of that. But what you can do is edit template FORUMHOME, and look for this line (you can search for there_are_x_y_online_link):
Code:

<p>{vb:rawphrase there_are_x_y_online_link, {vb:raw totalonline}, {vb:raw session.sessionurl_q}} <span class="shade">{vb:rawphrase x_members_and_y_guests, {vb:raw numberregistered}, {vb:raw numberguest}}</span></p>

and change {vb:raw totalonline} to {vb:raw numberregistered}, like:
Code:

<p>{vb:rawphrase there_are_x_y_online_link, {vb:raw numberregistered}, {vb:raw session.sessionurl_q}} <span class="shade">{vb:rawphrase x_members_and_y_guests, {vb:raw numberregistered}, {vb:raw numberguest}}</span></p>

In fact you could have changed this line to say whatever you wanted instead of translating that other phrase, but I didn't think of it.

Ok, this old geezer is ready for bed. I'll give your edit a try tomorrow. Thanks for the help.

Boggs

--------------- Added [DATE]1356188883[/DATE] at [TIME]1356188883[/TIME] ---------------

Ok, the math is getting better. I need to go in now and do the first edit again where the guests show "0" as text as opposed to a calculated numeric.

I think this is going to fix it for sure.

I'll be back...

--------------- Added [DATE]1356188993[/DATE] at [TIME]1356188993[/TIME] ---------------

Ok, we have a keeper this time.

I see the registered member "count" and 0 guests.

Thanks for the help.


Boggs

--------------- Added [DATE]1356189156[/DATE] at [TIME]1356189156[/TIME] ---------------

New to the VB world, will I need to make this same edit every time I get a VB4 update?

yellowstang73 02-25-2013 04:28 AM

In the bottom right hand corner you have 'Jacksonville Corvette Club'. When i click it I go to http://www.jaxvette.com/ is that part of your site? The page with the pictures? If I can see your pictures and site Home page you counter will count me. Stay with the fake number and quit worrying about it.
Nice day out I'm going to drive the C5 tomorrow.


All times are GMT. The time now is 09:54 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01118 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete