vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Display Enhancements - Remove Spiders from Who's Online (https://vborg.vbsupport.ru/showthread.php?t=152321)

SnitchSeeker 07-17-2007 08:10 AM

This looks like an EXCELLENT mod!

But honestly, it's more than I want. For example, I don't want to reset my max users online stats and I already have a mod (vbBOL) that shows spiders as spiders in the "who's online" page.

Mainly, I am looking for some way of hiding certain html code in my templates from spiders (or showing them custom code), as you show in this example:
Code:

<if condition="$session[spider] == 1">Come into my parlour, said the spider to the fly</if>
Can I install this without resetting stats? Or do you know of another way that I can change code in templates for spiders?

I don't mind not showing spiders as guests in the "Currently Active Users" stats, I just don't want to ruin anything else.

I think it would be cool to show how many bots/spiders are online in the "Currently Active Users" stats. As an addition after "__guests" like (42 members, 192 guests and 63 spiders)

mfyvie 07-17-2007 08:27 AM

Quote:

Originally Posted by keyness (Post 1293091)
Well both are incorrect. For more than 30 minutes, it just showed maximum 5 members and only 1 guest (and another proof, more than 20 guests enter forum just via google in an hour)

Ok, I've now attached an additional file called spider_test.php, you can run this from any forum directory. It will test your installation and basically show you the things that I have been describing to you about this issue (regarding when I asked you to verify your doubts by looking into the session table). Since this file shows you directly what is in your session table, but classified according the spider type, you should be able to see that the statistics being reported are the true statistics.

This file is also useful for anyone else who doubts that this mod is working, or for anyone who wants to find new spider strings to add to their spiders_vbulletin.xml.

Quote:

Originally Posted by TheMasterG (Post 1293447)
This is the who's online hack I've been waiting for, much simplier and truer than others out there. Like you, I just want to hide the spiders, my users won't care to see what spiders are on the site so no reason to display them IMO, great hack, installing now :)

Thanks for your encouraging words. Within an hour of this mod being released 3 people rated it "Terrible" via the rating system, but nobody had actually downloaded it. I for one use the rating system when I'm deciding whether to install a mod, so I was puzzled as to why 3 people would have done this (without even looking at the mod). But anyway, I'm glad there are people out there that do understand why this mod is a little different and like it for exactly what it is.

Quote:

Originally Posted by SnitchSeeker (Post 1293482)
This looks like an EXCELLENT mod!

But honestly, it's more than I want. For example, I don't want to reset my max users online stats and I believe I already have a mod to not show spiders as guests.

Mainly, I am looking for some way of hiding certain html code in my templates from spiders (or showing them custom code), as you show in this example:
Code:

<if condition="$session[spider] == 1">Come into my parlour, said the spider to the fly</if>
How can I do that without resetting or changing the other stuff?

Well actually, it sounds like this mod is not more than you want, it's exactly what you've been looking for, and it does exactly what you need. If you believe that you already have a mod that excludes spiders, then disable it - because this mod does that as well, but probably with less overhead to your forum.

It seems like your only beef with this mod is that it will reset your max online statistics when it installs? The reason it does this is because your max online statistics are probably false! Even if other mods remove the spiders from your display, are they stopping the artificially high number from inflating your max online statistics? Even if they stop it at the front end, have they also thought to stop it in the back end as well? Because as soon as you login to your admincp the wrong statistics will be recorded! My mod stops the admincp from updating this number, even if you haven't done the optional manual edit in the admincp.

But if you still want to disable the reset of the maxonline, simply download the .xml file and remove the entire block that looks like this:
Code:

        <code version="*">
            <installcode><![CDATA[// Each time we install we'll zero out the max online counter.

$vbulletin->maxloggedin['maxonline'] = $totalonline;
$vbulletin->maxloggedin['maxonlinedate'] = TIMENOW;
build_datastore('maxloggedin', serialize($vbulletin->maxloggedin), 1);]]></installcode>
            <uninstallcode />
        </code>

Delete it, then save the .xml file. Now when you install it, it won't touch your (falsely inflated) max online stats. ;)

Kohhal 07-17-2007 08:58 AM

One thing I've noticed, I reset the max users online, used to be ridiculously high and inaccurate, immediatly I get a new figure for the time that I did the reset , BUT, it still seems to be including the spiders in this figure as the forum shows 10 members and maybe 10 guests, but most users online after reset shows 100+ ?

SnitchSeeker 07-17-2007 09:17 AM

Quote:

Delete it, then save the .xml file. Now when you install it, it won't touch your (falsely inflated) max online stats.
Thanks!

My stats are falsely inflated, but not by more than a couple hundred at most. If I reset it, the figure would be incredibly low and inaccurate, so I don't know which is worse. My boards were WAY more popular 2 years ago than today. The reason I know this (other than the inflated "most users" stat) is we had over 100 new users registering each day. Now we have maybe 30 new users on average per day. "Most users online" currently shows 1,786 (dated 2 years ago) and most of late is around 1,000 less. :(

I just noticed I am running 3.6.5 and not 3.6.6. Do you think it will be ok for me to install it?

PS. I think it would be cool to show how many bots/spiders are online in the "Currently Active Users" stats. As an addition after "__guests" like (42 members, 192 guests and 63 spiders)

mfyvie 07-17-2007 11:44 AM

Quote:

Originally Posted by TheMasterG (Post 1293500)
One thing I've noticed, I reset the max users online, used to be ridiculously high and inaccurate, immediatly I get a new figure for the time that I did the reset , BUT, it still seems to be including the spiders in this figure as the forum shows 10 members and maybe 10 guests, but most users online after reset shows 100+ ?

Ok, well there are only 3 places I know of where this can happen. The admincp (which my mod stops from updating the total), the who's online display, the main forum display, and the vbadvanced module (if you are running vbadvanced). If for example you are running vbadvanced and forgot to edit this module, it will be reseting the totals for you.

Can you confirm that you aren't running vbadvanced, and that you don't have any other areas of your forum where the maxonline is displayed (or updated)? Also, which version of vb are you running? If you are running pre 3.6.6 there is different code, but I wasn't able to test this because I'm running 3.6.7.

Quote:

Originally Posted by SnitchSeeker (Post 1293506)
My stats are falsely inflated, but not by more than a couple hundred at most. If I reset it, the figure would be incredibly low and inaccurate, so I don't know which is worse. My boards were WAY more popular 2-3 years ago than today. The reason I know this (other than the inflated "most users" stat) is we had over 100 new users registering each day. Now we have maybe 30-50 on average. "Most users online" currently shows 1,786 (dated 2 years ago) and most of late is around 1,000 less. :(

Quote:

Originally Posted by SnitchSeeker (Post 1293506)
I just noticed I am running 3.6.5 and not 3.6.6. Do you think it will be ok for me to install it?

It should work, though I'm not able to test it - there's a note in the installation instructions about pre 3.6.6 sites.

Quote:

Originally Posted by SnitchSeeker (Post 1293506)
PS. I think it would be cool to show how many bots/spiders are online in the "Currently Active Users" stats. As an addition after "__guests" like (42 members, 192 guests and 63 spiders)

Actually this mod was designed not to even offer that as an option. I'm reusing the same query, so there's no additional overhead. To start getting fancy means to depart from the original design goal of this mod - simplicity and speed. I've never understood why people want to know the number of spiders on their board - it's a totally meaningless number - you could have 500 yahoo slurp spiders crawling one page per session, or you could have a single spider crawl 500 pages in a single session. What's more important to check is the spider activity in your weblogs - it really doesn't have any place in your online users in vbulletin.

R@V3N 07-17-2007 09:48 PM

Very nice mod. Just what I needed. Someone decided it would be fun to spam he online count and I like to report real numbers. Keep up the good work. :)

Charlie98902 07-17-2007 10:48 PM

I tried this out on my forum and there seems to be a error on IE 7 users the error # is 163 I think. There is more text and I'll gladly install it again to be verbatim if you need it.

mfyvie 07-17-2007 10:55 PM

Quote:

Originally Posted by Charlie98902 (Post 1294105)
I tried this out on my forum and there seems to be a error on IE 7 users the error # is 163 I think. There is more text and I'll gladly install it again to be verbatim if you need it.

Do you mean you saw this error when you tried to install, or when it was running? This mod doesn't actually directly change anything that is output to HTML, it simply changes things in the background. I've no idea what might have caused this? File permissions?

koxito 07-18-2007 04:00 AM

Wow .. a very good mod, installed on my board! :)

TheBlackPoet 07-18-2007 04:28 AM

hey... i love it.... i hate the deceptive countup on my site.... real members and real visitors work better for me to guage what's what!! so thanks..


All times are GMT. The time now is 06:35 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.01171 seconds
  • Memory Usage 1,778KB
  • 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
  • (3)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete