TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 468
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 106
  • Total: 106

Google bot and Spiders mod for SMF1.1rc3 - default theme

Started by dozzer, December 07, 2006, 10:11:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

G6Cad

Then my guess is that your upgrade/update didnt replace all the files it should have done  :coolsmiley:

Maybe a file permission that just left the files alone on the server

rebelrose

Quote from: PowerPyx on December 09, 2006, 04:08:23 PM
hm strange - upgrading from 1.1rc3 / tp 0.96 to 1.1 / tp 0.97 and my googlebot & spider mod still works fine o.O - didn't need to change anything.

What they are talking about here is a modified Stats Block  ;)

Witte

Nice one G6, gonna make this into a little mod...

I am now in the habit of making all code changes into a mod, it's so much easier... :D

haxen

Help Guys, my Total Users does not add up the spiders online.  The spiders show up in the count:

Members: 5
Guests: 2
Spiders: 2
Total: 7

What did I miss?  I applied the changes to TPortal.english.php and the TPortalBlocks.Template.php, plus of course I installed the mod.

Partly working, help.

Blue Steel

spiders are also included in the guests count so your getting a doubling up of actual counts..

you'll need to do something like guests=guests-spiders

rebelrose

Backup First Always!!!!!

In the default theme

languages/TPortal.english.php

Find:

$txt['tp-users'] = 'Users';


Add this after:

$txt['tp-hidden'] = 'Hidden';
$txt['tp-buddies'] = 'Buddies';
$txt['tp-spiders'] = 'Spiders';


default/TPortalBlocks.template.php

Find:

echo '<br />'.$bullet.$txt['tp-guests'].': '.$online['guests'];
   echo '<br />'.$bullet.$txt['tp-total'].': '.$online['total_users'].'<hr />



Replace with:


           echo '<br />'.$bullet.$txt['tp-hidden'].': '.$online['hidden'];
   echo '<br />'.$bullet.$txt['tp-buddies'].': '.$online['buddies'];
   echo '<br />'.$bullet.$txt['tp-guests'].': '.$online['guests'];
         echo '<br />'.$bullet.$txt['tp-spiders'].': '.$online['num_spiders'];
   echo '<br />'.$bullet.$txt['tp-total'].': '.$online['total_users'].'<hr />



Try this one.

Blue Steel

That code looks like it still includes the num_spiders in guests you need to reduce the number of guests by the number of spiders to get it to add up to the total_users on-line .. because SMF and TP makes spiders appear as guests because they don't login. what the Spider mod is doing is a separate function that's checking the connections to see if they are a recognised spider. it doesn't alter the number of guests on-line.. so to get it to all addup then you need vto tqake away the num_spiders from Gueses to give you a number of guests that AREN'T Spiders

rebelrose

#17
no it works with the mod and shows spiders as spiders and guest as guest, I have had it on my site for some time now  :)

SRaven

Quote from: BlueSteel on January 10, 2007, 04:55:44 AM
That code looks like it still includes the num_spiders in guests you need to reduce the number of guests by the number of spiders to get it to add up to the total_users on-line .. because SMF and TP makes spiders appear as guests because they don't login. what the Spider mod is doing is a separate function that's checking the connections to see if they are a recognised spider. it doesn't alter the number of guests on-line.. so to get it to all addup then you need vto tqake away the num_spiders from Gueses to give you a number of guests that AREN'T Spiders

Something didn't go right with your installation then cause I'v had this for weeks now and it works just fine on my site.

Like right now it says:
1 User, 0 Guests, 1 Spider
Raven
Googlebot

its not counting the spider as a guest....

G6Cad

In your settings for the googlebot you need to check the catbox to show spiders as guests.

This website is proudly hosted on Crocweb Cloud Website Hosting.