News:

Wondering if this will always be free?  See why free is better.

Main Menu

Googlebot & Spiders

Started by Omar Bazavilvazo, June 06, 2005, 06:17:35 PM

Previous topic - Next topic

Bigguy

@ njoker555: Do not include these at all:

<![CDATA[code is between these tags]]

Guesty

Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./SSI.php Test successful
3. Execute Modification ./Sources/BoardIndex.php Test successful
4. Execute Modification ./Sources/ManagePermissions.php Test successful
5. Execute Modification ./Sources/ModSettings.php Test failed
6. Execute Modification ./Sources/Subs.php Test successful
7. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
8. Execute Modification ./Themes/default/languages/Modifications.spanish.php Test successful
9. Execute Modification ./Themes/default/index.template.php Test successful
10. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
11. Execute Code install.php


I keep getting this error when trying to install the package.

www.yeltz.co.uk

What should I do?

auroramae

QuoteHave a quick question for you guys.     I'm running SMF 1.1.1 and I installed this mod and everything went fine.    Everything works except it doesn't show the break down on the "users online" page.   If I remember correctly, it should have a Users, Guests and Spiders breakdown on the users online page.    The way it is now is just like normal without the googlebot and spiders mode.   It just shows users and they are all grouped together plus it doesn't show if the "guests" are spiders or not.   any ideas?    Thanks.

this is my problem exactly, i have both mods installed, the other one works, this one doesn't (though its not for 1.1.1 is it? so that prolly why  :-[ i'm sorry i'm so clueless, i just either want it to work, or to remove it and i dont know how

Follow this link:
http://www.simplemachines.org/community/index.php?topic=19243.30

RoarinRow

Quote from: Simplemachines Cowboy on January 15, 2007, 01:46:09 AM
Can anyone tell me how to make this mod NOT display the googlestats at the bottom of the page?
QuoteGoogle visited last this page January 12, 2007, 12:36:37 PM

Neither I nor my users care one whit to know when they were there. It is enough just to know that they visited. :)

Thanks,

Jay

If you're using a custom theme, then go to that themes folder and open up index.template.php

Make a backup of this file

Look for this:

// Show the load time?
if ($context['show_load_time'])
echo '
<span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';



Then add this after:

if (isset($context['ob_googlebot_stats']))
echo '
<br /><br /><span class="smalltext">', $txt['ob_googlebot_stats_lastvisit'], timeformat($context['ob_googlebot_stats']['Googlebot']['lastvisit']), '</span>';


Not sure this will work with all custom themes, this is what I got out of the SMF default theme.

SMF 2.0
TP 1.0 RC1.1
Wordpress 3.1.3

Simplemachines Cowboy

Thank you RoarinRow,
That isn't what I wanted, but it made me find what I did.
I wanted to REMOVE the display of that information.

So I just commented out the three lines you pointed to and that made it vanish. Magic.  ;)
// if (isset($context['ob_googlebot_stats']))
// echo '
// <br /><br /><span class="smalltext">', $txt['ob_googlebot_stats_lastvisit'], timeformat($context['ob_googlebot_stats']['Googlebot']['lastvisit']), '</span>';
My SMF forum: The Open Range

RoarinRow

Quote from: Simplemachines Cowboy on January 16, 2007, 09:11:31 PM
Thank you RoarinRow,
That isn't what I wanted, but it made me find what I did.
I wanted to REMOVE the display of that information.

So I just commented out the three lines you pointed to and that made it vanish. Magic.  ;)
// if (isset($context['ob_googlebot_stats']))
// echo '
// <br /><br /><span class="smalltext">', $txt['ob_googlebot_stats_lastvisit'], timeformat($context['ob_googlebot_stats']['Googlebot']['lastvisit']), '</span>';


Hahaha, o.k. glad I could help   ;D

SMF 2.0
TP 1.0 RC1.1
Wordpress 3.1.3

toyotaTRD

#1026
Hi,

I have installed this awsome mod to my SMF 1.1.1 + TP 0.97 without problems but it seems to work only with the default theme. Also I cannot modify the mod's settings into the SMF administration. I tried to manual install it and apply the changes to index.template.php and boardindex.template.php into my current theme but I get a template parse error after the changes. Do you know if this an SMF or TP issue?

Edit: I tried to uninstall it and then reinstall it using the SMF default theme but I get an error that the uninstall test failed in the SSI.php file.
Greek Oblivion Guild
-The greek fan site-

kyyote

#1027
I tried installing this mod, and it seemed to be working.  I could see the spiders and such in the stats box.  But, I was gererating hundreds of pages of error messages.  I tried uninstalling it and it said test fail-do you still want to install(?). Yes.  I tried reinstalling it-all tests were good-but now I have a bunch of code at the top of my page like this;

// OB - Googlebot - Begin // Boardindex Strings $txt['ob_googlebot_modname'] = 'Googlebot & Spiders'; $txt['ob_googlebot_spider'] = 'Spider'; $txt['ob_googlebot_spiders'] = 'Spiders'; $txt['ob_googlebot_spiders_last_active'] = 'Spiders active in past ' . $modSettings['lastActive'] . ' minutes'; // ModSettings $txt['ob_googlebot_count_all_instances'] = 'Count all instances of same spider'; $txt['ob_googlebot_display_all_instances'] = 'Display all instances of same spider
("' . $txt['ob_googlebot_count_all_instances'] . '" must be selected)
'; $txt['ob_googlebot_display_agent'] = 'Display agent instead of name'; $txt['ob_googlebot_display_own_list'] = 'Display spiders in its own list'; $txt['ob_googlebot_count_most_online'] = 'Count in "Most Online"'; $txt['ob_googlebot_redirect_phpsessid'] = 'Redirect PHPSESSID URLs'; // Stats $txt['ob_googlebot_stats_lastvisit'] = 'Google visited last this page '; // Permissions $txt['permissiongroup_googlebot'] = $txt['ob_googlebot_modname']; $txt['permissionname_googlebot_view'] = 'View Googlebot & Spiders'; // OB - Googlebot - End

I don't know how to remove it.  Once I get this removed I will try to solve the problem with the hundreds of pages of errors.  I was directed to the manual install thread.  This states "here's where it gets confusing".  They were right.  I am totally confused, my forum looks screwy because of the code at the top, and I am generating tons of errors.
I'm using smf 1.1.1, TP the latest version, and here is my url
http://kyyotesden.com/Forum/index.php

Thank you in advance for any help.

kyyote

I found the file where it was showing up. Forum is fixed.   




bbulldog

Hi, is there a quick way of changing the online user list from:

6 Users, 5 Guests online in past 15 minutes:
to
6 Users, 3 Guest, 2 Spiders online in past 15 minutes:
this is all the information i need on the main page. I dont need the permissions setting or anything else. All other info will be taken out of the who.template.php mod


navjotjsingh

Works Ok on SMF 1.1.1, TP 0.97.1 and Default Theme.

Vinspire

Quote from: navjotjsingh on January 31, 2007, 03:15:01 AM
Works Ok on SMF 1.1.1, TP 0.97.1 and Default Theme.

anyone who can confirm this ? :)

NEMINI

Been working on mine for several weeks now

SMF 1.1.1 TP 0.97 and default + AA_new_damage + dilbur themes.
signatures are boring.

Vinspire

Quote from: NEMINI on January 31, 2007, 09:33:14 PM
Been working on mine for several weeks now

SMF 1.1.1 TP 0.97 and default + AA_new_damage + dilbur themes.

Thanks for the answer :D

btbio

#1033
hiya! i just installed this fantastic mod on 1.1.1
it gave errors for the modsettings.php file upon package manager install- so i did those changes manually.
the mod is showing up on the bottom of the board and i can see the link in admin for googlebots and spiders- but if i click that i get an error message.

Fatal error: Call to undefined function: modifygooglebotsettings() in /home/***/***/Sources/ModSettings.php on line 170

im not getting errors in the error log- and i can change the settings via sql to show/hide (0/1) things but id like to have it clean and working correctly.
any ideas on how to fix this error?

thanks so much for any help!

DeviantMetal

ok, i don't understand any code or anything, i'm a total noob at this. I'm more confused now than I was *doh*
can i just install smf 1.1 rc3 install the mod, and then upgrade to 1.1.1 while keeping the mod?



Eleglin

Quote from: deviantmetaldotcom on February 02, 2007, 01:38:31 AM
ok, i don't understand any code or anything, i'm a total noob at this. I'm more confused now than I was *doh*
can i just install smf 1.1 rc3 install the mod, and then upgrade to 1.1.1 while keeping the mod?
No, it uninstall your mod when you upgrade to 1.1.1
No support by PM or Mail.

bbulldog

what is on line 170 in the file ModSettings.php? this would help a lot.

btbio

line 170 is $subActions[$_REQUEST['sa']](); but heres more just in case that helps.
thanks so much for any help!!


// Select the right tab based on the sub action.
if (isset($context['admin_tabs']['tabs'][$context['sub_action']]))
$context['admin_tabs']['tabs'][$context['sub_action']]['is_selected'] = true;

// Call the right function for this sub-acton.
$subActions[$_REQUEST['sa']]();
}

// This function basically just redirects to the right save function.
function ModifyFeatureSettings2()
{
global $context$txt$scripturl$modSettings$sourcedir;

isAllowedTo('admin_forum');
loadLanguage('ModSettings');

DeviantMetal

Quote from: DarkOmega on December 20, 2006, 12:37:31 AM
Quote from: RoarinRow on December 13, 2006, 05:40:59 PM
I just tried to change of on the settings, include in total online count, then checked my log.  got this error:

8:  Undefined index:  pm_posts_per_hour
File:  /forum/Sources/ModSettings.php
Line 243

The functionality of spiders showing, however, works.

This happened to me as well, this is how I fixed it. Open up ModSettings.php

Search For:

$subActions = array(
      'basic' => 'ModifyBasicSettings',
      'layout' => 'ModifyLayoutSettings',
      'karma' => 'ModifyKarmaSettings',
      'profile' => 'ModifyProfileSettings',
);

And Change to:

$subActions = array(
      'basic' => 'ModifyBasicSettings',
      'layout' => 'ModifyLayoutSettings',
      'karma' => 'ModifyKarmaSettings',
      'googlebot' => 'ModifyGooglebotSettings',
      'profile' => 'ModifyProfileSettings',
);

There are 2 of these they should be both identical. They may be a tad different depending on what you have installed just make sure the googlebot line is added into both groups and that will fix your problem, for you too Witte  ;D

ModSettings.php is in the Sources folder by the way  :D


Is this what will make it work with 1.1.1?

goitalone

I need this mod as well...how can we get it to work with 1.1.1 ?

Is it possible?

Advertisement: