Spiders Don't Increase Topic Views

Started by SMFHacks.com Team, August 06, 2007, 10:28:04 PM

Previous topic - Next topic

SMFHacks.com Team

Link to the mod


SPIDERS DON'T INCREASE TOPIC VIEWS v1.1


Introduction
When spiders are browsing your forum, they will increase the topic views in every topic they visit.  This modification basically detects most well-known spiders , and if so, it won't increase page count.

This will give you a better idea of actually how many REAL people are viewing topics.
It will also save on a few queries.

Installation
Simple & Easy, install. It only alters a source file, therefore no theme edits/language edits will be required whatsoever.

Note: There are TWO versions of the mod for different smf versions
- SMF 2.0.x
- SMF 1.1.x version

Support
Please use the modification thread for support with this modification.
(Please don't ask me to do the edits for you)

Changelog
1.0 - 3rd August 2007
o Initial public release.
1.1 - 16th October 2007
o Improved readme
o Fixed installer bug
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.

http://ForumRankings.net - Get Forum Ranked!
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

jossanaijr

Installed ok, but is there any setup?  I cannot find any changes in my adm area.

karlbenson

No setup/no settings/no edits required.


LostProphecy

this looks interesting and i might try it out...

i have another problem that is related and was wondering if it might be possible to intergrate it into this mod...

my site gets alot of spiders on it and it's almost always showing something like...

60 guests, 10 members

or something like that...

the who's online is a complete nightmare and you have to scroll just to see your members...

i was wondering if there is also anyway of removing the spiders and bots from upping the guest online count and appearing in the who's online... i couldn't give a rats arse how many spiders are on my forum and i'm sure my members don't care either...

anyway just thought i'd ask here cause you seem to know about spiders and all...

~Jessi
Angelus Ex Quo Nox

karlbenson


kill3r

EXCELLENT mod. i went mad when most of my forum topics crossed 150 views with only 3-4 active members. thanks again :)

kill3r

It would be great, if you could enable us to add an ip address for which the views will not be counted. I need this, as i update the site map regularly. hope you will consider this. thanks

karlbenson

#8
OK, I've uploaded v1.1 [Mod]

1.1 - 16th October 2007
o Improved readme
o Fixed installer bug

dakotaroar

This will affect the page view statistics too, yes?  So if a spider sees, say, a board index, that won't be added to the page views, right?
The only forum for students in North and South Dakota!  Campus Dakota.

karlbenson

no. the mod only affects the Topic views.
eg the column which appears on the Message Index

dakotaroar

The only forum for students in North and South Dakota!  Campus Dakota.

karlbenson

I have reuploaded this mod and screenshots for it.

I am in the process of doing it for ALL my other mods aswell.  Please bear with me.

carbonize

Would this also stop spiders from increasing the download count of attachments? If not would it be possible to add that?
C a r b o n i z e

FragaCampos

Another great mod by karlbenson  8)


This affects the count of topic views, so it also affects the column of topic views in the infocenter statistics on the bottom of the forum?

karlbenson

This only affects counting it towards the views for each topic.

It doesn't prevent it counting for total pageviews.

gastan

Loaded this file okay and it shows up in the list of packages in the Package Manager.  But clicking "apply mod" or "list files" did nothing except refresh the page.  I manually installed it and so far my site is behaving okay ... no new or unexpected problems since install.  But the mod still shows as uninstalled in Package Manager.  Is this normal?  How can I be sure it's working? 

And on a side note, any plans to issue any upgrade for new spiders?  Or is that not a worry?  Or is this functionality gonna be built into v2.0?

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Eclipse16V

Doesn´t work

Error in this

<operation>
<search position="replace"><![CDATA[ $smcFunc['db_query']('', '
UPDATE {db_prefix}topics
SET num_views = num_views + 1
WHERE id_topic = {int:current_topic}',
array(
'current_topic' => $topic,
)
);
]]></search>
<add><![CDATA[
// ONLY INCREASE NUMBER OF TOPIC VIEWS IF NOT A SPIDER
$is_spider = detect_spider();
if(!$is_spider) {
$smcFunc['db_query']('', "
UPDATE {db_prefix}topics
SET num_views = num_views + 1
WHERE id_topic = {int:current_topic}',
array(
'current_topic' => $topic,
)
);
]]></add>
</operation>
I worked with:
SMF 2 in German

Shop:
SID Giessen

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Advertisement: