Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1471)
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.
Thank you Jade :)
and I agree, guests shouldn't be counted as members ::)
: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
A very nice mod. Well done Jade :)
Lol I'm starting small
/me gets a kick out of it
you should make this mod give like a list of everyone who was counted online at that time, just for fun
Gosh, if only I knew how to do that!
Any chance of a 1.1.6 mod for it!... I`m getting fed up with spiders crawling my site!
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 :).
Congrats on your first mod, Jade!
Danke Eliana!
I'm planning to release a few more when I get the chance ;).
Congratulations on your first mod, Jade-moose. :D
;D danke!
I got a few ideas for some more coming >:D.
Also small ones..
congratulations on your first mod jade!
lol now figure out how to do the list-of-those-online thing
Is there an option to ONLY block spiders as being counted. I want my number to be the number of alive humans online...
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']);
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! :)
No worries :D If it's in my topic I can see and respond ;D.
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.
Can you attach your /Sources/BoardIndex.php file for me please?
Sorry, I can't right now because I don't have access to the FTP account. I'll be sure to attach it when I do though :)
Okay, when you do I can fix it for you :).
Any change of an update for rc3?