News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Stop guests and spiders being counted

Started by Jade Elizabeth, October 20, 2008, 12:10:07 AM

Previous topic - Next topic

Jade Elizabeth

Link to Mod

I believe that spiders and guests aren't members. SMF 2.0 does not seem to agree with me, so with this code I have accomplished disabling them from being counted in the "most members online" statistic ;).

So in essence, this mod stops guests and spiders being counted for the "most online ever" statistic. There is no easy way to undo any "damages" the function caused (before my mod was installed, spiders and guests were counted, which may have messed up your statistics), so do NOT ask me unless you are willing to go and directly edit your database.

This mod is for 2.0 beta 4 ONLY.
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Minare

Thank you Jade  :)

and I agree, guests shouldn't be counted as members  ::)

Jade Elizabeth

:D you're welcome!

It was one of the first things I did when I upgraded my forum, and the time I reinstalled, so I decided to package it :D
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

babjusi


Jade Elizabeth

Lol I'm starting small

* Jade gets a kick out of it
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

K3TK3TK3T

you should make this mod give like a list of everyone who was counted online at that time, just for fun

Jade Elizabeth

Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Kreator

Any chance of a 1.1.6 mod for it!... I`m getting fed up with spiders crawling my site!

Jade Elizabeth

They can crawl, but they arent counted in the most online stat in 1.1.6. If you want to stop spiders altogether, google "robots.txt" and make one, it will stop bots if you have the right thing :).
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Eliana Tamerin

Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Jade Elizabeth

Danke Eliana!

I'm planning to release a few more when I get the chance ;).
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

ccbtimewiz

Congratulations on your first mod, Jade-moose. :D

Jade Elizabeth

;D danke!

I got a few ideas for some more coming >:D.
Also small ones..
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

K3TK3TK3T

congratulations on your first mod jade!

lol now figure out how to do the list-of-those-online thing

dewdrinker19

Is there an option to ONLY block spiders as being counted.  I want my number to be the number of alive humans online...

Jade Elizabeth

Quote from: dewdrinker19 on November 28, 2008, 05:01:01 AM
Is there an option to ONLY block spiders as being counted.  I want my number to be the number of alive humans online...

No, but I can certainly make that for you :)

Sources/BoardIndex.php
FIND:
// Track most online statistics? (Subs-MembersOnline.php)
   if (!empty($modSettings['trackStats']))
      trackStatsUsersOnline($context['num_guests'] + $context['num_spiders'] + $context['num_users_online']);


REPLACE:
// Track most online statistics? (Subs-MembersOnline.php)
   if (!empty($modSettings['trackStats']))
      trackStatsUsersOnline($context['num_guests'] + $context['num_users_online']);
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

dewdrinker19

Thanks, I'll try this out tonight when I get home from work.

Thank you so much for the quick response, I really appreciate it!  :)

Jade Elizabeth

No worries :D If it's in my topic I can see and respond ;D.
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

edding2

Hey Jade, I thought I'd inform you there's an incompatibility with another mod. When I tried to install it, it showed me an error saying this. I have 16 other mods installed in my forum, all of which work great, and I really wanted to add yours to the list.

Here are the other mods I have installed:

Advanced Reputation System 1.5.2
Aeva ~ Auto-Embed Video & Audio    5.0.18
Redirect_Moved_Topics 1.0
Generic Avatars 1.1
New Style Message Icon 1.1
SMF Trader System    1.2
Auto Merge Double Post 1.1
PM to New Members 1.0
Minimun Characters or Words Mod 1.0
BK-SMF Welcome Message Mod 1.0
BK-SMF Drop Down Menu 1.0
SMF Arcade 2.5 Beta 2.2 Public
Irritate lurkers with 0 posts 0.1
Wysiwyg Quick Reply 1.1
Favicon  1.2
Banned members avatar 0.1

I'd really appreciate it if you could look into this. Thanks.

Jade Elizabeth

Can you attach your /Sources/BoardIndex.php file for me please?
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Advertisement: