Link to Mod (http://mods.simplemachines.org/index.php?mod=143)
Last Updated: Sep 23, 2010
This Mod allows to see on Boardindex & SSI, when the spiders are crawling the forum. Also spiders that visit your forum using PHPSESSID URLs, and displays on your pages when google last visited them.
Multiple options can be set, and is based on permissions, also.
Is STRONGLY recommended to install this file also (Custom Who.template.php - Displays Users, Guests & Spiders):
http://www.simplemachines.org/community/index.php?topic=401980.0 (http://www.simplemachines.org/community/index.php?topic=401980.0)
Questions about problems installing the mod in the mod topic:
http://www.simplemachines.org/community/index.php?topic=38003.0 (http://www.simplemachines.org/community/index.php?topic=38003.0)
Version 2.0.4 works with 1.1.x and TinyPortal 0.9.8
NEW ON V2:
Redirect PHPSESSIDs: When a spider comes with a URL like this:
http://hablajapones.org/foro/index.php?PHPSESSID=843ac3340412047023e1b2a557bfadbe (http://hablajapones.org/foro/index.php?PHPSESSID=843ac3340412047023e1b2a557bfadbe)
The mod will redirect with a "HTTP/1.1 301 Moved Permanently", to the correct URL that will be:
http://hablajapones.org/foro/index.php (http://hablajapones.org/foro/index.php)
GoogleStats: On each page will display when was last googlebot visit.
Thanks to this sites for the info that I used to create this new modifications on V2:
http://www.ragepank.com/articles/26/disable-phpsessid/ (http://www.ragepank.com/articles/26/disable-phpsessid/)
http://www.fabriziotarizzo.org/wiki/Wikka/WpGooglestats (http://www.fabriziotarizzo.org/wiki/Wikka/WpGooglestats)
Here are some screenshots:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.omarbazavilvazo.com%2Fimagenes%2Fgooglebot01.png&hash=2d68ddcdedee99850087fb833ff615820da6c702)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.omarbazavilvazo.com%2Fimagenes%2Fgooglebot02.png&hash=40dadf9666e3d265bcad61336b02bd35dcd995e2)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.omarbazavilvazo.com%2Fimagenes%2Fgooglebot03.png&hash=3629adc6d3aecf4c78bd0d3be711995df0d0034a)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.omarbazavilvazo.com%2Fimagenes%2Fgooglebot04.png&hash=64f41b65e922359e85fdcd0511cb3a63fdb7c7df)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.omarbazavilvazo.com%2Fimagenes%2Fgooglebot05.png&hash=218dd0a410279b3d97729d125cbbb657d6dc6df4)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.omarbazavilvazo.com%2Fimagenes%2Fgooglebot06.png&hash=0192bc533444df25535742b9f01c597df25d22b6)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.omarbazavilvazo.com%2Fimagenes%2Fgooglebot07.png&hash=060407db9c2607fe54bd51d4e7769e6aec794932)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.omarbazavilvazo.com%2Fimagenes%2Fgooglebot08.png&hash=2c0c212753ac7ae4f7488a19999af9d6869301c4)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.omarbazavilvazo.com%2Fimagenes%2Fgooglebot09.png&hash=7787f61f8d80888ca2e19779323105b4ec634f45)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.omarbazavilvazo.com%2Fimagenes%2Fgooglebot10.png&hash=f33ac385ec6d9a05f2f5488b5bf69bd047a8cd81)
About Most Online
Until now it had this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.omarbazavilvazo.com%2Fimagenes%2Fgooglebot11.png&hash=ff3140d1c07540b2d71cb8e27feeefce3f07c749)
Changing:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.omarbazavilvazo.com%2Fimagenes%2Fgooglebot12.png&hash=a38b2523302f6db0fc33b504c451ea39043b087a)
Now we get:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.omarbazavilvazo.com%2Fimagenes%2Fgooglebot13.png&hash=5616a10b84d5c89cd6d183c71bde6933f3cd444d)
Permissions:
Disallowed for guests:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.omarbazavilvazo.com%2Fimagenes%2Fgooglebot14.png&hash=7da7c2bad5ed2677f5f63f98d0d50a894f8697d4)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.omarbazavilvazo.com%2Fimagenes%2Fgooglebot15.png&hash=4aa67cd8bb72d49ccdc63ae80f1365afdbf74edf)
Allowed for guests:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.omarbazavilvazo.com%2Fimagenes%2Fgooglebot16.png&hash=96dd732dbd1661966c29d9e0cfb2644cb6121407)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.omarbazavilvazo.com%2Fimagenes%2Fgooglebot17.png&hash=e994b0791a0c99229ecc51526104fb21197d5eac)
GoogleStats:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg284.imageshack.us%2Fimg284%2F609%2Fgooglebot2qx0.jpg&hash=a7136124fc3c863c535df7f8c69775c9b6d4cdba)
History:
23/Sep/2010 - 2.0.4 - Updated link to Custom Who.template.php by MoreBloodWine
5/Oct/2008 - 2.0.4 - Made it more mod-friendly, added a missing spanish string
23/Apr/2007 - 2.0.3 - Fixed some errors (not saving options)
9/Apr/2007 - 2.0.3 - FINALLY UPDATED FOR 1.1.X, fixed some problems when uninstalling mod, updated to work with TP 0.9.8, and made it compatible with SMF Package Parser Server (http://modparser.dev.dansoftaustralia.net/index.php) for manual install
9/Sep/2006 - 2.0.2 - Fixed 'start' error, and checked compatibility with TP 0.9.5.
5/Sep/2006 - 2.0.1 - Fixed a small bug that topic wasn't being counted.
5/Sep/2006 - 2.0.0 for 1.1 RC3 and 1.0.8. No compatible with TinyPortal, becausethey have not released TP for this SMF versions. Added Redirect PHPSESSID and GoogleStats.
24/Feb/2006 - 1.0.5 for 1.1 RC2 updated to be compatible with TinyPortal
24/Feb/2006 - 1.0.5 Updated for 1.0.6 and 1.1 RC2
10/Nov/2005 - 1.0.4 Updated for 1.1 RC1
5/Jul/2005 - 1.0.4 Updated for 1.1 Beta 3 Public
24/Jun/2005 - 1.0.4 Fixed an error that in action=trackip;searchip=xx.xx.xx.xx gave the error Undefined index: ob_googlebot_count_most_online
24/Jun/2005 - 1.0.3 Released for 1.0.5
14/Jun/2005 - 1.0.2 Released for 1.1 beta 3
17/Jun/2005 - 1.0.2 Released for 1.0.x & 1.1 Beta 2
6/Jun/2005 - 1.0.1 Released
Fixed: error in filename case (Boardindex)
6/Jun/2005 - 1.0.0 Released
じゃね!
Nice, I bet a lot of people will appreciate this mod.
Ok one bug.
<file name="$sourcedir/Boardindex.php">
and
<file name="$themedir/Boardindex.template.php">
should be
<file name="$sourcedir/BoardIndex.php">
and
<file name="$themedir/BoardIndex.template.php">
I unzipped the file and manually made the change and the mod installed perfectly.
yeah. Is that why it said "FILE NOT FOUND"? twice?
cool mod though. I like it. Props.
I tried it again...it still didnt work. Did you put the corrected file on the mod page yet? :P
Fixed, sorry for the problems...
I packaged it on Windows, so never noticed.
v1.0.1 up & running :)
Perfect Installation! Thanks. Awesome mod. I want my forums to be spider f00d :P
Great mod! I've been anticipating this one since you mentioned it.
-Dan The Man
Great, I love this already.
i have been waiting on this also. great mod man :)
Good job Omar!
/me bows to all his Mod users :)
I tryed to install but I get this error:
2: fopen(SSI.php): failed to open stream: Permission denied
File: /var/www/html/usd/Sources/Subs-Package.php
Line: 1476
So, what must I do now?
Thank you for answer.
Quote from: rmb on June 07, 2005, 01:17:49 AM
I tryed to install but I get this error:
./Sources/ManagePermissions.php Failure
So, what must I do now?
Thank you for answer.
On your packages list you have
#. Googlebot & Spiders Mod 1.0.1 [ Apply Mod ] [ List Files ] [ Delete ]
Click on List files
You should get a list like the one below. Select the one in bold.
List files in package
Files in archive Googlebot_v1.0.1.zip:
install.txt (357 bytes)
install.xml (12918 bytes) package-info.xml (575 bytes)
SMF Mod TOS Draft.doc (21504 bytes)
[ Back ]
You will now have a list of the changes the mod is susposed to make.
Search down the page until you see
<file name="$sourcedir/ManagePermissions.php">
Find the below lines in your forum copy of Manage Permissions.php they should be in there somewhere
)
),
'board' => array(
'general_board' => array(
Make the lines in your ManagePermissions.php match lines from the install.xml it should look like the text in the code section above and try to reapply the mod.
If it still fails. Uninstall all installed mods and replace the ManagePermissions with the original one from the smf_1-0-3_install.tar.gz then try installing the spiders mod first. Then simply reinstall the rest of your mods. If it still doesn't work you might wanna try a fresh install.
Now is ... confusing... Under "View and Remove Installed Packages" I do not heave this mod, but main page looks like this (http://www.serbian-business.com/usd/index.php)
What must I do now to repair this mod to work?
Quote from: rmb on June 07, 2005, 02:13:39 AM
Now is ... confusing... Under "View and Remove Installed Packages" I do not heave this mod, but main page looks like this (http://www.serbian-business.com/usd/index.php)
What must I do now to repair this mod to work?
Sounds like a permissions issue. Fix that and you should see the mod. Basically the mod is not visible to the web server. Try uploading the mod from your computer though the admin panel.
I reinstall all sources but when I try to install this mod I get from begining:
1. Execute Modification ./Sources/BoardIndex.php Failure
2. Execute Modification ./Sources/ManagePermissions.php Failure
3. Execute Modification ./Sources/ModSettings.php Success
4. Execute Modification ./Sources/Subs.php Failure
5. Execute Modification ./Themes/default/languages/Modifications.english.php Success
6. Execute Modification ./Themes/default/BoardIndex.template.php Success
7. Execute Modification SSI.php Success
I chmoded all files on 777, if I proceed I get on the end error in Subspackage.php
I simply cann not install this mod.
Without installed mod I heave on main page:
Users Online
1 Spider, 1 Spider, 3 Guests, 2 Users
Users active in past 15 minutes:
administrator, 5.0L, Yahoo spider, Yahoo spider
Taking this to private message so we don't spam this thread.
I installed it but when I go to "Edit Features and Options" I get this error:
QuoteParse error: parse error, unexpected T_ARRAY in /www/docs/forum/Sources/ModSettings.php on line 356
What should I do?
Nice work, been waiting for this :)
Got one problem tough. It's a bit hard to install it manualy. xml file isn't realy easy to follow, and it's very easy to overlook something.
Quote from: CokeCan on June 07, 2005, 02:58:27 AM
I installed it but when I go to "Edit Features and Options" I get this error:
QuoteParse error: parse error, unexpected T_ARRAY in /www/docs/forum/Sources/ModSettings.php on line 356
What should I do?
what version of smf do you have?
can you copy/paste from line 350-360 here?
Quote from: Harro on June 07, 2005, 06:28:31 AM
Nice work, been waiting for this :)
Got one problem tough. It's a bit hard to install it manualy. xml file isn't realy easy to follow, and it's very easy to overlook something.
if you don't have any other mod, i can send toyou the modified files, from a clean install.
or you can install it on a local computer, and then ftp your modified files
Go shoutbox installed, arcade.
SO I doubt it'll work.
I'll try to do it manually :)
But first I'm gonna change some stuff to that xml file, so it looks a bit better.
Quote from: Omar Bazavilvazo on June 07, 2005, 08:08:28 AM
Quote from: CokeCan on June 07, 2005, 02:58:27 AM
I installed it but when I go to "Edit Features and Options" I get this error:
QuoteParse error: parse error, unexpected T_ARRAY in /www/docs/forum/Sources/ModSettings.php on line 356
What should I do?
what version of smf do you have?
can you copy/paste from line 350-360 here?
I have got the last SMF version (SMF 1.0.3), here are the lines:
if (isset($modSettings['mdb_enable_fm_features']) && $modSettings['mdb_enable_fm_features'] > 0)
array_push($config_vars,
array('select', 'mdb_artist_folder', $fm_folders),
array('select', 'mdb_album_folder', $fm_folders),
array('select', 'mdb_song_folder', $fm_folders),
array('rule')
array('heading', &$txt['ob_googlebot_modname']),
// Count all instances of spiders?
array('check', 'ob_googlebot_count_all_instances'),
array('check', 'ob_googlebot_display_all_instances'),
array('check', 'ob_googlebot_display_agent'),
array('check', 'ob_googlebot_display_own_list'),
array('rule'),
array('check', 'ob_googlebot_count_most_online'),
);
Looks like you have some other mods installed which are conflicting...
(You need a comma after that array('rule') before the ob_googlebot_modname array...
array('rule'),
array('check', 'visualw_pmod_edit'),
array('rule'),
array('heading', &$txt['ob_googlebot_modname']),
// Count all instances of spiders?
array('check', 'ob_googlebot_count_all_instances'),
array('check', 'ob_googlebot_display_all_instances'),
array('check', 'ob_googlebot_display_agent'),
array('check', 'ob_googlebot_display_own_list'),
array('rule'),
array('check', 'ob_googlebot_count_most_online'),
);
this is what mine looks like...
Yup, it should be like this:
if (isset($modSettings['mdb_enable_fm_features']) && $modSettings['mdb_enable_fm_features'] > 0)
array_push($config_vars,
array('select', 'mdb_artist_folder', $fm_folders),
array('select', 'mdb_album_folder', $fm_folders),
array('select', 'mdb_song_folder', $fm_folders),
array('rule'),
array('heading', &$txt['ob_googlebot_modname']),
// Count all instances of spiders?
array('check', 'ob_googlebot_count_all_instances'),
array('check', 'ob_googlebot_display_all_instances'),
array('check', 'ob_googlebot_display_agent'),
array('check', 'ob_googlebot_display_own_list'),
array('rule'),
array('check', 'ob_googlebot_count_most_online'),
);
Thanks but now I get this error :-[:
QuoteParse error: parse error, unexpected ')' in /www/xxx/xxx/forum/Sources/ModSettings.php on line 364
Here are the line 363 and 364:
Quotearray('check', 'ob_googlebot_count_most_online'),
);
If I change it to:
Quotearray('check', 'ob_googlebot_count_most_online')
);
The "Edit Features and Options" works ok but I can't find the settings of this mod there
Seems the problem is because of music mod or whatever mod you are using.
ok, leave how it was _before_ the "," you aded.
Search for:
array('heading', &$txt['ob_googlebot_modname']),
// Count all instances of spiders?
array('check', 'ob_googlebot_count_all_instances'),
array('check', 'ob_googlebot_display_all_instances'),
array('check', 'ob_googlebot_display_agent'),
array('check', 'ob_googlebot_display_own_list'),
array('rule'),
array('check', 'ob_googlebot_count_most_online'),
Cut it, and PASTE it
AFTER:
array('rule'),
// One day events or multi-day?
array('check', 'cal_allowspan'),
array('int', 'cal_maxspan'),
array('rule'),
let me know how it works
ja ne!
Now it get:
QuoteParse error: parse error, unexpected T_ARRAY in /www/xxx/xxx/forum/Sources/ModSettings.php on line 356
Quote from: Omar Bazavilvazo on June 07, 2005, 12:08:46 PM
Seems the problem is because of music mod or whatever mod you are using.
ok, leave how it was _before_ the "," you aded.
Search for:
array('heading', &$txt['ob_googlebot_modname']),
// Count all instances of spiders?
array('check', 'ob_googlebot_count_all_instances'),
array('check', 'ob_googlebot_display_all_instances'),
array('check', 'ob_googlebot_display_agent'),
array('check', 'ob_googlebot_display_own_list'),
array('rule'),
array('check', 'ob_googlebot_count_most_online'),
Cut it, and PASTE it
AFTER:
array('rule'),
// One day events or multi-day?
array('check', 'cal_allowspan'),
array('int', 'cal_maxspan'),
array('rule'),
let me know how it works
ja ne!
I had the same problem with the music database mod. Now it works for me. Thx. Great mod.
Quote from: Omar Bazavilvazo on June 07, 2005, 12:08:46 PM
Seems the problem is because of music mod or whatever mod you are using.
He sent me a PM since he only has two installed mods the music one and this one I recommended he uninstall both. Swap the file in question to the one from the distribution, and reinstall them both your mod first, then reinstall the music mod and see if that fixed his problem.
Omar, you need to update to beta3 ;)
Quote from: bl968 on June 07, 2005, 12:23:21 PM
Quote from: Omar Bazavilvazo on June 07, 2005, 12:08:46 PM
Seems the problem is because of music mod or whatever mod you are using.
He sent me a PM since he only has two installed mods the music one and this one I recommended he uninstall both. Swap the file in question to the one from the distribution, and reinstall them both your mod first, then reinstall the music mod and see if that fixed his problem.
Works ok now! thanks! :D
Quote from: Owdy on June 07, 2005, 12:28:26 PM
Omar, you need to update to beta3 ;)
*lol* yeah...
I must do it all again for my site *sigh*
Quote from: CokeCan on June 07, 2005, 12:54:08 PM
Works ok now! thanks! :D
I'm glad it finally worked :P
i am having a problem with this mod
it isn't working for guests or members, but works fine for admin
also this is how it looks in my permissions area
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.twaddlehosting.co.uk%2Fpictures%2Ffiles%2Fbrokedpermissions.jpg&hash=82b97122c322f7912e522fafab3da9cff659c0e6)
I am not getting any errors, error log is empty too.
i think it is clashing with a mod, but no idea what one. i checked all the files to make sure the code is in right and it was (besides a couple of tweaks to the templates)
for both "ungrouped visitors" and "ungrouped members" it is allowed?
it should only have 1 option button, not 2... try in english to see why you are getting 2 rows...
I'm also getting an error :(
Parse error: parse error, unexpected T_DOUBLE_ARROW in /home/users/members/hwbk/harro/public_html/forums/Sources/BoardIndex.php on line 392
// Highest number of users online today?
elseif ($total_users > $modSettings['mostOnlineToday'])
{
trackStats(array('mostOn' => $total_users));
updateSettings(array('mostOnlineUpdated' => $date, 'mostOnlineToday' => $total_users));
}
}
// Allowed user to see spiders online (We change stuff here AFTER stats update). Spiders are displayed as guests again.
if (!allowedTo('googlebot_view'))
{
$context['num_guests'] += $context['num_spiders'];
}
// Set the latest member.
'name' => $modSettings['latestRealName'],
'id' => $modSettings['latestMember'],
'href' => $scripturl . '?action=profile;u=' . $modSettings['latestMember'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $modSettings['latestMember'] . '">' . $modSettings['latestRealName'] . '</a>'
);
Any idea what it could be?
Useully I can find these errors by myself. But haven't been able to fix htis one...
[edit]
Nevermind.
I fixed it I think.
Now I'll have to wait for a spider to come by ;)
[edit 2]
Anybody succesfully installed this for another theme then the default?
Am having problems with it.
I bi-accidentally installed it 4 times, where can I delete this error.
Quote from: mager on June 07, 2005, 08:16:00 PM
I bi-accidentally installed it 4 times, where can I delete this error.
In your
Admin > Package Manager, uninstall all "Googlebot and Spiders" mods that can be uninstalled. Then, delete each one and try reinstalling once more.
-Dan The Man
there is no "uninstall" for it, but it is installed 4 times.
you will have to edit your files by hand.... or restore the base files from the SMF install.
It says that it doesn't work with 1.0.4 :(
i think i added a uninstall for it...
ppl that got it working properly, can uninstall it?
Omar... it's not that the uninstall doesn't work (I believe it does, for me)
the problem is that the installation happened four times... this means he'll have to remove the extra three installations by hand...
Quote from: Omar Bazavilvazo on June 07, 2005, 05:31:47 PM
for both "ungrouped visitors" and "ungrouped members" it is allowed?
it should only have 1 option button, not 2... try in english to see why you are getting 2 rows...
allowed for all, as far as i can tell there is only the one set of code in modifications english, no duplicate, i checked all files aswell. Tried uninstalling and reinstalling, but i get the same results.
scrap the above, just found it
i like this mod.
Are you going to make a version compatible with the smf 1.0.4 ?
I tryed to install mod after I upgrade to SMF104 but I cann not. I got this message:
QuotePackage Manager - Install Actions
Install Actions for archive Googlebot_v1.0.1.zip:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
See post before you.
Quote from: mrselnombre on June 08, 2005, 02:40:47 AM
i like this mod.
Great! I love it, too :)
Quote from: floating on June 08, 2005, 04:51:46 AM
Are you going to make a version compatible with the smf 1.0.4 ?
I'll update it to work with 1.1b3, and SMF 1.0.4 :P
man. That's ironic. And sucky.
You make an AWESOME mod, and then like, the next day, they release a new version that the mod isnt compatable with.
NOW GET BACK TO WORK! :P j/p
Quote from: Tippmaster on June 08, 2005, 05:29:55 PM
man. That's ironic. And sucky.
You make an AWESOME mod, and then like, the next day, they release a new version that the mod isnt compatable with.
NOW GET BACK TO WORK! :P j/p
Actually all he or you has to do is update the version numbers in the xml file and it will install just fine. I tested it yesterday right after 1.0.4 came out. Change version number 1.0.3 to 1.0.4 and then you can install. Or wait for him to release a updated version number.
Contents of file package-info.xml Before
<?xml version="1.0"?>
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
<name>Googlebot & Spiders Mod</name>
<id>obazavil:googlebot</id>
<type>modification</type>
<version>1.0.1</version>
<install for="1.0.3, 1.1 Beta 2">
<readme>install.txt</readme>
<modification>install.xml</modification>
</install>
<uninstall>
<modification reverse="true">install.xml</modification>
</uninstall>
</package-info>
Contents of file package-info.xml after
<?xml version="1.0"?>
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
<name>Googlebot & Spiders Mod</name>
<id>obazavil:googlebot</id>
<type>modification</type>
<version>1.0.2</version>
<install for="1.0.4, 1.1 Beta 2">
<readme>install.txt</readme>
<modification>install.xml</modification>
</install>
<uninstall>
<modification reverse="true">install.xml</modification>
</uninstall>
</package-info>
oh.
i was trying to make a funny :P
Quote from: Tippmaster on June 08, 2005, 07:01:48 PM
oh.
i was trying to make a funny :P
I know i was too :) But actually it's useful for those who really really want to get this installed and just can't wait for Omar to get home :)
i just upgraded to smf 1.04 and googlebot 1.01 cannot be installed anymore. will there be a updated googlebot for 1.04 soon..?
I'm still using 1.0.3, so I'll wait :) I love it the mod though--thank you so much! I was waiting for something like this to come out!
-Shayna
just change the <install for="1.03... line to install for="1.0.3, 1.0.4, ...> in the package-info.xml file before uploading it to your package manager. The mod will install fine under 1.0.4
Great mod. I just heave problem because only admins see spider on online list. But mod is great. Thanks!
Quote from: rmb on June 09, 2005, 03:33:16 AM
Great mod. I just heave problem because only admins see spider on online list. But mod is great. Thanks!
that can be fixed on permissions screen
Also, I updated it for 1.0.4 ... the one for 1.1 beta 3, i'll release it later, since they changed some things :)
ha. I was first to download the new version. I win.
Installed flawlessly on 1.0.4. great work!
Quote from: Tippmaster on June 09, 2005, 12:13:19 PM
ha. I was first to download the new version. I win.
*lol* :)
Quote from: Tippmaster on June 09, 2005, 12:13:19 PM
Installed flawlessly on 1.0.4. great work!
thanks :P
Installed easily too on 1.04. May all Mods be so easy to install :)
w00t!
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg246.echo.cx%2Fimg246%2F48%2Fspyderw00t7mm.png&hash=5e708df3dddc15f7b8d384647b24d68b7adaab91) (http://www.imageshack.us)
Got a doubt. i'm testing it with a 1.0.4 test forum before install it in my main forum.
- Got a spanish forum: will work? will show anything?
- i tried it in my test forum but in the home I see nothing. Just added all options in options and in permissions but I see nothing. Maybe I must wait until there's a search engine?
is it possible that the buddies are also shown apart, like the quest, spiders and users in who's online.
Quote from: Naiden on June 12, 2005, 08:24:21 AM
- Got a spanish forum: will work? will show anything?
You must add the same string that are in modifications.english.php into modifications.spanish.php
Quote from: Naiden on June 12, 2005, 08:24:21 AM
- i tried it in my test forum but in the home I see nothing. Just added all options in options and in permissions but I see nothing. Maybe I must wait until there's a search engine?
When the spiders are crawling you site, you will see them :)
Quote from: ingmar on June 12, 2005, 10:44:49 AM
is it possible that the buddies are also shown apart, like the quest, spiders and users in who's online.
Well, that's something this mod is not supposed to do.
this is the most useful MOD i have ever used/seen. Thank you.
I installed this mod with the package manager and supposedly, it was installed successfully. However, when I go to "Edit Features and Options", the bottom section (newly added by the mod) is all blank!
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.wtfba.org%2Ftemp%2Fblank_options.jpg&hash=2cda61132eb8d54ba70861993f9b8363c1060fbd)
Any clues on how to resolve this? Thanks!
check Modifications.english.php
there should have all needed strings...
i have this set
Users active in past 15 minutes:
to 15 minutes obviously
im wondering if its possible to have this...
Spiders active in past 60 minutes:
a different timer?
thanks
Quote from: electrohome88 on June 13, 2005, 02:04:01 AM
i have this set
Users active in past 15 minutes:
to 15 minutes obviously
im wondering if its possible to have this...
Spiders active in past 60 minutes:
a different timer?
thanks
is not possible, uses the same logs as users online :)
??? Is it possible to enhance this mod with "Spiders online Today" similiarly as "Users online Today" ?
i'll think about it for next version :)
QuotePerfect Installation! Thanks. Awesome mod. I want my forums to be spider f00d
lmaooooooo
I installed via admin is that it, can it really be that easy?
:D
Installed five times for error. I tried restoring database but nothing. I've got only this mod installed (and the 1.0.4...) by restoring the files I'll get rid of them or what can I do to uninstall it?
Yeah, there's an uninstall option, but doesn't work, surely because I installed so many times
hey, if this mod doesnt recognize the spider, does it just display as a normal guest?
Quote from: Naiden on June 13, 2005, 06:31:04 PM
Installed five times for error. I tried restoring database but nothing. I've got only this mod installed (and the 1.0.4...) by restoring the files I'll get rid of them or what can I do to uninstall it?
Yeah, there's an uninstall option, but doesn't work, surely because I installed so many times
then reupload all files (since you have no mods), and try again.
Quote from: Tippmaster on June 13, 2005, 06:32:50 PM
hey, if this mod doesnt recognize the spider, does it just display as a normal guest?
indeed :)
what spiders does it recognize? Just the biggies like yahoo, google, msn, etc.?
When will this mod be released for SMF 1.1 Beta 3?
-Dan The Man
Quote from: Tippmaster on June 13, 2005, 07:08:44 PM
what spiders does it recognize? Just the biggies like yahoo, google, msn, etc.?
Based on Owdy's mod, it supports:
Looksmart spider, MSN spider, W3C Validator, Google-Image Spider, Google spider, Google AdSense spider, Altavista spider, Yahoo spider, FAST-WebCrawler, Wget, Ask Jeeves, Speedy Spider, SurveyBot, IBM_Planetwide, GigaBot, ia_archiver, Inktomi Slurp.
Quote from: OIDanTheManIO on June 13, 2005, 08:54:01 PM
When will this mod be released for SMF 1.1 Beta 3?
-Dan The Man
This week :P
Must one use Owdy's mod?
All I am picking up is MSN spider at this stage, so I was wondering if I was missing something?
that's all i ever pick up to. One msn spider. You cant expect an army of spiders all over your forums. Im sure it's normal
Fixed all my problems.
Nice mod I like it. I saw working for Googlebot and so... good :D
If anyone's wants it in spanish just add this into its Modifications.spanish.php (at forum-url/Themes/default/languages/)
Quote// OB - Googlebot - Begin
// Strings dle índice del foro
$txt['ob_googlebot_modname'] = 'Googlebot & Robots';
$txt['ob_googlebot_spider'] = 'Robot';
$txt['ob_googlebot_spiders'] = 'Robots';
$txt['ob_googlebot_spiders_last_active'] = 'Robots activos en los últimos ' . $modSettings['lastActive'] . ' minutos';
// Opciones y configuración del foro
$txt['ob_googlebot_count_all_instances'] = 'Contar todas las instancias del mismo robot';
$txt['ob_googlebot_display_all_instances'] = 'Mostrar todas las instancias del mismo robot <div class="smalltext">("' . $txt['ob_googlebot_count_all_instances'] . '" debe de estar seleccionado)</div>';
$txt['ob_googlebot_display_agent'] = 'Mostrar agente al lado del nombre';
$txt['ob_googlebot_display_own_list'] = 'Mostar robots en su propia lista';
$txt['ob_googlebot_count_most_online'] = 'Contar en máximo de conectados"';
// Permisos
$txt['permissiongroup_googlebot'] = $txt['ob_googlebot_modname'];
$txt['permissionname_googlebot_view'] = 'Ver Googlebot y Robots';
// OB - Googlebot - End
thanks!
Quote from: robone on June 14, 2005, 12:09:06 PM
Must one use Owdy's mod?
All I am picking up is MSN spider at this stage, so I was wondering if I was missing something?
Is not really needed... (but is cool to have it also) I based my mod on his mod, to detect the spiders :P
Quote from: Naiden on June 14, 2005, 12:32:58 PM
If anyone's wants it in spanish just add this into its Modifications.spanish.php (at forum-url/Themes/default/languages/)
Gracias por la traduccion :)
ja ne!
Quote from: Omar Bazavilvazo on June 13, 2005, 01:15:36 AM
check Modifications.english.php
there should have all needed strings...
The $languagedir and $themedir in the install.xml file are not pointing to the correct theme. They only seem to point to the "default" theme and I am not using the default theme. Any way to change this without modifying the install.xml file and re-uploading the zip file?
This will also help me with the problems I'm having with other modifications!
you will need to change the string by hand on the theme you are using.
Thanks!! Got it working! ;)
Uploaded version for 1.1 beta 3 :)
Enjoy!
ja ne!
wtf is "yahoo slurp"?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg153.echo.cx%2Fimg153%2F9286%2Fyaho7ip.gif&hash=549ec58820c325c1e7a6837e5c9483fab471856e) (http://www.imageshack.us)
That's the name of Yahoo!'s crawler.
-[Unknown]
Hello,
I'm using SMF v1.0.4 running the default theme. I just recently installed this mod, however, it appears there's a problem with the permissions.
Only administrators can see the following new "spiders" online:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.sinning.org%2Fimages%2Fusers.jpg&hash=fc3837e04838f549ce4f3329f488b10c1b6331d1)
And not only that, but the feature is only displayed when there is a spider on the forum (as shown in the picture above). Meaning, when a spider is NOT on the forum the "Online Users" portion only displays "Guests" and "User". (as shown in the picture below). And, again, this is only admins.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.sinning.org%2Fimages%2Fusers2.jpg&hash=26543baa7b0a63f3e81ca329de3c58916105da63)
Plus, the following permissions options are not found under the "permissions" category in the admin section. I noticed that these options should be available after reading this thread:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.sinning.org%2Fimages%2Fgooglebot16.png&hash=50ceee7f2ad187fdb04e621db266d0495f98a3cf)
Also, I do have the options under "Edit Features and Options" such as:
Count all instances of same spider
Display all instances of same spider
("Count all instances of same spider" must be selected)
Display agent instead of name
Display spiders in its own list
------------------------------------------------------------
Here's the code to the relevant parts of my ManagePermissions.php:
// Switch a board from local to global permissions or v.v.
function SwitchBoard()
{
global $db_prefix;
// Security above all.
checkSession('get');
validateSession();
$_GET['boardid'] = (int) $_GET['boardid'];
// Make sure the board exists and can be switched to $_GET['to'].
$request = db_query("
SELECT ID_BOARD
FROM {$db_prefix}boards
WHERE ID_BOARD = $_GET[boardid]
AND use_local_permissions = " . ($_GET['to'] == 'local' ? '0' : '1') . "
LIMIT 1", __FILE__, __LINE__);
if (mysql_num_rows($request) != 1)
{
if ($_GET['to'] == 'local')
PermissionIndex();
else
redirectexit('action=permissions');
return;
}
mysql_free_result($request);
// Copy the global permissions to the specific board.
if ($_GET['to'] == 'local')
{
$request = db_query("
SELECT ID_GROUP, permission, addDeny
FROM {$db_prefix}board_permissions
WHERE ID_BOARD = 0", __FILE__, __LINE__);
$insertRows = array();
while ($row = mysql_fetch_assoc($request))
$insertRows[] = "($row[ID_GROUP], $_GET[boardid], '$row[permission]', $row[addDeny])";
mysql_free_result($request);
// Reset the current local permissions.
db_query("
DELETE FROM {$db_prefix}board_permissions
WHERE ID_BOARD = $_GET[boardid]", __FILE__, __LINE__);
if (!empty($insertRows))
db_query("
INSERT INTO {$db_prefix}board_permissions
(ID_GROUP, ID_BOARD, permission, addDeny)
VALUES " . implode(",
", $insertRows), __FILE__, __LINE__);
}
// Switch back to inherited permissions (delete all local permissions).
else
db_query("
DELETE FROM {$db_prefix}board_permissions
WHERE ID_BOARD = $_GET[boardid]", __FILE__, __LINE__);
// Update the board setting.
db_query("
UPDATE {$db_prefix}boards
SET use_local_permissions = " . ($_GET['to'] == 'local' ? '1' : '0') . "
WHERE ID_BOARD = $_GET[boardid]", __FILE__, __LINE__);
if ($_GET['to'] == 'local')
PermissionIndex();
else
redirectexit('action=permissions');
}
function ModifyMembergroup()
{
global $db_prefix, $context, $txt;
$context['group']['id'] = (int) $_GET['id'];
loadAllPermissions();
if ($context['group']['id'] > 0)
{
$result = db_query("
SELECT groupName
FROM {$db_prefix}membergroups
WHERE ID_GROUP = {$context['group']['id']}
LIMIT 1", __FILE__, __LINE__);
list ($context['group']['name']) = mysql_fetch_row($result);
mysql_free_result($result);
}
elseif ($context['group']['id'] == -1)
$context['group']['name'] = &$txt['membergroups_guests'];
else
$context['group']['name'] = &$txt['membergroups_members'];
$context['board']['id'] = empty($_GET['boardid']) ? 0 : (int) $_GET['boardid'];
$context['local'] = !empty($_GET['boardid']);
if ($context['local'])
{
$request = db_query("
SELECT name
FROM {$db_prefix}boards
WHERE ID_BOARD = {$context['board']['id']}
AND use_local_permissions = 1", __FILE__, __LINE__);
// Either the board was not found or the permissions are set to global.
if (mysql_num_rows($request) == 0)
fatal_lang_error('smf232');
list ($context['board']['name']) = mysql_fetch_row($request);
mysql_free_result($request);
}
// Fetch the current permissions.
$permissions = array(
'membergroup' => array('allowed' => array(), 'denied' => array()),
'board' => array('allowed' => array(), 'denied' => array())
);
if ($context['group']['id'] != 3 && !$context['local'])
{
$result = db_query("
SELECT permission, addDeny
FROM {$db_prefix}permissions
WHERE ID_GROUP = $_GET[id]", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($result))
$permissions['membergroup'][empty($row['addDeny']) ? 'denied' : 'allowed'][] = $row['permission'];
mysql_free_result($result);
$context['permissions']['membergroup']['show'] = true;
}
else
$context['permissions']['membergroup']['show'] = false;
// Fetch current board permissions.
$result = db_query("
SELECT permission, addDeny
FROM {$db_prefix}board_permissions
WHERE ID_GROUP = {$context['group']['id']}
AND ID_BOARD = {$context['board']['id']}", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($result))
$permissions['board'][empty($row['addDeny']) ? 'denied' : 'allowed'][] = $row['permission'];
mysql_free_result($result);
$context['permissions']['board']['show'] = true;
// Loop through each permission and set whether it's checked.
foreach ($context['permissions'] as $permissionType => $tmp)
{
foreach ($tmp['columns'] as $position => $permissionGroups)
{
foreach ($permissionGroups as $permissionGroup => $permissionArray)
{
foreach ($permissionArray['permissions'] as $perm)
{
// Create a shortcut for the current permission.
$curPerm = &$context['permissions'][$permissionType]['columns'][$position][$permissionGroup]['permissions'][$perm['id']];
if ($perm['has_own_any'])
{
$curPerm['any']['select'] = in_array($perm['id'] . '_any', $permissions[$permissionType]['allowed']) ? 'on' : (in_array($perm['id'] . '_any', $permissions[$permissionType]['denied']) ? 'denied' : 'off');
$curPerm['own']['select'] = in_array($perm['id'] . '_own', $permissions[$permissionType]['allowed']) ? 'on' : (in_array($perm['id'] . '_own', $permissions[$permissionType]['denied']) ? 'denied' : 'off');
}
else
$curPerm['select'] = in_array($perm['id'], $permissions[$permissionType]['denied']) ? 'denied' : (in_array($perm['id'], $permissions[$permissionType]['allowed']) ? 'on' : 'off');
}
}
}
}
$context['sub_template'] = 'modify_group';
$context['page_title'] = $txt['permissions_modify_group'];
}
function ModifyMembergroup2()
{
global $db_prefix;
checkSession();
$_GET['id'] = (int) $_GET['id'];
$_GET['boardid'] = (int) $_GET['boardid'];
$givePerms = array('membergroup' => array(), 'board' => array());
// Prepare all permissions that were set or denied for addition to the DB.
foreach ($_POST['perm'] as $perm_type => $perm_array)
foreach ($perm_array as $permission => $value)
if ($value == 'on' || $value == 'deny')
$givePerms[$perm_type][] = "$permission', " . ($value == 'on' ? '1' : '0');
// Insert the general permissions.
if ($_GET['id'] != 3 && empty($_GET['boardid']))
{
db_query("
DELETE FROM {$db_prefix}permissions
WHERE ID_GROUP = $_GET[id]", __FILE__, __LINE__);
if (!empty($givePerms['membergroup']))
db_query("
INSERT IGNORE INTO {$db_prefix}permissions
(ID_GROUP, permission, addDeny)
VALUES ($_GET[id], '" . implode("),
($_GET[id], '", $givePerms['membergroup']) . ")", __FILE__, __LINE__);
}
// Insert the boardpermissions.
db_query("
DELETE FROM {$db_prefix}board_permissions
WHERE ID_GROUP = $_GET[id]
AND ID_BOARD = $_GET[boardid]", __FILE__, __LINE__);
if (!empty($givePerms['board']))
db_query("
INSERT IGNORE INTO {$db_prefix}board_permissions
(ID_GROUP, ID_BOARD, permission, addDeny)
VALUES ($_GET[id], $_GET[boardid], '" . implode("),
($_GET[id], $_GET[boardid], '", $givePerms['board']) . ")", __FILE__, __LINE__);
redirectexit('action=permissions;boardid=' . $_GET['boardid']);
}
// Set the permission level for a specific board, group, or group for a board.
function setPermissionLevel($level, $group, $board = 'null')
{
global $db_prefix;
// Levels by group... restrict, standard, moderator, maintenance.
$groupLevels = array(
'board' => array('inherit' => array()),
'group' => array('inherit' => array())
);
// Levels by board... standard, publish, free.
$boardLevels = array('inherit' => array());
// Restrictive - ie. guests.
$groupLevels['global']['restrict'] = array(
'search_posts',
'calendar_view',
'view_stats',
'who_view',
'profile_view_own',
'profile_identity_own',
);
$groupLevels['board']['restrict'] = array(
'poll_view',
'post_new',
'post_reply_own',
'post_reply_any',
'remove_own',
'modify_own',
'mark_any_notify',
'mark_notify',
'report_any',
'send_topic',
);
// Standard - ie. members. They can do anything Restrictive can.
$groupLevels['global']['standard'] = array_merge($groupLevels['global']['restrict'], array(
'view_mlist',
'karma_edit',
'pm_read',
'pm_send',
'profile_view_any',
'profile_extra_own',
'profile_remote_avatar',
'profile_remove_own',
'arcade_play',
));
$groupLevels['board']['standard'] = array_merge($groupLevels['board']['restrict'], array(
'poll_vote',
'poll_edit_own',
'poll_post',
'poll_add_own',
'post_attachment',
'lock_own',
'delete_own',
'view_attachments',
));
// Moderator - ie. moderators :P. They can do what standard can, and more.
$groupLevels['global']['moderator'] = array_merge($groupLevels['global']['standard'], array(
'calendar_post',
'calendar_edit_own',
));
$groupLevels['board']['moderator'] = array_merge($groupLevels['board']['standard'], array(
'make_sticky',
'poll_edit_any',
'remove_any',
'modify_any',
'lock_any',
'delete_any',
'move_any',
'merge_any',
'split_any',
'poll_lock_any',
'poll_remove_any',
'poll_add_any',
));
// Maintenance - wannabe admins. They can do almost everything.
$groupLevels['global']['maintenance'] = array_merge($groupLevels['global']['moderator'], array(
'manage_attachments',
'manage_smileys',
'manage_boards',
'moderate_forum',
'manage_membergroups',
'manage_bans',
'admin_forum',
'manage_permissions',
'edit_news',
'calendar_edit_any',
'profile_identity_any',
'profile_extra_any',
'profile_title_any',
));
$groupLevels['board']['maintenance'] = array_merge($groupLevels['board']['moderator'], array(
));
// Standard - nothing above the group permissions. (this SHOULD be empty.)
$boardLevels['standard'] = array(
);
// Locked - just that, you can't post here.
$boardLevels['locked'] = array(
'poll_view',
'mark_notify',
'report_any',
'send_topic',
'view_attachments',
);
// Publisher - just a little more...
$boardLevels['publish'] = array_merge($boardLevels['locked'], array(
'post_new',
'post_reply_own',
'post_reply_any',
'remove_own',
'modify_own',
'mark_any_notify',
'remove_replies',
'modify_replies',
'poll_vote',
'poll_edit_own',
'poll_post',
'poll_add_own',
'poll_remove_own',
'post_attachment',
'lock_own',
'delete_own',
));
// Free for All - Scary. Just scary.
$boardLevels['free'] = array_merge($boardLevels['publish'], array(
'poll_lock_any',
'poll_edit_any',
'poll_add_any',
'poll_remove_any',
'make_sticky',
'lock_any',
'delete_any',
'remove_any',
'split_any',
'merge_any',
'modify_any',
));
// Setting group permissions.
if ($board === 'null' && $group !== 'null')
{
$group = (int) $group;
if (empty($groupLevels['global'][$level]))
return;
db_query("
DELETE FROM {$db_prefix}permissions
WHERE ID_GROUP = $group", __FILE__, __LINE__);
db_query("
DELETE FROM {$db_prefix}board_permissions
WHERE ID_GROUP = $group
AND ID_BOARD = 0", __FILE__, __LINE__);
db_query("
INSERT INTO {$db_prefix}permissions
(ID_GROUP, permission)
VALUES ($group, '" . implode("'),
($group, '", $groupLevels['global'][$level]) . "')", __FILE__, __LINE__);
db_query("
INSERT INTO {$db_prefix}board_permissions
(ID_BOARD, ID_GROUP, permission)
VALUES (0, $group, '" . implode("'),
(0, $group, '", $groupLevels['board'][$level]) . "')", __FILE__, __LINE__);
}
// Setting board permissions for a specific group.
elseif ($board !== 'null' && $group !== 'null')
{
$group = (int) $group;
$board = (int) $board;
if (!empty($groupLevels['global'][$level]))
{
db_query("
DELETE FROM {$db_prefix}board_permissions
WHERE ID_GROUP = $group
AND ID_BOARD = $board", __FILE__, __LINE__);
}
if (!empty($groupLevels['board'][$level]))
{
db_query("
INSERT INTO {$db_prefix}board_permissions
(ID_BOARD, ID_GROUP, permission)
VALUES ($board, $group, '" . implode("'),
($board, $group, '", $groupLevels['board'][$level]) . "')", __FILE__, __LINE__);
}
}
// Setting board permissions for all groups.
elseif ($board !== 'null' && $group === 'null')
{
$board = (int) $board;
db_query("
DELETE FROM {$db_prefix}board_permissions
WHERE ID_BOARD = $board", __FILE__, __LINE__);
if (empty($boardLevels[$level]))
return;
// Get all the groups...
$query = db_query("
SELECT ID_GROUP
FROM {$db_prefix}membergroups
WHERE ID_GROUP > 3
ORDER BY minPosts, IF(ID_GROUP < 4, ID_GROUP, 4), groupName", __FILE__, __LINE__);
while ($row = mysql_fetch_row($query))
{
$group = $row[0];
db_query("
INSERT INTO {$db_prefix}board_permissions
(ID_BOARD, ID_GROUP, permission)
VALUES ($board, $group, '" . implode("'),
($board, $group, '", $boardLevels[$level]) . "')", __FILE__, __LINE__);
}
mysql_free_result($query);
// Add permissions for ungrouped users.
db_query("
INSERT INTO {$db_prefix}board_permissions
(ID_BOARD, ID_GROUP, permission)
VALUES ($board, 0, '" . implode("'),
($board, 0, '", $boardLevels[$level]) . "')", __FILE__, __LINE__);
}
// $board and $group are both null!
else
fatal_lang_error(1, false);
}
function loadAllPermissions()
{
global $context, $txt;
/* The format of this list is as follows:
'permission_group' => array(
'permissions_inside' => has_multiple_options,
),
It should be noted that if the permission_group starts with $ it is not treated as a permission.
However, if it does not start with $, it is treated as a normal permission.
$txt['permissionname_' . $permission] is used for the names of permissions.
$txt['permissiongroup_' . $group] is used for names of groups that start with $.
$txt['permissionhelp_' . $permission] is used for extended information.
$txt['permissionicon_' . $permission_or_group] is used for the icons, if it exists.
*/
$permissionList = array(
'membergroup' => array(
'general' => array(
'view_stats' => false,
'view_mlist' => false,
'who_view' => false,
'search_posts' => false,
'karma_edit' => false,
'arcade_play' => false,
),
'pm' => array(
'pm_read' => false,
'pm_send' => false,
),
'calendar' => array(
'calendar_view' => false,
'calendar_post' => false,
'calendar_edit' => true,
),
'maintenance' => array(
'admin_forum' => false,
'manage_boards' => false,
'manage_attachments' => false,
'manage_smileys' => false,
'edit_news' => false,
),
'member_admin' => array(
'moderate_forum' => false,
'manage_membergroups' => false,
'manage_permissions' => false,
'manage_bans' => false,
'send_mail' => false,
),
'profile' => array(
'profile_view' => true,
'profile_identity' => true,
'profile_extra' => true,
'profile_title' => true,
'profile_remove' => true,
'profile_remote_avatar' => false,
),
'arcade' => array( /* Lisätty */
'view_arcade' => false,
'play_arcade' => false,
'submit_score' => false,
'challenge_send' => false,
'challenge_view' => false,
)
),
'board' => array(
'general_board' => array(
'moderate_board' => false,
),
'topic' => array(
'post_new' => false,
'merge_any' => false,
'split_any' => false,
'send_topic' => false,
'make_sticky' => false,
'move' => true,
'lock' => true,
'delete' => true,
'post_reply' => true,
'modify_replies' => false,
'remove_replies' => false,
'announce_topic' => false,
),
'post' => array(
'remove' => true,
'modify' => true,
'report_any' => false,
),
'poll' => array(
'poll_view' => false,
'poll_vote' => false,
'poll_post' => false,
'poll_add' => true,
'poll_edit' => true,
'poll_lock' => true,
'poll_remove' => true,
),
'notification' => array(
'mark_any_notify' => false,
'mark_notify' => false,
),
'attachment' => array(
'view_attachments' => false,
'post_attachment' => false,
)
)
);
// This is just a helpful array of permissions guests... cannot have.
$non_guest_permissions = array(
'karma_edit',
'pm_read',
'pm_send',
'profile_identity',
'profile_extra',
'profile_title',
'profile_remove',
'profile_remote_avatar',
'poll_vote',
'mark_any_notify',
'mark_notify',
);
// All permission groups that will be shown in the left column.
$leftPermissionGroups = array(
'general',
'calendar',
'maintenance',
'member_admin',
'general_board',
'topic',
'post',
);
Is it possible that something wasn't added to this file during the installation? If so, can you instruct me what needs to be added and where?
I greatly appreciate your assistance.
Mike.
Quote from: revgreed on June 15, 2005, 05:52:07 AM
Only administrators can see the following new "spiders" online:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.sinning.org%2Fimages%2Fusers.jpg&hash=fc3837e04838f549ce4f3329f488b10c1b6331d1)
And not only that, but the feature is only displayed when there is a spider on the forum (as shown in the picture above). Meaning, when a spider is NOT on the forum the "Online Users" portion only displays "Guests" and "User". (as shown in the picture below). And, again, this is only admins.
I would say that's what is supposed to do.
running on 1.0.4 and Classic Theme, I got lots of times in error log this examples:
http://www.davilac.net/foro/index.php?action=modifyModSettings;expand=170
8: Undefined index: ob_googlebot_count_most_online
Archivo: /home/davilac/public_html/foro/Sources/ModSettings.php
Línea: 479
8: Undefined index: ob_googlebot_display_own_list
Archivo: /home/davilac/public_html/foro/Sources/ModSettings.php
Línea: 479
8: Undefined index: ob_googlebot_display_agent
Archivo: /home/davilac/public_html/foro/Sources/ModSettings.php
Línea: 479
http://www.davilac.net/foro/index.php
Aplicar filtro: Mostrar solamente los mensajes de error con el mismo mensaje
8: Undefined index: ob_googlebot_count_most_online
Archivo: /home/davilac/public_html/foro/Sources/BoardIndex.php
Línea: 436
I had only the who template and modifications.spanish.php in the Default Theme, because it was running (a least in admin), but now after seeing these logs I uploaded to Classic too.
instead of:
'challenge_view' => false,
)
),
'board' => array(
you should have:
'challenge_view' => false,
),
'googlebot' => array(
'googlebot_view' => false,
),
),
'board' => array(
'general_board' => array(
that is because you have arcade mod, and didn't check the "failed" when you installed the package.
Quote from: Davilac on June 15, 2005, 09:25:13 AM
I had only the who template and modifications.spanish.php in the Default Theme, because it was running (a least in admin), but now after seeing these logs I uploaded to Classic too.
and it fixed it? :)
Quote from: Omar Bazavilvazo on June 15, 2005, 01:08:00 PM
instead of:
'challenge_view' => false,
)
),
'board' => array(
you should have:
'challenge_view' => false,
),
'googlebot' => array(
'googlebot_view' => false,
),
),
'board' => array(
'general_board' => array(
that is because you have arcade mod, and didn't check the "failed" when you installed the package.
Hi there!
That fixed it perfectly. And you were correct - the editing of the managepermissions file did fail. I overlooked it.
Thanks so much.
im getting these errors
smf 1.0.4
8: Undefined index: ob_googlebot_count_most_online
File: /home/egrounds/public_html/forums/Sources/BoardIndex.php
Line: 369
8: Undefined index: ob_googlebot_count_all_instances
File: /home/egrounds/public_html/forums/Sources/BoardIndex.php
Line: 298
any ideas?
are you using default theme?
are you using english language?
im useing the default thing, and the english language
check modifications.english.php
what does it have?
I'm getting this error:
Fatal error: Call to undefined function: ob_googlebot_getagent() in /home/operati/public_html/smf/Sources/BoardIndex.php on line 273
And I did exactly what you said yesterday.
And I'm using the default theme, with the English language. And my modifications.english.php says the following:
Quote<?php
// Version: 1.0; Modifications
// Now Playing Mod
$txt['nowplaying1'] = "Now Playing";
$txt['nowplaying2'] = "<b>Now Playing:</b> What are you listening to? [optional]";
$txt['nowplaying3'] = "Now Playing: ";
$txt['nowplayingEnabled'] = "Enable 'Now Playing'?";
$txt['nowplaying_image'] = "Now Playing Image: ";
$txt['nowplaying_text'] = "Now Playing Text: ";
// Now Playing Mod
$txt['nowplaying1'] = "Now Playing";
$txt['nowplaying2'] = "<b>Now Playing:</b> What are you listening to? [optional]";
$txt['nowplaying3'] = "Now Playing: ";
$txt['nowplayingEnabled'] = "Enable 'Now Playing'?";
$txt['nowplaying_image'] = "Now Playing Image: ";
$txt['nowplaying_text'] = "Now Playing Text: ";
//text for Ultimate Shoutbox
$txt['shoutbox_0'] = 'Shoutbox';
$txt['shoutbox_1'] = 'Shoutbox Archive';
$txt['shoutbox_2'] = 'Delete shouts older than:';
$txt['shoutbox_3'] = 'days';
$txt['shoutbox_4'] = 'Delete all shouts over your current limit of';
$txt['shoutbox_5'] = 'Delete';
$txt['shoutbox_6'] = 'Name';
$txt['shoutbox_7'] = 'Email';
$txt['shoutbox_8'] = 'Message';
$txt['shoutbox_9'] = 'Shout';
$txt['shoutbox_10'] = 'Sorry, if you are a guest you must enter both your name and your email address';
$txt['shoutbox_11'] = 'Whoops, looks like you forgot to fill in one of the Shoutbox fields. Please try again.';
$txt['shoutbox_12'] = 'Sorry, if you are a guest you must enter a valid email address when using the Shoutbox.';
$txt['shoutbox_13'] = 'Sorry, but you do not have the proper priveledges to delete that.';
$txt['shoutdir'] = 'Shout Direction';
$txt['shoutbox_19'] = 'Ascending';
$txt['shoutbox_20'] = 'Descending';
$txt['shoutsep'] = 'Shout Separator';
$txt['enablearchiveshout'] = 'Allow people to shout from the archive page?';
$txt['shoutlimit'] = 'Number of shouts to return';
$txt['shoutmaxchr'] = 'Max number of characters per line';
$txt['shoutsplitchr'] = 'Character number to split long words at (usually 3 less than max)';
$txt['enablescrollshout'] = 'Enable scrolling';
$txt['shoutbox_27'] = 'The following options are only available is scrolling is activated:';
$txt['shoutscrollwidth'] = 'Scroll box width (pixels)';
$txt['shoutscrollheight'] = 'Scroll box height (pixels)';
$txt['shoutscrollspeed'] = 'Scrolling speed';
$txt['shoutbox_31'] = 'slowest';
$txt['shoutbox_32'] = 'slower';
$txt['shoutbox_33'] = 'medium';
$txt['shoutbox_34'] = 'faster';
$txt['shoutbox_35'] = 'fastest';
$txt['shoutscrolldir'] = 'Scrolling direction';
$txt['shoutbox_37'] = 'up';
$txt['shoutbox_38'] = 'down';
$txt['shoutbox_39'] = 'left';
$txt['shoutbox_40'] = 'right';
$txt['shoutscrolldelay'] = 'Scroll Delay (milliseconds - normal is 60)';
$txt['shoutbox_42'] = 'Delete Options';
$txt['shoutbox_43'] = 'View All';
$txt['permissiongroup_shout'] = 'Shoutbox';
$txt['permissionname_make_shout'] = 'Can Shout';
$txt['permissionname_delete_shout'] = 'Can Delete Shouts';
$txt['vCal_title'] = 'vCal/iCal';
$txt['vCal_remove'] = 'Remove this event';
$txt['vCal_add'] = 'Add this event';
$txt['vCal_view'] = 'View List';
$txt['vCal_download'] = 'Download List';
$txt['vCal_empty'] = 'You have no events in your ' . $txt['vCal_title'] . ' list.';
$txt['cal_attendee_title'] = 'Attendees';
$txt['cal_attendees_no'] = 'No one is attending this event yet.';
$txt['cal_attendees_yes'] = 'Members planning to attend';
$txt['cal_attend_no'] = 'I\'ve changed my mind';
$txt['cal_attend_yes'] = 'I plan to attend this event';
$txt['enable_vCal'] = 'Enable vCal/iCal Downloads';
$txt['enable_attendees'] = 'Enable Attendee List';
$txt['cal_force_default'] = 'Force Default Board';
$txt['cal_allow_no_post'] = 'Allow Post No Topic';
$txt['cal_no_post'] = 'Post No Topic';
$txt['vCal_style'] = 'vCal/iCal download style:';
$txt['vCal_style1'] = 'Disable';
$txt['vCal_style2'] = 'vCal';
$txt['vCal_style3'] = 'iCal';
$txt['ratings_rating'] = 'Rating';
$txt['ratings_board'] = 'Enable Ratings on this Board';
$txt['ratings_board_desc'] = 'With this option enabled members will be able to rate the quality of a topic on this board.';
$txt['ratings_you_not_rated'] = 'You have not rated this topic. Select a rating:';
$txt['ratings_you_have_rated'] = 'You have already rated this topic. You may change your rating at any time:';
$txt['ratings_current_rating'] = 'Current Topic Rating';
$txt['ratings_not_rated'] = 'This topic has not yet been rated!';
$txt['ratings_rating'] = 'Rating';
$txt['ratings_board'] = 'Enable Ratings on this Board';
$txt['ratings_board_desc'] = 'With this option enabled members will be able to rate the quality of a topic on this board.';
$txt['ratings_you_not_rated'] = 'You have not rated this topic. Select a rating:';
$txt['ratings_you_have_rated'] = 'You have already rated this topic. You may change your rating at any time:';
$txt['ratings_current_rating'] = 'Current Topic Rating';
$txt['ratings_not_rated'] = 'This topic has not yet been rated!';
$txt['msgicon_manager'] = 'Message Icon Manager';
$txt['msgIconsRadio_enabled'] = 'Enable Displaying Icons As Radio Buttons';
$txt['msgicon_add_message_icons'] = 'Add Message Icons';
$txt['msgicon_modify_message_icons'] = 'Modify Message Icons';
$txt['msgicon_order'] = 'Order';
$txt['msgicon_filename'] = 'Filename';
$txt['msgicon_description'] = 'Description';
$txt['msgicon_board'] = 'Board Specific';
$txt['msgicon_del'] = 'Del';
$txt['msgicon_add'] = 'Add';
$txt['msgicon_update'] = 'Update';
$txt['msgicon_update_and_replace'] = 'Update and Replace Removed';
$txt['msgicon_all'] = 'All Boards';
// G&S Sticky
$txt['gsticky'] = 'Global Announcements';
$txt['gsticky_board'] = 'Default Board to post the Global Announcements';
$txt['permissionname_make_gsticky'] = 'Make Global Announcements';
$txt['permissionhelp_make_gsticky'] = 'The user will allow post a Global Announcements';
//Bar of Experience Mod
$txt['bar_exp_enabled'] = 'Enable The Bar of Experience';
$txt['bar_exp_completed'] = '100% Completed ;)';
$txt['bar_exp_next'] = 'Next Level:';
$txt['msgicon_manager'] = 'Message Icon Manager';
$txt['msgIconsRadio_enabled'] = 'Enable Displaying Icons As Radio Buttons';
$txt['msgicon_add_message_icons'] = 'Add Message Icons';
$txt['msgicon_modify_message_icons'] = 'Modify Message Icons';
$txt['msgicon_order'] = 'Order';
$txt['msgicon_filename'] = 'Filename';
$txt['msgicon_description'] = 'Description';
$txt['msgicon_board'] = 'Board Specific';
$txt['msgicon_del'] = 'Del';
$txt['msgicon_add'] = 'Add';
$txt['msgicon_update'] = 'Update';
$txt['msgicon_update_and_replace'] = 'Update and Replace Removed';
$txt['msgicon_all'] = 'All Boards';
$txt['membergroups_showAddBadge'] = "Show the stars even if the group is a secondary group?";
// 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 <div class="smalltext">("' . $txt['ob_googlebot_count_all_instances'] . '" must be selected)</div>';
$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"';
// Permissions
$txt['permissiongroup_googlebot'] = $txt['ob_googlebot_modname'];
$txt['permissionname_googlebot_view'] = 'View Googlebot & Spiders';
// OB - Googlebot - End
$txt['buddylist_buddies'] = 'Buddies';
$txt['buddylist_buddy'] = 'Buddy';
$txt['buddylist_select'] = 'Select Buddy';
$txt['buddyList_title'] = 'Buddy List';
$txt['buddyList_add_name'] = 'Add one Username on each line.';
$txt['buddyList_add'] = 'Add this member to my Buddy List';
$txt['buddyList_remove'] = 'Remove this member from my Buddy List';
//text for Ultimate Shoutbox
$txt['shoutbox_0'] = 'Shoutbox';
$txt['shoutbox_1'] = 'Shoutbox Archive';
$txt['shoutbox_2'] = 'Delete shouts older than:';
$txt['shoutbox_3'] = 'days';
$txt['shoutbox_4'] = 'Delete all shouts over your current limit of';
$txt['shoutbox_5'] = 'Delete';
$txt['shoutbox_6'] = 'Name';
$txt['shoutbox_7'] = 'Email';
$txt['shoutbox_8'] = 'Message';
$txt['shoutbox_9'] = 'Shout';
$txt['shoutbox_10'] = 'Sorry, if you are a guest you must enter both your name and your email address';
$txt['shoutbox_11'] = 'Whoops, looks like you forgot to fill in one of the Shoutbox fields. Please try again.';
$txt['shoutbox_12'] = 'Sorry, if you are a guest you must enter a valid email address when using the Shoutbox.';
$txt['shoutbox_13'] = 'Sorry, but you do not have the proper priveledges to delete that.';
$txt['shoutdir'] = 'Shout Direction';
$txt['shoutbox_19'] = 'Ascending';
$txt['shoutbox_20'] = 'Descending';
$txt['shoutsep'] = 'Shout Separator';
$txt['enablearchiveshout'] = 'Allow people to shout from the archive page?';
$txt['shoutlimit'] = 'Number of shouts to return';
$txt['shoutmaxchr'] = 'Max number of characters per line';
$txt['shoutsplitchr'] = 'Character number to split long words at (usually 3 less than max)';
$txt['enablescrollshout'] = 'Enable scrolling';
$txt['shoutbox_27'] = 'The following options are only available is scrolling is activated:';
$txt['shoutscrollwidth'] = 'Scroll box width (pixels)';
$txt['shoutscrollheight'] = 'Scroll box height (pixels)';
$txt['shoutscrollspeed'] = 'Scrolling speed';
$txt['shoutbox_31'] = 'slowest';
$txt['shoutbox_32'] = 'slower';
$txt['shoutbox_33'] = 'medium';
$txt['shoutbox_34'] = 'faster';
$txt['shoutbox_35'] = 'fastest';
$txt['shoutscrolldir'] = 'Scrolling direction';
$txt['shoutbox_37'] = 'up';
$txt['shoutbox_38'] = 'down';
$txt['shoutbox_39'] = 'left';
$txt['shoutbox_40'] = 'right';
$txt['shoutscrolldelay'] = 'Scroll Delay (milliseconds - normal is 60)';
$txt['shoutbox_42'] = 'Delete Options';
$txt['shoutbox_43'] = 'View All';
$txt['permissiongroup_shout'] = 'Shoutbox';
$txt['permissionname_make_shout'] = 'Can Shout';
$txt['permissionname_delete_shout'] = 'Can Delete Shouts';
$txt['permissiongroup_arcade'] = "Arcade";
$txt['cannot_view_arcade'] = "You arent allowed to view arcade, sorry!";
$txt['permissionhelp_view_arcade'] = "Allow this if you want this group to access arcade";
$txt['permissionname_view_arcade'] = "Can view arcade (main)";
$txt['cannot_arcade_play_arcade'] = "You arent allowed to play on arcade, sorry!";
$txt['permissionhelp_play_arcade'] = "Allow this if you want this group to play in arcade";
$txt['permissionname_play_arcade'] = "Can play in arcade";
$txt['cannot_submit_score'] = "You arent allowed to submit scores on arcade, sorry!";
$txt['permissionhelp_submit_score'] = "Allow this if you want ALLOW this group to submit scores in arcade";
$txt['permissionname_submit_score'] = "Can Submit scores in arcade";
$txt['arcade_highscores_per_page'] = "Highscores per page in arcade";
$txt['admin_arcade'] = "Arcade";
$txt['admin_arcade2'] = "Arcade Admin";
$txt['cannot_admin_arcade'] = "You arent allowed to Admin Arcade!";
$txt['permissionname_admin_arcade'] = "Can Admin Arcade";
$txt['buddylist_buddies'] = 'Buddies';
$txt['buddylist_buddy'] = 'Buddy';
$txt['buddylist_select'] = 'Select Buddy';
$txt['buddyList_title'] = 'Buddy List';
$txt['buddyList_add_name'] = 'Add one Username on each line.';
$txt['buddyList_add'] = 'Add this member to my Buddy List';
$txt['buddyList_remove'] = 'Remove this member from my Buddy List';
$txt['membergroups_showAddBadge'] = "Show the stars even if the group is a secondary group?";
// Karma Log
$txt['karma_log'] = '<b>Karma Log</b>';
$txt['view_karma_log'] = 'View Karma Log';
//text for Ultimate Shoutbox
$txt['shoutbox_0'] = 'Shoutbox';
$txt['shoutbox_1'] = 'Shoutbox Archive';
$txt['shoutbox_2'] = 'Delete shouts older than:';
$txt['shoutbox_3'] = 'days';
$txt['shoutbox_4'] = 'Delete all shouts over your current limit of';
$txt['shoutbox_5'] = 'Delete';
$txt['shoutbox_6'] = 'Name';
$txt['shoutbox_7'] = 'Email';
$txt['shoutbox_8'] = 'Message';
$txt['shoutbox_9'] = 'Shout';
$txt['shoutbox_10'] = 'Sorry, if you are a guest you must enter both your name and your email address';
$txt['shoutbox_11'] = 'Whoops, looks like you forgot to fill in one of the Shoutbox fields. Please try again.';
$txt['shoutbox_12'] = 'Sorry, if you are a guest you must enter a valid email address when using the Shoutbox.';
$txt['shoutbox_13'] = 'Sorry, but you do not have the proper priveledges to delete that.';
$txt['shoutdir'] = 'Shout Direction';
$txt['shoutbox_19'] = 'Ascending';
$txt['shoutbox_20'] = 'Descending';
$txt['shoutsep'] = 'Shout Separator';
$txt['enablearchiveshout'] = 'Allow people to shout from the archive page?';
$txt['shoutlimit'] = 'Number of shouts to return';
$txt['shoutmaxchr'] = 'Max number of characters per line';
$txt['shoutsplitchr'] = 'Character number to split long words at (usually 3 less than max)';
$txt['enablescrollshout'] = 'Enable scrolling';
$txt['shoutbox_27'] = 'The following options are only available is scrolling is activated:';
$txt['shoutscrollwidth'] = 'Scroll box width (pixels)';
$txt['shoutscrollheight'] = 'Scroll box height (pixels)';
$txt['shoutscrollspeed'] = 'Scrolling speed';
$txt['shoutbox_31'] = 'slowest';
$txt['shoutbox_32'] = 'slower';
$txt['shoutbox_33'] = 'medium';
$txt['shoutbox_34'] = 'faster';
$txt['shoutbox_35'] = 'fastest';
$txt['shoutscrolldir'] = 'Scrolling direction';
$txt['shoutbox_37'] = 'up';
$txt['shoutbox_38'] = 'down';
$txt['shoutbox_39'] = 'left';
$txt['shoutbox_40'] = 'right';
$txt['shoutscrolldelay'] = 'Scroll Delay (milliseconds - normal is 60)';
$txt['shoutbox_42'] = 'Delete Options';
$txt['shoutbox_43'] = 'View All';
$txt['permissiongroup_shout'] = 'Shoutbox';
$txt['permissionname_make_shout'] = 'Can Shout';
$txt['permissionname_delete_shout'] = 'Can Delete Shouts';
$txt['vCal_title'] = 'vCal/iCal';
$txt['vCal_remove'] = 'Remove this event';
$txt['vCal_add'] = 'Add this event';
$txt['vCal_view'] = 'View List';
$txt['vCal_download'] = 'Download List';
$txt['vCal_empty'] = 'You have no events in your ' . $txt['vCal_title'] . ' list.';
$txt['cal_attendee_title'] = 'Attendees';
$txt['cal_attendees_no'] = 'No one is attending this event yet.';
$txt['cal_attendees_yes'] = 'Members planning to attend';
$txt['cal_attend_no'] = 'I\'ve changed my mind';
$txt['cal_attend_yes'] = 'I plan to attend this event';
$txt['enable_vCal'] = 'Enable vCal/iCal Downloads';
$txt['enable_attendees'] = 'Enable Attendee List';
$txt['cal_force_default'] = 'Force Default Board';
$txt['cal_allow_no_post'] = 'Allow Post No Topic';
$txt['cal_no_post'] = 'Post No Topic';
$txt['vCal_style'] = 'vCal/iCal download style:';
$txt['vCal_style1'] = 'Disable';
$txt['vCal_style2'] = 'vCal';
$txt['vCal_style3'] = 'iCal';
$txt['ratings_rating'] = 'Rating';
$txt['ratings_board'] = 'Enable Ratings on this Board';
$txt['ratings_board_desc'] = 'With this option enabled members will be able to rate the quality of a topic on this board.';
$txt['ratings_you_not_rated'] = 'You have not rated this topic. Select a rating:';
$txt['ratings_you_have_rated'] = 'You have already rated this topic. You may change your rating at any time:';
$txt['ratings_current_rating'] = 'Current Topic Rating';
$txt['ratings_not_rated'] = 'This topic has not yet been rated!';
$txt['msgicon_manager'] = 'Message Icon Manager';
$txt['msgIconsRadio_enabled'] = 'Enable Displaying Icons As Radio Buttons';
$txt['msgicon_add_message_icons'] = 'Add Message Icons';
$txt['msgicon_modify_message_icons'] = 'Modify Message Icons';
$txt['msgicon_order'] = 'Order';
$txt['msgicon_filename'] = 'Filename';
$txt['msgicon_description'] = 'Description';
$txt['msgicon_board'] = 'Board Specific';
$txt['msgicon_del'] = 'Del';
$txt['msgicon_add'] = 'Add';
$txt['msgicon_update'] = 'Update';
$txt['msgicon_update_and_replace'] = 'Update and Replace Removed';
$txt['msgicon_all'] = 'All Boards';
//Bar of Experience Mod
$txt['bar_exp_enabled'] = 'Enable The Bar of Experience';
$txt['bar_exp_completed'] = '100% Completed ;)';
$txt['bar_exp_next'] = 'Next Level:';
// Karma Log
$txt['karma_log'] = '<b>Karma Log</b>';
$txt['view_karma_log'] = 'View Karma Log';
// Karma Log
$txt['karma_log'] = '<b>Karma Log</b>';
$txt['view_karma_log'] = 'View Karma Log';
// Karma Log
$txt['karma_log'] = '<b>Karma Log</b>';
$txt['view_karma_log'] = 'View Karma Log';
?>arma Log
$txt['karma_log'] = '<b>Karma Log</b>';
$txt['view_karma_log'] = 'View Karma Log';
?>
this is mind
<?php
// Version: 1.0; Modifications
//Bar of Experience Mod
$txt['bar_exp_enabled'] = 'Enable The Bar of Experience';
$txt['bar_exp_completed'] = '100% Completed ;)';
$txt['bar_exp_next'] = 'Next Level:';
$txt['permission_bymember'] = 'Permissions By Member';
$txt['permission_bymember_link'] = 'Click';
$txt['permission_bymember_link2'] = 'Here';
$txt['permission_bymember_link3'] = 'To Review Member Specific Permissions';
$txt['memberPermissions_general'] = 'Member Specific Permissions';
$txt['memberPermissions_board'] = 'Member Specific Board Permissions';
$txt['memberPermissions_none'] = 'This member has no member specific permissions';
$txt['memberPermissions_where'] = 'In Board';
$txt['memberPermissions_all'] = 'All Boards';
$txt['memberPermissions_add'] = 'Add New Member <b>Specific</b> Permission';
$txt['memberPermissions_type'] = 'Permission Type';
$txt['memberPermissions_general'] = 'General Permission';
$txt['memberPermissions_board'] = 'Board Permission';
$txt['memberPermissions_board_select'] = 'Select Board';
$txt['memberPermissions_permission'] = 'Select Permission';
$txt['memberPermissions_state'] = 'Permission State';
$txt['memberPermissions_select'] = 'Select:';
$txt['memberPermissions_add_but'] = 'Add';
$txt['msgicon_manager'] = 'Message Icon Manager';
$txt['msgIconsRadio_enabled'] = 'Enable Displaying Icons As Radio Buttons';
$txt['msgicon_add_message_icons'] = 'Add Message Icons';
$txt['msgicon_modify_message_icons'] = 'Modify Message Icons';
$txt['msgicon_order'] = 'Order';
$txt['msgicon_filename'] = 'Filename';
$txt['msgicon_description'] = 'Description';
$txt['msgicon_board'] = 'Board Specific';
$txt['msgicon_del'] = 'Del';
$txt['msgicon_add'] = 'Add';
$txt['msgicon_update'] = 'Update';
$txt['msgicon_update_and_replace'] = 'Update and Replace Removed';
$txt['msgicon_all'] = 'All Boards';
// for Text area
$txt['char_remain'] = 'characters remaining';
// G&S Sticky
$txt['gsticky'] = 'Global Announcements';
$txt['gsticky_board'] = 'Default Board to post the Global Announcements';
$txt['permissionname_make_gsticky'] = 'Make Global Announcements';
$txt['permissionhelp_make_gsticky'] = 'The user will allow post a Global Announcements';
//OnLine Users Today
$txt['158bis'] = 'Users OnLine Today';
$txt['smf_stats_14bis'] = 'Users Online Today';
// 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 <div class="smalltext">("' . $txt['ob_googlebot_count_all_instances'] . '" must be selected)</div>';
$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"';
// Permissions
$txt['permissiongroup_googlebot'] = $txt['ob_googlebot_modname'];
$txt['permissionname_googlebot_view'] = 'View Googlebot & Spiders';
// OB - Googlebot - End
?>
Quote from: Jako on June 16, 2005, 08:37:54 PM
Fatal error: Call to undefined function: ob_googlebot_getagent() in /home/operati/public_html/smf/Sources/BoardIndex.php on line 273
Check your subs.php
seems you don't have that function... perhaps you got an error while tring to install the mod.
It should have:
function ob_googlebot_getagent
and this is an error:
?>arma Log
$txt['karma_log'] = '<b>Karma Log</b>';
$txt['view_karma_log'] = 'View Karma Log';
?>
change
?>arma Log
for
//Karma Log
ja ne!
electrohome88>
you have those strings correctly... it should work :S
I downloaded this via the package manager, but when i cam to install, i got a message saying the my version of SMF was incompatible. Strange because i`m running 1.04 ::)
Seems you are running vBulletin ;D
Quote from: Cheese-Burger on June 17, 2005, 12:54:16 PM
I downloaded this via the package manager, but when i cam to install, i got a message saying the my version of SMF was incompatible. Strange because i`m running 1.04 ::)
Is the one here?
http://www.hamburger-deluxe.co.uk/SMF/index.php
You downloaded 1.0,2, smf1.0.x, right?
Right link ;)
I down loaded what ever is on the package manager list from my admin section. So i`m not too sure which version is there.
Just had another look and it is version 1.02
Quote from: Cheese-Burger on June 17, 2005, 05:22:08 PM
Right link ;)
I down loaded what ever is on the package manager list from my admin section. So i`m not too sure which version is there.
Just had another look and it is version 1.02
Try again... are 2 versions, and default was the one for beta 3.
Now the default from package manager is for 1.0.x-beta 2
That got it sorted :D
Thanks for taking the time to help out.
Quote from: Cheese-Burger on June 17, 2005, 05:51:05 PM
That got it sorted :D
Thanks for taking the time to help out.
np :P
Now i just have to wait for them to come back lol I know the msn ones by ip, but i can never remember the google bots
Works a treat :D Great mod.
Quote from: Omar Bazavilvazo on June 17, 2005, 12:25:49 PM
Quote from: Jako on June 16, 2005, 08:37:54 PM
Fatal error: Call to undefined function: ob_googlebot_getagent() in /home/operati/public_html/smf/Sources/BoardIndex.php on line 273
Check your subs.php
seems you don't have that function... perhaps you got an error while tring to install the mod.
It should have:
function ob_googlebot_getagent
and this is an error:
?>arma Log
$txt['karma_log'] = '<b>Karma Log</b>';
$txt['view_karma_log'] = 'View Karma Log';
?>
change
?>arma Log
for
//Karma Log
ja ne!
All right, when I looked at my modifications.english.php file, that error wasn't even there any longer.
And I'm still getting those errors. Now, I have no idea what you mean by "Check your sub.php". o_O I am COMPLETELY illiterate when it comes to php. So, I'll just post my subs.php for anyone to tell me it's wrong or whatnot. *Hates being a n00b*
http://www.operationflamingo.com/smf/index.php?topic=569.0
Oh, and login with Username: Klingon, and Pasword: 123456 . Sorry for the inconvenience, but I can't post the subs.php here for it exceeds the 20,000 character limit.
And if you get the
Fatal error: Call to undefined function: ob_googlebot_getagent() in /home/operati/public_html/smf/Sources/BoardIndex.php on line 273 error, I think you just might be screwed. >>
open sources/subs.php, and find the string "function ob_googlebot_getagent"
if it isn't there, probably you got an error when installing the mod and you didn't noticed :P
Nope, can't find it.
So what do I do to fix the problem?
I had the same problem as electrohome88 but it seems to have stopped?
I had ten pages of those same errors.
I have been trying to fix something else and may have broken/fixed the problem
More problems
I have 1.0.4 Classic theme and spanish.
In classic does not work.
In default is showing:
1 Robot, 1 Robot, 1 Robot, 1 Robot, 1 Robot, 1 Visitante, 3 Usuarios
Usuarios activos en los últimos 10 minutos:
Davilac, posicionado, raismave
Robots activos en los últimos 10 minutos:
Yahoo! Slurp
Robots activos en los últimos 10 minutos:
Yahoo! Slurp
Robots activos en los últimos 10 minutos:
Yahoo! Slurp
Robots activos en los últimos 10 minutos:
Yahoo! Slurp
Robots activos en los últimos 10 minutos:
Yahoo! Slurp
What can I do?
So, I'm getting QUITE frustrated with this error. It seems like every other time I try to go to my index, that error is there.
Anyone want to help?
Quote from: Jako on June 18, 2005, 12:28:37 AM
Nope, can't find it.
So what do I do to fix the problem?
1) restore all files, and try to apply again the mod... and CHECK what error the package manager gives you
2) or, open the install.xml, and insert in subs.php that function manually
Quote from: Davilac on June 18, 2005, 10:20:15 AM
More problems
I have 1.0.4 Classic theme and spanish.
In classic does not work.
In default is showing:
1 Robot, 1 Robot, 1 Robot, 1 Robot, 1 Robot, 1 Visitante, 3 Usuarios
Usuarios activos en los últimos 10 minutos:
Davilac, posicionado, raismave
Robots activos en los últimos 10 minutos:
Yahoo! Slurp
Robots activos en los últimos 10 minutos:
Yahoo! Slurp
Robots activos en los últimos 10 minutos:
Yahoo! Slurp
Robots activos en los últimos 10 minutos:
Yahoo! Slurp
Robots activos en los últimos 10 minutos:
Yahoo! Slurp
What can I do?
as it seems you installed the mod 4 or 5 times, i doubt uninstalling it wil solve the problem. restore all files, and try again. checking if it gives you an error
The mod seems to have installed ok, but when I go to 'edit permissions' now I get the following error message:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/cacheec/public_html/forums/Sources/ManagePermissions.php on line 984
Does anyone know how I can resolve this?
Quote from: Omar Bazavilvazo on June 19, 2005, 12:32:54 PM
1) restore all files, and try to apply again the mod... and CHECK what error the package manager gives you
2) or, open the install.xml, and insert in subs.php that function manually
Omar, you're going to need to dumb it down for me. =/ I don't know how to "restore all files", and I also don't know how I would go around to making the subs.php function manually. Or is that what you meant? English IS a bit tricky, haha. :) But yeah, I need detailed, baby steps for me, brother.
Quote from: Cache-man on June 19, 2005, 11:52:15 PM
The mod seems to have installed ok, but when I go to 'edit permissions' now I get the following error message:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/cacheec/public_html/forums/Sources/ManagePermissions.php on line 984
Does anyone know how I can resolve this?
post from lines 980 to 990 of managepermissions.php ... probably you have a mod that break it.
Jako>
Which mods do you have installed?
add the next code before ?> in subs.php:
function ob_googlebot_getAgent( &$user_agent, &$user_name, &$result, $guest )
{
//Search Spiders
$spider_agents = array (
array (
'agent' => 'WISENutbot',
'spidername' => 'Looksmart spider',
'spider' => true,
),
array (
'agent' => 'MSNBot',
'spidername' => 'MSN spider',
'spider' => true,
),
array (
'agent' => 'W3C_Validator',
'spidername' => 'W3C Validator',
'spider' => true,
),
array (
'agent' => 'Googlebot-Image',
'spidername' => 'Google-Image Spider',
'spider' => true,
),
array (
'agent' => 'Googlebot',
'spidername' => 'Google spider',
'spider' => true,
),
array (
'agent' => 'Mediapartners-Google',
'spidername' => 'Google AdSense spider',
'spider' => true,
),
array (
'agent' => 'Scooter',
'spidername' => 'Altavista spider',
'spider' => true,
),
array (
'agent' => 'Yahoo! Slurp',
'spidername' => 'Yahoo spider',
'spider' => true,
),
array (
'agent' => 'FAST-WebCrawler',
'spider' => true,
),
array (
'agent' => 'Wget',
'spider' => true,
),
array (
'agent' => 'Ask Jeeves',
'spider' => true,
),
array (
'agent' => 'Speedy Spider',
'spider' => true,
),
array (
'agent' => 'SurveyBot',
'spider' => true,
),
array (
'agent' => 'IBM_Planetwide',
'spider' => true,
),
array (
'agent' => 'GigaBot',
'spider' => true,
),
array (
'agent' => 'ia_archiver',
'spider' => true,
),
array (
'agent' => 'FAST-WebCrawler',
'spider' => true,
),
array (
'agent' => 'Inktomi Slurp',
'spider' => true,
),
);
foreach( $spider_agents as $poss )
if (strpos(strtolower($user_agent), strtolower($poss['agent'])) !== false)
{
if ( $guest && isset($poss['spider']) && $poss['spider'] )
$user_name = isset($poss['spidername']) ? $poss['spidername'] : (isset($poss['name']) ? $poss['name'] : $poss['agent']);
$result = isset($poss['name']) ? $poss['name'] : $poss['agent'];
return isset($poss['spider']) && $poss['spider'];
}
$result = $user_agent;
return false;
};
I pasted that, Omar, and still the error keeps on showing up.
By the way, the MOD's that I have are;
Mod Name Version
1. Ultimate Shoutbox 1.22 [ Uninstall ] [ List Files ] [ Delete ]
2. Jack's Phat Calendar Pack 1.0.1 [ Apply Mod ] [ List Files ] [ Delete ]
3. Topic Ratings 1.02 [ Apply Mod ] [ List Files ] [ Delete ]
4. Faster Parsecode 1.07 [ List Files ] [ Delete ]
5. Message Icon Manager (Quick Reply) 1.2 [ Uninstall ] [ List Files ] [ Delete ]
6. G&S_Sticky 1.1 [ Apply Mod ] [ List Files ] [ Delete ]
7. Integrated Chat 2.3 [ Apply Mod ] [ List Files ] [ Delete ]
8. The Bar Of Experience 1.2 [ Uninstall ] [ List Files ] [ Delete ]
9. Karma Log 1.0.1 [ Uninstall ] [ List Files ] [ Delete ]
10. Music Database 3.1 [ Apply Mod ] [ List Files ] [ Delete ]
11. SSI NewsArchive 1.3 [ Apply Mod ] [ List Files ] [ Delete ]
12. Filemanager 1.0 Alpha 6 [ Apply Mod ] [ List Files ] [ Delete ]
13. Message Icon Manager 1.2 [ Apply Mod ] [ List Files ] [ Delete ]
14. Show Multiple Badges (Aka Stars) 0.3 [ Uninstall ] [ List Files ] [ Delete ]
15. Simple ImageShack 1.0.1 [ Uninstall ] [ List Files ] [ Delete ]
16. Search Button Tweak 0.1 [ Uninstall ] [ List Files ] [ Delete ]
17. Buddy List 1.21 [ Uninstall ] [ List Files ] [ Delete ]
18. Picture forum view 2.0 [ Uninstall ] [ List Files ] [ Delete ]
19. Googlebot & Spiders Mod 1.0.2 [ Apply Mod ] [ List Files ] [ Delete ]
anything for version 1.0.5?
Yep It's not working with 1.0.5 unless it was previously installed in 1.0.4
Omar, where art thou? :(
Quote from: JRSofty on June 24, 2005, 02:27:21 AM
Yep It's not working with 1.0.5 unless it was previously installed in 1.0.4
all you have to do is edit the mod and tell it to install on 1.0.5 too. I dont think much has changed from 1.0.4 - 1.0.5, just a security fix.
updated to 1.0.5 :P
new version: 1.0.4, fixed:
in action=trackip;searchip=xx.xxx.xx.xxx i receive
8: Undefined index: ob_googlebot_count_most_online
File: /home/www/web4/html/forum/Sources/BoardIndex.php
Line: 391
This was because on a new installation, that settings weren't added to the DB. i now add this strings into the DB since installation with my preferred settings :)
That still didn't fix my problem I've been complaining about. =/
is there a reason 'spiders' aren't shown in my 'Users Online' list?
the only way for me to see them is if I click on the 'forum/action=who' URL :(
Quote from: Jako on June 25, 2005, 02:21:57 AM
That still didn't fix my problem I've been complaining about. =/
they are log, it prevents new strings from appearing, doesn't delete the old ones.
you must manually erase them
is it possible that this mod also works in the mkportal. In smf i can see all the spiders but in the stats from the mkportal they all cald quest.
Is there a way to fix this problem.
In IPB it works.
To view my forum click here (http://www.parkieten-land.nl)
Omar, you crazy kid, you. :D
So, way back when when you told me to put that text into the subs.php, I thought you said before the <?, and really you said ?>.
Whoops. So, thanks a bunch, I think the problem is fixed.
Quote from: ingmar on June 27, 2005, 05:03:13 AM
is it possible that this mod also works in the mkportal. In smf i can see all the spiders but in the stats from the mkportal they all cald quest.
Is there a way to fix this problem.
In IPB it works.
To view my forum click here (http://www.parkieten-land.nl)
don't think so, i don't use mkportal :P
maybe later i'll add it :P (when i start using it)
but it works in other forums like IPB
Quote from: ingmar on June 27, 2005, 03:35:26 PM
but it works in other forums like IPB
well, since i don't use mkportal, i can't help, sorry
21 Spiders, 8 Guests, 5 Users
Users active in past 30 minutes:
[users removed], Googlebot (20), Yahoo! Slurp
go Spiders!
Twenty! My word, that's a lot of spiders.
Ingmar, your question may be better asked of the MKPortal people.
-[Unknown]
i did but they don't answer
spiders on the forum i have sometimes 150 till 300 so the online users tell me.
Ok, I tried to install in SMF 1.1 Beta 3 Public, but here's what happened: Installations actions for "Googlebot & Spiders Mod":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
I downloaded the correct version...what happened?
you did download that from admin panel in SMF or from the mod page?
You must download it from mod site, and upload it to your packages dir.
don't ask me why... in admin panel it always downloads first attachment
I did download it from the mod page, then uploaded it with the package manager and tried to install with the same result....:(
ah.. didn't noticed they already released 1.1 beta 3 public...
i'll update the mod when i get a chance :)
Ok, great!
YM
Come on update for 1.1 beta 3 public. I just started using SMF about a week ago and am eager to use this mod :P.
This was one of the best mods I had...I cant wait for the new one.
Weird, there's a package for 1.1 Beta 3 but it won't install, I really need an update...those spiders are driving me nuts!
YM
if a package for beta 3, NOT beta 3 PUBLIC :P
Ok, pwn3d....:)
YM
So, maybe tomorrow then?
*runs*
;)YM
*stands in queue waiting patiently for the 1.1 beta 3 public release* :)
Updated for 1.1 Beta 3 Public, enjoy :)
Thanks, ive been awaiting this :)
Great mod, thanks for doing it.
The only tweak I would suggest is to put the online summary in the same order as the listing and Owdy's template - eg instead of:
2 Spiders, 6 guests, 8 Users
list
8 Users, 6 Guests, 2 Spiders
Members are always #1 ;)
Cheers and thanks again!
well, i did it following same order as smf
first guest, then users
since bots are not even guests, that's why i choose
spiders, guests, users :)
anyway, can be changed easily in the template.
if many ppl ask for it, it may be an option :)
Thank you, Omar! It works perfectly!
YM
w00t
I tried the version for 1.1 Beta 3 Public and when trying to apply it outputs thay SSI.PHP cannot be found :'(
Of course SSI.PHP is there, and with the right permissions (I assume).
Any ideas?
Thanks,
AiZ
Hi!
I am running smf 1.0.5 and downloaded the mod but now I am stucked. There is no installation button, just uninstall :-\
How to install it?
Quote from: Brasileira on July 06, 2005, 04:12:33 AM
Hi!
I am running smf 1.0.5 and downloaded the mod but now I am stucked. There is no installation button, just uninstall :-\
How to install it?
download and upload the mod by hand, not from package manager
now only installations 1.1 beta 3 public 3 works from "download packages"
Omar, that`s what I did and is not working for me :(
Gives me an error regarding SSI.PHP... alguna idea?
Saludos,
AiZ
can you try on a clean smf 1.0.5 installation?
-
intenta en una instalacion nueva de prueba de 1.0.5, debe jalar sin problemas, a menos que tengas otros mods que modifiquen ssi.php
Very nice and works perfectly.
When you go into the whos online. It looks jst like before. How can I get this to look like it should with this mod instead of just like the SMF who is online ppage.
As i said on mod description:
Quote
Is STRONGLY recommended to install this mod also (for a detailed view of what is being crawled):
http://www.simplemachines.org/community/index.php?topic=19243.0
is for who is online
i have SMF 1.0.5 installed i downloaded the mod manually and uploaded it thro the install new package.. it got installed i am able to see the options in EDIT FEATURES also.. but it doesn show the m as bots or spiders, if i c thro the /index.php?action=who i can see their IP and if i track it.. it shows as google bots.. but why doesnt it appear in the who is online.. pls help
Quote
Is STRONGLY recommended to install this mod also (for a detailed view of what is being crawled):
http://www.simplemachines.org/community/index.php?topic=19243.0
Hi all, I encountered a slight problem when I tried to manually keyed-in the mod.
I am running:
SMF 1.1 Beta 3 Public
Bar of Experience v1.2 (latest & compatible with SMF 1.1 Beta 3)
Mambo Integration v1.0 (latest & compatible with SMF 1.1 Beta 3)
Trying to run:
Googlebot & Spiders Mod v1.0.4
I edited each and every file that is required. Installed the mod and every file was installed successfully.
When I tried to access "Features and Options", this error was reported;
Parse error: parse error, unexpected T_ARRAY, expecting ')' in /home/gamer/public_html/forums/Sources/ModSettings.php on line 201
Opening up my ModSettings.php to that specific line...
// What does it look like? [smite]?
array('text', 'karmaLabel'),
array('text', 'karmaApplaudLabel'),
array('text', 'karmaSmiteLabel'),
array('rule'),
array('heading', &$txt['ob_googlebot_modname']),
// Count all instances of spiders?
array('check', 'ob_googlebot_count_all_instances'),
array('check', 'ob_googlebot_display_all_instances'),
array('check', 'ob_googlebot_display_agent'),
array('check', 'ob_googlebot_display_own_list'),
array('rule'),
array('check', 'ob_googlebot_count_most_online')
); // <<<----- Line 201
return $config_vars;
}
I added the extra bit to highlight Line 201. Could someone help to debug the code? I suspect I could have edited the ModSettings.php incorrectly. :(
I think I found the problem in my code.... was missing a comma at the last line of important code.
'array('check', 'ob_googlebot_count_most_online'),' <---
Anyway I can now access the Spider/Googlebot options in the "Features And Options" page. But am I supposed to see the 'Spiders' word in the "Users Online" segment of the forum?
And I just wanted to confirm... for the ModSettings.php file, we add the code BEFORE or AFTER? (maybe there is still a bug in my code)
<file name="$sourcedir/ModSettings.php">
<operation>
<search position="after"><![CDATA[
);
return $config_vars;
}]]></search>
<add><![CDATA[
array('heading', &$txt['ob_googlebot_modname']),
// Count all instances of spiders?
array('check', 'ob_googlebot_count_all_instances'),
array('check', 'ob_googlebot_display_all_instances'),
array('check', 'ob_googlebot_display_agent'),
array('check', 'ob_googlebot_display_own_list'),
array('rule'),
array('check', 'ob_googlebot_count_most_online'),]]></add>
</operation>
</file>
The above code was from the Install.xml file. Notice it said AFTER.... however I got my page working BEFORE the search parameters... Can anyone offer insights to what is wrong here?
it is looking the string AFTER where is supposed to be inserted :)
Hi Omar, this was what I found.
I can see the 'GoogleBot & Spiders' in the "Features & Options" menu, if the ModSettings.php code was like this:
array('rule'),
array('heading', &$txt['ob_googlebot_modname']),
// Count all instances of spiders?
array('check', 'ob_googlebot_count_all_instances'),
array('check', 'ob_googlebot_display_all_instances'),
array('check', 'ob_googlebot_display_agent'),
array('check', 'ob_googlebot_display_own_list'),
array('rule'),
array('check', 'ob_googlebot_count_most_online'),
);
return $config_vars;
}
I do not see the 'GoogleBot & Spiders' in the "Features & Options" menu, if the ModSettings.php code was like this:
array('rule'),
);
return $config_vars;
}
array('heading', &$txt['ob_googlebot_modname']),
// Count all instances of spiders?
array('check', 'ob_googlebot_count_all_instances'),
array('check', 'ob_googlebot_display_all_instances'),
array('check', 'ob_googlebot_display_agent'),
array('check', 'ob_googlebot_display_own_list'),
array('rule'),
array('check', 'ob_googlebot_count_most_online'),
Is this correct? I know its supposed to be AFTER the search position, but if I put the new code AFTER, I can't even access the "Features & Options" page.
Sorry for asking this question twice, but thats what I observed. Or maybe I should PM you my forum URL so you can take a look? Is that possible?
no... for boardmod installs, insert after means insert the new code after the searched code... for XML installs, after means find the seaqrched code, which will be after the new code (so the new code is actually inserted BEFORE the searched code... even though the XML reads "after")
Kindred - thanks for explaining what XML installs do... but it opens up another can of worms for me...
If AFTER (XML install) actually installs BEFORE the searched code... what does BEFORE (XML install) do?
Is there a URL or thread in this forum that discusses about the perils of installing via XML? I did try to do a search but came up with zilch... either that or I didn't key in the right key-words to do a proper search.
It still doesn't solve my problem, but I will take an attempt at the code before asking for more help.
lol... what do you expect?// the before XML tag inserts the new code AFTER the searched code...
hahaha... okie I managed to figure out my problem after CAREFULLY and SLOWLY going through the code. Of course now that I have been enlightened to the differences between BEFORE/AFTER XML installs...
and I found some sort of documentation (which is actually mentioned in the XML install header).
http://www.simplemachines.org/xml/modification
Now back to more coding... :P
egads! I spoke too soon. :(
Okie this is the problem.
I was previously tackling the modifications that Googlebot & Spiders will make to the SSI.php file. It has some issues which kept causing Mambo to crash.
I thought I fixed it by going carefully through the install code and I managed to get Mambo to run together with SMF.
However now when I enter SMF and attempt to click on the Packages menu - it comes up with just a BLANK SCREEN!!!
Gosh one problem after another - I think I won't have so much problems if I could find out a reason why the Package Manager did not work for me in the first place :(
Edit: Realised the problem was due to uploading of a mod with *.gz extension. Strange that alone could cause SMF to not load properly.
i got a error when installing
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./Sources/BoardIndex.php Failure
2. Execute Modification ./Sources/ManagePermissions.php Failure
3. Execute Modification ./Sources/ModSettings.php Failure
4. Execute Modification ./Sources/Subs.php Failure
5. Execute Modification ./Themes/default/languages/Modifications.english.php Success
6. Execute Modification ./Themes/default/BoardIndex.template.php Success
7. Execute Modification SSI.php Failure
8. Execute Code install.php
Can someone please help me
bw more specific.... what version of the mod and what version of SMF are you running? The current mod has been updated and now only works on 1.1b3
i upgraded to the beta version of smf (SMF 1.1 Beta 3 Public) and when i try and install it now i only get one failed file ./Sources/ModSettings.php is the only one that has failed. if i can fix that file i should be fine
I am using 1.0.5 and I tried to install it using the package installer. It said the file was corrupted or not compatable. :(
there are two files use the other one then (the one with the longest name)
i got it to work but it is not the same as the screen shots on the first page, is there a updated version of google bot?
gargoyle... as noted, the currently available version of the mod is only for 1.1b3.
so it is not for 1.0.5
Quote from: Kindred on July 25, 2005, 11:27:40 AM
gargoyle... as noted, the currently available version of the mod is only for 1.1b3.
I see... I was under the impression that one of the downloads was for pre-1.1 boards. Sorry for the confusion.
hmmm... actually, you appear to be correct, it looks like Omar did keep one version available for 1.0.x SMF...
If you get the right version, it should install correctly.
(in the install.xml (or whatever the xml is called) it will reference <install for=1.0.3 or something of the sort... just make sure that 1.0.5 is in that list.
Hi,
Googlebot_v104_smf1.1b3p.zip is for 1.1 beta 3 public
Googlebot_v104_smf1.0.x-1.1b2.zip is for 1.0.1-1.0.5 (and also beta 1.1 beta 1 & beta 2)
I installed Googlebot_v104_smf1.1b3p.zip, but don't see any changes no matter what theme I use. Who's online simply stays at : 0 Guests, 1 User :(
that means there is actually no bot on your site
mediman
Quote from: mediman on July 31, 2005, 01:56:12 PM
that means there is actually no bot on your site
mediman
Ooooh, ok. I thought that it would have shown 0 Guests, 1 User, 0 Spiders if that was the case. :o
I'd really like to enable this MOD with my default theme, but I'm struggling with the .xml format. I've worked out that the bit I need to look at is:
<file name="$themedir/BoardIndex.template.php">
<operation>
<search position="after"><![CDATA[$context['num_guests'], ' ',]]></search>
<add><![CDATA[(empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), ]]></add>
</operation>
<operation>
<search position="before"><![CDATA[
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);]]></search>
<add><![CDATA[
if (!empty($context['spiders']))
{
if ($modSettings['ob_googlebot_display_own_list'])
echo '
<br />
', $txt['ob_googlebot_spiders_last_active'], ':<br />';
else
{
if (empty($context['users_online']))
echo '
', $txt[140], ':<br />';
else
echo ', ';
}
echo implode(', ', $context['spiders']);
}]]></add>
</operation>
</file>
And I've opened the BoardIndex.template.php and I assume, below is what I need to alter:
// "Users online" - in order of activity.
echo '
<tr>
<td class="catbg" colspan="2">', $txt[158], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=who">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], '" border="0" /></a>
</td>
<td class="windowbg2" width="100%">
<a href="', $scripturl, '?action=who">', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ', $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], (empty($context['num_users_hidden']) ? '' : ' (' . $context['num_users_hidden'] . ' ' . $txt['hidden'] . ')'), '</a><br />
<span class="smalltext">';
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);
echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</span>
</td>
</tr>';
But, having the two $context['num_guests'], ' ', in the first part is really throwing me. I'm trying to follow the How to make mods work with themes? (http://www.simplemachines.org/community/index.php?topic=34526.0) thread, but the if possition = before you do this, but if it's after you do this.. that's throwing me.
Could anyone that's done this more than me (I still have my L plates on) possibly help me out?
Sorry to be a pain, but how do I install this on a 1.1b3P forum (haven't needed a mod before now, and I think the 1.1b3 insatall method has changed)?
The install.txt file says to look at the TOS.doc file, which doesn't say anything about how to install the mod. So I'm kinda confused.
Do you also have to modify the theme files you're working on for the mod to work?
Thanks, and again, sorry for not understanding what is involved.
Plz some1 past the SSI.php google & spider function code updated for 1.1 beta 3, THANKS!
install.xml not capable to find SSI.php!
// Shows a list of online users: YY Guests, ZZ Users and then a list...
function ssi_whosOnline($output_method = 'echo')
{
global $scripturl, $db_prefix, $user_info, $txt,$modSettings;
// Load the users online right now.
$result = db_query("
SELECT
lo.url,lo.ID_MEMBER, lo.logTime, mem.realName, mem.memberName, mem.showOnline,
mg.onlineColor, mg.ID_GROUP
FROM {$db_prefix}log_online AS lo
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = lo.ID_MEMBER)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))", __FILE__, __LINE__);
$return['users'] = array();
$return['guests'] = 0;
$return['spiders'] = array();
$return['num_spiders'] = 0;
$return['hidden'] = 0;
$return['buddies'] = 0;
$show_buddies = !empty($user_info['buddies']);
while ($row = mysql_fetch_assoc($result))
{
if (!isset($row['realName']))
{
// Get the request parameters..
$actions = @unserialize($row['url']);
// Is a spider?
$is_spider = ob_googlebot_getAgent($actions['USER_AGENT'], $spider_name, $agent, $row['ID_MEMBER'] == 0);
if (!$is_spider)
$return['guests']++;
else
{
$return['num_spiders']++;
if ($modSettings['ob_googlebot_display_agent'])
$spider_name = $agent;
if ($modSettings['ob_googlebot_count_all_instances'] && $modSettings['ob_googlebot_display_all_instances'])
$return['spiders'][] = $spider_name;
else
$return['spiders'][$agent] = $spider_name;
}
}
elseif (!empty($row['showOnline']) || allowedTo('moderate_forum'))
{
// Some basic color coding...
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>';
// Bold any buddies.
if ($show_buddies && in_array($row['ID_MEMBER'], $user_info['buddies']))
{
$return['buddies']++;
$link = '<b>' . $link . '</b>';
}
$return['users'][$row['logTime'] . $row['memberName']] = array(
'id' => $row['ID_MEMBER'],
'username' => $row['memberName'],
'name' => $row['realName'],
'group' => $row['ID_GROUP'],
'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
'link' => $link,
'hidden' => empty($row['showOnline']),
'is_last' => false,
);
}
else
$return['hidden']++;
}
mysql_free_result($result);
ksort($return['spiders']);
// Allowed user to see spiders online?
if (!allowedTo('googlebot_view'))
{
$return['spiders'] = array();
$return['guests'] += $return['num_spiders'];
}
// Don't count all instances of a spider, only 1 for each different spider
if (!empty($return['spiders']) && !$modSettings['ob_googlebot_count_all_instances'])
$return['num_spiders'] = count($return['spiders']);
// Diplay how many instances of each spider
if (!empty($return['spiders']) && $modSettings['ob_googlebot_count_all_instances'] && $modSettings['ob_googlebot_display_all_instances'])
{
$spider_grouped = array_count_values($return['spiders']);
$return['spiders'] = array();
foreach ($spider_grouped as $k => $v)
$return['spiders'][$k] = $k . ($v == 1 ? '' : ' (' . $v . ')');
}
krsort($return['users']);
if (!empty($return['users']))
$return['users'][array_pop(array_keys($return['users']))]['is_last'] = true;
$return['num_users'] = count($return['users']) + $return['hidden'] + ($modSettings['ob_googlebot_count_most_online'] ? $return['num_spiders'] : 0);
$return['total_users'] = $return['num_users'] + $return['guests'];
if ($output_method != 'echo')
return $return;
echo '
', (empty($return['spiders']) ? '' : $return['num_spiders'] . ' ,' . ($return['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '),$return['guests'], ' ', $return['guests'] == 1 ? $txt['guest'] : $txt['guests'], ' ', $return['num_users'], ' ', $return['num_users'] == 1 ? $txt['user'] : $txt['users'];
// Hidden users, or buddies?
if ($return['hidden'] > 0 || $show_buddies)
echo '
(' . ($show_buddies ? ($return['buddies'] . ' ' . ($return['buddies'] == 1 ? $txt['buddy'] : $txt['buddies'])) : '') . ($show_buddies && $return['hidden'] ? ', ' : '') . (!$return['hidden'] ? '' : $return['hidden'] . ' ' . $txt['hidden']) . ')';
echo '<br />';
if (!empty($return['spiders']))
{
if ($modSettings['ob_googlebot_display_own_list'])
echo '
<br />';
else
{
if (!empty($return['users']))
echo ', ';
}
echo implode(', ', $return['spiders']);
}
foreach ($return['users'] as $user)
echo $user['hidden'] ? '<i>' . $user['link'] . '</i>' : $user['link'], $user['is_last'] ? '' : ', ';
}
NOT WORKING!
I installed only error "failed find SSI.php"
Now added the SSI.php function update from the install.xml to the whosonline SSI function - i see still the old listing......
is there a way to let guests / members see how many bots & spiders have been visiting the site?
Set permission for member groups.
You have to do this on first time cause on default no1 can see - anyway not the sollution for my problem ...i alteredc the ssi and set permissions and use the right theme - still i dont see the update!
No error message accept the install error with missing ssi.php.
{i run 1.1 beta 3 "P" public verion" (latest)}
Still trying to get this mod to work (that, or zero spiders have crawled my site in the past two days lol), and was looking at the .xml file again.
Does <file name="$themedir/BoardIndex.template.php"> mean that it would work on all themes? Do I even need to adjust my theme? I'd love to work out why I can't see any spiders, even on my default theme. I thought it would say X Guests, X Members, X Spiders even if the numbers were 0 ::)
Quote from: Envy on August 01, 2005, 11:43:28 PM
Still trying to get this mod to work (that, or zero spiders have crawled my site in the past two days lol), and was looking at the .xml file again.
Does <file name="$themedir/BoardIndex.template.php"> mean that it would work on all themes? Do I even need to adjust my theme? I'd love to work out why I can't see any spiders, even on my default theme. I thought it would say X Guests, X Members, X Spiders even if the numbers were 0 ::)
<file name="$themedir/BoardIndex.template.php"> means that it goes straight to the SMF Default Theme. It should not display something like "0 Spiders" if the number is indeed zero.
-Dan The Man
Bleh >< So I basically have to just watch my site with the default theme going to ensure it's working? I used to have enough spiders to make a bad arachnophobia movie... but now, none lol.
Quote from: Envy on August 01, 2005, 11:52:22 PM
Bleh >< So I basically have to just watch my site with the default theme going to ensure it's working? I used to have enough spiders to make a bad arachnophobia movie... but now, none lol.
How to make mods work with themes? (http://www.simplemachines.org/community/index.php?topic=34526.0)
-Dan The Man
Quote from: Envy on August 01, 2005, 10:32:14 AM
But, having the two $context['num_guests'], ' ', in the first part is really throwing me. I'm trying to follow the How to make mods work with themes? (http://www.simplemachines.org/community/index.php?topic=34526.0) thread, but the if possition = before you do this, but if it's after you do this.. that's throwing me.
Could anyone that's done this more than me (I still have my L plates on) possibly help me out?
thanks! i like this mod
I'm trying to get this to work with a Theme. I appears the install did not adjust the SSI.php file. With that in mind, I manually went through the install.xml file for 1.1b3P, and think there may be a problem near the bottom with the following statements:
<operation>
<search position="before"><![CDATA[$return['total_users'] = $return['num_users'] + $return['guests']]]></search>
<add><![CDATA[ + ($modSettings['ob_googlebot_count_most_online'] ? $return['num_spiders'] : 0)]]></add>
</operation>
<operation>
<search position="after"><![CDATA[$return['guests'], ' ', $return['guests'] == 1]]></search>
<add><![CDATA[(empty($return['spiders']) ? '' : $return['num_spiders'] . ' ' . ($return['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), ]]></add>
</operation>
Am I off base here?
I cannot get the Spider line to show up on the index, but I can see the results in teh detailed view page.
Actually, correction... I was putting them in the wrong order!
However, I still can't get them to work with my theme, even after adding them to SSI.php and to my theme's BoardIndex template.
PLease if some1 has a working 1.1 beta 3P post the full SSI function along with the Boardindex one, thanks in advance :-p
I have 35% bots and spiders atm and i really like to make them visible!
Oh and make it compatible with this (http://www.caffeinecoder.net/) would be just great.
i don't think that the install.php is working right, coz i can't see the changes in the database.
how do i manually add the tables?
please tell me what to do step by step, since i'm not that familiar w/ database editing.
i want to know what to write in each blank, like field, type, value, etc
Update #2:
Well lo and behold if the old Googlebot didn't show up!
I was confused because the site does not register 0 spiders when none are around. Pretty cool stuff :)
What are the diffrence between the beta and the old versions?
What i have to change to make it work with the beta version?
Please any1 help here - this is a must have it mod!
I really thinking of downgrading only to run the spider goggle make visible the spys mod!
Cheetah!
Quote from: tentronik on August 02, 2005, 10:57:38 PM
PLease if some1 has a working 1.1 beta 3P post the full SSI function along with the Boardindex one, thanks in advance :-p
I have 35% bots and spiders atm and i really like to make them visible!
Oh and make it compatible with this (http://www.caffeinecoder.net/) would be just great.
// Shows a list of online users: YY Guests, ZZ Users and then a list...
function ssi_whosOnline($output_method = 'echo')
{
global $scripturl, $db_prefix, $user_info, $txt;
global $modSettings;
// Load the users online right now.
$result = db_query("
SELECT
lo.ID_MEMBER, lo.logTime, lo.url, mem.realName, mem.memberName, mem.showOnline,
mg.onlineColor, mg.ID_GROUP
FROM {$db_prefix}log_online AS lo
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = lo.ID_MEMBER)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))", __FILE__, __LINE__);
$return['users'] = array();
$return['guests'] = 0;
$return['hidden'] = 0;
$return['spiders'] = array();
$return['num_spiders'] = 0;
$return['buddies'] = 0;
$show_buddies = !empty($user_info['buddies']);
while ($row = mysql_fetch_assoc($result))
{
if (!isset($row['realName']))
{
// Get the request parameters..
$actions = @unserialize($row['url']);
// Is a spider?
$is_spider = ob_googlebot_getAgent($actions['USER_AGENT'], $spider_name, $agent, $row['ID_MEMBER'] == 0);
if (!$is_spider)
$return['guests']++;
else
{
$return['num_spiders']++;
if ($modSettings['ob_googlebot_display_agent'])
$spider_name = $agent;
if ($modSettings['ob_googlebot_count_all_instances'] && $modSettings['ob_googlebot_display_all_instances'])
$return['spiders'][] = $spider_name;
else
$return['spiders'][$agent] = $spider_name;
}
}
elseif (!empty($row['showOnline']) || allowedTo('moderate_forum'))
{
// Some basic color coding...
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>';
// Bold any buddies.
if ($show_buddies && in_array($row['ID_MEMBER'], $user_info['buddies']))
{
$return['buddies']++;
$link = '<b>' . $link . '</b>';
}
$return['users'][$row['logTime'] . $row['memberName']] = array(
'id' => $row['ID_MEMBER'],
'username' => $row['memberName'],
'name' => $row['realName'],
'group' => $row['ID_GROUP'],
'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
'link' => $link,
'hidden' => empty($row['showOnline']),
'is_last' => false,
);
}
else
$return['hidden']++;
}
mysql_free_result($result);
krsort($return['users']);
ksort($return['spiders']);
// Allowed user to see spiders online?
if (!allowedTo('googlebot_view'))
{
$return['spiders'] = array();
$return['guests'] += $return['num_spiders'];
}
// Don't count all instances of a spider, only 1 for each different spider
if (!empty($return['spiders']) && !$modSettings['ob_googlebot_count_all_instances'])
$return['num_spiders'] = count($return['spiders']);
// Diplay how many instances of each spider
if (!empty($return['spiders']) && $modSettings['ob_googlebot_count_all_instances'] && $modSettings['ob_googlebot_display_all_instances'])
{
$spider_grouped = array_count_values($return['spiders']);
$return['spiders'] = array();
foreach ($spider_grouped as $k => $v)
$return['spiders'][$k] = $k . ($v == 1 ? '' : ' (' . $v . ')');
}
if (!empty($return['users']))
$return['users'][array_pop(array_keys($return['users']))]['is_last'] = true;
$return['num_users'] = count($return['users']) + $return['hidden'];
$return['total_users'] = $return['num_users'] + $return['guests'] + ($modSettings['ob_googlebot_count_most_online'] ? $return['num_spiders'] : 0);
if ($output_method != 'echo')
return $return;
echo '
', (empty($return['spiders']) ? '' : $return['num_spiders'] . ' ' . ($return['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $return['guests'], ' ', $return['guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ', $return['num_users'], ' ', $return['num_users'] == 1 ? $txt['user'] : $txt['users'];
// Hidden users, or buddies?
if ($return['hidden'] > 0 || $show_buddies)
echo '
(' . ($show_buddies ? ($return['buddies'] . ' ' . ($return['buddies'] == 1 ? $txt['buddy'] : $txt['buddies'])) : '') . ($show_buddies && $return['hidden'] ? ', ' : '') . (!$return['hidden'] ? '' : $return['hidden'] . ' ' . $txt['hidden']) . ')';
echo '<br />';
foreach ($return['users'] as $user)
echo $user['hidden'] ? '<i>' . $user['link'] . '</i>' : $user['link'], $user['is_last'] ? '' : ', ';
if (!empty($return['spiders']))
{
if ($modSettings['ob_googlebot_display_own_list'])
echo '
<br />';
else
{
if (!empty($return['users']))
echo ', ';
}
echo implode(', ', $return['spiders']);
}
}
Board index:
is too big to post. Pm me for the thing...
The SSI function works as far as i can tell.
The boardindex is currently not working - also i dont even know if the boardindex fixes anything.
I have the mod installed and the main error the not found SSI from the install is fixed.
Still no google and or spiders ... ;(
try using the wc3 validator at the bottom of every smf page. It counts as a bot.... The xhtml one. The CSS one isn't in the spider array....
Ok i did and now?
LINK (http://validator.w3.org/check?uri=http%3A%2F%2Fbbbmag.com%2Fcomponent%2Foption%2Ccom_smf%2FItemid%2C72%2F)
When having the front page validated on your site, the 'bot should show up in the spiders section of the who's online. Did it show up there?
QuoteSpiders active in past 10 minutes:
W3C_Validator
yes :-p
lol its working the hall time :))
Thanks guys all i need were the SSI which is posted on page 14!
Cheers
btw.
page not validated!
glad you got it to work :P
I really think this should be included in the core!
Because the reason for "who is online" is to see who is online.
This includes user and bots.
well, the file i posted in 1st message handles the bots in "who is online" :)
I mean this should be part of the SMF core :-)
Not only a mod.
Of course it could be still a mod which enhance in somekind the who is online bots/spider stuff(more infos).
well... could be a mod, but since we don't want SMF to be too bloated, is just a mod right now :P
Btw do you know this (http://www.caffeinecoder.net/) statistic tool?
Its released as a mambo com/mod and standalone.
Very detailed - even counts user pathinfos.
what the name of the exact mod? i see a lot of them
The mambo component - TFSforMAMBO (integrated stats for MAMBO)
The mambo cms module "TFSforMAMBO modules, for MAMBO 4.5.2" for the mambo cms
This for the standalone i guess
"TFS (original script)"
Can you upgrade the mod so that in messageindex, instead of
Quote#User and # Guest viewing this board.
Make it so its
Quote#Spider, #User and #Guest viewing this board.
good idea :)
Hi,
Just tried to install the mod on SMF 1.1 Beta 3 Public, but I can't.
SSI.php File not Found
I read that I'm not the only who has this problem ... Can anyone
share how he has solved the problem (I use "Themis" theme).
Thank you!
QuoteThanks guys all i need were the SSI which is posted on page 14!
On page 14 some1 was so kind to post the ssi function just replace it with the old whoisonline ssi function.
cheers
Quote from: tentronik on August 14, 2005, 07:16:02 PM
QuoteThanks guys all i need were the SSI which is posted on page 14!
On page 14 some1 was so kind to post the ssi function just replace it with the old whoisonline ssi function.
cheers
Thank you, tentronik!
Just tried, but unsuccessful (maybe because I use the theme "Themis"???).
What is the last line in SSI.php I have to edit?
Open the SSI.php and search for "ssi_whosOnline" then replace the hall function with the new one.
The last character ia a bracket "}".
// Shows a list of online users: YY Guests, ZZ Users and then a list...
function ssi_whosOnline($output_method = 'echo')
{
global $scripturl, $db_prefix, $user_info, $txt;
global $modSettings;
// Load the users online right now.
$result = db_query("
SELECT
lo.ID_MEMBER, lo.logTime, lo.url, mem.realName, mem.memberName, mem.showOnline,
mg.onlineColor, mg.ID_GROUP
FROM {$db_prefix}log_online AS lo
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = lo.ID_MEMBER)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))", __FILE__, __LINE__);
$return['users'] = array();
$return['guests'] = 0;
$return['hidden'] = 0;
$return['spiders'] = array();
$return['num_spiders'] = 0;
$return['buddies'] = 0;
$show_buddies = !empty($user_info['buddies']);
while ($row = mysql_fetch_assoc($result))
{
if (!isset($row['realName']))
{
// Get the request parameters..
$actions = @unserialize($row['url']);
// Is a spider?
$is_spider = ob_googlebot_getAgent($actions['USER_AGENT'], $spider_name, $agent, $row['ID_MEMBER'] == 0);
if (!$is_spider)
$return['guests']++;
else
{
$return['num_spiders']++;
if ($modSettings['ob_googlebot_display_agent'])
$spider_name = $agent;
if ($modSettings['ob_googlebot_count_all_instances'] && $modSettings['ob_googlebot_display_all_instances'])
$return['spiders'][] = $spider_name;
else
$return['spiders'][$agent] = $spider_name;
}
}
elseif (!empty($row['showOnline']) || allowedTo('moderate_forum'))
{
// Some basic color coding...
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>';
// Bold any buddies.
if ($show_buddies && in_array($row['ID_MEMBER'], $user_info['buddies']))
{
$return['buddies']++;
$link = '<b>' . $link . '</b>';
}
$return['users'][$row['logTime'] . $row['memberName']] = array(
'id' => $row['ID_MEMBER'],
'username' => $row['memberName'],
'name' => $row['realName'],
'group' => $row['ID_GROUP'],
'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
'link' => $link,
'hidden' => empty($row['showOnline']),
'is_last' => false,
);
}
else
$return['hidden']++;
}
mysql_free_result($result);
krsort($return['users']);
ksort($return['spiders']);
// Allowed user to see spiders online?
if (!allowedTo('googlebot_view'))
{
$return['spiders'] = array();
$return['guests'] += $return['num_spiders'];
}
// Don't count all instances of a spider, only 1 for each different spider
if (!empty($return['spiders']) && !$modSettings['ob_googlebot_count_all_instances'])
$return['num_spiders'] = count($return['spiders']);
// Diplay how many instances of each spider
if (!empty($return['spiders']) && $modSettings['ob_googlebot_count_all_instances'] && $modSettings['ob_googlebot_display_all_instances'])
{
$spider_grouped = array_count_values($return['spiders']);
$return['spiders'] = array();
foreach ($spider_grouped as $k => $v)
$return['spiders'][$k] = $k . ($v == 1 ? '' : ' (' . $v . ')');
}
if (!empty($return['users']))
$return['users'][array_pop(array_keys($return['users']))]['is_last'] = true;
$return['num_users'] = count($return['users']) + $return['hidden'];
$return['total_users'] = $return['num_users'] + $return['guests'] + ($modSettings['ob_googlebot_count_most_online'] ? $return['num_spiders'] : 0);
if ($output_method != 'echo')
return $return;
echo '
', (empty($return['spiders']) ? '' : $return['num_spiders'] . ' ' . ($return['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $return['guests'], ' ', $return['guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ', $return['num_users'], ' ', $return['num_users'] == 1 ? $txt['user'] : $txt['users'];
// Hidden users, or buddies?
if ($return['hidden'] > 0 || $show_buddies)
echo '
(' . ($show_buddies ? ($return['buddies'] . ' ' . ($return['buddies'] == 1 ? $txt['buddy'] : $txt['buddies'])) : '') . ($show_buddies && $return['hidden'] ? ', ' : '') . (!$return['hidden'] ? '' : $return['hidden'] . ' ' . $txt['hidden']) . ')';
echo '<br />';
foreach ($return['users'] as $user)
echo $user['hidden'] ? '<i>' . $user['link'] . '</i>' : $user['link'], $user['is_last'] ? '' : ', ';
if (!empty($return['spiders']))
{
if ($modSettings['ob_googlebot_display_own_list'])
echo '
<br />';
else
{
if (!empty($return['users']))
echo ', ';
}
echo implode(', ', $return['spiders']);
}
}
Quote from: tentronik on August 14, 2005, 08:04:30 PM
Open the SSI.php and search for "ssi_whosOnline" then replace the hall function with the new one.
The last character ia a bracket "}".
Quote7. Execute Modification SSI.php File not found
Very strange! I just installed it without any problems on other forum (default forum
without mambo bridge), but on this one I can't. Can Mambo bridge cause any problems? :-\
I dont think it affects the bridge at all, basicly its just a forum addition.
Do you have a component such as search firendly URLS?
If so un enable it and try to install again.
OK, I found where the problems is! :) I tried to install the mod in the wrapped SMF!
Now I install it in the default ("stand-alone") installation and everything works fine!
Thank you for the help, tentronik!
during istall in smf105 it says all files ok...but SSI.php not found...
i jumped through the thread..probably i left the solution..but i didnt saw similiar issue...
so any idea why it does not find the SSI.php (which surely is there...)
manually do it then. with the code posted on top...
Hi There
I get
1. Execute Modification ./Sources/BoardIndex.php Success
2. Execute Modification ./Sources/ManagePermissions.php Success
3. Execute Modification ./Sources/ModSettings.php Success
4. Execute Modification ./Sources/Subs.php Success
5. Execute Modification ./Themes/default/languages/Modifications.english.php Success
6. Execute Modification ./Themes/default/BoardIndex.template.php Success
7. Execute Modification SSI.php Success
8. Execute Code install.php
but dont see the mod in the admin section or on the main page?
thanks
its in features and options...
I wish it was lol - not there - any ideas?
at the bottom of it?
nope def not there
I dnt think it is executing the install as that does not have success next to it?
The install.php and things like that should never have a sucess... Anyway, why don't u test the mod my send validation spiders to your site. at the bottom of themes, the validation button (the xhtml one)
I see 1. Googlebot & Spiders Mod 1.0.4 [ Apply Mod ] [ List Files ] [ Delete ]
in my package seciton my board is 1.0.5
does this make a difference?
and not sure what you mean re button - I pressed it and got 64 errors
I checked the 'installed packages and despite saying success - it isnt installed
I get
'Some of the files this package needs to modify are not writable. This needs to be changed by logging into FTP and chmoding the files'
but they are all 777?
Quote from: NeoisD1 on August 30, 2005, 03:10:02 PM
I see 1. Googlebot & Spiders Mod 1.0.4 [ Apply Mod ] [ List Files ] [ Delete ]
in my package seciton my board is 1.0.5
does this make a difference?
and not sure what you mean re button - I pressed it and got 64 errors
No, difference. Press the validation button then go to your boardindex and check if u can see the wc3 validator spider...
Quote from: NeoisD1 on August 30, 2005, 03:13:19 PM
I checked the 'installed packages and despite saying success - it isnt installed
I get
'Some of the files this package needs to modify are not writable. This needs to be changed by logging into FTP and chmoding the files'
but they are all 777?
can u install other packages?
anyway, is it possible to make this mod have a Bots online today combined with the Users online today..
cant see it?
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.forum.ukbetta.co.uk%2Findex.php
Neois... after seeing the success page, did you click PROCEED, below?
The system doers a check to see if it WILL BE successful, but doesn't actually install the mod until you click proceed.
(Since your mod is appearing as uninstalled, I'm betting that is where you're going wrong)
yep press proceed and it blinks for a second then goes back to same page as if nothing happend.
"Local path to SMF:" could someone give me an exmaple ow what this should be like
I am currently using something like: /usr/home/forum12345xxx/public_html
the local path should be right...
why don't u refresh on the loading page....
yep tried that an no difference
do I pehaps have to change the public_html folder settings?
yes, and are all the modified files set to 777?
the files were uploaded via package manager and set the zip to 777
is SMF installed in the ROOT directory of your site?
yes it is and checked all files they are 777
so try installing. btw can u install other mods?
Not sure but i had trouble with SSI its posted i think on page 14 here.
Try to replace the function as posted.
(This is only nessasary and might fix your issues, if you had a install message reporting a "failure" for altering the SSI.php).
Cheers
so, is working or no?
it only works on default theme
the ssi is not needed, if you don't use ssi (only forum i mean)
nope not working not installed - am trying to find a mod to try and install that wont mess things up and is simple - so will let you know if other mods are installable.
ok tried the karma log mod and got same problem
so for somereason smf isnt allowing my mod install
any ideas
and can someone set up a dummy
'FTP Information Required'
so I can check I am not doing something really dumb
sounds like you may have the Safe mod problem... search for "Safe Mode mod install" on this site...
o gawd, I have sent a message to server to see if in safe mode - I sure hope it is easy to work around as there is no way I am capable of doing this manually.
ok got a reply from hos and they say in regards to php it is not in safe mode?
gave details to my host and they tried an instal and didnt work - they have asked is there anything that needs to be turned off other than safe mode?
How do I get this to work in another theme? It works like a champ on the default SMF theme, but not on any of my other themes?
Which files need to be modified?
Thx.
the files that need to be modified depend on the theme that you are using.
How to make mods work with themes? (http://www.simplemachines.org/community/index.php?topic=34526.0)
Another bot, shown as guest.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.wnwest.com%2Fimages%2Fstg%2Fbot.png&hash=456aedad851ab8eb244c87f64a41db945b824d13)
Never heard of it.
Quote from: wgm on September 06, 2005, 04:09:50 PM
Another bot, shown as guest.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.wnwest.com%2Fimages%2Fstg%2Fbot.png&hash=456aedad851ab8eb244c87f64a41db945b824d13)
Never heard of it.
because it isn't in your subs as a bot...
http://www.webmasterworld.com/forum39/2573.htm
Quote from: Kindred on September 06, 2005, 01:11:26 PM
the files that need to be modified depend on the theme that you are using.
How to make mods work with themes? (http://www.simplemachines.org/community/index.php?topic=34526.0)
Okay... can you tell me what I'm supposed to add out of the following two instructions... I'm getting confused with all of the brackets tacked onto the beginnings and ends of the code and the 'CDATA' syntax...
Quote<add><![CDATA[ (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), ] ]></add>
Quote<add><![CDATA[
if (!empty($context['spiders']))
{
if ($modSettings['ob_googlebot_display_own_list'])
echo '
<br />
', $txt['ob_googlebot_spiders_last_active'], ':<br />';
else
{
if (empty($context['users_online']))
echo '
', $txt[140], ':<br />';
else
echo ', ';
}
echo implode(', ', $context['spiders']);
}]]></add>
Thanks
the things inside the add tags..
example
<add><![CDATA[ (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), ] ]></add>
you have that... Add this to the file
(empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '),
Quote from: YahMan on July 05, 2005, 06:40:52 PM
Thank you, Omar! It works perfectly!
YM
WHOA, what happened, I was trying to follow the fix for the incompatibilty issue with this mod, but I am running 1.0.5
SMF
I guess Omar you out there?
~WD
don't work with smf 1.1 rc1
Quote from: MaximoDecimoMeridio on September 23, 2005, 05:52:32 AM
don't work with smf 1.1 rc1
it does... You just have to edit the package_info.xml file so it allows 1.1 RC1. It works after u do that...
Seems to work fine in RC1.
yep. Just change hte package thingy..
This one works great, however it displays like "0 1 Spider, Guests, 1 User", it should be 0 Spider, 1 Guests, 1 User rite? how can i fix it please?
You put the order in one of the files. boardindex, I think. Try editing the way it says on the default thingy...
Can't seem to get it to install on 1.1 RC1 any idea when it is going to be updated?
JR
have you edited your package-info.xml file so it reads
<install for="1.1 Beta 3, 1.1 Beta 3 Public, 1.1 RC1">
that worked for me
cant get this one to work, checked thro all the files seems to be not updating the boardindex.template in my helios theme folder. Is this correct? Should it update it?
It all installs ok & is in pm it just does not show up on my board!
If it shoud be updating where do i insert the 2 bits of code?
// Version: 1.1 RC1; BoardIndex
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
$topbox='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="height: 16px; width: 22px;"><img src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topleft.gif" style="height: 16px; width: 22px; border: 0px; padding: 0px; margin: 0px;" alt="gfx" /></td><td style="height: 16px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topmid.gif); "></td><td style="height: 16px; width: 27px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topright.gif" style="height: 16px; width: 27px; border: 0px; padding: 0px; margin: 0px;" /></td></tr><tr><td style="width: 22px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-midleft.gif); "></td><td valign="top">';
$botbox='</td><td style="width: 27px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-midright.gif); "></td></tr><tr><td style="height: 14px; width: 22px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-botleft.gif" style="height: 14px; width: 22px; border: 0px; padding: 0px; margin: 0px;" /></td><td style="height: 14px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-botmid.gif); "></td><td style="height: 14px; width: 27px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-botright.gif" style="height: 14px; width: 27px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table>';
$leftbox='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="height: 54px; width: 72px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-lefttop.gif" style="height: 54px; width: 72px; border: 0px; padding: 0px; margin: 0px;" /></td><td nowrap="nowrap" style="text-align: center; height: 54px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-midtop.gif); ">';
$rightbox='</td><td style="height: 54px; width: 79px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-topright.gif" style="height: 54px; width: 79px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table>';
$leftboxbot='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-left: 5px; height: 78px; width: 72px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-botleft.gif" style="height: 78px; width: 72px; border: 0px; padding: 0px; margin: 0px;" /></td><td valign="top" nowrap="nowrap" style="text-align: center; height: 78px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-botmid.gif); ">';
$rightboxbot='</td><td style="height: 78px; width: 79px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-botright.gif" style="height: 78px; width: 79px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table>';
$leftboxbot2='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-left: 4px; height: 36px; width: 72px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topleft-40.gif" style="height: 36px; width: 72px; border: 0px; padding: 0px; margin: 0px;" /></td><td valign="top" nowrap="nowrap" style="text-align: center; height: 36px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topmid-41.gif); ">';
$rightboxbot2='</td><td style="padding-right: 0px; height: 36px; width: 79px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topright-42.gif" style="height: 36px; width: 79px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table>';
// Show some statistics next to the link tree if SP1 info is off.
echo $leftbox.'
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td style="text-align: left; padding-left: 0px;" valign="bottom">', theme_linktree(), '</td>
</tr>
</table>'.$rightbox;
// Show the news fader? (assuming there are things to show...)
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
{
echo $topbox;
echo '
<div style="padding: 0px; margin-bottom: 2px;">
<table border="0" width="100%" cellspacing="1" cellpadding="4">
<tr>
<td align="left" style="font-weight: bold;"> ', $txt[102], '</td>
</tr>
<tr>
<td valign="middle" align="center" height="60">';
// Prepare all the javascript settings.
echo '
<div id="smfFadeScroller" style="width: 90%; padding: 2px; color: #ffffff;"><b>', $context['news_lines'][0], '</b></div>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
// The fading delay (in ms.)
var smfFadeDelay = ', empty($settings['newsfader_time']) ? 5000 : $settings['newsfader_time'], ';
// Fade from... what text color? To which background color?
var smfFadeFrom = {"r": 255, "g": 255, "b": 255}, smfFadeTo = {"r": 0, "g": 0, "b": 0};
// Surround each item with... anything special?
var smfFadeBefore = "<b>", smfFadeAfter = "</b>";
var foreColor, backEl, backColor;
if (typeof(document.getElementById(\'smfFadeScroller\').currentStyle) != "undefined")
{
foreColor = document.getElementById(\'smfFadeScroller\').currentStyle.color.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};
backEl = document.getElementById(\'smfFadeScroller\');
while (backEl.currentStyle.backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined")
backEl = backEl.parentNode;
backColor = backEl.currentStyle.backgroundColor.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
smfFadeTo = {"r": eval("0x" + backColor[1]), "g": eval("0x" + backColor[2]), "b": eval("0x" + backColor[3])};
}
else if (typeof(window.opera) == "undefined" && typeof(document.defaultView) != "undefined")
{
foreColor = document.defaultView.getComputedStyle(document.getElementById(\'smfFadeScroller\'), null).color.match(/rgb\((\d+), (\d+), (\d+)\)/);
smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};
backEl = document.getElementById(\'smfFadeScroller\');
while (document.defaultView.getComputedStyle(backEl, null).backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined" && typeof(backEl.parentNode.tagName) != "undefined")
backEl = backEl.parentNode;
backColor = document.defaultView.getComputedStyle(backEl, null).backgroundColor.match(/rgb\((\d+), (\d+), (\d+)\)/);
smfFadeTo = {"r": parseInt(backColor[1]), "g": parseInt(backColor[2]), "b": parseInt(backColor[3])};
}
// List all the lines of the news for display.
var smfFadeContent = new Array(
"', implode('",
"', $context['fader_news_lines']), '"
);
// ]]></script>
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/fader.js"></script>
</td>
</tr>
</table>
</div>';
echo $botbox;
}
/* Each category in categories is made up of:
id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down iamge),
and boards. (see below.) */
echo $topbox;
foreach ($context['categories'] as $category)
{
echo '
<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="6">
<tr>
<td colspan="2" class="catbg', $category['new'] ? '2' : '', '" height="18">';
// If this category even can collapse, show a link to collapse it.
if ($category['can_collapse'])
echo '
<a href="', $category['collapse_href'], '">', $category['collapse_image'], '</a>';
echo '
', $category['link'], '
</td>
<td width="4%" class="catbg', $category['new'] ? '2' : '', '"><b>' ,$txt[21], '</b></td>
<td width="4%" class="catbg', $category['new'] ? '2' : '', '"><b>' ,$txt[330], '</b></td>
<td width="22%" align="center" class="catbg', $category['new'] ? '2' : '', '"> ', $txt[22], '</td>
</tr>';
// Assuming the category hasn't been collapsed...
if (!$category['is_collapsed'])
{
/* Each board in each category's boards has:
new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
children (see below.), link_children (easier to use.), children_new (are they new?),
topics (# of), posts (# of), link, href, and last_post. (see below.) */
foreach ($category['boards'] as $board)
{
echo '
<tr class="windowbg2">
<td class="windowbg" width="6%" align="center" valign="top"><a href="', $scripturl, '?action=unread;board=', $board['id'], '.0">';
// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
// This board doesn't have new posts, but its children do.
elseif ($board['children_new'])
echo '<img src="', $settings['images_url'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
// No new posts at all! The agony!!
else
echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';
echo '</a></td>
<td>
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
', $board['description'];
// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
if (!empty($board['moderators']))
echo '
<div style="padding-top: 1px;" class="smalltext"><i>', count($board['moderators']) == 1 ? $txt[298] : $txt[299], ': ', implode(', ', $board['link_moderators']), '</i></div>';
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
}
echo '
<div style="padding-top: 1px;" class="smalltext"><i>', $txt['parent_boards'], ': ', implode(', ', $children), '</i></div>';
}
// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 8ex;"><span class="smalltext">
', $board['posts'], '</span></td>
<td class="windowbg" valign="middle" align="center" style="width: 8ex;"><span class="smalltext">
', $board['topics'],'
</span></td>
<td class="smalltext" valign="middle" width="25%" style="padding-left: 12px;">';
/* The board's and children's last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo $board['last_post']['time'], '<br />
<b>', $board['last_post']['link'], '</b> ', $txt[525], '
', $board['last_post']['member']['link'];
echo '
</td>
</tr>';
}
}
echo '
</table></div>';
}
echo $botbox;
echo $leftboxbot;
if ($context['user']['is_logged'])
{
echo '
<div style="padding-top: 16px;"><table border="0" width="100%" cellspacing="0" cellpadding="0" valign="top">
<tr>
<td align="left" class="smalltext" valign="top">
<img src="' . $settings['images_url'] . '/new_some.gif" alt="" align="absmiddle" border="0" /> ', $txt[333], '
<img src="' . $settings['images_url'] . '/new_none.gif" alt="" align="absmiddle" border="0" style="margin-left: 4ex;" /> ', $txt[334], '
</td>
<td align="right" class="smalltext">';
// Show the mark all as read button?
if ($settings['show_mark_read'])
echo '
<a href="', $scripturl, '?action=markasread;sa=all;sesc=' . $context['session_id'] . '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/markread.gif" alt="' . $txt[452] . '" border="0" />' : $txt[452]), '</a>';
echo '
</td>
</tr>
</table></div>';
}
else
echo '<div style="padding: 0px;"><table border="0" width="100%" cellspacing="0" cellpadding="5">
<tr>
<td align="left" class="smalltext">
</td>
<td align="right" class="smalltext">
</td>
</tr>
</table></div>';
echo $rightboxbot;
// Here's where the "Info Center" starts...
echo $leftboxbot2.'<div style="font-weight: bold; text-align: center;">'.$txt[685].'</div>'.$rightboxbot2;
echo '<div style="padding-left: 0px; padding-right: 0px;">'.$topbox;
echo '
<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="4"> ';
// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']))
{
echo '
<tr>
<td class="catbg" colspan="2">', $txt[214], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=recent">
<img src="', $settings['images_url'], '/post/xx.gif" alt="', $txt[214], '" border="0" /></a>
</td>
<td class="windowbg2">';
// Only show one post.
if ($settings['number_recent_posts'] == 1)
{
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (it's id.)
echo '
<b><a href="', $scripturl, '?action=recent">', $txt[214], '</a></b>
<div class="smalltext">
', $txt[234], ' "', $context['latest_post']['link'], '" ', $txt[235], ' (', $context['latest_post']['time'], ')<br />
</div>';
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<table width="100%" border="0">';
/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
foreach ($context['latest_posts'] as $post)
echo '
<tr>
<td class="smalltext" align="right" valign="top" nowrap="nowrap">[', $post['board']['link'], ']</td>
<td class="smalltext" valign="top">', $post['link'], ' ', $txt[525], ' ', $post['poster']['link'], '</td>
<td class="smalltext" align="right" valign="top" nowrap="nowrap">', $post['time'], '</td>
</tr>';
echo '
</table>';
}
echo '
</td>
</tr>';
}
// Show information about events, birthdays, and holidays on the calendar.
if ($context['show_calendar'])
{
echo '
<tr>
<td class="catbg" colspan="2">', $context['calendar_only_today'] ? $txt['calendar47b'] : $txt['calendar47'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=calendar">
<img src="', $settings['images_url'], '/icons/calendar.gif" alt="', $txt['calendar24'], '" border="0" /></a>
</td>
<td class="windowbg2" width="100%">
<span class="smalltext">';
// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
if (!empty($context['calendar_holidays']))
echo '
<span style="color: #', $modSettings['cal_holidaycolor'], ';">', $txt['calendar5'], ' ', implode(', ', $context['calendar_holidays']), '</span><br />';
// People's birthdays. Like mine. And yours, I guess. Kidding.
if (!empty($context['calendar_birthdays']))
{
echo '
<span style="color: #', $modSettings['cal_bdaycolor'], ';">', $context['calendar_only_today'] ? $txt['calendar3'] : $txt['calendar3b'], '</span> ';
/* Each member in calendar_birthdays has:
id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */
foreach ($context['calendar_birthdays'] as $member)
echo '
<a href="', $scripturl, '?action=profile;u=', $member['id'], '">', $member['is_today'] ? '<b>' : '', $member['name'], $member['is_today'] ? '</b>' : '', isset($member['age']) ? ' (' . $member['age'] . ')' : '', '</a>', $member['is_last'] ? '<br />' : ', ';
}
// Events like community get-togethers.
if (!empty($context['calendar_events']))
{
echo '
<span style="color: #', $modSettings['cal_eventcolor'], ';">', $context['calendar_only_today'] ? $txt['calendar4'] : $txt['calendar4b'], '</span> ';
/* Each event in calendar_events should have:
title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */
foreach ($context['calendar_events'] as $event)
echo '
', $event['can_edit'] ? '<a href="' . $event['modify_href'] . '" style="color: #FF0000;">*</a> ' : '', '<a href="', $event['href'], '">', $event['is_today'] ? '<b>' . $event['title'] . '</b>' : $event['title'], '</a>', $event['is_last'] ? '<br />' : ', ';
// Show a little help text to help them along ;).
if ($context['calendar_can_edit'])
echo '
(<a href="', $scripturl, '?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">', $txt['calendar_how_edit'], '</a>)';
}
echo '
</span>
</td>
</tr>';
}
// Show a member bar. Not heavily ornate, but functional at least.
if ($settings['show_member_bar'])
{
echo '
<tr>
<td class="catbg" colspan="2">', $txt[331], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
', $context['show_member_list'] ? '<a href="' . $scripturl . '?action=mlist">' : '', '<img src="', $settings['images_url'], '/icons/members.gif" alt="', $txt[332], '" border="0" />', $context['show_member_list'] ? '</a>' : '', '
</td>
<td class="windowbg2" width="100%">
<b>', $context['show_member_list'] ? '<a href="' . $scripturl . '?action=mlist">' . $txt[332] . '</a>' : $txt[332], '</b>
<div class="smalltext">', $txt[200], '</div>
</td>
</tr>';
}
// Show YaBB SP1 style information...
if ($settings['show_sp1_info'])
{
echo '
<tr>
<td class="catbg" colspan="2">', $txt[645], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=stats">
<img src="', $settings['images_url'], '/icons/info.gif" alt="', $txt[645], '" border="0" /></a>
</td>
<td class="windowbg2" width="100%">
<table border="0" width="90%"><tr>
<td class="smalltext">
<div style="float: ', !$context['right_to_left'] ? 'left' : 'right', '; width: 50%;">', $txt[490], ': <b>', $context['common_stats']['total_topics'], '</b></div>', $txt[489], ': <b>', $context['common_stats']['total_posts'], '</b><br />', !empty($context['latest_post']) ? '
' . $txt[659] . ': "' . $context['latest_post']['link'] . '" (' . $context['latest_post']['time'] . ')<br />' : '', '
<a href="', $scripturl, '?action=recent">', $txt[234], '</a>', $context['show_stats'] ? '<br />
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</td>
<td width="32%" class="smalltext" valign="top">
', $txt[488], ': <b><a href="', $scripturl, '?action=mlist">', $context['common_stats']['total_members'], '</a></b><br />
', $txt[656], ': <b>', $context['common_stats']['latest_member']['link'], '</b><br />';
// If they are logged in, show their unread message count, etc..
if ($context['user']['is_logged'])
echo '
', $txt['smf199'], ': <b><a href="', $scripturl, '?action=pm">', $context['user']['messages'], '</a></b> ', $txt['newmessages3'], ': <b><a href="', $scripturl, '?action=pm">', $context['user']['unread_messages'], '</a></b>';
echo '
</td>
</tr></table>
</td>
</tr>';
}
// "Users online" - in order of activity.
echo '
<tr>
<td class="catbg" colspan="2">', $txt[158], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', '<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], '" border="0" />', $context['show_who'] ? '</a>' : '', '
</td>
<td class="windowbg2" width="100%">';
if ($context['show_who'])
echo '
<a href="', $scripturl, '?action=who">';
echo $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];
// Handle hidden users and buddies.
if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies'])))
{
echo ' (';
// Show the number of buddies online?
if ($context['show_buddies'])
echo $context['num_buddies'], ' ', $context['num_buddies'] == 1 ? $txt['buddy'] : $txt['buddies'];
// How about hidden users?
if (!empty($context['num_users_hidden']))
echo $context['show_buddies'] ? ', ' : '', $context['num_users_hidden'] . ' ' . $txt['hidden'];
echo ')';
}
if ($context['show_who'])
echo '</a>';
echo '
<span class="smalltext">';
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);
echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</span>
<hr /><span class="smalltext">
Most users online today: '.$modSettings['mostOnlineToday'].'
Most users online ever: <b>'.$modSettings['mostOnline'].'</b> ( '.timeformat($modSettings['mostDate']).' )
</span>
</td>
</tr>';
// If they are logged in, but SP1 style information is off... show a personal message bar.
if ($context['user']['is_logged'] && !$settings['show_sp1_info'])
{
echo '
<tr>
<td class="catbg" colspan="2">', $txt[159], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
', $context['allow_pm'] ? '<a href="' . $scripturl . '?action=pm">' : '', '<img src="', $settings['images_url'], '/message_sm.gif" alt="', $txt[159], '" border="0" />', $context['allow_pm'] ? '</a>' : '', '
</td>
<td class="windowbg2" valign="top">
<b><a href="', $scripturl, '?action=pm">', $txt[159], '</a></b>
<div class="smalltext">
', $txt[660], ' ', $context['user']['messages'], ' ', $context['user']['messages'] == 1 ? $txt[471] : $txt[153], '.... ', $txt[661], '
i'll update that fpr rc1 in the next couple of days... have been quite busy, sorry :)
I just installed this on smf 1.0.5, I have about 12 mods installed besides this one. I downloaded the "Who.template.php" file and used it to. Everything is working fine and it all shows up in whos online, but I have a theme called "coolmetal" installed is there anything I have to change to get teh spiders to show up on the forum index ??? I also have simple portal installed. Can anyone help ???
You need to edit the boardindex.template.php
Follow the directions in the file
what directions in what file ? I have looked through all the files and I dont see anywhere were it says to manually edit that file. I`m not trying to be rude or nothing but can someone tell me how this goes. Guests show up on the portal and in who's online. just not on the forum index. Like no guests show at all on the forum index, the spiders show in whos online though.
Quote from: Bigguy on November 06, 2005, 09:09:44 PM
I just installed this on smf 1.0.5, I have about 12 mods installed besides this one. I downloaded the "Who.template.php" file and used it to. Everything is working fine and it all shows up in whos online, but I have a theme called "coolmetal" installed is there anything I have to change to get teh spiders to show up on the forum index ??? I also have simple portal installed. Can anyone help ???
just open the .xml, and check what strings to search for, and what to put/replace in you new template.
or if you have a backup, use a tool to check for the differences before/after the mod was installed. a great tol is WinMerge (http://winmerge.sourceforge.net/)
ja ne!
I like that tool and I will check it out. As for the xml file, which one there is an install.xml and package-info.xml. Probably in the later I would think but I`m not sure.
Quote from: Bigguy on November 07, 2005, 05:52:04 PM
I like that tool and I will check it out. As for the xml file, which one there is an install.xml and package-info.xml. Probably in the later I would think but I`m not sure.
is in install.xml
but i think will be easier to check the diff with winmerge :)
ok let me install winmerge....done. Ok now I take the boardindex.template.php and what other one ? a backup of it if there is one and compare them ?
Quote from: Bigguy on November 07, 2005, 06:42:09 PM
ok let me install winmerge....done. Ok now I take the boardindex.template.php and what other one ? a backup of it if there is one and compare them ?
indeed
i suppose the backup is called ~Boardindex.template.php
ja ne!
I dont have a backup of that file in my themes directory under the theme coolmetal. (This is the one I want to edit, its the theme I`m using).
then you have to re download the files. Then use winmerge
I have it installed, it does work. In the portal I can see the users and the guests, but the guests dont show up as spiders on the portal, thats fine. When I go to the forum index it shows the users but doesnt show ANY guests including spiders. When I click on the "whos online" it shows the Users the guests and the spiders. All I want is for the spdiers and the guests to both show on the forum index. I have the mod here on my desktop if that helps, but I dont see how re-downloading the files is going to help me. Sorry if i`m not understanding correctly.
since you are using a different theme than default, that's why the changes aren't displayed properly.
for a quick check of what was installed modified, you can install on your pc a apache/php server (wampserver is pretty cool), install smf, backup, and then apply the mod
after you install the mod, you must diff the files on your pc smf installation against the backup you made.
Since you have a lot of mods, and have a theme that noone knows which is, is very difficult for me, to tell you exactly what to change.
The portal, Simple download and the style "Coolmetal" are all from "SimplePortal 1.0 by and © Nesianstyles" If that helps at all. My site can be seen at http://www.mywworld.com
I have tried winmerge and made changes to the Boardindex.template.php but the spiders still do not show up on the forum index.
what's your url?
I might not have the permissions set so you can see it all but the url is http://www.mywworld.com
EDIT: I have changed permissions for guests.
Quote from: Bigguy on November 09, 2005, 12:05:25 PM
I might not have the permissions set so you can see it all but the url is http://www.mywworld.com
EDIT: I have changed permissions for guests.
if you use the default theme, you can see the bots on boardindex?
So I cannot use this mod with this theme ??? Is there no way. I would have to change back to the default theme in order to use this ???
Quote from: Bigguy on November 09, 2005, 12:15:35 PM
So I cannot use this mod with this theme ??? Is there no way. I would have to change back to the default theme in order to use this ???
i'm just asking if that when you use default theme you can see the spiders.if the answer is yes, then it was installed properly. if the answer is no, then isn't installed properly...
if default works ok, then plz send me your theme (zipped) to obazavil[ @ ]gmail.com, so i can check it
ok well let me change themes here for a minute and we will see. I have also just used winmerge again to redo the changes to the boardindex.template.php file and uploaded it to my cpanel.
Ok I changed the boardindex like it says above changed themes to default and then back again and now it is reading the spiders. Thanks for your help.
Quote from: Bigguy on November 09, 2005, 12:54:42 PM
Ok I changed the boardindex like it says above changed themes to default and then back again and now it is reading the spiders. Thanks for your help.
so... is working? or isn't?
These are the steps I took to install this mod on smf 1.0.5:
1. uninstalled fasterparse code
2. installed the mod via package manager
3. used Winmerge to make changes to the "BoardIndex.template.php" file on the theme I wanted to use
4. Got alot of help and pointers from the good people here (Omar Bazavilvazo,Libo just to mention a few)
5. I set the permissions and now the spiders show on the index of the forum and in the "whos online"
To answer your question Omar Bazavilvazo yes it is working great.
Glad to hear that :)
Thanx alot for all your help.
Does this work on RC1?
Quote from: Padfoot on November 10, 2005, 02:48:03 PM
Does this work on RC1?
I just added a new .zip for RC1, please try it.
No it doesn't work in RC1.
I got the following errors:
./Sources/BoardIndex.php Test failed
./Sources/ManagePermissions.php Test failed
./Sources/Subs.php Test failed
./SSI.php Test failed
Any help would be apprecited :)
Oops.. sorry it works. I forgot to REMOVE the OLDER Version. thanks.
Worked like a charm for me on SMF 1.1 RC1
Hi,
me too: Works fine on the RC1, but... :(
On the who-is-online-and-where-page it counts Spiders as Guests... But Installation works fine and shows no errors. Any idea?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg219.imageshack.us%2Fimg219%2F8619%2Fneu34hx.th.jpg&hash=ea553a00f114ca6182c54c0702b928fb6cea28c2) (http://img219.imageshack.us/my.php?image=neu34hx.jpg)
Edit: The two guests on the picture are Spiders... Oh, but on the Index all works fine.
Quote from: nehcregit on November 11, 2005, 11:01:32 AM
Hi,
me too: Works fine on the RC1, but... :(
On the who-is-online-and-where-page it counts Spiders as Guests... But Installation works fine and shows no errors. Any idea?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg219.imageshack.us%2Fimg219%2F8619%2Fneu34hx.th.jpg&hash=ea553a00f114ca6182c54c0702b928fb6cea28c2) (http://img219.imageshack.us/my.php?image=neu34hx.jpg)
Edit: The two guests on the picture are Spiders... Oh, but on the Index all works fine.
'
you need the improved who.template.php file...
http://www.simplemachines.org/community/index.php?topic=19243.0
Have this mod installed and all, I'm yet to see ANY spiders or agents ... I don't know whether it's working or not.
Have you tried this suggestion ???
Quote from: Libo on November 11, 2005, 11:47:58 AM
Quote from: nehcregit on November 11, 2005, 11:01:32 AM
Hi,
me too: Works fine on the RC1, but... :(
On the who-is-online-and-where-page it counts Spiders as Guests... But Installation works fine and shows no errors. Any idea?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg219.imageshack.us%2Fimg219%2F8619%2Fneu34hx.th.jpg&hash=ea553a00f114ca6182c54c0702b928fb6cea28c2) (http://img219.imageshack.us/my.php?image=neu34hx.jpg)
Edit: The two guests on the picture are Spiders... Oh, but on the Index all works fine.
'
you need the improved who.template.php file...
http://www.simplemachines.org/community/index.php?topic=19243.0
You can install this firefox extension:
http://chrispederick.com/work/useragentswitcher/
Then, add googlebot, msnbot to the user agents, so you can test it.
Here is some info about the values you can add:
http://chrispederick.com/forums/viewtopic.php?id=556
Hmmm... Nice firefox extention. I'll try that out..
After working out some permission problems on the server, I was able to succesfully install this mod. It is now listed as installed. I don't, though, see any settings for it under "features and options." I am running RC1. The bots are not being recognized either. Something is awry. Any ideas?
Probably wasn't installed correctly. Use the default theme and try again
Quote from: bl968 on June 07, 2005, 02:11:18 AM
Quote from: rmb on June 07, 2005, 01:17:49 AM
I tryed to install but I get this error:
./Sources/ManagePermissions.php Failure
So, what must I do now?
Thank you for answer.
On your packages list you have
#. Googlebot & Spiders Mod 1.0.1 [ Apply Mod ] [ List Files ] [ Delete ]
Click on List files
You should get a list like the one below. Select the one in bold.
List files in package
Files in archive Googlebot_v1.0.1.zip:
install.txt (357 bytes)
install.xml (12918 bytes)
package-info.xml (575 bytes)
SMF Mod TOS Draft.doc (21504 bytes)
[ Back ]
You will now have a list of the changes the mod is susposed to make.
Search down the page until you see
<file name="$sourcedir/ManagePermissions.php">
Find the below lines in your forum copy of Manage Permissions.php they should be in there somewhere
)
),
'board' => array(
'general_board' => array(
Make the lines in your ManagePermissions.php match lines from the install.xml it should look like the text in the code section above and try to reapply the mod.
If it still fails. Uninstall all installed mods and replace the ManagePermissions with the original one from the smf_1-0-3_install.tar.gz then try installing the spiders mod first. Then simply reinstall the rest of your mods. If it still doesn't work you might wanna try a fresh install.
I'm not too clear on how to resolve this issue with uninstall/reinstalling other mods. Any suggestions/clarifications?
Thanks
This mod doesn't work on my forum. I'm having 1.1 RC1 and I've installed it fine. But it doesn't show google bot even when google bot is crawling my site....
I don't know what could be wrong, but I'm using a Ig-Oh theme on my site. Does that have anything to do with it?
you need to manually modify the files...
How to modify the files ?
You need to download the Who.template.php file found on this site and then you need to modify the index.template.php file of the theme you want it to work on, I think it is.
Quote from: RoarinRow on November 16, 2005, 03:52:02 PM
Quote from: bl968 on June 07, 2005, 02:11:18 AM
Quote from: rmb on June 07, 2005, 01:17:49 AM
I tryed to install but I get this error:
./Sources/ManagePermissions.php Failure
So, what must I do now?
Thank you for answer.
On your packages list you have
#. Googlebot & Spiders Mod 1.0.1 [ Apply Mod ] [ List Files ] [ Delete ]
Click on List files
You should get a list like the one below. Select the one in bold.
List files in package
Files in archive Googlebot_v1.0.1.zip:
install.txt (357 bytes)
install.xml (12918 bytes)
package-info.xml (575 bytes)
SMF Mod TOS Draft.doc (21504 bytes)
[ Back ]
You will now have a list of the changes the mod is susposed to make.
Search down the page until you see
<file name="$sourcedir/ManagePermissions.php">
Find the below lines in your forum copy of Manage Permissions.php they should be in there somewhere
)
),
'board' => array(
'general_board' => array(
Make the lines in your ManagePermissions.php match lines from the install.xml it should look like the text in the code section above and try to reapply the mod.
If it still fails. Uninstall all installed mods and replace the ManagePermissions with the original one from the smf_1-0-3_install.tar.gz then try installing the spiders mod first. Then simply reinstall the rest of your mods. If it still doesn't work you might wanna try a fresh install.
I'm not too clear on how to resolve this issue with uninstall/reinstalling other mods. Any suggestions/clarifications?
Thanks
I just looked at the install file and my own ManagePermission file and did find one comma that was missing in the install.xml file. I then uninstalled and reinstalled with the change and I still get failure for the ManagePermission file.
Any other workaround other than uninstalling existing mods.
Here's what I have so far on my SMF 1.0.5 forum:
1. SMF Arcade 1.2.1 [ Uninstall ] [ List Files ] [ Delete ]
2. Faster Parsecode 1.09 [ Uninstall ] [ List Files ] [ Delete ]
3. VisualWarning 1.27 [ Uninstall ] [ List Files ] [ Delete ]
4. Integrated Chat 2.3 [ Uninstall ] [ List Files ] [ Delete ]
5. Ultimate Shoutbox 1.31 [ Uninstall ] [ List Files ] [ Delete ]
6. Karma Description Mod 1.9.2 [ Uninstall ] [ List Files ] [ Delete ]
Thanks in advance.
Quote from: Omar Bazavilvazo on June 15, 2005, 01:08:00 PM
instead of:
'challenge_view' => false,
)
),
'board' => array(
you should have:
'challenge_view' => false,
),
'googlebot' => array(
'googlebot_view' => false,
),
),
'board' => array(
'general_board' => array(
that is because you have arcade mod, and didn't check the "failed" when you installed the package.
This fix worked for me since my only error message was with my ManagePermission.php file. I manually made this update and it appear in my Edit Permissions area. Thanks!
Quote from: Bigguy on November 18, 2005, 10:09:02 AM
You need to download the Who.template.php file found on this site and then you need to modify the index.template.php file of the theme you want it to work on, I think it is.
Sorry for the persistent questions, but how do I modify the index.template.php to make the googlebot mod work? There doesn't seem to be any info regarding this.
I guess you only modify the index.template.php if your installing onto another theme other than the default.
I think the BoardIndex template needs to be changed as there is no trace of googlebot being installed correctly there.... hmm :(
A good program to see the differences between 2 files is Winmerge. You can check it out here.
http://winmerge.sourceforge.net/
I got one little question about this mod , Im useing "google adsense" on my forum and before i would install this mod i would like to ask first if someone have any idea if its agains any terms of use or tos with google . i dont wanna have a chanse to lose my google account so its better to ask first
If anyone can give me a 100% answare about this please send me a mail at :
[email protected]Thank You in advance.
I cant say with absolute certainty that its not, but I dont see why it would be against any terms of service anywhere. No I cant see it definately not. IMHO.
Quote from: IncubuS on November 24, 2005, 09:22:17 PM
I got one little question about this mod , Im useing "google adsense" on my forum and before i would install this mod i would like to ask first if someone have any idea if its agains any terms of use or tos with google . i dont wanna have a chanse to lose my google account so its better to ask first
If anyone can give me a 100% answare about this please send me a mail at : [email protected]
Thank You in advance.
Awesome, this installed without a problem. For me, that's remarkable, as I'm new to SMF, I converted from Phpbb, and I'm glad I did.
This was the first mod I installed and downloaded in SMF :D
Also I've found out that it's easier to create new themes for SMF then PHPbb. How come nobody told me about this software sooner? It took me getting hacked twice to find you guys. :o
BTW. whats the difference between a "miner" and a "bot" and why doesn't a miner show as a bot?
QuoteGuest
(64.124.122.228, RufusBot (Rufus Web Miner;
http://64.124.122.252/feedback.html))
I have that in mine to and I was wondering what it was. If you go to the url it gives you its just a feedback form there
Quote from: Ed Bowers on November 25, 2005, 07:09:47 PM
Awesome, this installed without a problem. For me, that's remarkable, as I'm new to SMF, I converted from Phpbb, and I'm glad I did.
This was the first mod I installed and downloaded in SMF :D
Also I've found out that it's easier to create new themes for SMF then PHPbb. How come nobody told me about this software sooner? It took me getting hacked twice to find you guys. :o
BTW. whats the difference between a "miner" and a "bot" and why doesn't a miner show as a bot?
QuoteGuest
(64.124.122.228, RufusBot (Rufus Web Miner;
http://64.124.122.252/feedback.html))
Quote from: Ed Bowers on November 25, 2005, 07:09:47 PM
Awesome, this installed without a problem. For me, that's remarkable, as I'm new to SMF, I converted from Phpbb, and I'm glad I did.
This was the first mod I installed and downloaded in SMF :D
Also I've found out that it's easier to create new themes for SMF then PHPbb. How come nobody told me about this software sooner? It took me getting hacked twice to find you guys. :o
BTW. whats the difference between a "miner" and a "bot" and why doesn't a miner show as a bot?
QuoteGuest
(64.124.122.228, RufusBot (Rufus Web Miner;
http://64.124.122.252/feedback.html))
This mod can only tell if it is bot or not, is it if u define it. If u say its a bot, it will display as a bot..
U go to subs.php and just copy the code for bots and put in a new bots name. Then it will display as a spider..
Ok but that doesnt tell us what it is. Is it a search engine ??? What is a "webminer" ???
webminers are what search engines use to crawl and retreve you site so they know what's on your site. Also called spiders or robots.
Ok so theres nothing dangerous about this Rufusbot then. Cool.
Quote from: Sheepy on November 26, 2005, 01:55:37 AM
webminers are what search engines use to crawl and retreve you site so they know what's on your site. Also called spiders or robots.
Quote from: Libo on November 25, 2005, 09:59:21 PM
This mod can only tell if it is bot or not, is it if u define it. If u say its a bot, it will display as a bot..
U go to subs.php and just copy the code for bots and put in a new bots name. Then it will display as a spider..
Roger that, and done it. Man, I didn't think that sub.php file was so big. :o
I can't see any spider mods under Edit Membergroups.. Is there any manual way to add those code to manage permission.php?
because when i install the mods it says that manage permission is fail to copy. Thanks
:)
:)
You have to edit the template of the theme you are using, IMHO.
Your reply could mean anything! How about some detail ::)
Quote from: nooniensingh on December 16, 2005, 12:40:18 PM
Hi,
This mod dosent seem to be compatiple with 1.0.5 it shows up in edit basic options but thats it. Here is what it looks like:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi24.photobucket.com%2Falbums%2Fc35%2Fnooniensingh%2Fpack.jpg&hash=180f742e0b690fa51491a4baec49cc76e96efa82)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi24.photobucket.com%2Falbums%2Fc35%2Fnooniensingh%2Fpack1.jpg&hash=1086efbd070674a3667f49a958e86b3fbdeb739d)
^seems there should be more options there^
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi24.photobucket.com%2Falbums%2Fc35%2Fnooniensingh%2Fpack2.jpg&hash=418f9b16adbdd36d95e34655bea99a07f999b692)
Any help would be apprciated :)
Those are the same options I have with my smf 1.0.5. and it does work. I seen some googlebot spiders online.
On my boardindex.template.php I did have to add the following lines on top of my most users online today code:
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);
if (!empty($context['spiders']))
{
if ($modSettings['ob_googlebot_display_own_list'])
echo '
<br />
', $txt['ob_googlebot_spiders_last_active'], ':<br />';
else
{
if (empty($context['users_online']))
echo '
', $txt[140], ':<br />';
else
echo ', ';
}
echo implode(', ', $context['spiders']);
} echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</span>
<hr /><span class="smalltext">
Most users online simultaneously today: '.$modSettings['mostOnlineToday'].'
Most users online ever: <b>'.$modSettings['mostOnline'].'</b> ( '.timeformat($modSettings['mostDate']).' )
</span>
</td>
</tr>';
:)
Ok rofl..
I changed hosts and now I am running 1.1RC1 and now I get a different error lol imagine that, the error is as follows:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi24.photobucket.com%2Falbums%2Fc35%2Fnooniensingh%2Ferror.png&hash=a9e0d0c3ae322b1b3f941005321c822b58bc13b9)
I have no other mods installed at this time, and if you notice its the default theme...
Quote from: nooniensingh on December 19, 2005, 01:55:51 PM
Template Parse Error!
There was a problem loading the /Themes/saphire11/BoardIndex.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP
^^^^thats what I get^^^^
Here is what my BoardIndex.template.php looks like:
<?php
// Version: 1.1 RC1; BoardIndex
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
// Show some statistics next to the link tree if SP1 info is off.
echo '
<table width="100%" cellpadding="3" cellspacing="0">
<tr>
<td valign="bottom">', theme_linktree(), '</td>
<td align="right">';
if (!$settings['show_sp1_info'])
echo '
', $txt[19], ': ', $context['common_stats']['total_members'], ' • ', $txt[95], ': ', $context['common_stats']['total_posts'], ' • ', $txt[64], ': ', $context['common_stats']['total_topics'], '
', ($settings['show_latest_member'] ? '<br />' . $txt[201] . ' <b>' . $context['common_stats']['latest_member']['link'] . '</b>' . $txt[581] : '');
echo '
</td>
</tr>
</table>';
// Show the news fader? (assuming there are things to show...)
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
{
echo '
<div class="tborder" style="margin-bottom: 2ex;">
<table border="0" width="100%" cellspacing="1" cellpadding="4">
<tr class="titlebg" align="center">
<td>', $txt[102], '</td>
</tr>
<tr>
<td valign="middle" align="center" style="height: 60px;">';
// Prepare all the javascript settings.
echo '
<div id="smfFadeScroller" style="width: 90%; padding: 2px;"><b>', $context['news_lines'][0], '</b></div>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
// The fading delay (in ms.)
var smfFadeDelay = ', empty($settings['newsfader_time']) ? 5000 : $settings['newsfader_time'], ';
// Fade from... what text color? To which background color?
var smfFadeFrom = {"r": 0, "g": 0, "b": 0}, smfFadeTo = {"r": 255, "g": 255, "b": 255};
// Surround each item with... anything special?
var smfFadeBefore = "<b>", smfFadeAfter = "</b>";
var foreColor, backEl, backColor;
if (typeof(document.getElementById(\'smfFadeScroller\').currentStyle) != "undefined")
{
foreColor = document.getElementById(\'smfFadeScroller\').currentStyle.color.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};
backEl = document.getElementById(\'smfFadeScroller\');
while (backEl.currentStyle.backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined")
backEl = backEl.parentNode;
backColor = backEl.currentStyle.backgroundColor.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
smfFadeTo = {"r": eval("0x" + backColor[1]), "g": eval("0x" + backColor[2]), "b": eval("0x" + backColor[3])};
}
else if (typeof(window.opera) == "undefined" && typeof(document.defaultView) != "undefined")
{
foreColor = document.defaultView.getComputedStyle(document.getElementById(\'smfFadeScroller\'), null).color.match(/rgb\((\d+), (\d+), (\d+)\)/);
smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};
backEl = document.getElementById(\'smfFadeScroller\');
while (document.defaultView.getComputedStyle(backEl, null).backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined" && typeof(backEl.parentNode.tagName) != "undefined")
backEl = backEl.parentNode;
backColor = document.defaultView.getComputedStyle(backEl, null).backgroundColor.match(/rgb\((\d+), (\d+), (\d+)\)/);
smfFadeTo = {"r": parseInt(backColor[1]), "g": parseInt(backColor[2]), "b": parseInt(backColor[3])};
}
// List all the lines of the news for display.
var smfFadeContent = new Array(
"', implode('",
"', $context['fader_news_lines']), '"
);
// ]]></script>
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/fader.js"></script>
</td>
</tr>
</table>
</div>';
}
/* Each category in categories is made up of:
id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down iamge),
and boards. (see below.) */
foreach ($context['categories'] as $category)
{
echo '
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="85" height="22" align="left" valign="top"><img src="', $settings['images_url'], '/top_left.gif" width="85" height="22" alt=" " border="0" /></td>
<td width="100%" style="background-image:url(', $settings['images_url'], '/cat.gif);" align="center" valign="middle">';
// If this category even can collapse, show a link to collapse it.
if ($category['can_collapse'])
echo '
<a href="', $category['collapse_href'], '">', $category['collapse_image'], '</a>';
echo '
<a href="', $category['href'], '"><b>', $category['name'], '</b></a>
</td>
<td width="85" height="22" align="right" valign="top"><img src="', $settings['images_url'], '/top_right.gif" width="85" height="22" alt=" " border="0" /></td>
</tr>
</table>
<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="3">
<tr class="cat2">
<td width="8%" class="smalltext" align="center"> </td>
<td width="47%" class="smalltext" align="center">
Forum</td>
<td width="15%" class="smalltext" align="center">Stats</td>
<td width="50%" class="smalltext" align="center">Last Post</td>
</tr>';
// Assuming the category hasn't been collapsed...
if (!$category['is_collapsed'])
{
/* Each board in each category's boards has:
new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
children (see below.), link_children (easier to use.), children_new (are they new?),
topics (# of), posts (# of), link, href, and last_post. (see below.) */
foreach ($category['boards'] as $board)
{
echo '
<tr>
<td class="windowbg" align="center" valign="top"><a href="', $scripturl, '?action=unread;board=', $board['id'], '.0">';
// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
// This board doesn't have new posts, but its children do.
elseif ($board['children_new'])
echo '<img src="', $settings['images_url'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
// No new posts at all! The agony!!
else
echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';
echo '</a></td>
<td class="windowbg2" onmouseover="this.className=\'windowbg3\'" onmouseout="this.className=\'windowbg2\'">
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
<font size="1"> ', $board['description'],'</font>';
// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
if (!empty($board['moderators']))
echo '
<div style="padding-top: 1px;" class="smalltext"><i>', count($board['moderators']) == 1 ? $txt[298] : $txt[299], ': ', implode(', ', $board['link_moderators']), '</i></div>';
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
}
echo '
<div style="padding-top: 1px;" class="smalltext"><i>', $txt['parent_boards'], ': ', implode(', ', $children), '</i></div>';
}
// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg2" valign="middle" align="center"><span class="smalltext">
', $board['posts'], ' ', $txt[21], ' ', $txt['smf88'], '<br />
', $board['topics'], ' ', $txt[330], '
</span></td>
<td class="windowbg" valign="middle">';
/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
echo '<font size="1">
', $board['last_post']['time'], '<br/>
', $txt['smf88'], ' ', $board['last_post']['link'], ' <br/>', $txt[525], ' ', $board['last_post']['member']['link'],'</font></td>';
}
}
echo '
</tr></table></div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="85" height="22" align="left" valign="top"><img src="', $settings['images_url'], '/bot_left.gif" width="85" height="22" alt=" " border="0" /></td>
<td width="100%" style="background-image:url(', $settings['images_url'], '/bottom.gif);" align="center" valign="middle"></td>
<td width="85" height="22" align="right" valign="top"><img src="', $settings['images_url'], '/bot_right.gif" width="85" height="22" alt=" " border="0" /></td>
</tr>
</table><br/>';
}
if ($context['user']['is_logged'])
{
echo '<br/>
<table border="0" width="300" cellspacing="0" cellpadding="5" align="center">
<tr>
<td align="', !$context['right_to_left'] ? 'left' : 'right', '" class="smalltext">
<img src="' . $settings['images_url'] . '/on.gif" alt="" border="0" align="middle" /> ', $txt[333], '
<img src="' . $settings['images_url'] . '/off.gif" alt="" border="0" align="middle" style="margin-left: 4ex;" /> ', $txt[334], '
</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" class="smalltext">';
// Show the mark all as read button?
if ($settings['show_mark_read'])
echo '
<a href="', $scripturl, '?action=markasread;sa=all;sesc=' . $context['session_id'] . '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/markread.gif" alt="' . $txt[452] . '" border="0" />' : $txt[452]), '</a>';
echo '
</td>
</tr>
</table>';
}
// Here's where the "Info Center" starts...
echo '
<br />
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="85" height="22" align="left" valign="top"><img src="', $settings['images_url'], '/top_left.gif" width="85" height="22" alt=" " border="0" /></td>
<td width="100%" style="background-image:url(', $settings['images_url'], '/cat.gif);" align="center" valign="middle">',$context['forum_name'],' - Info Center
</td>
<td width="85" height="22" align="right" valign="top"><img src="', $settings['images_url'], '/top_right.gif" width="85" height="22" alt=" " border="0" /></td>
</tr>
</table>
<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="4">';
// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']))
{
echo '
<tr>
<td class="cat2" colspan="2"><font size="1">', $txt[214], '</font></td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=recent">
<img src="', $settings['images_url'], '/user.gif" alt="', $txt[214], '" border="0" /></a>
</td>
<td class="windowbg2">';
// Only show one post.
if ($settings['number_recent_posts'] == 1)
{
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
echo '
<b><a href="', $scripturl, '?action=recent">', $txt[214], '</a></b>
<div class="smalltext">
', $txt[234], ' "', $context['latest_post']['link'], '" ', $txt[235], ' (', $context['latest_post']['time'], ')<br />
</div>';
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<table width="100%" border="0">';
/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
foreach ($context['latest_posts'] as $post)
echo '
<tr>
<td align="right" valign="top" nowrap="nowrap">[', $post['board']['link'], ']</td>
<td valign="top">', $post['link'], ' ', $txt[525], ' ', $post['poster']['link'], '</td>
<td align="right" valign="top" nowrap="nowrap">', $post['time'], '</td>
</tr>';
echo '
</table>';
}
echo '
</td>
</tr>';
}
// Show information about events, birthdays, and holidays on the calendar.
if ($context['show_calendar'])
{
echo '
<tr>
<td class="cat2" colspan="2"><font size="1">', $context['calendar_only_today'] ? $txt['calendar47b'] : $txt['calendar47'], '</font></td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=calendar">
<img src="', $settings['images_url'], '/user.gif" alt="', $txt['calendar24'], '" border="0" /></a>
</td>
<td class="windowbg2" width="100%">
<span class="smalltext">';
// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
if (!empty($context['calendar_holidays']))
echo '
<span style="color: #', $modSettings['cal_holidaycolor'], ';">', $txt['calendar5'], ' ', implode(', ', $context['calendar_holidays']), '</span><br />';
// People's birthdays. Like mine. And yours, I guess. Kidding.
if (!empty($context['calendar_birthdays']))
{
echo '
<span style="color: #', $modSettings['cal_bdaycolor'], ';">', $context['calendar_only_today'] ? $txt['calendar3'] : $txt['calendar3b'], '</span> ';
/* Each member in calendar_birthdays has:
id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */
foreach ($context['calendar_birthdays'] as $member)
echo '
<a href="', $scripturl, '?action=profile;u=', $member['id'], '">', $member['is_today'] ? '<b>' : '', $member['name'], $member['is_today'] ? '</b>' : '', isset($member['age']) ? ' (' . $member['age'] . ')' : '', '</a>', $member['is_last'] ? '<br />' : ', ';
}
// Events like community get-togethers.
if (!empty($context['calendar_events']))
{
echo '
<span style="color: #', $modSettings['cal_eventcolor'], ';">', $context['calendar_only_today'] ? $txt['calendar4'] : $txt['calendar4b'], '</span> ';
/* Each event in calendar_events should have:
title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */
foreach ($context['calendar_events'] as $event)
echo '
', $event['can_edit'] ? '<a href="' . $event['modify_href'] . '" style="color: #FF0000;">*</a> ' : '', $event['href'] == '' ? '' : '<a href="' . $event['href'] . '">', $event['is_today'] ? '<b>' . $event['title'] . '</b>' : $event['title'], $event['href'] == '' ? '' : '</a>', $event['is_last'] ? '<br />' : ', ';
// Show a little help text to help them along ;).
if ($context['calendar_can_edit'])
echo '
(<a href="', $scripturl, '?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">', $txt['calendar_how_edit'], '</a>)';
}
echo '
</span>
</td>
</tr>';
}
// Show a member bar. Not heavily ornate, but functional at least.
if ($settings['show_member_bar'])
{
echo '
<tr>
<td class="cat2" colspan="2"><font size="1">', $txt[331], '</font></td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
', $context['show_member_list'] ? '<a href="' . $scripturl . '?action=mlist">' : '', '<img src="', $settings['images_url'], '/user.gif" alt="', $txt[332], '" border="0" />', $context['show_member_list'] ? '</a>' : '', '
</td>
<td class="windowbg2" width="100%">
<b>', $context['show_member_list'] ? '<a href="' . $scripturl . '?action=mlist">' . $txt[332] . '</a>' : $txt[332], '</b>
<div class="smalltext">', $txt[200], '</div>
</td>
</tr>';
}
// Show YaBB SP1 style information...
if ($settings['show_sp1_info'])
{
echo '
<tr>
<td class="cat2" colspan="2"><font size="1">', $txt[645], '</font></td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=stats">
<img src="', $settings['images_url'], '/user.gif" alt="', $txt[645], '" border="0" /></a>
</td>
<td class="windowbg2" width="100%">
<table border="0" width="90%"><tr>
<td class="smalltext">
<div style="float: ', !$context['right_to_left'] ? 'left' : 'right', '; width: 50%;">', $txt[490], ': <b>', $context['common_stats']['total_topics'], '</b></div>', $txt[489], ': <b>', $context['common_stats']['total_posts'], '</b><br />', !empty($context['latest_post']) ? '
' . $txt[659] . ': "' . $context['latest_post']['link'] . '" (' . $context['latest_post']['time'] . ')<br />' : '', '
<a href="', $scripturl, '?action=recent">', $txt[234], '</a>', $context['show_stats'] ? '<br />
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</td>
<td width="32%" class="smalltext" valign="top">
', $txt[488], ': <b><a href="', $scripturl, '?action=mlist">', $context['common_stats']['total_members'], '</a></b><br />
', $txt[656], ': <b>', $context['common_stats']['latest_member']['link'], '</b><br />';
// If they are logged in, show their unread message count, etc..
if ($context['user']['is_logged'])
echo '
', $txt['smf199'], ': <b><a href="', $scripturl, '?action=pm">', $context['user']['messages'], '</a></b> ', $txt['newmessages3'], ': <b><a href="', $scripturl, '?action=pm">', $context['user']['unread_messages'], '</a></b>';
echo '
</td>
</tr></table>
</td>
</tr>';
}
// "Users online" - in order of activity.
echo '
<tr>
<td class="cat2" colspan="2"><font size="1">', $txt[158], '</font></td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', '<img src="', $settings['images_url'], '/user.gif" alt="', $txt[158], '" border="0" />', $context['show_who'] ? '</a>' : '', '
</td>
<td class="windowbg2" width="100%">';
if ($context['show_who'])
echo '
<a href="', $scripturl, '?action=who">';
echo $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];
// Handle hidden users and buddies.
if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies'])))
{
echo ' (';
// Show the number of buddies online?
if ($context['show_buddies'])
echo $context['num_buddies'], ' ', $context['num_buddies'] == 1 ? $txt['buddy'] : $txt['buddies'];
// How about hidden users?
if (!empty($context['num_users_hidden']))
echo $context['show_buddies'] ? ', ' : '', $context['num_users_hidden'] . ' ' . $txt['hidden'];
echo ')';
}
if ($context['show_who'])
echo '</a>';
echo '
<div class="smalltext">';
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);
echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';
// If they are logged in, but SP1 style information is off... show a personal message bar.
if ($context['user']['is_logged'] && !$settings['show_sp1_info'])
{
echo '
<tr>
<td class="cat2" colspan="2"><font size="1">', $txt[159], '</font></td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
', $context['allow_pm'] ? '<a href="' . $scripturl . '?action=pm">' : '', '<img src="', $settings['images_url'], '/user.gif" alt="', $txt[159], '" border="0" />', $context['allow_pm'] ? '</a>' : '', '
</td>
<td class="windowbg2" valign="top">
<b><a href="', $scripturl, '?action=pm">', $txt[159], '</a></b>
<div class="smalltext">
', $txt[660], ' ', $context['user']['messages'], ' ', $context['user']['messages'] == 1 ? $txt[471] : $txt[153], '.... ', $txt[661], ' <a href="', $scripturl, '?action=pm">', $txt[662], '</a> ', $txt[663], '
</div>
</td>
</tr>';
}
// Show the login bar. (it's only true if they are logged out anyway.)
if ($context['show_login_bar'])
{
echo '
<tr>
<td class="cat2" colspan="2"><font size="1">', $txt[34], '</font> <a href="', $scripturl, '?action=reminder" class="smalltext">(' . $txt[315] . ')</a></td>
</tr>
<tr>
<td class="windowbg" width="20" align="center">
<a href="', $scripturl, '?action=login">
<img src="', $settings['images_url'], '/user.gif" alt="', $txt[34], '" border="0" /></a>
</td>
<td class="windowbg2" valign="middle">
<form action="', $scripturl, '?action=login2" method="post" style="margin: 0;">
<table border="0" cellpadding="2" cellspacing="0" width="100%"><tr>
<td valign="middle" align="left">
<label for="user"><b>', $txt[35], ':</b><br /><input type="text" name="user" id="user" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="passwrd"><b>', $txt[36], ':</b><br /><input type="password" name="passwrd" id="passwrd" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="cookielength"><b>', $txt[497], ':</b><br /><input type="text" name="cookielength" id="cookielength" size="4" maxlength="4" value="', $modSettings['cookieTime'], '" /></label>
</td>
<td valign="middle" align="left">
<label for="cookieneverexp"><b>', $txt[508], ':</b><br /><input type="checkbox" name="cookieneverexp" id="cookieneverexp" checked="checked" class="check" /></label>
</td>
<td valign="middle" align="left">
<input type="submit" value="', $txt[34], '" />
</td>
</tr></table>
</form>
</td>
</tr>';
}
echo '
</table></div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="85" height="22" align="left" valign="top"><img src="', $settings['images_url'], '/bot_left.gif" width="85" height="22" alt=" " border="0" /></td>
<td width="100%" style="background-image:url(', $settings['images_url'], '/bottom.gif);" align="center" valign="middle">
</td>
<td width="85" height="22" align="right" valign="top"><img src="', $settings['images_url'], '/bot_right.gif" width="85" height="22" alt=" " border="0" /></td>
</tr>
</table>
';
}
?>
Next time could you use the code tag?
Uploaded the Mod n when i try to install it thru the package manager.... this is what i get
Quote2: fopen(): SAFE MODE Restriction in effect. The script whose uid is 32461 is not allowed to access /home/uthfull/public_html/forum/Packages/temp owned by uid 99
File: /home/uthfull/public_html/forum/Sources/Subs-Package.php
Line: 1476
The Package Manager doesn't work with safe mode... You need to ask your host to disable safe mode...
ok installed the mod and the template who.php the options come up and there are no errors but i cannot see the spiders listed on who's online im using 1.0.5,when you say edit the index.php how ? im a newbie so please be patient ::)
Quote from: Bigguy on November 09, 2005, 04:21:45 PM
3. used Winmerge to make changes to the "BoardIndex.template.php" file on the theme I wanted to use
What if the theme you are using, in this case SMF Green, does not have a boardindex.template.php to change?
Any known issues with this and 1.1RC2?
Ok i get a wierd error. Actually its not even an error. My users online thing is just messed up.
It looks like;
1 1 Spider, Guest, 1 User
instead of
1 Spider, 1 Guest, 1 User
Dont know what happened 8)
You can check it out if there is a Bot on my site or not @ www.Tasty-Fragism.com
you have the wrong code. Find: if ($context['show_who'])
echo '
<a href="', $scripturl, '?action=who">';
After that, you see and echo with a lot of stuff... Replace that with this: Should work..
echo (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];
You need to use that code instead of your code at that place.
Quote from: rthrash on December 29, 2005, 09:06:24 AM
Any known issues with this and 1.1RC2?
it wont install, i only had issues with ModSettings.php and SSI.php
i did a quick edit of the install files and seem to have it all working fine for those who are interested...
[edit: removed outdated broken link]
im also using it wiht the Who.template.php found here:
http://www.simplemachines.org/community/index.php?topic=19243.0
with no problems
Quote from: Zorac on December 31, 2005, 06:01:53 PM
Quote from: rthrash on December 29, 2005, 09:06:24 AM
Any known issues with this and 1.1RC2?
it wont install, i only had issues with ModSettings.php and SSI.php
i did a quick edit of the install files and seem to have it all working fine for those who are interested...
http://miniunit.com/media/uploads/googlebot_v104_smfrc2.zip
im also using it wiht the Who.template.php found here:
http://www.simplemachines.org/community/index.php?topic=19243.0
with no problems
Can someone more confirm does http://miniunit.com/media/uploads/googlebot_v104_smfrc2.zip work fine without any problem? Thanks
Quote from: DemonicInfluence on December 30, 2005, 03:53:49 PM
you have the wrong code. Find: if ($context['show_who'])
echo '
<a href="', $scripturl, '?action=who">';
After that, you see and echo with a lot of stuff... Replace that with this: Should work..
echo (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];
You need to use that code instead of your code at that place.
What file would that be in ??
Quote from: Zorac on December 31, 2005, 06:01:53 PM
Quote from: rthrash on December 29, 2005, 09:06:24 AM
Any known issues with this and 1.1RC2?
it wont install, i only had issues with ModSettings.php and SSI.php
i did a quick edit of the install files and seem to have it all working fine for those who are interested...
http://miniunit.com/media/uploads/googlebot_v104_smfrc2.zip
im also using it wiht the Who.template.php found here:
http://www.simplemachines.org/community/index.php?topic=19243.0
with no problems
This did not modify BoardIndex.php the search strings don't match the contents on the Version: 1.1 RC2; BoardIndex
i did it on a clean install of RC2 except for a theme install (SMFOne gray installed overtop of the default theme)
here is my install...
[edit: removed outdated broken links]
if you having problems you may be an issue with other mods installed? do you have any others installed? you may have to manually install the mods for this file.
This is all new to me So I guess this sounds stupid But how do you install it I did do a few Mods so I have some of the very basics
Quote from: drichard on January 01, 2006, 02:34:11 PM
This is all new to me So I guess this sounds stupid But how do you install it I did do a few Mods so I have some of the very basics
download the file to your computer:
http://miniunit.com/media/uploads/googlebot_v104_smfrc2.zip
then go into your admin panel, then under main click on packets, the click on the 'download packages' then on the browse button and from there browse to the file on your computer and upload it, then click on install, and it should test the install, if all the files test ok, go ahead and click install to implement the mod
Quote from: Zorac on January 01, 2006, 02:39:30 PM
Quote from: drichard on January 01, 2006, 02:34:11 PM
This is all new to me So I guess this sounds stupid But how do you install it I did do a few Mods so I have some of the very basics
download the file to your computer:
http://miniunit.com/media/uploads/googlebot_v104_smfrc2.zip
then go into your admin panel, then under main click on packets, the click on the 'download packages' then on the browse button and from there browse to the file on your computer and upload it, then click on install, and it should test the install, if all the files test ok, go ahead and click install to implement the mod
On a fresh install of 1.1 rc2 all is fine but the BoardIndex.php fails !! :(
i dunno, ive tried everything, but it always works for me...
anyone wanna send me their BoardIndex.php that is having problems and ill see if i can find the problem?
anyone have it work?
are we talking BoardIndex.php or BoardIndex.template.php? there will be issues with BoardIndex.template.php depending on which theme your using, it wont work with the default theme, but if you are running a different BoardIndex.template.php in the default dir (ie the one from the classic theme, or one from an older RC1 theme) it will work.
if there is a desire to have it integrate into the default theme, let me know and i can put it up...
edit:
if you have not copied over the default theme, use this:
[second edit: removed outdated broken link]
note that it does not edit any other theme besides the default theme (in the default dir), no matter what you have set the forum to use, thats how the original install was setup, ive only corrected the search strings for this to work in rc2
let me know if this is what you guys need...
KEWL that did the trick for me. All is working good now. Thanks a bunch! ;D ;) :)
Quote from: borgBOB on January 01, 2006, 01:15:36 PM
This did not modify BoardIndex.php the search strings don't match the contents on the Version: 1.1 RC2; BoardIndex
And still doesn't
Quote from: Zorac on January 01, 2006, 11:59:48 PM
i dunno, ive tried everything, but it always works for me...
anyone wanna send me their BoardIndex.php that is having problems and ill see if i can find the problem?
anyone have it work?
are we talking BoardIndex.php or BoardIndex.template.php? there will be issues with BoardIndex.template.php depending on which theme your using, it wont work with the default theme, but if you are running a different BoardIndex.template.php in the default dir (ie the one from the classic theme, or one from an older RC1 theme) it will work.
if there is a desire to have it integrate into the default theme, let me know and i can put it up...
let me know if this is what you guys need...
Personally I like the new theme and would indeed like this mod to integrate with the default theme. As it stands the mod works with themes based on the old default theme but the new theme has a BoardIndex.template.php issue ;D
what does this mod do exactly?
and in membergroup permissions, theres an options of googlebot and spiders
if i check that, what access is the membergroup getting?
Quote from: Posie on January 02, 2006, 10:52:00 AM
Personally I like the new theme and would indeed like this mod to integrate with the default theme. As it stands the mod works with themes based on the old default theme but the new theme has a BoardIndex.template.php issue ;D
fixed, link is at the bottom of page 24 in my last post...
anyone still having a problem with BoardIndex.php, drop me a pm, and Ill get you to email your BoardIndex.php to me and we can hopefully sort the problem out...
I have the following error:
3. Execute Modification ./Sources/ModSettings.php Test failed
Seems to be installed and working with your revised scripts (required a manual install) in RC2 from the bottom of p 24 of this thread. However, I can't seem to find the config stuff in the admin pages. I'm sure it's just lack of sleep, but can you point me out where it's supposed to be now... thanks!
Ahhh... now I see and answering my own question (time for a minor update methinks...):
It's at the bottom of this page: http://yoursite.com/forums/index.php?action=featuresettings
However, in RC2, the headings are inserted at the top and have dedicated "pages" for the settings. No heading there made me just overlook the config options!
Quote from: rthrash on January 02, 2006, 10:21:36 PM
It's at the bottom of this page: http://yoursite.com/forums/index.php?action=featuresettings
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.nokonium.plus.com%2Fblack-cat%2Funsorted%2Fthinking3.gif&hash=5cfd6233148d1d5cc74cfc93f9105c56f6912d73)
Quote from: Zorac on January 02, 2006, 12:42:47 PM
Quote from: Posie on January 02, 2006, 10:52:00 AM
Personally I like the new theme and would indeed like this mod to integrate with the default theme. As it stands the mod works with themes based on the old default theme but the new theme has a BoardIndex.template.php issue ;D
fixed, link is at the bottom of page 24 in my last post...
anyone still having a problem with BoardIndex.php, drop me a pm, and Ill get you to email your BoardIndex.php to me and we can hopefully sort the problem out...
Thank you for this :D It is installed and works great. I tested it with the W3C Validator.
Quote from: rthrash on January 02, 2006, 10:21:36 PM
Ahhh... now I see and answering my own question (time for a minor update methinks...):
It's at the bottom of this page: http://yoursite.com/forums/index.php?action=featuresettings
However, in RC2, the headings are inserted at the top and have dedicated "pages" for the settings. No heading there made me just overlook the config options!
good idea! i fixed it so it now has its own tab....
if your running a default install of rc2 use this:
edit: old link removed, package revised, see later post.
if you have modifed the default theme, and have an older BoardIndex.template.php in the default directory (such as the one from the classic theme, or many older RC1 themes) use this one:
edit: old link removed, package revised, see later post.
ive pull all the other interm packages off my server as these should suit everyones needs.
My spiders don't show up :S
Quote from: GC on January 03, 2006, 10:58:25 PM
My spiders don't show up :S
They probably do, they just aren't there at the moment. You can test by change the user agent in Firefox most easily with Chris Pendricks' user agent switcher extension for Firefox and Flock (http://chrispederick.com/blog/2005/12/31/user-agent-switcher-068/).
A handy list of robots and user agents can be found here: http://www.robotstxt.org/wc/active/html/index.html
Or here's an XML file of lots of user agents that can be imported into the above extension: http://techpatterns.com/forums/about304.html
or just click on the w3c html validator logo, once validation page loads, go back to your forum and refresh and they should show.
if that doesnt work, chances are package installed to the default theme/directory, and you are using a theme in a different directiory, in which case youll have to manually mod your theme for spiders to show.
but like rthrash said, if there are no spiders, it wont display '0 spiders', it will jsut say the usual users and guests thing.
Plus I think there is a "Who.template.php" file that needs to be replaced or it did in smf 1.0.5 I`m not sure about the new versions.
Quote from: Zorac on January 03, 2006, 10:37:48 PM
if your running a default install of rc2 use this:
http://miniunit.com/media/uploads/googlebot_v105_smfrc2_default_theme.zip
Any way to just update a diff from the bottom of page 24 to this one?
Hey Guys. Cool MOD.
I just updated to SMF RC2, installed this mod for RC2 and it works BAM. Ofcourse I had my OLDER BoardIndex template of my theme which I had manually made it to work with Googlebot.
Now my site shows clearly the Bots browsing the forums!! Thanks!!!
Awesome mod. Very very useful.
Quote from: DemonicInfluence on December 30, 2005, 03:53:49 PM
you have the wrong code. Find: if ($context['show_who'])
echo '
<a href="', $scripturl, '?action=who">';
After that, you see and echo with a lot of stuff... Replace that with this: Should work..
echo (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];
You need to use that code instead of your code at that place.
What file would that be in ??
Quote from: HaxXxoR on January 04, 2006, 11:06:59 AM
What file would that be in ??
Though I could be wrong, it's probably found in BoardIndex.template.php.
Quote from: rthrash on January 04, 2006, 12:22:40 AM
Quote from: Zorac on January 03, 2006, 10:37:48 PM
if your running a default install of rc2 use this:
http://miniunit.com/media/uploads/googlebot_v105_smfrc2_default_theme.zip
Any way to just update a diff from the bottom of page 24 to this one?
no, the coding for ModSettings.php is completely different, youll have to unisntall and reinstall to get the tabs to show. (or manually install into this file)
the revised Who.template.php is not required, althiough its nice to have, and the revised one that was for RC1 still works fine with RC2, at least for me.
ive installed and uninstall alot over the last couple days, and it uninstalls with no issues, ive even compared the file files back to the original and there were no issues...
on a side note, is there a program that generate the xml file automatically wehre you just give it the original file and the modified file?? it really sucks to add to those manually...
Thanks Zorac... the problem is that the Package Manager won't work on my Plesk server due to how it treats file ownerships. I'll pick through it soon I suppose.
I have used 1.05 on NDT and all OK, I've hand modded the Babylon and it appears to be OK.
I think it would help if you added a Babylon version as the Boardindex.templates for default (core) and Babylon are different.
Quote from: nokonium on January 04, 2006, 12:31:07 PM
I have used 1.05 on NDT and all OK, I've hand modded the Babylon and it appears to be OK.
I think it would help if you added a Babylon version as the Boardindex.templates for default (core) and Babylon are different.
i was thinking of that, and it would be nice to modify all 3 themes that come with rc2, but $themedir points to /Themes/default (assuming defualt install), i could hardcode the install using /Themes/default, /Themes/classic, and /Themes/babylon but if anyone has a non standard install it wont work at all, it would be nice if you could check for the existance of a certain directory, and then install if its there, i dont even know if you can do that with xml
I get errors in my forum log...
I got a couple of these on install but it seems OK since (1.05 RC2)
512: parseModification(): The filename 'SSI.php' is not a full path!
File: ##################/Sources/Subs-Package.php
Line: 1329
Quote from: pcigre on January 04, 2006, 02:51:17 PM
I get errors in my forum log...
seems ive been getting one too
Quote from: error
512: parseModification(): The filename 'SSI.php' is not a full path!
File: /www/m/miniunitcom/htdocs/smf/Sources/Subs-Package.php
Line: 1329
is this the same one? it is install related, but doesnt affect anything (everything still installs as it should)
i cant find any other mods that mod a file in teh forum root to see how they call it, could possibly be a bug in how smf handles the call to the root, but more likely im missing somthing
here is the call in the xml file, which is unchanged by myself
<file name="SSI.php" >
ive tried some variations on it, but any variation causes errors in the install, and not jsut the forum log
i find it odd that some of the variables used in teh xml file will use a leading / on paths, while others wont
anyone have any insite on this?
Hi all :)
Zorac>
Thanks for the help updating the mod to RC2 :) I have been quite busy (as always)
...
What needs to be done?
is working on NDT?
NDT?? whats that?
sorry guys, i have a bad habit of continually tweaking things...
as been mention in the thread, there is a error in the forum log from installing or uninstalling the package (although the problem did not affect the performance or install/uninstall of the package), that problem has now been fixed, secondly someone mention that it would be nice if it installed into themes besides the default, so it now installs into default, classic, and babylon, assuming a default install of SMF 1.1RC2, if the classic or babylon directories have been removed, it will simply skip over them and not give any errors
http://miniunit.com/media/uploads/googlebot_v105_smfrc2_standard.zip
if you have gone and put a different theme (specifically a different BoardIndex.template.php) into the default directory, such as the classic one, or placed an older 3rd party themes for RC1 into the default directory, try this package, but note that it will only search for BoardIndex.template.php in the default dir, and not any others like the above package
http://miniunit.com/media/uploads/googlebot_v105_smfrc2_old_template.zip
I can visit http://miniunit.com/ in China, can someone help to send it to me or give a new download address? And many thanks.
[email protected]
Quote from: fmben on January 07, 2006, 02:27:31 AM
I can visit http://miniunit.com/ in China, can someone help to send it to me or give a new download address? And many thanks.
[email protected]
done! let me know if you need any help with that!! unfortantly its only english, so you may ahve to do some tweaking of your language file
When will this be available to smf1.1 rc2 user's ?
Thanks for your help, don't know why we can't access your website in any way and any place and network from here. Even can't reply your mail. ???
Invalid Addresses;
nested exception is:
javax.mail.SendFailedException: 450 <
[email protected]>: Recipient address rejected: Requested action not taken. Try later...; 450 <
[email protected]>: Recipient address rejected: Requested action not taken. Try later...
(I have replace your name with xxx)
Quote from: Zorac on January 07, 2006, 11:36:07 AM
done! let me know if you need any help with that!! unfortantly its only english, so you may ahve to do some tweaking of your language file
what does this mod do??
Quote from: Prasad007 on January 14, 2006, 09:55:17 AM
what does this mod do??
In the who's online box, it displays the search engine spiders that are currently hitting your site. So, you can tell when Yahoo, MSN, Google, etc. are indexing your site.
Quote from: aussieholden on January 14, 2006, 01:14:40 AM
When will this be available to smf1.1 rc2 user's ?
I believe it already is as I am using 1.1RC2 and I am also using this MOD... ;D
Quote from: aussieholden on January 14, 2006, 01:14:40 AM
When will this be available to smf1.1 rc2 user's ?
see this post
http://www.simplemachines.org/community/index.php?topic=38003.msg445337#msg445337
Quote from: fmben on January 14, 2006, 01:24:58 AM
Thanks for your help, don't know why we can't access your website in any way and any place and network from here. Even can't reply your mail. ???
No problem!!
If you do a translation for it, let me know, and ill add it to the package!
I get a failure in "Modsettings.php when I try to install, any ideas how to fix this ???
Quote from: e03179 on January 14, 2006, 11:13:49 AM
Quote from: Prasad007 on January 14, 2006, 09:55:17 AM
what does this mod do??
In the who's online box, it displays the search engine spiders that are currently hitting your site. So, you can tell when Yahoo, MSN, Google, etc. are indexing your site.
So I guess I shouldn't ban them then. ;D
Quote from: RoarinRow on January 14, 2006, 03:08:11 PM
Quote from: e03179 on January 14, 2006, 11:13:49 AM
Quote from: Prasad007 on January 14, 2006, 09:55:17 AM
what does this mod do??
In the who's online box, it displays the search engine spiders that are currently hitting your site. So, you can tell when Yahoo, MSN, Google, etc. are indexing your site.
So I guess I shouldn't ban them then. ;D
actually, if you dont want them, for whatever reason, (them taking to much bandwidth, dont want your forum on search engines, etc) just exclude your forum from being crawled in your robots.txt file
Any help with this would be awesome. I could add the lines manually but I`m really unsure of exactly what is added.
Quote from: Bigguy on January 14, 2006, 01:17:05 PM
I get a failure in "Modsettings.php when I try to install, any ideas how to fix this ???
Quote from: Bigguy on January 14, 2006, 03:46:40 PM
Any help with this would be awesome. I could add the lines manually but I`m really unsure of exactly what is added.
Quote from: Bigguy on January 14, 2006, 01:17:05 PM
I get a failure in "Modsettings.php when I try to install, any ideas how to fix this ???
probably a confict with one of your other mods, your best bet is to manually install it, open up the install.xml file from the zip in a text editor, ie notepad, and read threw there, find the call for Modsettings.php and it outlines the changes to the file. youll have to make 3 inserts into Modsettings.php
:D
I just found 1.05 version, main link only shows 1.04 which was failing to install on rc2
Thanks for the update, installed fine ( I think ) at least no errors reported.
I should know soon if it spots spiders
3 Different inserts in 3 different locations to that 1 file ??? Ok, I`ll give this a shot.
Quote from: Zorac on January 14, 2006, 03:51:00 PM
Quote from: Bigguy on January 14, 2006, 03:46:40 PM
Any help with this would be awesome. I could add the lines manually but I`m really unsure of exactly what is added.
Quote from: Bigguy on January 14, 2006, 01:17:05 PM
I get a failure in "Modsettings.php when I try to install, any ideas how to fix this ???
probably a confict with one of your other mods, your best bet is to manually install it, open up the install.xml file from the zip in a text editor, ie notepad, and read threw there, find the call for Modsettings.php and it outlines the changes to the file. youll have to make 3 inserts into Modsettings.php
Quote from: Zorac on January 14, 2006, 03:41:54 PM
Quote from: RoarinRow on January 14, 2006, 03:08:11 PM
Quote from: e03179 on January 14, 2006, 11:13:49 AM
Quote from: Prasad007 on January 14, 2006, 09:55:17 AM
what does this mod do??
In the who's online box, it displays the search engine spiders that are currently hitting your site. So, you can tell when Yahoo, MSN, Google, etc. are indexing your site.
So I guess I shouldn't ban them then. ;D
actually, if you dont want them, for whatever reason, (them taking to much bandwidth, dont want your forum on search engines, etc) just exclude your forum from being crawled in your robots.txt file
Thanks for the info. It should be ok. So long as they aren't damaging the forum in anyway. Not sure exactly what they do when they are on site. I see the bot looking at certain threads or just hanging out on the main index page.
To limit the robots I just have one board visable to guests.
That way search engines can find it but wont leach anything.
Also limit guests so they cant see email and other info ;D
Greek translation:
// 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 τα τελευταία ' . $modSettings['lastActive'] . ' λεπτά';
// ModSettings
$txt['ob_googlebot_count_all_instances'] = 'Άθροιση όλων των επισκέψεων του ίδιου spider';
$txt['ob_googlebot_display_all_instances'] = 'Εμφάνιση όλων των επισκέψεων του ίδιου spider <div class="smalltext">("' . $txt['ob_googlebot_count_all_instances'] . '" πρέπει να είναι επιλεγμένη)</div>';
$txt['ob_googlebot_display_agent'] = 'Εμφάνιση agent αντί ονόματος';
$txt['ob_googlebot_display_own_list'] = 'Εμφάανιση spiders σε δική τους λίστα';
$txt['ob_googlebot_count_most_online'] = 'Συμμετοχή τους "Περισσότεροι Συνδεδεμένοι"';
// Permissions
$txt['permissiongroup_googlebot'] = $txt['ob_googlebot_modname'];
$txt['permissionname_googlebot_view'] = 'Εμφάνιση Googlebot & Spiders';
// OB - Googlebot - End
Quote from: Furvert on January 15, 2006, 12:33:16 AM
To limit the robots I just have one board visable to guests.
That way search engines can find it but wont leach anything.
Also limit guests so they can see email and other info ;D
i encourage robots to crawl the forum, gets us more exposure, and thus more members... unfortatnly msn is the only that will crawl it becuase the others dont like queries in the url....
thanks for the greek translation! ill add it into the package!
greek translation is now in the package as well thanks to dkounal!
http://miniunit.com/media/uploads/googlebot_v105_smfrc2_standard.zip
Will this be released as a package for RC2?
You can download on page [26] for 1.1rc2.
http://www.simplemachines.org/community/index.php?topic=38003.msg444725#msg444725
http://www.simplemachines.org/community/index.php?topic=38003.msg445337#msg445337
I get a 'test failed' in the:
./Sources/ModSettings.php
Quote from: ghostfreak on January 20, 2006, 08:52:41 PM
I get a 'test failed' in the:
./Sources/ModSettings.php
most likely a conflict with another mod youve installed, try installing it into that file manually
Is this all I have to put into "Modsettings.php" ??? and where do i put it:
Quote// Start Googlebot Options Menu
function ModifyGooglebotSettings()
{
global $txt, $scripturl, $context, $settings, $sc;
$config_vars = array(
// Googlebot Options
array('check', 'ob_googlebot_count_all_instances'),
array('check', 'ob_googlebot_display_all_instances'),
array('check', 'ob_googlebot_display_agent'),
array('check', 'ob_googlebot_display_own_list'),
array('check', 'ob_googlebot_count_most_online'),
);
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=googlebot');
}
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=googlebot';
$context['settings_title'] = $txt['ob_googlebot_modname'];
prepareDBSettingContext($config_vars);
}
// End Googlebot Options Menu
that would go at the very bottom, right before the ?> but it needs two other inserts in teh same fiel if i remember correctly...
Ok, I figured I might have missed something thats why I posted here. I`m not very good at reading those xml files yet.
I added that info in the modsettings.php file but still no luck :(
What are the 2 other inserts it needs ???
Hello all.. Please, please, please help me. I installed googlebot and after it installed with no errors, I clicked on Features and Options in my admin panel and this is what I get:
Fatal error: Cannot redeclare modifygooglebotsettings() (previously declared in /home/daddypla/public_html/forums/Sources/ModSettings.php:390) in /home/daddypla/public_html/forums/Sources/ModSettings.php on line 441
I am running SMF 1.1 RC2 and I tried to install googlebot_v105_smfrc2_standard. Thanks in advance..
Yep. Someone may post the other 2 parts of the file that needs to be inserted into modsettings.php.
edit: sorry, I have no idea and am waiting too. ???
Quote from: keith021773 on January 24, 2006, 01:23:34 AM
Hello all.. Please, please, please help me. I installed googlebot and after it installed with no errors, I clicked on Features and Options in my admin panel and this is what I get:
Fatal error: Cannot redeclare modifygooglebotsettings() (previously declared in /home/daddypla/public_html/forums/Sources/ModSettings.php:390) in /home/daddypla/public_html/forums/Sources/ModSettings.php on line 441
I am running SMF 1.1 RC2 and I tried to install googlebot_v105_smfrc2_standard. Thanks in advance..
it sounds like you installed it twice?
Quote from: Polymath on January 24, 2006, 03:37:38 AM
Yep. Someone may post the other 2 parts of the file that needs to be inserted into modsettings.php.
edit: sorry, I have no idea and am waiting too. ???
open up the xml file in a text editor, even if you have a very basic grasp of html or some similar language you should be able to put yoru way threw it...
just remember in xml the search strings are kinda backwards, when you see search position="before" it means that the search string is before, and add your text immediatly after...
keep in mind, the search strings wont be the same as are what in your file, otherwise it would of installed in the first place... :P
Quote from: Zorac on January 24, 2006, 02:38:15 PM
it sounds like you installed it twice?
Actually, I installed. It didn't work, then I uninstalled. and installed again and that is where I am at now.. Hopefully I will get an answer here because I would love to get this working.
Keith
Quote from: keith021773 on January 24, 2006, 04:34:38 PM
Quote from: Zorac on January 24, 2006, 02:38:15 PM
it sounds like you installed it twice?
Actually, I installed. It didn't work, then I uninstalled. and installed again and that is where I am at now.. Hopefully I will get an answer here because I would love to get this working.
Keith
do you have any other mods installed? youll have to manually edit the ModSettings.php file to manually remove the duplicate entries, sound like its just the one... go to the bottom and youll fine a function called modifygooglebotsettings(), and if you look up a bit, youll probably see it again, remove one of the two functions in its entirety (include all the code between the { and } that follows it, both function should be delinated from the other code with // begin googlebot code (which is right above the first line of the function) and a // end googlebot code (right after the last line of the function)
do this and hten hope nothing else is duplicated...
There is still 3 bits of code that needs to be put into the modsettings.php file. When you apply it, it 'test fails' for the modsettings.
Thats what I understand anyhow. But I have know idea what code to put in but one piece. And thats using googlebot_v105_smfrc2_standard in smf RC 2.
Quote from: Zorac on January 24, 2006, 08:58:28 PM
Quote from: keith021773 on January 24, 2006, 04:34:38 PM
Quote from: Zorac on January 24, 2006, 02:38:15 PM
it sounds like you installed it twice?
Actually, I installed. It didn't work, then I uninstalled. and installed again and that is where I am at now.. Hopefully I will get an answer here because I would love to get this working.
Keith
do you have any other mods installed? youll have to manually edit the ModSettings.php file to manually remove the duplicate entries, sound like its just the one... go to the bottom and youll fine a function called modifygooglebotsettings(), and if you look up a bit, youll probably see it again, remove one of the two functions in its entirety (include all the code between the { and } that follows it, both function should be delinated from the other code with // begin googlebot code (which is right above the first line of the function) and a // end googlebot code (right after the last line of the function)
do this and hten hope nothing else is duplicated...
Ok.. Did exactly as you said. It was in there 3 times. deleted 2 of them.. Now when I go to Features and Options I get this error.
Fatal error: Cannot redeclare modifygooglebotsettings() (previously declared in /home/daddypla/public_html/forums/Sources/ModSettings.php:387) in /home/daddypla/public_html/forums/Sources/ModSettings.php on line 438
Thank you for your help. I do appreciate it.
You could uninstall all packages, reupload the modsettings.php file for your forum program, and then reinstall your packages.
Maybe ??? Sounds like something I would do. But my sites just begun. Fix once and for all... any comments on if that is an option for keith021773?
Quote from: Polymath on January 24, 2006, 11:56:07 PM
You could uninstall all packages, reupload the modsettings.php file for your forum program, and then reinstall your packages.
Maybe ??? Sounds like something I would do. But my sites just begun. Fix once and for all... any comments on if that is an option for keith021773?
Well. I got the features and option list working again by deleting all the double posts about googlebots in the modsettings.php file. I'm gonna try and install it again then if I have to reedit the file again to see if I can get it to work. I'll post back what happens.
*EDIT* ok.. That worked. Polymath. What I did was I installed Googlebot and it messed up the Features and Option list, so I editted the file modsettings.php and I did a search for every instance of googlebot and there were at least 3 different places where it was in there twice. So, I looked at the entire part of each instance. Each instance of it will start with //Insert Googlebot (or something like that). Delete them but leave one instance of each part in there.. Does that make sense? I'm not a very good teacher.. Then save and go back to your admin and try to go back into Features and Option List.. Hope this helps. :)
;D Yeah I know what you mean. It helps. 3-2=1 :P
Tell me if it works for you.
Nope don't work for me. I have no instances of googlebot code in it. Thats my problem its not installing at all. I need to know what 3 parts I need it put into my modsettings.php. Can you post them?
Quote from: Tech o.O; on January 28, 2006, 07:11:47 AM
Awesome!
Would we lose our current installed mods when we upgrade?
My Googlebot mod uninstalled when I upgraded to 1.06, and when I tried to reinstall it, it said:
Install Actions for archive Googlebot_v104_smf1.0.x-1.1b2.zip:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
even i am having same problem can someone fix this please :((
I've had it since I got 1.1rc. But Then I havn't had it installed before.
Quote from: Charles LePage on January 28, 2006, 08:45:57 PM
Quote from: Tech o.O; on January 28, 2006, 07:11:47 AM
Awesome!
Would we lose our current installed mods when we upgrade?
My Googlebot mod uninstalled when I upgraded to 1.06, and when I tried to reinstall it, it said:
Install Actions for archive Googlebot_v104_smf1.0.x-1.1b2.zip:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Here's a fixed ZIP file: http://users.tpg.com.au/dan15/smfmods/Googlebot_v104_smf1.0.6.zip
NOTE: I didn't make this MOD, I'm just hosting this fixed version of it.
Could someone please host this elsewhere. Or, could a moderator or someone attach the file to the first post?
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./Sources/BoardIndex.php Success
2. Execute Modification ./Sources/ManagePermissions.php Success
3. Execute Modification ./Sources/ModSettings.php Success
4. Execute Modification ./Sources/Subs.php Success
5. Execute Modification ./Themes/default/languages/Modifications.english.php Success
6. Execute Modification ./Themes/default/BoardIndex.template.php Success
7. Execute Modification SSI.php Failure
8. Execute Code install.php
it will work fine with an ssi install failure (as long as the others are all good as youve shown), you just loose the ssi functionallity aspect of it, but if your not calling ssi anywhere in the rest of your site to show the users online, that doesnt matter...
as a recap:
http://miniunit.com/media/uploads/googlebot_v104_smf1.0.6.zip
googlebot for smf 1.0.6, original code modified by daniel15
and
http://miniunit.com/media/uploads/googlebot_v105_smfrc2_standard.zip
googlebot for smf 1.1rc2, original code modifed by Zorac
added functionality includes insertion to all 3 themes that come with rc2 as well as english and greek languages
and of course, remember that all orginal code was done by Omar Bazavilvazo
hi it shows this when i try to install on smf 1.06
Install Actions for archive googlebot_v104_smf1.0.6.zip:
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./Sources/BoardIndex.php Success
2. Execute Modification ./Sources/ManagePermissions.php Success
3. Execute Modification ./Sources/ModSettings.php Success
4. Execute Modification ./Sources/Subs.php Success
5. Execute Modification ./Themes/default/languages/Modifications.english.php Success
6. Execute Modification ./Themes/default/BoardIndex.template.php Success
7. Execute Modification SSI.php Failure <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
8. Execute Code install.php
Quotehttp://miniunit.com/media/uploads/googlebot_v105_smfrc2_standard.zip
googlebot for smf 1.1rc2, original code modifed by Zorac
Error in SMF 1.1 RC 2
Quote1. Execute Modification ./Sources/BoardIndex.php Test successful
2. Execute Modification ./Sources/ManagePermissions.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test failed
4. Execute Modification ./Sources/Subs.php Test failed
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
7. Execute Modification ./SSI.php Test successful
8. Execute Modification ./Themes/classic/BoardIndex.template.php Test successful
9. Execute Modification ./Themes/babylon/BoardIndex.template.php Test successful
10. Execute Code install.php
Quote from: Mashahood on January 29, 2006, 05:17:50 PM
Quotehttp://miniunit.com/media/uploads/googlebot_v105_smfrc2_standard.zip
googlebot for smf 1.1rc2, original code modifed by Zorac
Error in SMF 1.1 RC 2
Quote1. Execute Modification ./Sources/BoardIndex.php Test successful
2. Execute Modification ./Sources/ManagePermissions.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test failed
4. Execute Modification ./Sources/Subs.php Test failed
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
7. Execute Modification ./SSI.php Test successful
8. Execute Modification ./Themes/classic/BoardIndex.template.php Test successful
9. Execute Modification ./Themes/babylon/BoardIndex.template.php Test successful
10. Execute Code install.php
im guessing you have other mods installed?? it does work on a clean install of rc2, if your having problems with those file, you may have to manually install into them as the search strings it normall looks for have been modified by other mods and thus preventing a sucessful install
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./Sources/BoardIndex.php Test successful
2. Execute Modification ./Sources/ManagePermissions.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test successful
4. Execute Modification ./Sources/Subs.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
7. Execute Modification ./SSI.php Test successful
8. Execute Modification ./Themes/classic/BoardIndex.template.php Test successful
9. Execute Code install.php
Its working on my RC2. Thanks.
But, I have problem with Google crawl (SEO).
When I am using SMF Beta 3 (old one), Google crawl my site. See the cache from Google here (http://72.14.203.104/search?q=cache:ialsThDgoSEJ:www.forumbebas.com/+forumbebas+bloc&hl=en&ct=clnk&cd=4&client=opera) And also another cache here (http://72.14.203.104/search?q=cache:Xpjz1fbPjuEJ:forumbebas.com/index.php%3FPHPSESSID%3D56e375fd0f90ffd7a5181bbf8883ac8a%26topic%3D126.msg14010+forumbebas+bloc&hl=en&ct=clnk&cd=5&client=opera)
Now, after upgrading to RC1 or RC2. My site never been crawl by Google again :(
I am using Google Spider Simulated at here (http://www.searchengineworld.com/cgi-bin/sim_spider.cgi). After test my site http://forumbebas.com There is no successful spider. The result is ERROR 500 (return error code 1) (http://www.searchengineworld.com/validator/httperrorcodes.htm) And you can see my result on google like here (http://www.google.com/search?hs=iV7&hl=en&lr=&client=opera&rls=en&q=forumbebas&btnG=Search)
I testing another site with this Spider Simulation, all works successful..
Now you see? There is no data have been crawl by Google :(
I didnt use .htaccess neither robots.txt.
Thats why, the main index site using SSI. But Google still cant find me.
Any clue about this?
i tried that spider link..I think it has something to do with the server not the version of smf. I tried to have it spider my main site (not the forum) and got the exact same error.
The Server right?
Any suggestion, which one should be check? I think, my host server is fine. :(
i try install http://miniunit.com/media/uploads/googlebot_v105_smfrc2_standard.zip on RC2 and get this error
Installing this package will perform the following actions: Type Action Description
1. Execute Modification ./Sources/BoardIndex.php Test successful
2. Execute Modification ./Sources/ManagePermissions.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test failed
4. Execute Modification ./Sources/Subs.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
7. Execute Modification ./SSI.php Test successful
8. Execute Modification ./Themes/classic/BoardIndex.template.php Test successful
9. Execute Modification ./Themes/babylon/BoardIndex.template.php Test successful
10. Execute Code install.php
Thats what I get. Well, I either get 'this file is currupted or not compatible' Or what tuga gets.
In the end I decided it don't do anything anyway, but tell me google or whatever is there. I know they are anyway.
But I could be wrong, am I? It actually has a function?
Quote from: desistyle on January 29, 2006, 01:25:49 PM
hi it shows this when i try to install on smf 1.06
Install Actions for archive googlebot_v104_smf1.0.6.zip:
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./Sources/BoardIndex.php Success
2. Execute Modification ./Sources/ManagePermissions.php Success
3. Execute Modification ./Sources/ModSettings.php Success
4. Execute Modification ./Sources/Subs.php Success
5. Execute Modification ./Themes/default/languages/Modifications.english.php Success
6. Execute Modification ./Themes/default/BoardIndex.template.php Success
7. Execute Modification SSI.php Failure <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
8. Execute Code install.php
Have tried 3 times now and I get this same thing. 1.0.5 was nice and stable what the heck happened to 1.0.6? Running into one problem after another! >:(
Quote from: Skipdawg on February 01, 2006, 03:43:52 PM
Have tried 3 times now and I get this same thing. 1.0.5 was nice and stable what the heck happened to 1.0.6? Running into one problem after another! >:(
Nothing's wrong with 1.0.6 - looks like the 1.0.6 version of this mod isn't working correctly. Perhaps whoever modified the mod to work work with 1.0.6 can fix this problem.
Quote from: tuga on January 31, 2006, 09:21:21 AM
i try install http://miniunit.com/media/uploads/googlebot_v105_smfrc2_standard.zip on RC2 and get this error
Installing this package will perform the following actions: Type Action Description
1. Execute Modification ./Sources/BoardIndex.php Test successful
2. Execute Modification ./Sources/ManagePermissions.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test failed
4. Execute Modification ./Sources/Subs.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
7. Execute Modification ./SSI.php Test successful
8. Execute Modification ./Themes/classic/BoardIndex.template.php Test successful
9. Execute Modification ./Themes/babylon/BoardIndex.template.php Test successful
10. Execute Code install.php
chances are you have another mod installed which is screwing up the install of googlebot, youll have to do a manual install into that file. the file in question requires you to insert 3 pieces of code
till date i have not yet been able to see a single spider.. why so?
Quote from: Zorac on February 01, 2006, 07:31:58 PM
Quote from: tuga on January 31, 2006, 09:21:21 AM
i try install http://miniunit.com/media/uploads/googlebot_v105_smfrc2_standard.zip on RC2 and get this error
Installing this package will perform the following actions: Type Action Description
1. Execute Modification ./Sources/BoardIndex.php Test successful
2. Execute Modification ./Sources/ManagePermissions.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test failed
4. Execute Modification ./Sources/Subs.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
7. Execute Modification ./SSI.php Test successful
8. Execute Modification ./Themes/classic/BoardIndex.template.php Test successful
9. Execute Modification ./Themes/babylon/BoardIndex.template.php Test successful
10. Execute Code install.php
chances are you have another mod installed which is screwing up the install of googlebot, youll have to do a manual install into that file. the file in question requires you to insert 3 pieces of code
no! never install or have a mod like that before on my forum, any ideas
Quote from: Prasad007 on February 02, 2006, 08:02:32 AM
till date i have not yet been able to see a single spider.. why so?
Well when I installed Googlebot mod "successfully" I had the same thing. No info. on bots etc. were displayed at all but using the "Who's Online" list I confirmed that bots INDEED were browing my forum but the Googlebot mod (though successfully installed) was not showing it.
Are you maybe having this problem? If so you need to manually EdIT "BoardIndex.template.php" or "Index.template.php" and add the googlebot code there....
See my forum for how googlebot works on a custom theme that otherwise didn't work, problem is I don't remember anything how I got it to work :(
okay i guess ill have to wait for more inputs them
does it only work on the default theme?
cuz i got bloc's helios_multi theme installed and being used @ my site @ www.tech-ultimatum.uni.cc
Prasad...
Just like any other mod, YES... this installs on the Default theme. If you want to use it on other themes, you will have to modify your themes *.template.php files as necesarry...
Quote from: Kindred on February 02, 2006, 12:20:20 PM
Prasad...
Just like any other mod, YES... this installs on the Default theme. If you want to use it on other themes, you will have to modify your themes *.template.php files as necesarry...
ok thanks! :)
So is this going to remain dead for version 1.0.6? No update?
Quote from: Skipdawg on February 06, 2006, 04:32:28 PM
So is this going to remain dead for version 1.0.6? No update?
Should install ok on 1.06 just need to edit the install file to include 1.06
You know if I knew where to do that and how to effect that this post would not exist. I've tried installing the blasted thing 4 times now with failure on this screwed up 1.0.6! >:(
I never had problems with 1.0.5 but with this so called security update I've only been able to get 2 mods to work so far. One problem after another.
This mod works fine on my rc1 and rc2 forums so I say this version 1.0.6 is the one screwed up! :(
hello
I read about this mod and see the screenshots of what it tells you but what do you do then?
does it stop the bots and spiders or what do you do with it?
thanks
It doesnt stop the spiders it lets you know when they are online and where they are.
thanks Bigguy, so then are you supposed to 'do' something or stop them somehow?
I dont allow guest access on my forum so do these bots etc still get through?
~thanks
No its just more of an informative modification to let you know more about who`s who on the forum
ok, I dl'd this and it went into default instead of classic. How do I manually change this.
I'm a newbie so speak slowly :D
Update for RC2...
Hi all!
I have been (as all you have noticed) away for some time due to some personal issues.
I will update the mod to RC2 this weekend, so please, be patient.
If you have any suggestion, please put it here, so I can try to implement it on this next version.
ja ne!
Sorry to ask but can this be installed on SMF 1.0.6
Quote from: ZhongFu on February 16, 2006, 07:20:32 AM
Sorry to ask but can this be installed on SMF 1.0.6
i will update it for both 1.0.6 and RC2
me need for RC2 Also. I installed on http://www.epaytalk.com but get this error:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
ALso anyone know any "Google site maps" mod for Simplemachins
try the search it might help you out find what you need.
Quote from: Omar Bazavilvazo on February 16, 2006, 09:11:40 AM
Quote from: ZhongFu on February 16, 2006, 07:20:32 AM
Sorry to ask but can this be installed on SMF 1.0.6
i will update it for both 1.0.6 and RC2
Thanks so much! Will keep a lookout for it.
post link when you finish :)
Is Googlemaps what was asked for?
http://www.simplemachines.org/community/index.php?topic=61213.0
Thanks for google map answers
i need Googlebot & Spiders mod for SMF 1.0.6
Have you checked HERE (http://mods.simplemachines.org/) There might be a version there that is compatible.
Quote from: Dexy on February 22, 2006, 03:28:38 AM
i need Googlebot & Spiders mod for SMF 1.0.6
i'm working on this version for 1.0.6 and 1.1 RC2
Omar, I was able to install it onto RC2 without a problem. All that was needed was to modify the version section of the xml file.
Quote from: Goosemoose on February 22, 2006, 04:34:30 PM
Omar, I was able to install it onto RC2 without a problem. All that was needed was to modify the version section of the xml file.
Goosemoose
Can you send me the RC2 version
even with the change of default theme worked? wow.. i'm amazing :P
i'll check it tomorrow i hope :P
After changing the install for version to RC2, I got
1. Execute Modification ./Sources/BoardIndex.php Test successful
2. Execute Modification ./Sources/ManagePermissions.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test failed
4. Execute Modification ./Sources/Subs.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Themes/default/BoardIndex.template.php Test failed
7. Execute Modification ./SSI.php Test failed
That's really strange. It installed cleanly, I just changed the xml file to include the cvs version of RC 2 I'm running. You can see it up on my site http://www.goosemoose.com/component/option,com_smf/Itemid,118/forum,rat/
I don't think I made any other changes, though I guess it's possible, I did it a month or so ago.
Same Here, I installed the Mod and it works fine. It just doesn't display the Spiders names, but you can go to the who's online page if you are that intrested. Go to http://www.nitrorccarcentral.uk.to/community/index.php or http://www.nitrorccarcentral.uk.to/community/index.php?action=who to see it working.
anyway.. seems is broken :P
since the template change was huge, i'm checking it right now :P
Hmm, I get all the spider names :) Google and gigabot have been going nuts on my site. Over 35 bots each at any time.
Updated for 1.0.6, please let me know if works properly.
Working on the 1.1 RC2 version :P
Quote from: Omar Bazavilvazo on February 24, 2006, 05:18:34 PM
Updated for 1.0.6, please let me know if works properly.
Working on the 1.1 RC2 version :P
Fantastic, looking forward to the RC2 version. 8)
Quote from: Omar Bazavilvazo on February 24, 2006, 05:18:34 PM
Updated for 1.0.6, please let me know if works properly.
Working on the 1.1 RC2 version :P
For 1.1 RC2 Please!
[/color][/size]
Ok, finished :)
Now it works for both 1.0.6 and 1.1 RC2
There is a version of the mod, for each version of SMF due to incompatibilities :P
If you find an error, or have a suggestion, please let me know :)
Don't forget to review the mod please :)
Cool, thank you! 8)
Quote from: RoarinRow on February 24, 2006, 09:40:13 PM
Cool, thank you! 8)
Let me know if it works for you in TP. I get a failure in managepermissions.php. :(
Quote from: Teelow on February 24, 2006, 09:41:02 PM
Quote from: RoarinRow on February 24, 2006, 09:40:13 PM
Cool, thank you! 8)
Let me know if it works for you in TP. I get a failure in managepermissions.php. :(
Haven't tried it yet :o Last time I installed this mod was with SMF 1.0.5. I believe I used a new managepermission.php file, but had to reinstall my other impacted mods to get them back in the managepermissions list.
WOW! work with my RC2 forum properly.
another question, can you change it so show the name of robots also in "Users Seen Today" Mod?
Thanks for the great mod ~smiles~
I do have a question though, and I will state up front I am a newbie. The mod is working perfectly on my board. In the User's Online section, it lists them first, as follows:
Users Online 2 Spiders, 0 Guests, 1 User (0 Buddies)
How can I re-order that list, so that the spiders appear last in the list? Thank you.
On BoardIndex.template.php
search for:
Quote
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];
and replace it with:
Quote
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', ');
Quote from: tarkhorani on February 24, 2006, 09:59:17 PM
another question, can you change it so show the name of robots also in "Users Seen Today" Mod?
I'll consider it :)
I just updated 1.0.5 for 1.1 RC2 to be compatible with TinyPortal :)
Please test it and tell me if it works
Quote from: Omar Bazavilvazo on February 25, 2006, 12:26:35 AM
Quote from: tarkhorani on February 24, 2006, 09:59:17 PM
another question, can you change it so show the name of robots also in "Users Seen Today" Mod?
I'll consider it :)
I just updated 1.0.5 for 1.1 RC2 to be compatible with TinyPortal :)
Please test it and tell me if it works
It worked on my RC2 TP test site, thank you! Passed all tests.
Quote from: Omar Bazavilvazo on February 25, 2006, 12:26:35 AM
Quote from: tarkhorani on February 24, 2006, 09:59:17 PM
another question, can you change it so show the name of robots also in "Users Seen Today" Mod?
I'll consider it :)
I just updated 1.0.5 for 1.1 RC2 to be compatible with TinyPortal :)
Please test it and tell me if it works
You sir, are a MOD Guru. Worked perfectly with the default theme for SMF installed :) Does not want to work with Multi_Helios Theme installed. You it still only displays users / guest and missing the spider link.
***Update***
You will need to make a backup of your Board.Indextemplate.php prior to the install if you are using a customer theme. Apply the MOD then copy that file from your DEFAULT directory into the theme directory. OR you can simply modify the XML file...but the first way is much easier and works like a charm!
I manage to put my question in the wrong board i guess, but i try here to when this seem to be the right one.
I downloaded the latest googlebot that should work with smf rc2.
Uploaded the package to the packagemanager, run the files, all checks ok, and i installed the package, everything seemed to work out good.
I went to the settings and made my choices of how the bot should work and show. Went to the permission board and made the settings to show for all but guests.
And then, nothing show up anywhere, not in the forum and usersbar, and not in the usersbox that Tinyportal use.
Went to the error log and see that this error have accured
8: Undefined index: ob_googlebot_modname
File: /*********/********/******.se/httpd.www/forum/Sources/ModSettings.php
Line: 136
Went to the file and saw that thers no lines what so ever applyed bu the packagemanager. I looked in the install.xml file and saw the lines it should have added in, but it didnt.
So now i wonder if any kind person in here could give some help telling me the strings i have to add in there, and where?
Like manuall install for just that file, like add this before this.... and after this....
Im not that good with the coding part, so i cant see if somethings wrong or right in the coding.
I have SMF 1.1rc2 with TinyPortal 0.86, Arcademod is instlled to, no errors before the install of the googlebot.
Thanks in advanse
//Carina
Quote from: G6Cad on February 25, 2006, 11:45:29 AM
I manage to put my question in the wrong board i guess, but i try here to when this seem to be the right one.
I downloaded the latest googlebot that should work with smf rc2.
Uploaded the package to the packagemanager, run the files, all checks ok, and i installed the package, everything seemed to work out good.
I went to the settings and made my choices of how the bot should work and show. Went to the permission board and made the settings to show for all but guests.
And then, nothing show up anywhere, not in the forum and usersbar, and not in the usersbox that Tinyportal use.
Went to the error log and see that this error have accured
8: Undefined index: ob_googlebot_modname
File: /*********/********/******.se/httpd.www/forum/Sources/ModSettings.php
Line: 136
Went to the file and saw that thers no lines what so ever applyed bu the packagemanager. I looked in the install.xml file and saw the lines it should have added in, but it didnt.
So now i wonder if any kind person in here could give some help telling me the strings i have to add in there, and where?
Like manuall install for just that file, like add this before this.... and after this....
Im not that good with the coding part, so i cant see if somethings wrong or right in the coding.
I have SMF 1.1rc2 with TinyPortal 0.86, Arcademod is instlled to, no errors before the install of the googlebot.
Thanks in advanse
//Carina
As I posted just above you, it alters the boardindex.template.php file in your DEFAULT directory. SO if you switch back to the default theme, it will work perfectly for you. Since you are using a customer theme you will need to do as I suggested, which I summarize below: Good luck!
***Update***
You will need to make a backup of your BoardIndex.template.php prior to the install if you are using a custom theme. Apply the MOD then copy that file from your DEFAULT directory into the theme directory. OR you can simply modify the XML file...but the first way is much easier and works like a charm!
thanks for the update :)
QuoteAs I posted just above you, it alters the boardindex.template.php file in your DEFAULT directory. SO if you switch back to the default theme, it will work perfectly for you. Since you are using a customer theme you will need to do as I suggested, which I summarize below: Good luck!
Not really so simple.
I did do exactly like described.
I put the forum to default SMF 1.1RC2 Theme ( on all users to like always when installing a mod ) Made the install to that default directory.
The error i got was some languagestrings that didnt apply correct, and i have fixed that part, so error free so far.
BUT!! I dont get nothing to show up in the users bar no matter how i set the googlebot up.
I have set tit in diffrent ways, and the same with the permissions. I stll dont get it to show.
I downloaded the Who.template.php to as suggested, and put it in both default theme folder and in my custome theme folder, but still no go with the show up in the usersbar ( users online bar) Not in default, and not in my costume theme)
Any ideas or hints ? (
Modifications.english.php should have the next strings:
Quote
<?php
// Version: 1.1 RC2; Modifications
// 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 <div class="smalltext">("' . $txt['ob_googlebot_count_all_instances'] . '" must be selected)</div>';
$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"';
// Permissions
$txt['permissiongroup_googlebot'] = $txt['ob_googlebot_modname'];
$txt['permissionname_googlebot_view'] = 'View Googlebot & Spiders';
// OB - Googlebot - End
?>
and until you have spiders crawling your website, you won't see anything
as a test why you don't visit your website using firefox and User Agent Switcher?
You can fake your browser to say that is googlebot, to see if mod is working.
On the plugin, just set a new user-agent
description: Googlebot
User agent: Googlebot/2.1 ( http://www.googlebot.com/bot.html)
http://chrispederick.com/work/useragentswitcher/
let me know how it works
ja ne!
Quote from: Omar Bazavilvazo on February 25, 2006, 05:06:50 PM
Modifications.english.php should have the next strings:
Quote
<?php
// Version: 1.1 RC2; Modifications
// 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 <div class="smalltext">("' . $txt['ob_googlebot_count_all_instances'] . '" must be selected)</div>';
$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"';
// Permissions
$txt['permissiongroup_googlebot'] = $txt['ob_googlebot_modname'];
$txt['permissionname_googlebot_view'] = 'View Googlebot & Spiders';
// OB - Googlebot - End
?>
and until you have spiders crawling your website, you won't see anything
as a test why you don't visit your website using firefox and User Agent Switcher?
http://chrispederick.com/work/useragentswitcher/
let me know how it works
ja ne!
What would be a great addition to this MOD would be adding some type of LOG that logs all the different type of bots that visited your site over a set period of time. Kinda like an ongoing record for each month. For example:
MSNBot (254) times in February
Googlebot (500) times in February.
Just a thought :)
G6Cad - PM me if you are having problems...maybe I can help (or not)
Quote from: Teelow on February 25, 2006, 05:10:21 PM
What would be a great addition to this MOD would be adding some type of LOG that logs all the different type of bots that visited your site over a set period of time. Kinda like an ongoing record for each month. For example:
MSNBot (254) times in February
Googlebot (500) times in February.
Just a thought :)
G6Cad - PM me if you are having problems...maybe I can help (or not)
hmmm good idea
i'll add that to the mod, and about users seen today, for the next version :)
keep the ideas comming :)
I don't know if this will help anybody, but here is my boardindex.template.php that works perfectly with Tiny Portal Multi Helios which is a very popular theme. It "should" work with all the other themes. You may want to look at it as well Omar as it would only display guests / users online until I switched to default theme. However, this is a working version that works perfectly with no errors logged in log files.
**Also, anything that has the word "POD" refers to the multi helios theme, so if you are not using it, you will need to modify the path to your theme directory.**
Quote<?php
// Version: 1.1 RC2; BoardIndex
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
$topbox='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="height: 16px; width: 22px;"><img src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topleft.gif" style="height: 16px; width: 22px; border: 0px; padding: 0px; margin: 0px;" alt="gfx" /></td><td style="height: 16px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topmid.gif); "></td><td style="height: 16px; width: 27px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topright.gif" style="height: 16px; width: 27px; border: 0px; padding: 0px; margin: 0px;" /></td></tr><tr><td style="width: 22px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-midleft.gif); "></td><td valign="top">';
$botbox='</td><td style="width: 27px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-midright.gif); "></td></tr><tr><td style="height: 14px; width: 22px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-botleft.gif" style="height: 14px; width: 22px; border: 0px; padding: 0px; margin: 0px;" /></td><td style="height: 14px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-botmid.gif); "></td><td style="height: 14px; width: 27px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-botright.gif" style="height: 14px; width: 27px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table>';
$leftbox='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="height: 54px; width: 72px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-lefttop.gif" style="height: 54px; width: 72px; border: 0px; padding: 0px; margin: 0px;" /></td><td nowrap="nowrap" style="text-align: center; height: 54px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-midtop.gif); ">';
$rightbox='</td><td style="height: 54px; width: 79px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-topright.gif" style="height: 54px; width: 79px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table>';
$leftboxbot='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-left: 5px; height: 78px; width: 72px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-botleft.gif" style="height: 78px; width: 72px; border: 0px; padding: 0px; margin: 0px;" /></td><td valign="top" nowrap="nowrap" style="text-align: center; height: 78px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-botmid.gif); ">';
$rightboxbot='</td><td style="height: 78px; width: 79px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-botright.gif" style="height: 78px; width: 79px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table>';
$leftboxbot2='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-left: 4px; height: 36px; width: 72px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topleft-40.gif" style="height: 36px; width: 72px; border: 0px; padding: 0px; margin: 0px;" /></td><td valign="top" nowrap="nowrap" style="text-align: center; height: 36px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topmid-41.gif); ">';
$rightboxbot2='</td><td style="padding-right: 0px; height: 36px; width: 79px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topright-42.gif" style="height: 36px; width: 79px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table>';
// Show some statistics next to the link tree if SP1 info is off.
echo $leftbox.'
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td style="text-align: left; padding-left: 0px;" valign="bottom">', theme_linktree(), '</td>
</tr>
</table>'.$rightbox;
// Show the news fader? (assuming there are things to show...)
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
{
echo $topbox;
echo '
<div style="padding: 0px; margin-bottom: 2px;">
<table border="0" width="100%" cellspacing="1" cellpadding="4">
<tr>
<td align="left" style="font-weight: bold;"> ', $txt[102], '</td>
</tr>
<tr>
<td valign="middle" align="center" height="60">';
// Prepare all the javascript settings.
echo '
<div id="smfFadeScroller" style="width: 90%; padding: 2px;"><b>', $context['news_lines'][0], '</b></div>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
// The fading delay (in ms.)
var smfFadeDelay = ', empty($settings['newsfader_time']) ? 5000 : $settings['newsfader_time'], ';
// Fade from... what text color? To which background color?
var smfFadeFrom = {"r": 0, "g": 0, "b": 0}, smfFadeTo = {"r": 255, "g": 255, "b": 255};
// Surround each item with... anything special?
var smfFadeBefore = "<b>", smfFadeAfter = "</b>";
var foreColor, backEl, backColor;
if (typeof(document.getElementById(\'smfFadeScroller\').currentStyle) != "undefined")
{
foreColor = document.getElementById(\'smfFadeScroller\').currentStyle.color.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};
backEl = document.getElementById(\'smfFadeScroller\');
while (backEl.currentStyle.backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined")
backEl = backEl.parentNode;
backColor = backEl.currentStyle.backgroundColor.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
smfFadeTo = {"r": eval("0x" + backColor[1]), "g": eval("0x" + backColor[2]), "b": eval("0x" + backColor[3])};
}
else if (typeof(window.opera) == "undefined" && typeof(document.defaultView) != "undefined")
{
foreColor = document.defaultView.getComputedStyle(document.getElementById(\'smfFadeScroller\'), null).color.match(/rgb\((\d+), (\d+), (\d+)\)/);
smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};
backEl = document.getElementById(\'smfFadeScroller\');
while (document.defaultView.getComputedStyle(backEl, null).backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined" && typeof(backEl.parentNode.tagName) != "undefined")
backEl = backEl.parentNode;
backColor = document.defaultView.getComputedStyle(backEl, null).backgroundColor.match(/rgb\((\d+), (\d+), (\d+)\)/);
smfFadeTo = {"r": parseInt(backColor[1]), "g": parseInt(backColor[2]), "b": parseInt(backColor[3])};
}
// List all the lines of the news for display.
var smfFadeContent = new Array(
"', implode('",
"', $context['fader_news_lines']), '"
);
// ]]></script>
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/fader.js"></script>
</td>
</tr>
</table>';
}
/* Each category in categories is made up of:
id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down iamge),
and boards. (see below.) */
$first = true;
foreach ($context['categories'] as $category)
{
echo '
<div class="tborder" style="margin-top: ' , $first ? '0;' : '1ex;' , '' , $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'width: 100%;' : '', '">
<div class="catbg', $category['new'] ? '2' : '', '" style="padding: 5px 5px 5px 10px;">';
$first = false;
// If this category even can collapse, show a link to collapse it.
if ($category['can_collapse'])
echo '
<a href="', $category['collapse_href'], '">', $category['collapse_image'], '</a>';
echo '
', $category['link'], '
</div>';
// Assuming the category hasn't been collapsed...
if (!$category['is_collapsed'])
{
echo '
<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor" style="margin-top: 1px;">';
/* Each board in each category's boards has:
new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
children (see below.), link_children (easier to use.), children_new (are they new?),
topics (# of), posts (# of), link, href, and last_post. (see below.) */
foreach ($category['boards'] as $board)
{
echo '
<tr>
<td ' , !empty($board['children']) ? 'rowspan="2"' : '' , ' class="windowbg" width="6%" align="center" valign="top"><a href="', $scripturl, '?action=unread;board=', $board['id'], '.0">';
// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
// This board doesn't have new posts, but its children do.
elseif ($board['children_new'])
echo '<img src="', $settings['images_url'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
// No new posts at all! The agony!!
else
echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" />';
echo '</a>
</td>
<td class="windowbg2">
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
', $board['description'];
// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
if (!empty($board['moderators']))
echo '
<div style="padding-top: 1px;" class="smalltext"><i>', count($board['moderators']) == 1 ? $txt[298] : $txt[299], ': ', implode(', ', $board['link_moderators']), '</i></div>';
// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
', $board['posts'], ' ', $txt[21], ' <br />
', $board['topics'],' ', $txt[330], '
</span></td>
<td class="windowbg2" valign="middle" width="22%">
<span class="smalltext">';
/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<b>', $txt[22], '</b> ', $txt[525], ' ', $board['last_post']['member']['link'] , '<br />
', $txt['smf88'], ' ', $board['last_post']['link'], '<br />
', $txt[30], ' ', $board['last_post']['time'];
echo '
</span>
</td>
</tr>';
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
}
echo '
<tr>
<td colspan="3" class="windowbg', !empty($settings['seperate_sticky_lock']) ? '3' : '', '">
<span class="smalltext"><b>', $txt['parent_boards'], '</b>: ', implode(', ', $children), '</span>
</td>
</tr>';
}
}
echo '
</table>';
}
echo '
</div>';
}
if ($context['user']['is_logged'])
{
echo '
<table border="0" width="100%" cellspacing="0" cellpadding="5">
<tr>
<td align="', !$context['right_to_left'] ? 'left' : 'right', '" class="smalltext">
<img src="' . $settings['images_url'] . '/new_some.gif" alt="" align="middle" /> ', $txt[333], '
<img src="' . $settings['images_url'] . '/new_none.gif" alt="" align="middle" style="margin-left: 4ex;" /> ', $txt[334], '
</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '">';
// Mark read button.
$mark_read_button = array('markread' => array('text' => 452, 'image' => 'markread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=all;sesc=' . $context['session_id']));
// Show the mark all as read button?
if ($settings['show_mark_read'])
echo '
<table cellpadding="0" cellspacing="0" border="0" style="position: relative; top: -5px;">
<tr>
', template_button_strip($mark_read_button, 'top'), '
</tr>
</table>';
echo '
</td>
</tr>
</table>';
}
// Here's where the "Info Center" starts...
echo $leftboxbot2.'<div style="font-weight: bold; text-align: center;">'.$txt[685].'</div>'.$rightboxbot2;
echo '<div style="padding-left: 0px; padding-right: 0px;">'.$topbox;
echo '
<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="4"> ';
// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']))
{
echo '
<tr>
<td class="catbg" colspan="2">', $txt[214], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=recent">
<img src="', $settings['images_url'], '/post/xx.gif" alt="', $txt[214], '" border="0" /></a>
</td>
<td class="windowbg2">';
// Only show one post.
if ($settings['number_recent_posts'] == 1)
{
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (it's id.)
echo '
<b><a href="', $scripturl, '?action=recent">', $txt[214], '</a></b>
<div class="smalltext">
', $txt[234], ' "', $context['latest_post']['link'], '" ', $txt[235], ' (', $context['latest_post']['time'], ')<br />
</div>';
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<table width="100%" border="0">';
/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
foreach ($context['latest_posts'] as $post)
echo '
<tr>
<td class="smalltext" align="right" valign="top" nowrap="nowrap">[', $post['board']['link'], ']</td>
<td class="smalltext" valign="top">', $post['link'], ' ', $txt[525], ' ', $post['poster']['link'], '</td>
<td class="smalltext" align="right" valign="top" nowrap="nowrap">', $post['time'], '</td>
</tr>';
echo '
</table>';
}
echo '
</td>
</tr>';
}
// Show information about events, birthdays, and holidays on the calendar.
if ($context['show_calendar'])
{
echo '
<tr>
<td class="catbg" colspan="2">', $context['calendar_only_today'] ? $txt['calendar47b'] : $txt['calendar47'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=calendar">
<img src="', $settings['images_url'], '/icons/calendar.gif" alt="', $txt['calendar24'], '" border="0" /></a>
</td>
<td class="windowbg2" width="100%">
<span class="smalltext">';
// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
if (!empty($context['calendar_holidays']))
echo '
<span style="color: #', $modSettings['cal_holidaycolor'], ';">', $txt['calendar5'], ' ', implode(', ', $context['calendar_holidays']), '</span><br />';
// People's birthdays. Like mine. And yours, I guess. Kidding.
if (!empty($context['calendar_birthdays']))
{
echo '
<span style="color: #', $modSettings['cal_bdaycolor'], ';">', $context['calendar_only_today'] ? $txt['calendar3'] : $txt['calendar3b'], '</span> ';
/* Each member in calendar_birthdays has:
id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */
foreach ($context['calendar_birthdays'] as $member)
echo '
<a href="', $scripturl, '?action=profile;u=', $member['id'], '">', $member['is_today'] ? '<b>' : '', $member['name'], $member['is_today'] ? '</b>' : '', isset($member['age']) ? ' (' . $member['age'] . ')' : '', '</a>', $member['is_last'] ? '<br />' : ', ';
}
// Events like community get-togethers.
if (!empty($context['calendar_events']))
{
echo '
<span style="color: #', $modSettings['cal_eventcolor'], ';">', $context['calendar_only_today'] ? $txt['calendar4'] : $txt['calendar4b'], '</span> ';
/* Each event in calendar_events should have:
title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */
foreach ($context['calendar_events'] as $event)
echo '
', $event['can_edit'] ? '<a href="' . $event['modify_href'] . '" style="color: #FF0000;">*</a> ' : '', $event['href'] == '' ? '' : '<a href="' . $event['href'] . '">', $event['is_today'] ? '<b>' . $event['title'] . '</b>' : $event['title'], $event['href'] == '' ? '' : '</a>', $event['is_last'] ? '<br />' : ', ';
// Show a little help text to help them along ;).
if ($context['calendar_can_edit'])
echo '
(<a href="', $scripturl, '?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">', $txt['calendar_how_edit'], '</a>)';
}
echo '
</span>
</td>
</tr>';
}
// Show a member bar. Not heavily ornate, but functional at least.
if ($settings['show_member_bar'])
{
echo '
<tr>
<td class="catbg" colspan="2">', $txt[331], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
', $context['show_member_list'] ? '<a href="' . $scripturl . '?action=mlist">' : '', '<img src="', $settings['images_url'], '/icons/members.gif" alt="', $txt[332], '" border="0" />', $context['show_member_list'] ? '</a>' : '', '
</td>
<td class="windowbg2" width="100%">
<b>', $context['show_member_list'] ? '<a href="' . $scripturl . '?action=mlist">' . $txt[332] . '</a>' : $txt[332], '</b>
<div class="smalltext">', $txt[200], '</div>
</td>
</tr>';
}
// Show YaBB SP1 style information...
if ($settings['show_sp1_info'])
{
echo '
<tr>
<td class="catbg" colspan="2">', $txt[645], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=stats">
<img src="', $settings['images_url'], '/icons/info.gif" alt="', $txt[645], '" border="0" /></a>
</td>
<td class="windowbg2" width="100%">
<table border="0" width="90%"><tr>
<td class="smalltext">
<div style="float: ', !$context['right_to_left'] ? 'left' : 'right', '; width: 50%;">', $txt[490], ': <b>', $context['common_stats']['total_topics'], '</b></div>', $txt[489], ': <b>', $context['common_stats']['total_posts'], '</b><br />', !empty($context['latest_post']) ? '
' . $txt[659] . ': "' . $context['latest_post']['link'] . '" (' . $context['latest_post']['time'] . ')<br />' : '', '
<a href="', $scripturl, '?action=recent">', $txt[234], '</a>', $context['show_stats'] ? '<br />
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</td>
<td width="32%" class="smalltext" valign="top">
', $txt[488], ': <b><a href="', $scripturl, '?action=mlist">', $context['common_stats']['total_members'], '</a></b><br />
', $txt[656], ': <b>', $context['common_stats']['latest_member']['link'], '</b><br />';
// If they are logged in, show their unread message count, etc..
if ($context['user']['is_logged'])
echo '
', $txt['smf199'], ': <b><a href="', $scripturl, '?action=pm">', $context['user']['messages'], '</a></b> ', $txt['newmessages3'], ': <b><a href="', $scripturl, '?action=pm">', $context['user']['unread_messages'], '</a></b>';
echo '
</td>
</tr></table>
</td>
</tr>';
}
// "Users online" - in order of activity.
echo '
<tr>
<td class="titlebg" colspan="2">', $txt[158], '</td>
</tr><tr>
<td rowspan="2" class="windowbg" width="20" valign="middle" align="center">
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', '<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], '" />', $context['show_who'] ? '</a>' : '', '
</td>
<td class="windowbg2" width="100%">';
echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];
// Handle hidden users and buddies.
if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies'])))
{
echo ' (';
// Show the number of buddies online?
if ($context['show_buddies'])
echo $context['num_buddies'], ' ', $context['num_buddies'] == 1 ? $txt['buddy'] : $txt['buddies'];
// How about hidden users?
if (!empty($context['num_users_hidden']))
echo $context['show_buddies'] ? ', ' : '', $context['num_users_hidden'] . ' ' . $txt['hidden'];
echo ')';
}
echo $context['show_who'] ? '</a>' : '', '
<div class="smalltext">';
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);
if (!empty($context['spiders']))
{
if ($modSettings['ob_googlebot_display_own_list'])
echo '
<br />
', $txt['ob_googlebot_spiders_last_active'], ':<br />';
else
{
if (empty($context['users_online']))
echo '
', $txt[140], ':<br />';
else
echo ', ';
}
echo implode(', ', $context['spiders']);
}
echo '
<br />
', $context['show_stats'] && !$settings['show_sp1_info'] ? '<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>
<tr>
<td class="windowbg2" width="100%">
<span class="middletext">
', $txt['most_online_today'], ': <b>', $modSettings['mostOnlineToday'], '</b>.
', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')
</span>
</td>
</tr>';
// If they are logged in, but SP1 style information is off... show a personal message bar.
if ($context['user']['is_logged'] && !$settings['show_sp1_info'])
{
echo '
<tr>
<td class="catbg" colspan="2">', $txt[159], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
', $context['allow_pm'] ? '<a href="' . $scripturl . '?action=pm">' : '', '<img src="', $settings['images_url'], '/message_sm.gif" alt="', $txt[159], '" border="0" />', $context['allow_pm'] ? '</a>' : '', '
</td>
<td class="windowbg2" valign="top">
<b><a href="', $scripturl, '?action=pm">', $txt[159], '</a></b>
<div class="smalltext">
', $txt[660], ' ', $context['user']['messages'], ' ', $context['user']['messages'] == 1 ? $txt[471] : $txt[153], '.... ', $txt[661], ' <a href="', $scripturl, '?action=pm">', $txt[662], '</a> ', $txt[663], '
</div>
</td>
</tr>';
}
// Show the login bar. (it's only true if they are logged out anyway.)
if ($context['show_login_bar'])
{
echo '
<tr>
<td class="catbg" colspan="2">', $txt[34], ' <a href="', $scripturl, '?action=reminder" class="smalltext">(' . $txt[315] . ')</a></td>
</tr>
<tr>
<td class="windowbg" width="20" align="center">
<a href="', $scripturl, '?action=login">
<img src="', $settings['images_url'], '/icons/login.gif" alt="', $txt[34], '" border="0" /></a>
</td>
<td class="windowbg2" valign="middle">
<form action="', $scripturl, '?action=login2" method="post" style="margin: 0;">
<table border="0" cellpadding="2" cellspacing="0" align="center" width="100%"><tr>
<td valign="middle" align="left">
<label for="user"><b>', $txt[35], ':</b><br /><input type="text" name="user" id="user" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="passwrd"><b>', $txt[36], ':</b><br /><input type="password" name="passwrd" id="passwrd" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="cookielength"><b>', $txt[497], ':</b><br /><input type="text" name="cookielength" id="cookielength" size="4" maxlength="4" value="', $modSettings['cookieTime'], '" /></label>
</td>
<td valign="middle" align="left">
<label for="cookieneverexp"><b>', $txt[508], ':</b><br /><input type="checkbox" name="cookieneverexp" id="cookieneverexp" checked="checked" class="check" /></label>
</td>
<td valign="middle" align="left">
<input type="submit" value="', $txt[34], '" />
</td>
</tr></table>
</form>
</td>
</tr>';
}
echo '
</table></div>';
echo $botbox.'</div>';
}
?>
Still no show :-[
When i look at the screenshots of how it suppose to look like, i dont have the bot part show at all in the usersbar. Same in default theme as the one under here
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.familjegodis.se%2Fimages%2Fusersbar.jpg&hash=1bbd57ab5e93b2205f5112f99eb5010fd2195034)
Here is mine using Multi_Helios RC2 - as you can see it is working and formatted properly.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.claymaniacs.com%2Fimages%2Fusers.gif&hash=fb0aba65986d40a65dc80d66445fac9c1799afaa)
Quote from: Omar Bazavilvazo on February 24, 2006, 11:35:20 PM
On BoardIndex.template.php
search for:
Quote
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];
and replace it with:
Quote
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', ');
Thank you very much for the help. Its working great. :)
The User and Spider count ran together (i.e. 4 Users2 Spiders), so for anyone else who wants to re-order the list too, I added a comma and space between them.
Quote', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], ', ' . (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', ');
Loaded it to my 1.0.6 forum and to my RC2 test forum. Works great. Good job and thanks. ;)
QuoteHere is mine using Multi_Helios RC2 - as you can see it is working and formatted properly.
Kind of irrelevant if yours working or not, that image show the exact same as the screenshots and therefore no help to me there what so ever....
I skipped the google/spiderbot, i got help with it, and it still doesent apply with experthelp so i guess it´s not ment to be on my forum.
Thanks for those who replyed answers for the help part and files.
Regards
//Carina
I have an idea. In messageindex.template.php +display.template.php make it so that you can see the spiders in the messageindex and display..
ALso, if the spiders are put in the same list, make it so that spiders+users are sorted by last active..
Just a note, the new version for RC2 installed like a charm ;D, but just testing for uninstall, it reports a test failed on ssi.php, any ideas ???
i didn't test uninstall... i'll check it tomorrow
why do you recommend using this mod http://www.simplemachines.org/community/index.php?topic=19243.0
Is optional, not forced.
I found it useful, because if you want to see the details of the people connected to your site (who is online) why will know who is spider, and who is a real guest
okay im using it anyway.
secondly ive had this mod installed from quite some time now but i havent seen any bot as yet..
Then I dont think its working for you or you have it installed wrong. Have you checked your permissions for the mod, maybe they need to be changed. I have it installed and it works great.
is it possible that google isnt spidering my site at all?
cuz my site never shows up in google search anyway!
If its a fairly new site then maybe its not yet, but sooner or later it will. Do you have the google sitemaps mod installed as well. I suggest installing it to if you dont.
yes i do have the sitemaps mod installed.but it doesnt function properly due to TP being installed.
are you viewing your site with a theme other than the default theme ?
you'll have to adjust your own themes accordingly, as the package only modifies the Default SMF theme
i know that :P
im using defult only :)
fair enough, worth checking ;)
Have you looked to tinyportal.net to see if they have any answers for the sitemaps ???
As for this mod I think just waiting for them to come and spider you is what you`ll have to do. One other thing have you changed the meta tags to discribe your site a bit more ???
Quote from: Prasad007 on March 03, 2006, 01:55:45 PM
yes i do have the sitemaps mod installed.but it doesnt function properly due to TP being installed.
try using firefox and user-agent extension, as i explained previously on this topic
also adding your url to google would be a good idea
http://www.google.com/addurl/?continue=/addurl
i have the meta tags and meta descrption set perfectly. thats not a prob.
and till date i havent found a solution to the TP - sitemaps integration.
Meta tags don't really work with google nowadays...
The sitemaps integration problem is only the html sitemap.. The google sitemap still works..
so what can be done to ensure spidering of my site ?
ummm... Nothing but waiting... and linking to good sites..
However to test if the this mod works is easy.. Just try to validate with xhtml validator..
Hello,
maybe I´m to stupid, but I can´t find the page to set up the Mod (like the pics you added in the modification section).
Can anybody tell me where to find the settings? ( I have searched the whole settings on my page^^)
Greetings
What smf version + mod version?
Could this be modified to identify, as a seperate category, existing members who haven't logged in or who have recently logged in and other specific guests like ones who camp or banned members. I have no problems about having to create a custom field or array etc.
Quote from: DemonicInfluence on March 05, 2006, 03:40:34 PM
What smf version + mod version?
If you quoting to me:
SMF 1.1RC2
Mod 1.05
But why do you ask? I don´t think this is a matter of versions.
Greets
Quote from: Brakdûr on March 05, 2006, 06:38:31 PM
Quote from: DemonicInfluence on March 05, 2006, 03:40:34 PM
What smf version + mod version?
If you quoting to me:
SMF 1.1RC2
Mod 1.05
But why do you ask? I don´t think this is a matter of versions.
Greets
BEcause umm.. In smf rc2.. You have to to features + settings and then press the link to googlebots..
Hi
I like the Idea of this MOD, have installed it in a test place before going further.
Is there any plans for you to add to the permissions, so that the bots can crawl the entire site using permissions, thus the bots get access to the entire forum, but if a guest tries to access restricted pages then they have to log in or register?
I've seen this feature on other forums, when your searching in google for something, it lists the page with the info on it, yet when you click 'next' or 'reply' then it doesnt go any further and you have to register.
Just an idea, it would be good if google could crawl your entire forum, but guests could not.
What do you think?
Nice. That would be a good idea :D .. BUt couldn't then guests use user-agent switcher to pretend to be a bot?
Quote from: DemonicInfluence on March 08, 2006, 11:32:45 AM
Nice. That would be a good idea :D .. BUt couldn't then guests use user-agent switcher to pretend to be a bot?
Who in his mind will do that? what for? i don't see why a guest will do that.
Would this matter?
The purpose would be to capture what is in the post for the search engines, to draw more users to the board...
If a guest has found that page, they are more likley to join up and participate in your forum because they have found what they are looking for?
:D
Quote from: Omar Bazavilvazo on March 08, 2006, 11:58:42 AM
Quote from: DemonicInfluence on March 08, 2006, 11:32:45 AM
Nice. That would be a good idea :D .. BUt couldn't then guests use user-agent switcher to pretend to be a bot?
Who in his mind will do that? what for? i don't see why a guest will do that.
A guest who wants to see more than they are allowed to?
Quote from: djalecc on March 08, 2006, 12:01:47 PM
Would this matter?
The purpose would be to capture what is in the post for the search engines, to draw more users to the board...
If a guest has found that page, they are more likley to join up and participate in your forum because they have found what they are looking for?
:D
Well, than why bother to limit certain sections for certain membergroups because they can just pretend to be google and see them anyways... If a spider can see as much as say a user who has a lot of power... If you do that, why even bother to hide them from guests????
But I can see a way that would be nice, to have an IP range allowed for spider permissions because all bots operate on a specific IP or IP range :)
In addition, this is a bad idea.
Google insists that anything they crawl is accessible to the public. Allowing google to crawl portions of a site which require registered access makes google not like you (and pisses off the people who are trying to get to the information on your site!)
in fact, all spiders ARE guests, they are only displayed as spiders, but for access and permisions, they ARE guests.
Yes, it is fine, but the idea of giving spiders more permissions is bad..
How difficult would it be to make this mod compatible with the ignore boards mod? For multi-language forums, it'd be a really good thing. Thanks!
Quote from: rthrash on March 10, 2006, 01:17:08 PM
How difficult would it be to make this mod compatible with the ignore boards mod? For multi-language forums, it'd be a really good thing. Thanks!
i'll check it
Can I see some manual install of googlebot? My server is in Safe Mode... therefore I can't install , just.. manual upload the files..
Just follow in instructions in the install.xml...
Yay! This mod is finally working for me!! :)
I just saw a couple of bots "GigaBot" , "MSN Spider" , "Google AdSense bot"
why is there a bot for google adsense?
and whats gigabot? which search engine is it associated with? any idea?
Glad you got it working, Google adsense has to be crawled to I guess. I see that gigabot in there all the time I`m not sure were its from.
I googled it . Gigabot is from www.gigablast.com :)
never even heard of this one :P
Me neither actually. Its on my site all the time, nothing to really worry about.
Quote from: nokonium on March 05, 2006, 03:48:44 PM
Could this be modified to identify, as a seperate category, existing members who haven't logged in or who have recently logged in and other specific guests like ones who camp or banned members. I have no problems about having to create a custom field or array etc.
Anyone?
SMF logs guest IP's, but where? Then, if you consistantly see ones not belonging to members or bots, to add them to a table or array of IP's, so that Admins and Moderators can identify who is camping?
Say something like
array (
'ip' => '127.0.0.1',
'id' => 'Camper-1',
'camper' => true,
),
Quote from: nokonium on March 15, 2006, 02:43:27 PM
Quote from: nokonium on March 05, 2006, 03:48:44 PM
Could this be modified to identify, as a seperate category, existing members who haven't logged in or who have recently logged in and other specific guests like ones who camp or banned members. I have no problems about having to create a custom field or array etc.
Anyone?
SMF logs guest IP's, but where? Then, if you consistantly see ones not belonging to members or bots, to add them to a table or array of IP's, so that Admins and Moderators can identify who is camping?
Say something like
array (
'ip' => '127.0.0.1',
'id' => 'Camper-1',
'camper' => true,
),
it can be done, but this functionality you are asking is out of my intented purpose of this mod.
I realise that and I wouldn't expect you to add it to your Mod. To have been able to extend your mod, which we have installed and find very useful, to include another class of guest, bringing with it the benefit of membergroup permissions, would have been very useful.
Unfortunately coding it myself is well outside my capability.
Thank you
Is it possible to insert Googlebots & Spiders into Users online Today ??? :)
i'm planning to add it to next version
I'm running SMF 1.06 and guests are able to see spiders. I set the mod to not allow this, and I also set SMF so guests can't see who's online. I was running 1.04 of this mod and it worked for a while but then guests could see spiders. I've upgraded to version 1.05 and they can still see spiders, I reset the permissions they way they needed to be (disallow guests viewing spiders). www.grlt.com
Any ideas?
goto guests permissions
click modify
then disable the googlebot and spiders option
right now they are disallowed, I'm going to try disable and see if it makes a difference.
changed from disallow to Deny and everything is proper now.
Thanks Prasad007
Quote from: Omar Bazavilvazo on March 18, 2006, 05:39:18 PM
i'm planning to add it to next version
When will the next version be available ?? ::)
Quote from: ckacey on March 19, 2006, 02:21:06 PM
changed from disallow to Deny and everything is proper now.
Thanks Prasad007
Always a pleasure! :)
Quote from: kezayah on March 19, 2006, 07:36:29 PM
Quote from: Omar Bazavilvazo on March 18, 2006, 05:39:18 PM
i'm planning to add it to next version
When will the next version be available ?? ::)
well, will be ready, when i have time :)
perhaps before may
Will this mod work for smf 1.0.6 with TP 0.86 ?
Also, my server has safe mode activated. So it won't allow me to install. Can you point me in to the right dirrection (what files needs hacking attempts?)
Just follow the install.xml ....
Basically, Subs.php, Boardindex.php, someothers i think. Not many others though
I am really sorry, but is there anyone, who's able to tell me, where to get the so-called "the google sitemaps mod"? I just don't find it anywhere...
Thanks a lot in advance and sorry for asking stupid questions. ;)
http://www.simplemachines.org/community/index.php?topic=59676.0
There for all the sitemaps..
Hi there,
Just noticed I'm getting this error on what seems like every action involving the index file.
http://www.pick-your-brains.co.uk/index.php - this line alters
8: Use of undefined constant Spiders - assumed 'Spiders' - this line is constantFile: /home/####/public_html/Themes/dark_blue/languages/Ignore.english.php (eval?) - this line alters
Line: 983 - this line is constantI have gone through all files that the mod changes and cannot find any problems.
I was given this advise on another forum:
QuoteLine 983 of one of your files has something like $txt[Spiders]
Change it to $txt['Spiders']
But this does not seem to be the case.
Any help very much appreciated
Just checked the mod, there is no $txt['Spiders'] or even $txt['spiders']
Where is the code that has it??
I know, this is part of my problem.
I am sure that SMF as a clean install has no reference to spiders in its scripts (correct me if I'm wrong).
The only spider mods/changes I have are the google & spider mod and the who.template them file.
I just cannot work this one out.
Yes. There are no reference in clean...
Does the error appear everytime you go to any page?
yes the error is logged in what seems like every single action or page visit or click.
If you have a portal. It might be the portal script has a problem.. Because I doubt the index.template.php has been changed unless you did.. Search your index.template.php for anything relating to spiders...
BTw, is this on all themes??
I think I have worked it out.
Just tried this and I cant beleive it, it actually appears to have worked.
I changed this line in my tportalblocks.template
echo '<br />'.$bullet.Spiders.': '.$online['num_spiders'];
to
echo '<br />'.$bullet.$txt['Spiders'].': '.$online['num_spiders'];
and added
$txt['Spiders']= 'Spiders';
to my tportal.english
At the moment everything seems error free.
It was really annoying me as it was slowing my site down.
Thank you for all your help
How did it slow you down??
I knew someone would ask that.
I don't really know.
All I know is my site was running very slow around the time I noticed the problem.
As soon as I rectified the problem the site was running normally again. It may have been a coincidence, but obviously it must have been struggling to sort something out. Maybe it was just the writing to the error log?
It was writing a error to log on every page build/refresh.
lol. I see now :)
Can this words be translated to other languag, to finnish in this case. I have the available "who" template made by someone..All words show up still in english evene after translation of mod? Is the translation place the extra who template, and in what places there to not screew up template and functions.
Members, Guests, Spiders
Not sure if it is me or if the mod is just not compatible with SMF v1.0.7. Package uploads fine. When I go to intsall the package though I get the following error...
Package Manager - Install Actions
Install Actions for archive Googlebot_v105_smf1.0.6.zip:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
So, is this mod compatible with SMF v1.0.7? If not, are there any plans to make it so?
Thanks much.
Bump
Googlebot_v105_smf1.0.6.zip has a different version # than the forum you are running. Maybe try changing the version in the install.php file that might get it installed.
don't u mean package_info.xml?
Sorry, yeah thats probably the file.
Quote from: DemonicInfluence on April 21, 2006, 07:32:45 PM
don't u mean package_info.xml?
is there anyway to actually make the bots members?
i would like to add the bots along with permissions set to their ip address.
is this possible? if so , how?
Quote from: Surferbird on April 15, 2006, 08:46:29 AM
Can this words be translated to other languag, to finnish in this case. I have the available "who" template made by someone..All words show up still in english evene after translation of mod? Is the translation place the extra who template, and in what places there to not screew up template and functions.
Members, Guests, Spiders
Search for these words in your Who.template.php. But be careful: Only change the words
Members,
Guests and
Spiders. Don't change
members,
guests and
spiders!!! Changes must be made twice per word in the first few rows.
I get this error on the top of the page of my forum now after this install......
File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 2) Character set '#33' is not a compiled character set and is not specified in the 'c:\mysql\share\charsets\Index' file
Can anyone tell me what this means and how can I fix it?
Also, after doing this mod, my forum text and font got weird and huge....
I would really like to use this mod if anyone can help..............
Host problem? Do you have trouble with other mods installing?
Quote from: DemonicInfluence on April 27, 2006, 04:34:00 PM
Host problem? Do you have trouble with other mods installing?
No.....
Hej all Google gurus.
I went off and gave the Googlebot another try, and this time it went very well on the install.
It seem to be working fine with out any errors.
But i was starting to wonder about the Stats/usersbox that comes with TP.
I have the users, guests, hidden, buddies, and total showing up. But not the google bot in that block.
I have seen other SMF sites with google bot installed, and they have the spiders showing in that block to.
I have the latest install package from the mod page here that is updated for TinyPortal to.
I'm running SMF 1.1rc2 and TP v.09 , and i wonder what code to place where to be able to get the spiders to show in that block to.
Thanks in advance
//Carina
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.familjegodis.se%2Fimages%2Fgooglebot.jpg&hash=02c30997e420a3bd7eee388db2d43cf9a526c53b)
Find in TPortalBlocks.php:
Quote from: sbarnes on March 30, 2006, 06:40:19 AM
Thank you, come to a dead end with this, I'e got:
$online = ssi_whosOnline('array');
echo $bullet.$txt['tp-users'].': '.$online['num_users'];
echo '<br />'.$bullet.$txt['tp-guests'].': '.$online['guests'];
echo '<br />'.$bullet.$txt['tp-total'].': '.$online['total_users'].'<hr />
<div style="width: 100%; height: 23ex; overflow: auto;">';
Have no clue what to do with that.
replace:
Quote from: DemonicInfluence on March 30, 2006, 06:48:28 AM
$online = ssi_whosOnline('array');
echo $bullet.$txt['tp-users'].': '.$online['num_users'];
echo '<br />'.$bullet.$txt['tp-guests'].': '.$online['guests'];
echo '<br />'.$bullet.Spiders.': '.$online['num_spiders'];
echo '<br />'.$bullet.$txt['tp-total'].': '.$online['total_users'].'<hr />
<div style="width: 100%; height: 23ex; overflow: auto;">';
replace that with this:
DO that..
And it will work..
Thank you sooooo much for this :)
No problem :)
i asked
Still wondering if this mod can be made compatible with the default Ignore Boards install. I think a quick scope change via the DB-field name would do the trick.
I don't mind the googlobot crawling my site but why is it "requesting a password reminder" ? I mean, is it a problem?
No it`s just following all the links it finds, there`s no problem.
Thanks I was worried there for a moment.
Hey, just installed this on to my 1.1rc2 board helios multi and have all the check boxes checked, however Its not showing up on the index under "Users Online". I even switched themes to default and it still isnt showing up. Prior to install, I had to manualy edit the ManagePermissions.php @ line 1312 because the package menager did not pick it up, but everything else went ok. Does there have to actually have to be a spider come to the board for it to activate?
Maybe try reinstalling?
yea, I tried that, but I did comapre the xml to the edited files and it seems as if boardindex.template.php wasnt getting written at all, and the ssi.php was getting written wrong for some reason (In referance to "Before" and "After" commands). It was enough to convince me that I should stop what I was doing and restore from by backups. No pun intended to the dev or xml, in fact the xml looked alright from my experience, it just didnt want to fit along side my other 37 mods I had installed. Thanks though...
Hi,
I can't uninstall the mod via Package manager. Here is the report:
Uninstall Actions
Uninstall Actions "Googlebot & Spiders Mod":
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./Sources/BoardIndex.php Test successful
2. Execute Modification ./Sources/ManagePermissions.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test successful
4. Execute Modification ./Sources/Subs.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
7. Execute Modification ./SSI.php Test failed
What should I do?
Uninstall the mod===>go to your SSI.php and remove the code that the mod has put there.
If you search the .xml file that comes with the mod (which can be found by clicking on the "List Files" link next to the mod in "Package manager") you will find the code the mod puts there. Remember before you do anything have at least a copy of the file you are going to edit in case it doesn`t work. (A full backup is better) Hope this helped.
I did exactly what you instructed. Thanks a lot.
Actually I found out that the modscript did not modify the SSI.php at all. That's why I got the Test failed message. Strange.
What about the database entries of Googlebot? How do I remove them?
I really can`t give any help on databases as I am not very good with them myself, but as far as I know they should not bother you being left in. Maybe someone else will have ideas about that, sorry I wish I could help more.
Quote from: guvenck on May 09, 2006, 05:01:24 PM
What about the database entries of Googlebot? How do I remove them?
The mod doesn't do any modification to the database :)
Will this mod work with 1.07? I'd really like to add it to my forum.
I'm using SMF 1.1RC2 (that include last update)
I have installed Googlebot_v105_smf1.1RC2 with no problem.
But I don't see the control panel.
How can I resolve this problem?
Many thaks!
Hi,
also get the parse Error:
Installationsanweisungen für "Googlebot & Spiders Mod":
Die Installation dieses Paketes führt folgende Aktionen aus: Typ Aktion Beschreibung
1. Modifikation ausführen install.xml Modifikation Parse-Error
2. Modifikation ausführen - Modifikation Parse-Error
3. Code ausführen install.php
I have the smf 1.1 RC2, TinyPortal 0.8.6, Enterprise Theme and German Language Pack.
Please, give me a hint.
Regards
Does this work with all themes in RC2 or just the default?
Looks like it only works with the default......How can I make it work for the babylon theme or any other theme?
Default.. Just add the code under the who's online in the install.xml..
Quote from: DemonicInfluence on May 22, 2006, 08:23:43 PM
Default.. Just add the code under the who's online in the install.xml..
All the code in that file or what exact part?
the one for boardindex.template.php
Quote from: stevross on May 16, 2006, 10:31:18 AM
I'm using SMF 1.1RC2 (that include last update)
I have installed Googlebot_v105_smf1.1RC2 with no problem.
But I don't see the control panel.
How can I resolve this problem?
Many thaks!
me too
That is in features and option section..
Quote from: DemonicInfluence on June 05, 2006, 08:18:53 PM
That is in features and option section..
Thank you, resolved, it's a language issue ;)
it doesnt work with 1.0.7 :( :'(
I'm using SMF 1.1 RC2 with TinyPortal 0.8.6
Sometimes when I look at the 'users online' block it doesn't calculate the amount of users correctly...any ideas?
It adds the spiders?
Does anyone have this working correctly in the Helios Theme? I am not in anyway, shape or form a coder, and php is till pretty Greek to me. But if someone could please give me step by step directions for making it work I would very much appreciate it. I installed in when I was using the SMF core theme, but it is not working correctly in the Helios theme.
Help Please
Okay! I have.. Just in Boardindex.template.php do this:
$context['num_guests'], ' ',
add before that:
(empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '),
Then find:
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);
add after:
if (!empty($context['spiders']))
{
if ($modSettings['ob_googlebot_display_own_list'])
echo '
<br />
', $txt['ob_googlebot_spiders_last_active'], ':<br />';
else
{
if (empty($context['users_online']))
echo '
', $txt[140], ':<br />';
else
echo ', ';
}
echo implode(', ', $context['spiders']);
}
That should work..
Quote from: sbarnes on April 13, 2006, 05:44:36 PM
I think I have worked it out.
Just tried this and I cant beleive it, it actually appears to have worked.
I changed this line in my tportalblocks.template
echo '<br />'.$bullet.Spiders.': '.$online['num_spiders'];
to
echo '<br />'.$bullet.$txt['Spiders'].': '.$online['num_spiders'];
and added
$txt['Spiders']= 'Spiders';
to my tportal.english
At the moment everything seems error free.
It was really annoying me as it was slowing my site down.
Thank you for all your help
I love you, man.
Quote from: DemonicInfluence on June 12, 2006, 11:55:40 AM
Okay! I have.. Just in Boardindex.template.php do this:
That should work..
Thanks anyway, I think I will just leave this alone, too confusing for me.
thank you
Quote from: nite0859 on June 13, 2006, 07:53:46 PM
Quote from: sbarnes on April 13, 2006, 05:44:36 PM
I think I have worked it out.
Just tried this and I cant beleive it, it actually appears to have worked.
I changed this line in my tportalblocks.template
echo '<br />'.$bullet.Spiders.': '.$online['num_spiders'];
to
echo '<br />'.$bullet.$txt['Spiders'].': '.$online['num_spiders'];
and added
$txt['Spiders']= 'Spiders';
to my tportal.english
At the moment everything seems error free.
It was really annoying me as it was slowing my site down.
Thank you for all your help
I love you, man.
No problem :)
Quote from: rebelrose on June 14, 2006, 10:49:49 AM
Quote from: DemonicInfluence on June 12, 2006, 11:55:40 AM
Okay! I have.. Just in Boardindex.template.php do this:
That should work..
Thanks anyway, I think I will just leave this alone, too confusing for me.
thank you
jjust try?
It makes reference to tiny portal, I don't have that, so would that make a difference?
it wouldn''t..
Quote from: DemonicInfluence on June 15, 2006, 04:17:47 PM
it wouldn''t..
Where do I find the board index that I am to edit, sorry not that good with this stuff?
BoardIndex.template.php should be in the theme directory under the theme name you are trying to modify. If not it will be in the default theme folder.
Quote from: Bigguy on June 15, 2006, 06:30:40 PM
BoardIndex.template.php should be in the theme directory under the theme name you are trying to modify. If not it will be in the default theme folder.
thanks bigGuy
I got this error, maybe I did something wrong:
Template Parse Error!
There was a problem loading the /Themes/helios_multi11rc2/BoardIndex.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.
You may want to try to refresh this page or use the default theme.
Parse error: parse error, unexpected ',' in .../Themes/helios_multi11rc2/BoardIndex.template.php on line 815
815: (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '),816: echo $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];
You may have it in the wrong place. If the file is backed up play a bit.
Quote from: Bigguy on June 15, 2006, 06:48:45 PM
You may have it in the wrong place. If the file is backed up play a bit.
ok thanks for you help, guess I just leave this one alone.
Thank You
No need to leave it alone. I didn`t mean anything other than you might learn a bit about how to do edits. No insult or anything intended. If you haven`t figured it out I`ll help when I get back if you like.
Quote from: Bigguy on June 15, 2006, 06:55:37 PM
No need to leave it alone. I didn`t mean anything other than you might learn a bit about how to do edits. No insult or anything intended. If you haven`t figured it out I`ll help when I get back if you like.
No insult taken, it is not you, just me, been playing with this for awhile now and still cannot get it, I apprecaite all you advise.
Thanks
i have a little problem, the word "spiders" didn't shows up in user's online
1 Guests, 1 User Users active in past 15 minutes:
mark25
Recent Membergroup Online Legend - [Administrator]
Quote from: mark25 on June 21, 2006, 11:08:04 AM
i have a little problem, the word "spiders" didn't shows up in user's online
1 Guests, 1 User Users active in past 15 minutes:
mark25
Recent Membergroup Online Legend - [Administrator]
If that is for a none-default theme, you gotta manually edit it!
Quote from: DemonicInfluence on June 22, 2006, 07:08:56 AM
Quote from: mark25 on June 21, 2006, 11:08:04 AM
i have a little problem, the word "spiders" didn't shows up in user's online
1 Guests, 1 User Users active in past 15 minutes:
mark25
Recent Membergroup Online Legend - [Administrator]
If that is for a none-default theme, you gotta manually edit it!
ok I will try again, just where and what do you edit ??????
Hi, so if I have SMF 1.0.7. does that mean I can't use this mod?
Can I like switch to 1.0.6 or 1.1 RC2
Because I would really like to try this one.
Quote from: ketchup on June 24, 2006, 11:51:41 PM
Hi, so if I have SMF 1.0.7. does that mean I can't use this mod?
Can I like switch to 1.0.6 or 1.1 RC2
Because I would really like to try this one.
I think you can just upgrade your forum to 1.1RC2
No, 1.06 should work with 1.07
You could always upgrade to. ;)
if not so much changed in the mod, it can work in 1.0.7. I didn't even know a 1.0.7 is out. I'll update it so no changes are needed
I was looking at the changes that have to be made in order for this to work with my theme, and it seems the only change would be on the board.inxex.php, but when I make the changes it shows an error on my forum, guess I am not doing something right.
SMF 1.1RC2
DilberMC Theme
Anyone Have any ideas, thoughts or suggestions
When I go to my forums I get:
Fatal error: Call to undefined function: ob_googlebot_getagent() in /home/adulthos/public_html/forums/Sources/BoardIndex.php on line 300
Googlebot was working fine until I installed tinyportal. I had problems with that and i fixed those, but now I have problems with gbot. I uninstalled tinyportal and when i try uninstalling googlebot my managepermissions, subs, and ssi get 'test failed' messages.
I'd like them both to work in harmony! :-[ TIA
Quote from: mskdhero on July 08, 2006, 09:32:59 PM
When I go to my forums I get:
Fatal error: Call to undefined function: ob_googlebot_getagent() in /home/adulthos/public_html/forums/Sources/BoardIndex.php on line 300
Googlebot was working fine until I installed tinyportal. I had problems with that and i fixed those, but now I have problems with gbot. I uninstalled tinyportal and when i try uninstalling googlebot my managepermissions, subs, and ssi get 'test failed' messages.
I'd like them both to work in harmony! :-[ TIA
open the installer, and in the install.xml is the function ob_googlebot_getagent().
That function must be on Subs.php, try to copy it there manually.
That seems to have worked! Thank you very much!
Quote from: mskdhero on July 09, 2006, 02:11:44 PM
That seems to have worked! Thank you very much!
np :) i'm glad it worked :p
I cannot find the exact code search it is saying on my boardindex.php. DilberMC theme.
How can I make this mod work this is the only code I see that applies to any of the boards in my theme:
<file name="$themedir/BoardIndex.template.php">
<operation>
<search position="after"><![CDATA[$context['num_guests'], ' ',]]></search>
<add><![CDATA[(empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), ]]></add>
</operation>
<operation>
<search position="before"><![CDATA[
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);]]></search>
<add><![CDATA[
if (!empty($context['spiders']))
{
if ($modSettings['ob_googlebot_display_own_list'])
echo '
<br />
', $txt['ob_googlebot_spiders_last_active'], ':<br />';
else
{
if (empty($context['users_online']))
echo '
', $txt[140], ':<br />';
else
echo ', ';
}
echo implode(', ', $context['spiders']);
}]]></add>
Can you please help
so, just follow the instructions it says for your boardindex.template.php
Quote from: DemonicInfluence on July 16, 2006, 01:53:32 PM
so, just follow the instructions it says for your boardindex.template.php
Yeah, Tried that and that is why I am asking for HELP
Well, I think I have searched this thread enough and really didn`t find an answer anywhere. I found parts of answers if that makes sense. I`m trying to figure out how to fix this:
Quote0 1 Spider, Guests, 1 User
I know it`s supposed to be like this:
Quote1 Spider, 0 Guests, 1 User
How do I fix this.
it is in the wrong place, you cannot go by the xml on this one for dilber theme
Hold on and I will find that code placement for you
ok here is how it should look, the first part of the code should be placed like so:
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];
place it after ', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '',
I get a parse error from that. I have another angle I`m going to try. Thanks rebelrose
Quote from: Bigguy on July 17, 2006, 08:09:01 PM
I get a parse error from that. I have another angle I`m going to try. Thanks rebelrose
I probley did not explain it well, my fault I am sure, good luck, just add
'', (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', ')
after this
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '',
Due to a few other issues, I installed this, uninstalled it to fix the other problems, and then reinstalled it. When there's a spider lurking, it'll display something like this:
1 Spider, 1 Spider, 0 Guests, 2 Member
Active members in the last 15 minutes:
LHW, Essex, Googlebot
When I go into Who's Online, it shows only 1 IP for a Guest, yet it shows "1 Spider, 1 Spider." I'm guessing that something is duplicated somewhere, but I don't know much about PHP, or where to look.
Does anyone have any ideas? Thanks for the help.
what version of smf and what theme?
Sorry, my bad. It's v1.0.7, and it's the default theme.
Did you have any errors at all when you installed the mod via package manager ???
None that I remember. Nor do I get any errors in the log.
You might have to go through the .xml file and the files that the mod modified and see if anything was copied twice.
whats a googlebot and spider?
A googlebot is a spider. Spiders crawl through all websites so they can be indexed on the search engines. This mod helps you recognize them being there.
ah cool, thats a good thing right?
Sure, I like knowing when there on and getting indexed, this doesn`t help that though, just lets you see them.
Essential Knight>
Can you post the lines where all the stuff from googlebot is, so we can check it? as suggested by Bigguy, it looks like there are duplicated lines :P
Awesome mod ;) ;D
cool, now i just have to wait and see if it works "wait's for spider"
u can test with the xhtml validator thingy
and how do you do that?
Down at the bottom of every page you should see little pics or links to w3s or whatever. There should be two of them.
MySQL | PHP | XHTML | CSS
when i click the XHTML some weird crap comes up? i close it as i dont know what it is
Try going here and typing in your url:
http://validator.w3.org/
Failed validation, 16 errors and has a bunch of code stuff
Did you see anything on your site. ???
nah? that whole thing said it failed?
no on your site's main page!
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg109.imageshack.us%2Fimg109%2F7915%2Fspidergooglingci8.gif&hash=81db7ca69e002f6dbd91fe1e1d012f431a7718f2)
google not showing , nor are any other spiders other then W3C
I checked the validator and got 2 errors
index.php?action=login2" method="post" class="middletext" style="margin: 3px 1ex 1px 0;" onsubmit="hashLoginPassword.........
..'72d0dXXXXXXXXX95357f9bc8aad80');">
</td>
dont understand how one shows but others dont
no i dont get w3e thing the w3e thing kept failing saying it couldnt do it f it i dont wanna see spiders anyways
How can I change
Quote(66.150.96.109, FeedBurner/1.0 (http://www.FeedBurner.com))
and
Quote(72.14.199.13, Feedfetcher-Google; (+http://www.google.com/feedfetcher.html))
from guests to spiders?
Quote from: Charles LePage on August 13, 2006, 11:37:57 PM
How can I change
Quote(66.150.96.109, FeedBurner/1.0 (http://www.FeedBurner.com))
and
Quote(72.14.199.13, Feedfetcher-Google; (+http://www.google.com/feedfetcher.html))
from guests to spiders?
for snapbot too :P
seems be the same problem I have now too
with the Who is mod the spiders show as spider on that page (who is online)
but on bottom of index they still show as guest
have all the options 'ticked'
thank
Found it!
Sources/Subs.php and Themes/yourtheme/Who.template.php need to be both updated.
array (
'agent' => 'FeedBurner',
'spidername' => 'Feedburner/1.0',
'spider' => true,
),
array (
'agent' => 'Feedfetcher-Google',
'spidername' => 'Feedfetcher-Google',
'spider' => true,
),
array (
'agent' => 'OmniExplorer_Bot',
'spidername' => 'OmniExplorer_Bot/6.68',
'spider' => true,
),
Quote from: Charles LePage on August 14, 2006, 03:27:03 PM
Found it!
Sources/Subs.php and Themes/yourtheme/Who.template.php need to be both updated.
array (
'agent' => 'FeedBurner',
'spidername' => 'Feedburner/1.0',
'spider' => true,
),
array (
'agent' => 'Feedfetcher-Google',
'spidername' => 'Feedfetcher-Google',
'spider' => true,
),
array (
'agent' => 'OmniExplorer_Bot',
'spidername' => 'OmniExplorer_Bot/6.68',
'spider' => true,
),
did anyone tried this and work ?
I tried it, and it does work.
Quote from: Charles LePage on August 15, 2006, 01:44:20 PM
I tried it, and it does work.
Thanks but it seems like there is a lot of spiders crawling around ... How to list out all of them >:(
Quote from: Vinspire on August 15, 2006, 10:44:12 PM
Quote from: Charles LePage on August 15, 2006, 01:44:20 PM
I tried it, and it does work.
Thanks but it seems like there is a lot of spiders crawling around ... How to list out all of them >:(
I'm currently working on a huge list that everyone can just copy paste it in
unless someone else posts there list, mine will be up this weekend
Quote from: Assistance on August 16, 2006, 02:52:38 AM
I'm currently working on a huge list that everyone can just copy paste it in
unless someone else posts there list, mine will be up this weekend
Awesome ! would wait for the list :)
Here are some of the ones I added recently:
array (
'agent' => 'FeedBurner/1.0',
'spidername' => 'Feedburner',
'spider' => true,
),
array (
'agent' => 'Feedfetcher-Google',
'spidername' => 'Feedfetcher-Google',
'spider' => true,
),
array (
'agent' => 'OmniExplorer_Bot/6.68',
'spidername' => 'OmniExplorer_Bot',
'spider' => true,
),
array (
'agent' => 'http://www.relevantnoise.com',
'spidername' => 'relevantNOISE',
'spider' => true,
),
array (
'agent' => 'NewsGatorOnline/2.0',
'spidername' => 'NewsGatorOnline/2.0',
'spider' => true,
),
array (
'agent' => 'ping.blo.gs/2.0',
'spidername' => 'ping.blo.gs/2.0',
'spider' => true,
),
array (
'agent' => 'Jakarta Commons-HttpClient/3.0.1',
'spidername' => 'Amazon',
'spider' => true,
),
array (
'agent' => 'Jakarta Commons-HttpClient/3.0-rc2',
'spidername' => 'Amazon',
'spider' => true,
),
is there an update for RC3 yet?
Quote from: deadpoeticstar on August 16, 2006, 08:48:10 AM
is there an update for RC3 yet?
I dont think so as RC3 had not been released for public yet and only the charted member could get SMF 1.1 RC 3.
i understand that but some mods have been updated for charter members use
Quote from: deadpoeticstar on August 16, 2006, 11:51:22 AM
i understand that but some mods have been updated for charter members use
Yeap but i don't this mod have an update for RC 3 yet as it had not been stated in the mod page :)
Cause your not a charter member thats why ;) and plus RC3 hasn't ben released yet to the public
OK, 'noobie' question here...sorry for the stupidity. What's the scoop about spiders...like, does one want them on their board or not? Do they use a lot of bandwidth and cause a host to be pissed off, or are they a good thing to have on your forum?
Thanks in advance...
Newt
No they don`t use alot of bandwidth and without spiders crawling your forum it would be pretty hard to get indexed on all the search engines.
Thanks. So, what does installing this mod and the other one recommended do for you...just let you know they're there, or allows you to direct what they're seeing? Again, sorry for the noobie questions on this...just never dealt with it before.
Newt
It just allows you to see them. You will also see them registering and going to places like the admin panel but thats ok cause all there doing is following links.They can`t actually register or anything.
Thanks, guy. Doesn't sound like a mod I really need, then...just a 'FYI' kinda thing, eh?
Cheers!
Newt
Quote from: DemonicInfluence on June 25, 2006, 02:07:26 AM
No, 1.06 should work with 1.07
no, it doesn't work with 1.07 and that's really sad 'cause i love this mod :)
I'm using this mod with 1.07.
www.smileysmile.net/board
Hey,
I use this mod and I know this question isnt directly related to this mod, but its about google spiders and crawling so it seemed a reasonable post to ask this..
I have my all my boards permissions with deny showing to guests except 1 board and 1 post telling people why they cant see the other boards and to register.
My question is that if google spiders that crawl the forum for indexing only have guest permissions, this then means that they can only see the board and post I have allowed guests to see?
If this is correct how can I allow the google and other search engine spiders to crawl, index and cache those boards I have hidden from guests?
Also, I noticed the gogle adsense spider crawling my forum today, I presume this spiders job is something to do with the google ads I run using the ad management mod I have installed. What is the adsense spider crawling for and does it mean that if this spider has guest permissions that it cant crawl the ads within the hidden boards? does this hinder its job any?
A few questions I know but I hope someone can help answer them.
Thanks!!! :D
The answer as far as I know is this: spiders can only go where guests can go. If a board can't be viewed by guests, it can't be viewed by a spider even if it's an "ad" spider and you have an ad on that board.
It's similiar to the spiders I see on my board (I use 1.07) that are there because of my RSS feed. Any forum on my board that can't be viewed by guests also does not have any messages in the feed.
where config file ?
and Can I tran... to thai lang ?
how ?
wil there be an upgrade for rc3 as well ?
Yes I need the upgrade for RC3!!!! I can not use any mods with RC3 so far :( Someone Please upgrade it to work with RC3!!!
I have it working with 1.1rc3 and no errors so far from it
How did you get it to work with RC3? It won't even let me install it since it doesn't work with RC3 it says
Extract the mod zip file and open package_info.xml and change the line <install for="1.1 RC2"> to <install for="1.1 RC3"> and then zip it up again with the same name on the zip as the original. the upload through package manager and install
Oh ok I did that with another mod but it didnt work but ok I will do that :D thanks
My googlebot mod isn't working any more :(
Uninstalled it before upgrading to RC3
Modified the package to install with RC3
It shows in the admin config settings but it is not registering the visits in the front end.
I usually have more then one spider on my boards at any given time.
What can I do to fix it!??
I miss my googlebot n spiders!
Please Someone Upgrade this Greate Mod to RC3 !
Best Regards !
Yes this upgraded would be nice. I tried to do that suggested change to RC3 but must not have the right tools for it would not let me change it. :-[ ::)
Read what the one guy posted for me above it works...Also how can i get this to work with another theme??
Quote from: Skipdawg on August 24, 2006, 04:59:53 PM
Yes this upgraded would be nice. I tried to do that suggested change to RC3 but must not have the right tools for it would not let me change it. :-[ ::)
winzip and notepad?
hi!
sorry about the delay, i'll update mod to work with 1.0.8 and rc3 this weekend, and will add the new bots you posted :)
ja ne!
Quote from: Omar Bazavilvazo on August 24, 2006, 09:26:25 PM
hi!
sorry about the delay, i'll update mod to work with 1.0.8 and rc3 this weekend, and will add the new bots you posted :)
ja ne!
Greate !!
Thank you dude !
fantastic. I'm sure everyone will appreciate it
And adding the new bots too, way kewl! 8) ;D
YIPPEE!! :D
THANK YOU!
Thank you Verry Much !
Quote from: Omar Bazavilvazo on August 24, 2006, 09:26:25 PM
hi!
sorry about the delay, i'll update mod to work with 1.0.8 and rc3 this weekend, and will add the new bots you posted :)
ja ne!
Googlebot_v105_smf1.1RC2.zip appears to work with RC3 if you change RC2 to RC3 in the package-info.xml
UPDATE:
Ok, I was trying just to add the few changes noted here, but since I didn't put any big stuff in the mod since a long time, i thought it would be nice to add some stuff i had in mind for a long time.
So, the next version will take 1 more week, but as a reward will have some new features like ... secret... muhahahah :)
in the meantime, in this post is attached the version that works for rc3, without any change, just the package info.
I'll try to make a package for 1.0.8 & 1.1 rc3, if possible both support for TP, that's why is going to take a while :)
ja ne!
Kewlness! Sounding very good. Can't wait to see what your doing with the Mod. It is a great Mod. Rock on and have a good week. ;D ;)
The one I mentioned above is working with TP 0.95alpha v4
Quote from: nokonium on August 27, 2006, 03:47:46 PM
The one I mentioned above is working with TP 0.95alpha v4
well, yeah, i think i could make it work with TP then, i will just try to don't broke it :) and i don't remember why i made 2 diff versions, i i will recheck if can be done everything in 1 version, but the main part of the delay are the new features :)
before I ugraded to rc3 I had a separate list for spiders.
Even though I have it checked in the admin. I still have only one list that mixes everyone together.
Is this due to the other mod I have installed?...who's online?
you have to put again the settings as they were before.
every upgrade y recreate the settings... is a mistake that i'm going to fix, but for now, please go to admin section again, and set again the settings as they were before :)
I did do that, but I think the other mod is interfering. It offered and upgrade for RC3 as well.
I'll check to see if anyone else has the same issue.
I searched the forums and dont see anyone else saying this is an issue afer upgrading both users online and googlebot and spiders.
Although, sometimes my forum searches don't work very well.
I'll wat patiently for your latest version and all its goodies!
It is really no big deal -- it was just very nice to see visitors broken down by member, guest and bot.
Thank you so much for offering this mod. It is the coolest.
Ok I am an idiot.
I admit it.
The output I was looking for is due to a change in the who.template.php file
discussed here
http://www.simplemachines.org/community/index.php?topic=19243.30
I forgot that I modified that file and the upgrade to RC3 overwrote the file.
Everything is showing as desired now.
Quote from: auroramae on August 27, 2006, 08:50:33 PM
Ok I am an idiot.
I admit it.
The output I was looking for is due to a change in the who.template.php file
discussed here
http://www.simplemachines.org/community/index.php?topic=19243.30
I forgot that I modified that file and the upgrade to RC3 overwrote the file.
Everything is showing as desired now.
heheh :) glad to hear that :)
LOL --
are you glad to hear that I'm an idiot or that it is working?
LOL
Thanks again for the wonderful mod!!
Quote from: auroramae on August 27, 2006, 11:47:10 PM
Everything is showing as desired now.
jejeje :)
Ok, let me say it again: I'm glad is working properly now :)
I just wanted to say thank you, Omar Bazavilvazo, for this mod. It is the only mod I use on my forums and it works wonderfully. All the best to you!
Quote from: Skunkie on August 28, 2006, 12:59:33 AM
I just wanted to say thank you, Omar Bazavilvazo, for this mod. It is the only mod I use on my forums and it works wonderfully. All the best to you!
thanks :). That kind of comments make all of us mod writers really happy :)
Before I wrote this mod, I waited like 6 months for someone to write it,but since noone did that, i write this mod. I'm glad I did :)
So the new 2 features I plan to add I hope everyone finds them useful, as I think they are :)
じゃね!
QuoteI just wanted to say thank you, Omar Bazavilvazo, for this mod. It is the only mod I use on my forums and it works wonderfully. All the best to you!
Just wanted to say the same :)
One of three mods used on my site :)
Just read that you will update it to work with TP when the next release is out, that made me happy as some features doesent seem to work proper on my forum with google bot since the upgrade to TP V.095
Thank you for a very great mod :)
I just wondered now that spiders are detected, is there a way to make it so that they don't count as a page view in posts.
Also show in the forum stats what each spider is spidering (like what each user is doing on the board)
Hello, I am using smf version 1.0.8 and was wondering if someone could point me to the correct spiderbot detector file to use. Can it be installed as a "package"? Sorry, I am new to all of this. I am using smf on my website, www.americangunrights.net if anyone wants to check it out.
delta5
In the first post in this thread you have a link to the mod in the download section.
And yes, it's a package install on this mod :)
Quote from: karlbenson on August 29, 2006, 10:56:19 PMAlso show in the forum stats what each spider is spidering (like what each user is doing on the board)
This can be done by using the Custom Who.template.php - separated list for users, guests and spiders. (http://www.simplemachines.org/community/index.php?topic=19243.msg156339#msg156339) It's very handy.
edit: Looks like Mrs G6 actually had the answer before me, I just didn't notice. Heheh
I make a clean list with all spiders posted here, on who template and google bot spider files. No duplicated entries.
Quotearray (
'agent' => 'Scooter',
'spidername' => 'Altavista spider',
'spider' => true,
),
array (
'agent' => 'FAST-WebCrawler',
'spider' => true,
),
array (
'agent' => 'Inktomi Slurp',
'spider' => true,
),
array (
'agent' => 'FeedBurner/1.0',
'spidername' => 'Feedburner',
'spider' => true,
),
array (
'agent' => 'Feedfetcher-Google',
'spidername' => 'Feedfetcher-Google',
'spider' => true,
),
array (
'agent' => 'OmniExplorer_Bot/6.68',
'spidername' => 'OmniExplorer_Bot',
'spider' => true,
),
array (
'agent' => 'http://www.relevantnoise.com',
'spidername' => 'relevantNOISE',
'spider' => true,
),
array (
'agent' => 'NewsGatorOnline/2.0',
'spidername' => 'NewsGatorOnline/2.0',
'spider' => true,
),
array (
'agent' => 'ping.blo.gs/2.0',
'spidername' => 'ping.blo.gs/2.0',
'spider' => true,
),
array (
'agent' => 'Jakarta Commons-HttpClient/3.0.1',
'spidername' => 'Amazon',
'spider' => true,
),
array (
'agent' => 'Jakarta Commons-HttpClient/3.0-rc2',
'spidername' => 'Amazon',
'spider' => true,
),
array (
'agent' => 'WISENutbot',
'spidername' => 'Looksmart spider',
'spider' => true,
),
array (
'agent' => 'MSNBot',
'spidername' => 'MSN spider',
'spider' => true,
),
array (
'agent' => 'W3C_Validator',
'spidername' => 'W3C Validaator',
'spider' => true,
),
array (
'agent' => 'Googlebot-Image',
'spidername' => 'Google-Image Spider',
'spider' => true,
),
array (
'agent' => 'Googlebot',
'spidername' => 'Google spider',
'spider' => true,
),
array (
'agent' => 'Mediapartners-Google',
'spidername' => 'Google AdSense spider',
'spider' => true,
),
array (
'agent' => 'Openbot',
'spidername' => 'Openfind spider',
'spider' => true,
),
array (
'agent' => 'Yahoo! Slurp',
'spidername' => 'Yahoo spider',
'spider' => true,
),
array (
'agent' => 'Wget',
'spider' => true,
),
array (
'agent' => 'Ask Jeeves',
'spider' => true,
),
array (
'agent' => 'Speedy Spider',
'spider' => true,
),
array (
'agent' => 'SurveyBot',
'spider' => true,
),
array (
'agent' => 'IBM_Planetwide',
'spider' => true,
),
array (
'agent' => 'GigaBot',
'spider' => true,
),
array (
'agent' => 'ia_archiver',
'spider' => true,
),
array (
'agent' => 'appie',
'spidername' => 'Walhello spider',
'spider' => true,
),
does this work wid smf 1.1 rc3
Quote from: desistyle on August 31, 2006, 12:54:49 PM
does this work wid smf 1.1 rc3
Yes it dose. But we are eagerly awaiting a new and improved version too. ;D
in this post works with rc3
http://www.simplemachines.org/community/index.php?topic=38003.msg701729#msg701729
hi :)
Well, i said i was going to finish this weekend, and I finished, only problem is that i couldn't finish the package. but the coding is finished.
i plan to finish the packaging in the next 2 days, because i have to rebauild install.xml, check some stuff about queries to don't delete old DB data, and most important, check that it workswith both 1.0.8 and rc3. is a little time-consuming, so please bear with me :)
just for the curious, here is one screenshot of 1 of the 2 new features :)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg284.imageshack.us%2Fimg284%2F609%2Fgooglebot2qx0.jpg&hash=a7136124fc3c863c535df7f8c69775c9b6d4cdba)
sorry for the delay, but it was a unexpected funny weekend, so i wasn't in my house at all :P
ja ne!
Sounds like it will be well worth the wait. I like that "google visited last..." that is kewl 8)
Eagerly and patiently awaiting your masterpiece. ;D ;)
New version :)
v2.0.0, must work with 1.1 RC3 and 1.0.8
is a little beta, so please help me with any bug you see, and, because i'm not native english speaker, if my english strings are incorrect, please provide me with the correct ones. I hope you enjoy it :)
Released 2.0.1
Topics count on google stats was ignored, so you can uninstall and install again or:
In Subs.php
find:
if (isset($context['current_board'])) // We are on a board
{
$key = 'board';
$value = "$context[current_board].$context[start]";
}
elseif (isset($context['current_topic'])) // We are on a topic
{
$key = 'topic';
$value = "$context[current_topic].$context[start]";
}
replace with:
if (isset($context['current_topic'])) // We are on a topic
{
$key = 'topic';
$value = "$context[current_topic].$context[start]";
}
elseif (isset($context['current_board'])) // We are on a board
{
$key = 'board';
$value = "$context[current_board].$context[start]";
}
ja ne!
Right on about to install and check it out. 8) ;D
Installed fine but something is not right. All bots are showing by name down by "users online" but on the who page they show up as guest. :o
er....
the mod doesn't changes anything in the who page.
in the first post is the URL of the who modified file:
Quote
Is STRONGLY recommended to install this mod also (for a detailed view of what is being crawled):
http://www.simplemachines.org/community/index.php?topic=19243.0
ja ne!
Right on thanks Omar. I must of had that before and forgot to put it back after going to RC3. OOPS! :o ;)
Quote from: Skipdawg on September 04, 2006, 09:38:25 PM
Right on thanks Omar. I must of had that before and forgot to put it back after going to RC3. OOPS! :o ;)
Good is working :)
Well 2 of my Global Moderators now have stated the same thing. lol ;)
"This Mods Rocks!" 8) ;D
Hello
I am on RC3 and I currently have installed Googlebot v105 for RC2 installed. I changed RC2 to RC3 in the package-info.xml and it installed with no problems. I went today to uninstall it so that I could install the latest version, and I am getting this:
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./Sources/BoardIndex.php Test successful
2. Execute Modification ./Sources/ManagePermissions.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test successful
4. Execute Modification ./Sources/Subs.php Test successful
5. Execute Modification ./Themes/theme5/languages/Modifications.english.php Test failed
6. Execute Modification ./Themes/theme5/BoardIndex.template.php Test successful
7. Execute Modification ./SSI.php Test failed
I did not continue with the uninstall at that point, as I didn't know if it would cause problems if I did. What can I do at this point to successfully upgrade to the latest version of Googlebot?
Thanks.
If you didn't modified SSI.php with another mod, you can overwrite with a clean copy.
In modifications.english.php, open that file and you will see the block that belongs to googlebot, erase that text, is quite easy to identify.
Hi, im getting these errors since i installed Googlebot 2.0.1:
http://www.mysite.com/index.php?action=post;topic=260.0;num_replies=0
8: Undefined index: start
File: /home/forecadd/public_html/Sources/Subs.php
Line: 3349
http://www.mysite.com/index.php?action=post2;board=18;preview;xml
8: Undefined index: start
File: /home/forecadd/public_html/Sources/Subs.php
Line: 3354
http://www.mysite.com/index.php?action=post;board=18.0
8: Undefined index: start
File: /home/forecadd/public_html/Sources/Subs.php
Line: 3354
I didn't had those errors before i installed googlebot.
Im using smf 1.1rc3, TP 0.95 and arcade mod.
Anyone has an idea what causes these errors and how to fix them?
Much appriciated!
New version 2.0.2, fixed 'start' error, and checked compatibility with TP 0.9.5
Let me know if you have any problems :)
Omar with this last update I am now getting this error on the package page ???
QuoteFatal error: Call to undefined function: ob_googlebot_getagent() in /home/bibletal/public_html/Forum/Sources/Subs.php on line 3391
Hmm... that's strange.
In Subs.php you have this?
function ob_googlebot_getAgent(&$user_agent, &$spider_name, &$result)
Sould be the first function before the end of the file
Omar you think that is odd. I just by chance decided to run "Find and repair any errors." and then optimized the forums and decided to look back and the error was gone. False error report or easy fix i don't know. But odd yes. lol ::) :o ;)
But looking over all with a double check and all seems OK :)
jeje :)
yeah, it has nothing to do with the find and repair erros, but well, i'm glad is working, if you find something wrong, let me know to fix the bug :)
ja ne!
Quote from: Omar Bazavilvazo on September 09, 2006, 03:46:30 AM
New version 2.0.2, fixed 'start' error, and checked compatibility with TP 0.9.5
Let me know if you have any problems :)
Im getting an error when trying to install 2.0.2.
4. Execute Modification ./Sources/ManagePermissions.php Test failed
Should i continue with the install?
no. i tested with rc3 & tp. which version you have, and which mods?
Oh ok,
I have smf 1.1rc3, TP 095 and arcademod.
maybe that's why, seems arcademod modified some stuff at managepermissions :S
you can try to modify by hand the stuff that needs to be written, or if is not a lot of bther, install googlebot before arcade mod
Omg...i just noticed that my file Sources/ManagePermissions.php is empty ???
Can i upload a new one?
Big problems,
I had a fresh ManagePermissions.php from a test site with smf 1.1rc3, TP 0.95 and arcade but i can't upload to my Sources directory . Now i don't have any ManagePermissions.php file anymore.
Help please.
How Do I Install this Mod..(no Instruction in the file :( )
Please Help .
regards.
maydayke>
Upload via ftp your managepermisions.php, but i wonder if only that file dissapeared. you may upgrade again, and install all mods from a clean upgrade, i think is the fastest way
mogadishu>
Put the zip in the /packages folder of your forum, and install it via package manager in admin panel
I upgraded everything again and then installed googlebot 2.0.2. I did some test and it seems to work all just fine with no errors. :)
So thank you for your help Omar.
Ok I will be the stupid boy in the topic... we need one :D
but I have installed the mod on RC3 and can't find where it is ! where to admin it !
It use to be with "display", "karma" etc... on action=featuresettings but there is nothing after karma !
And also i get errors in log : Undefined index: ob_googlebot_modname
Fichier: /home/enparler/www/forum/Sources/ModSettings.php
Ligne: 136
help ! :'(
It's possible that the edits for the ModSettings.php file didn't get installed. You might have to manually add them.
Can't create table '.\masohiodb\smf_ob_googlebot_stats.frm' (errno: 121)
File: D:\websites\masohio\Packages\temp\install.php
Line: 25
with TP 0.9.5, SMF 1.1RC3
Quote from: Bigguy on September 09, 2006, 02:58:17 PM
It's possible that the edits for the ModSettings.php file didn't get installed. You might have to manually add them.
nope it has changed with function ModifyGooglebotSettings() in it.
Quote from: Sarlat on September 09, 2006, 02:18:21 PM
Ok I will be the stupid boy in the topic... we need one :D
but I have installed the mod on RC3 and can't find where it is ! where to admin it !
It use to be with "display", "karma" etc... on action=featuresettings but there is nothing after karma !
And also i get errors in log : Undefined index: ob_googlebot_modname
Fichier: /home/enparler/www/forum/Sources/ModSettings.php
Ligne: 136
help ! :'(
Is here:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg157.imageshack.us%2Fimg157%2F6277%2Fgbadminpostf0.jpg&hash=0f4fa030c0c6b804e75f92276bf705aecccf502e)
But it seems that you got an error when installing this mod, because the strings are not present.
You can add the strings mannually, but i think you got a corrupt installation. did you get test fail errors when installing the mod?
Quote from: marinelife on September 09, 2006, 05:55:03 PM
Can't create table '.\masohiodb\smf_ob_googlebot_stats.frm' (errno: 121)
File: D:\websites\masohio\Packages\temp\install.php
Line: 25
with TP 0.9.5, SMF 1.1RC3
That's is an strange error. Seems that you don't have permissions to create new tables :S
You may try adding that table in phpmyadmin. the sql query is on install.php, inside the mod zip.
yeah it is odd because I installed it ok on my test site, only when I went to the public site did it not work
Quote from: Omar Bazavilvazo on September 09, 2006, 10:13:41 PM
Is here:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg157.imageshack.us%2Fimg157%2F6277%2Fgbadminpostf0.jpg&hash=0f4fa030c0c6b804e75f92276bf705aecccf502e)
But it seems that you got an error when installing this mod, because the strings are not present.
You can add the strings mannually, but i think you got a corrupt installation. did you get test fail errors when installing the mod?
Yes, that's it ! And I have nothing in this menu.
I took the mod from SMF site and I got no problem during installing all was ok. And if I check in the menu Packages : 1. Googlebot & Spiders Mod 2.0.2 [ Uninstall ] [ List Files ] [ Delete ]
My new forum is on RC3 and it's a new install without other mod...
Is it normal that on the xml desc file thre is no version number for SMF like "1.1 RC3" ?
hmm, that's stange :P
do you have this function on ModSettings.php?
function ModifyGooglebotSettings()
Yes.
Ok I found it !
I uninstall it and redo all with default theme (and in english), and now it works.
Theme Millenium by bloc doesn't work with your mod.
Sorry.
To pardon me here the french for Modifications.french-utf8.php and Modifications.french.php
// OB - Googlebot - Begin
// Boardindex Strings
$txt['ob_googlebot_modname'] = 'Googlebot & robots';
$txt['ob_googlebot_spider'] = 'robot';
$txt['ob_googlebot_spiders'] = 'robots';
$txt['ob_googlebot_spiders_last_active'] = 'robots actifs dans les ' . $modSettings['lastActive'] . ' derni&eagrave;res minutes';
// ModSettings
$txt['ob_googlebot_count_all_instances'] = 'Tiens compte de toutes les instances du robot';
$txt['ob_googlebot_display_all_instances'] = 'Affiche toutes les instances d un même robot <div class="smalltext">("' . $txt['ob_googlebot_count_all_instances'] . '" doit être sélectionné)</div>';
$txt['ob_googlebot_display_agent'] = 'Affiche le nom de l\'agent à la place du nom du robot';
$txt['ob_googlebot_display_own_list'] = 'Affiche les robots dans leur propre liste';
$txt['ob_googlebot_count_most_online'] = 'Comptabilisation dans "Most Online"';
$txt['ob_googlebot_redirect_phpsessid'] = 'PHPSESSID URLs REDIRIGÉES';
// Permissions
$txt['permissiongroup_googlebot'] = $txt['ob_googlebot_modname'];
$txt['permissionname_googlebot_view'] = 'Visualiser Googlebot & Robots';
// Stats
$txt['ob_googlebot_stats_lastvisit'] = 'Derni&eagrave;ere visite de Google sur cette page ';
// Permissions
$txt['permissiongroup_googlebot'] = $txt['ob_googlebot_modname'];
$txt['permissionname_googlebot_view'] = 'Visualiser Googlebot & robots';
// OB - Googlebot - End
Great!
if you want to use the mod with that theme, you may add the strings that are in all .template.php files with the strings added.
The needed files are:
index.template.php
BoardIndex.template.php
I'm running SMF 1.0.8 and have just installed this mod. I have (briefly) read through a few pages on here, and have looked in ModSettings.php and nothing concerning the googlebot mod is in there. The package installed sucessfully with no errors, and shows up as installed in the package manager. Also, my forum is generating no errors. What shall I look for to solve this problem?
you can find this string?
array('heading', &$txt['ob_googlebot_modname']),
??
Nope, its nonexistant
Quote from: LuminaRS on September 10, 2006, 12:16:51 PM
Nope, its nonexistant
Problem is that since i made the installed for both rc3 and 1.0.8, in that file everything is optional.
Plz uninstall that mod and try the one i'm attaching to this post, and tell me if gives you an error.
I uninstalled the mod and now I get this error when going to my forum
Quote
Fatal error: Cannot redeclare ob_googlebot_getagent() (previously declared in /home/comptech/public_html/forums/Sources/Subs.php:1943) in /home/comptech/public_html/forums/Sources/Subs.php on line 2170
You have some duplicated code. Did you get a 'failed' on the uninstall? If so look in that file, the reinstall has added to what was not removed.
yeah... seems the installation was a mess.
in Subs.php you have 2 function ob_googlebot_getagent() declarations.
if you uninstalled mod, you must have nothing
I never got to the point where I could install the [new] mod. As soon as I uninstalled the [old] mod, the forum crashed and I got that error
Then it was a unsuccessfuly install. I think you installed mod twice.
Open Sources/Subs.php in any editor you have, and delete the code:
//Function to check if the user-agent provided belongs to a spider. Based on getAgent function made by Owdy.
function ob_googlebot_getAgent(&$user_agent, &$spider_name, &$result)
{
$known_spiders = array (
//Search Spiders
array (
'agent' => 'WISENutbot',
'spidername' => 'Looksmart spider',
),
array (
'agent' => 'MSNBot',
'spidername' => 'MSN spider',
),
array (
'agent' => 'W3C_Validator',
'spidername' => 'W3C Validator',
),
array (
'agent' => 'Googlebot-Image',
'spidername' => 'Google-Image Spider',
),
array (
'agent' => 'Googlebot',
'spidername' => 'Google spider',
),
array (
'agent' => 'Mediapartners-Google',
'spidername' => 'Google AdSense spider',
),
array (
'agent' => 'Openbot',
'spidername' => 'Openfind spider',
),
array (
'agent' => 'Yahoo! Slurp',
'spidername' => 'Yahoo spider',
),
array (
'agent' => 'FAST-WebCrawler',
),
array (
'agent' => 'Wget',
),
array (
'agent' => 'Ask Jeeves',
),
array (
'agent' => 'Speedy Spider',
),
array (
'agent' => 'SurveyBot',
),
array (
'agent' => 'IBM_Planetwide',
),
array (
'agent' => 'GigaBot',
),
array (
'agent' => 'ia_archiver',
),
array (
'agent' => 'FAST-WebCrawler',
),
array (
'agent' => 'Inktomi Slurp',
),
array (
'agent' => 'appie',
'spidername' => 'Walhello spider',
),
array (
'agent' => 'FeedBurner/1.0',
'spidername' => 'Feedburner',
),
array (
'agent' => 'Feedfetcher-Google',
),
array (
'agent' => 'OmniExplorer_Bot/6.68',
'spidername' => 'OmniExplorer Bot',
),
array (
'agent' => 'http://www.relevantnoise.com',
'spidername' => 'relevantNOISE',
),
array (
'agent' => 'NewsGatorOnline/2.0',
'spidername' => 'NewsGatorOnline',
),
array (
'agent' => 'ping.blo.gs/2.0',
),
array (
'agent' => 'Jakarta Commons-HttpClient/3.0.1',
'spidername' => 'Amazon',
),
array (
'agent' => 'Jakarta Commons-HttpClient/3.0-rc2',
'spidername' => 'Amazon',
),
);
foreach($known_spiders AS $poss)
if (strpos(strtolower($user_agent), strtolower($poss['agent'])) !== false)
{
$spider_name = isset($poss['spidername']) ? $poss['spidername'] : $poss['agent'];
$result = $poss['agent'];
return true;
}
return false;
}
Since it looks you have that function 2 times.
Allright. :)
There were two instances, I deleted them both.
er.. in fact i think that maybe you will get errors now saying that function ob_googlebot_getAgent doesn't exists, since you said you haven't uninstalled anything.
Which other mods you have installed in your forums?
You responded before I uploaded it, so I went and un-deleted one instance of it. Back up and running now (yay!) :)
These are the following mods installed on my board:
1. Karma Description Mod 1.9.7
2. SMF 1.0.8 Update Package 1.0.8
3. Ad Managment 1.0.2c
4. Reg Bar 1.0
5. URL Popup 1.0
6. SMF Staff Page 1.3
7. Googlebot & Spiders Mod 2.0.2
8. Merge Double Posts 1.05
great!
so everything is working properly then? :)
do you have then, all screens that are shown in 1st post of this thread?
I haven't actually installed the new googlebot mod yet, I'm working on that now :)
Allright, well when I went to install the [new] mod, this is what I got.
QuoteInstalling this package will perform the following actions:
Type Action Description
1. Execute Modification ./index.php Success
2. Execute Modification ./SSI.php Success
3. Execute Modification ./Sources/BoardIndex.php Success
4. Execute Modification ./Sources/ManagePermissions.php Success
5. Execute Modification ./Sources/ModSettings.php Failure
6. Execute Modification ./Sources/Subs.php Success
7. Execute Modification ./Themes/default/languages/Modifications.english.php Success
8. Execute Modification ./Themes/default/languages/Modifications.spanish.php Success
9. Execute Modification ./Themes/default/index.template.php Success
10. Execute Modification ./Themes/default/BoardIndex.template.php Success
11. Execute Code install.php
Needless to say I halted the installation!
Yeah, it couldn't continue because one of your other mods modified ModSettings.php, so it can't find the needed strings.
If you are willing to modify ModSettings.php by hand, you can install the mod and manually add the strings.
From a "clean" smf 1.0.8, this is how it should look with the mod installed.
array('rule'),
// Colors for the calendar display.
array('text', 'cal_bdaycolor'),
array('text', 'cal_eventcolor'),
array('text', 'cal_holidaycolor'),
array('rule'),
// One day events or multi-day?
array('check', 'cal_allowspan'),
array('int', 'cal_maxspan'),
array('heading', &$txt['ob_googlebot_modname']),
// General display settings
array('check', 'ob_googlebot_count_all_instances'),
array('check', 'ob_googlebot_display_all_instances'),
array('check', 'ob_googlebot_display_agent'),
array('check', 'ob_googlebot_display_own_list'),
array('rule'),
// Count spiders on most online?
array('check', 'ob_googlebot_count_most_online'),
array('rule'),
// Redirect PHPSESSID URLs?
array('check', 'ob_googlebot_redirect_phpsessid'),
array('rule'),
);
return $config_vars;
}
I added that into ModSettings.php and it works great! Thanks!
Quote from: LuminaRS on September 11, 2006, 12:25:43 PM
I added that into ModSettings.php and it works great! Thanks!
great is finally working :)
I guess I accidently lied, at the time I didn't have any spiders on the forum, now that I do I see that it's unfortuinately not working correctly. It currently says 0 Guests, 3 Users online, where there is in fact also two spiders online. So it's half working, just not sowing the seperate group for the spiders.
Count all instances of same spider (CHECKED)
Display all instances of same spider (CHECKED)
Display agent instead of name (UNCHECKED)
Display spiders in its own list (CHECKED)
Count in "Most Online" (UNCHECKED)
Redirect PHPSESSID URLs (CHECKED)
are u on a non-default theme?
Yes, running Cerberus by Bloc, can anyone help?
I got it installed but have this in the error log
http://www.masohio.com/index.php
8: Undefined index: ob_googlebot_stats
File: D:\web\masohio\Sources\Subs.php
Line: 3341
http://www.masohio.com/index.php?action=admin
8: Undefined index: ob_googlebot_stats
File: D:\web\masohio\Sources\Subs.php
Line: 3341
http://www.masohio.com/index.php?action=viewErrorLog;desc
8: Undefined index: ob_googlebot_stats
File: D:\web\masohio\Sources\Subs.php
Line: 3341
It seems to work but I did not get them on my test site
Quote from: LuminaRS on September 12, 2006, 08:39:20 PM
Yes, running Cerberus by Bloc, can anyone help?
you have to manually mod boardindex.template.php for the cerebrus theme
BTW, are you ever gonna make it so that in messageindex place you can see bots
FIgured such, what do I have to add and where?
Quote from: LuminaRS on September 13, 2006, 07:43:35 PM
FIgured such, what do I have to add and where?
check install.xml inside the zip, and you will see what needs to be changed.
Usually, any mod that displays something, only works in default theme, and all the rest needs to be changed manually.
Quote from: marinelife on September 13, 2006, 12:03:07 AM
I got it installed but have this in the error log
http://www.masohio.com/index.php
8: Undefined index: ob_googlebot_stats
File: D:\web\masohio\Sources\Subs.php
Line: 3341
http://www.masohio.com/index.php?action=admin
8: Undefined index: ob_googlebot_stats
File: D:\web\masohio\Sources\Subs.php
Line: 3341
http://www.masohio.com/index.php?action=viewErrorLog;desc
8: Undefined index: ob_googlebot_stats
File: D:\web\masohio\Sources\Subs.php
Line: 3341
It seems to work but I did not get them on my test site
You rather uninstall it. was not installed properly, try to install it again, but check in which file you are getting errors. seems that ob_googlebot_stats field wasn't added to settings table on thr DB
I have many mods that modified my source files, so i can not delete googlebot_2.0.0
what are the changes from 2.0.0 to 2.0.2 so that i can update to 2.0.2 by hand?
Quote from: Omar Bazavilvazo on September 15, 2006, 03:54:52 AM
check install.xml inside the zip, and you will see what needs to be changed.
Works like a charm ;)
i noticed a rush of about 10 IP's from AOL come in at once.
the IP's are similar but it only says MSIE next to it.
is there a way i can add it to the spider list?
Quote from: dagod on September 15, 2006, 01:27:22 PM
I have many mods that modified my source files, so i can not delete googlebot_2.0.0
what are the changes from 2.0.0 to 2.0.2 so that i can update to 2.0.2 by hand?
I added a .zip with the report of changes from 2.0.0 and 2.0.2. I used a report tool, it has 2 files, one in html and another un .txt using unix diff format
Quote from: LuminaRS on September 15, 2006, 01:29:32 PM
Works like a charm ;)
Great!
Quote from: steve in houston on September 15, 2006, 01:37:16 PM
i noticed a rush of about 10 IP's from AOL come in at once.
the IP's are similar but it only says MSIE next to it.
is there a way i can add it to the spider list?
yeah. In Subs.php in the function
ob_googlebot_getagent, you can add more to the list.
ja ne!
wow, Araxis Merge is a very nice tool.... downloading....
Quote from: dagod on September 15, 2006, 01:54:50 PM
wow, Araxis Merge is a very nice tool.... downloading....
yeah, it rocks, and i used subversion to store and tag the different versions, so was quite easy o make the diff :)
Dunno whether this is of any use to you. But heres a good list of spiders
http://www.robotstxt.org/wc/active/html/index.html
Hoping to get some help here...
I installed this but got a table error... I don't think a table was installed properly.
So now I don't see it listed to uninstall it, but I do see some bot stats on the forums. However, I also see the following now at the top of all of the forum pages as well as some of the admin pages that completely error out to the following:
Notice: Undefined index: ob_googlebot_redirect_phpsessid in /home/www/mywebsite.net/forums/index.php on line 76
Notice: Undefined index: ob_googlebot_redirect_phpsessid in /home/www/mywebsite.net/forums/index.php on line 91
I'm using a custom template of my own that was created from a copy of the default template. The only thing I really customized were images and colors so it should be alright in that regard.
Any ideas? I'd love to be able to use it....
Quote from: slimjack on September 24, 2006, 08:09:19 PM
Hoping to get some help here...
I installed this but got a table error... I don't think a table was installed properly.
In fact, that's the problem, because seems some data was not inserted properly on the database.
You can try to add the data manually from phpMyAdmin, for example. The DB code is:
db_query("INSERT IGNORE INTO `{$db_prefix}settings` (`variable`, `value`) VALUES ('ob_googlebot_count_all_instances', '1')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO `{$db_prefix}settings` (`variable`, `value`) VALUES ('ob_googlebot_display_all_instances', '1')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO `{$db_prefix}settings` (`variable`, `value`) VALUES ('ob_googlebot_display_agent', '0')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO `{$db_prefix}settings` (`variable`, `value`) VALUES ('ob_googlebot_display_own_list', '0')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO `{$db_prefix}settings` (`variable`, `value`) VALUES ('ob_googlebot_count_most_online', '0')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO `{$db_prefix}settings` (`variable`, `value`) VALUES ('ob_googlebot_redirect_phpsessid', '1')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO `{$db_prefix}settings` (`variable`, `value`) VALUES ('ob_googlebot_stats', '1')", __FILE__, __LINE__);
db_query("
CREATE TABLE IF NOT EXISTS `{$db_prefix}ob_googlebot_stats` (
`agent` varchar(40) NOT NULL default '',
`board` varchar(20) NOT NULL default '',
`topic` varchar(20) NOT NULL default '',
`url` varchar(100) NOT NULL default '',
`lastvisit` int(10) unsigned NOT NULL default '0',
`frequency` int(10) unsigned NOT NULL default '0',
`visits` int(10) unsigned NOT NULL default '0',
`timestamp` timestamp(14) NOT NULL,
KEY `agent` (`agent`),
KEY `board` (`board`),
KEY `topic` (`topic`),
KEY `url` (`url`)
)", __FILE__, __LINE__);
Replacing {$db_prefix} with smf_ (or whatever prefix you specified)
Let me know if it works :)
Okay, strange thing here... The errors are no longer at the top of the page and the mod now shows as an installed package.
The db has the following in the smf_settings:
ob_googlebot_display_own_list 1
ob_googlebot_count_most_online 1
ob_googlebot_redirect_phpsessid 1
ob_googlebot_display_agent 1
A few shy, eh?
Tried the mysql statement you provided but mysql doesn't like it at all and gives no specific error.
However, I now see at the bottom where it shows who is online...
1 spider 1 spider 1 spider joeblow mikeb (0 buddies)
Is that normal?
Heh, my mistake, should be:
INSERT IGNORE INTO `smf_settings` (`variable`, `value`) VALUES ('ob_googlebot_count_all_instances', '1');
INSERT IGNORE INTO `smf_settings` (`variable`, `value`) VALUES ('ob_googlebot_display_all_instances', '1');
INSERT IGNORE INTO `smf_settings` (`variable`, `value`) VALUES ('ob_googlebot_display_agent', '0');
INSERT IGNORE INTO `smf_settings` (`variable`, `value`) VALUES ('ob_googlebot_display_own_list', '0');
INSERT IGNORE INTO `smf_settings` (`variable`, `value`) VALUES ('ob_googlebot_count_most_online', '0');
INSERT IGNORE INTO `smf_settings` (`variable`, `value`) VALUES ('ob_googlebot_redirect_phpsessid', '1');
INSERT IGNORE INTO `smf_settings` (`variable`, `value`) VALUES ('ob_googlebot_stats', '1');
CREATE TABLE IF NOT EXISTS `smf_ob_googlebot_stats` (
`agent` varchar(40) NOT NULL default '',
`board` varchar(20) NOT NULL default '',
`topic` varchar(20) NOT NULL default '',
`url` varchar(100) NOT NULL default '',
`lastvisit` int(10) unsigned NOT NULL default '0',
`frequency` int(10) unsigned NOT NULL default '0',
`visits` int(10) unsigned NOT NULL default '0',
`timestamp` timestamp(14) NOT NULL,
KEY `agent` (`agent`),
KEY `board` (`board`),
KEY `topic` (`topic`),
KEY `url` (`url`)
);
Try that again and let me know if it works on phpmyadmin
That did it. I see the changes you made, too. thx!
What about this, though:
~~~~~
1 Spider, 1 Spider, 0 Guests, 2 Users (1 Buddy)
Users active in past 15 minutes:
SlimJack, Dissonance
Spiders active in past 15 minutes:
Googlebot
Spiders active in past 15 minutes:
Googlebot
~~~~~
Should it be displayed this way?.... 1 spider, 1 spider and then showing it twice below also?
No, it shouldn't
I suppose somehow it got installed twice.
Which version of the mod and SMF you have installed?
SMF 1.1 R3
Googlebot mod 2.0.2
If I need to manually edit something, that's not an issue - so don't spare me. LOL.
Quote from: slimjack on September 24, 2006, 09:36:10 PM
SMF 1.1 R3
Googlebot mod 2.0.2
If I need to manually edit something, that's not an issue - so don't spare me. LOL.
heh
Boardindex.template.php should look somethinglike this:
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);
if (!empty($context['spiders']))
{
if ($modSettings['ob_googlebot_display_own_list'])
echo '
<br />
', $txt['ob_googlebot_spiders_last_active'], ':<br />';
else
{
if (empty($context['users_online']))
echo '
', $txt[140], ':<br />';
else
echo ', ';
}
echo implode(', ', $context['spiders']);
}
echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</span>
</td>
</tr>';
check if you don't have duplicated code somewhere :S
I've made the edit to boardindex.php but didn't hvae a boardindex.template.php. The one I found was in the sources folder and did, in fact, have some duplicate code.
Would this be the file or should I be looking for another similar one elsewhere? I've noticed that my files are sometimes cached and it takes a few moments after an edit like this to see the diff in a browser.
Here is a smf 1.1 rc2 & googlemod 2.0.2 "normal" Boardindex.template.php, without any other modification, for you to compare :)
And yeah, but be on "default" theme, since if you don't have any file on you new theme, it grabs the file from there.
Ahhhhh... I didn't know that.
Would I be safe to grab those and copy them to my new theme directory? I did, after all, create this theme from a copy of the default.
When we pull over (I've been doing this in my car today from my laptop as I fly down the highway travelling) I'll make these edits.
Quote from: slimjack on September 24, 2006, 10:22:42 PM
Ahhhhh... I didn't know that.
Would I be safe to grab those and copy them to my new theme directory? I did, after all, create this theme from a copy of the default.
When we pull over (I've been doing this in my car today from my laptop as I fly down the highway travelling) I'll make these edits.
Nope, is safer to just modify "default" theme files, unless you have a file that already exists on your new theme, in which case is necessary. But there is no case to have 2 copies of the same file in 2 diferent directories :)
So, edit the default theme files always, unless you have the same copy already on your theme dir.
No duplicate info found in the boardindex.template.php file in the default dir. The googlebot code is there... but not twice.
Is a mess heh
In BoardIndex.php there is no duplicate code neither? :S
Which mods you have installed?
I was digging through boardindex now.
I found this:
krsort($context['users_online']);
krsort($context['list_users_online']);
ksort($context['online_groups']);
ksort($context['spiders']);
ksort($context['spiders']);
should that last bit be twice? it's not like the rest of the duplicate stuff I've found so far.... this was only one line. I killed it.
It doesnt affects, but should be only once, so, i think you will have duplicated code in a lot of places.
in the .zip of the package, in the install.xml, is all the modifications for the mod, you can:
1) put a clean smf (like when upgrading), and reinstall all mods
2) check the install.xml for the changes, to be sure are only 1 time
I suspect you did somehow 2 installations, and that's why is a mess.
use the Googlebot_v2_0_2_only_smf1.1rcx.zip Only
Okay... found something that didn't get done...
If I read it right it said that the following:
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>';]]>
should be added into index.template.php in the them directory and that it should go after the " // Show the load time?" found roughly on line 359.
But adding it gets me an error that there is an unexpected ' in the code on that line.
Did I read this wrong?
I don't think this should be on the end of it:
]]>
Delete that and see what happens.
Ugh.
That didn't work either.
I've gone through every bit of code I could find and eliminated all the duplicates I've seen but NOTHING has changed.
Where is the code that shows who is online and how many spiders there are, etc.? Somewhere I'm missing the duplicate.
And I can't even uninstall it. LOL.
Ok,
You have to check the BoardIndex.php and BoardIndex.template.php files
Here is a .zip containing a "clean" smf 1.1RC3 with Googlebot:
Smf_11rc3.Zip by Bigupload.Com (http://www.bigupload.com/d=6845D16B)
You can compare this directories with your own installation using something like WinMerge (http://winmerge.org/).
Also, I'm adding 2 reports of the changes made by my mod in those 2 files.
And, as you asked, here is where the list of who is online is generated:
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];
:)
Thanks for the winmerge tip and the clean install files.
I've run it and made the changes so that the two files are identicle. But I'm still seeing this:
1 Spider, 1 Spider, 0 Guests, 1 User (0 Buddies)
Users active in past 15 minutes:
SlimJack
Spiders active in past 15 minutes:
Yahoo! Slurp
Spiders active in past 15 minutes:
Yahoo! Slurp
Could this be cached somewhere? Is there another file I should be comparing?
Nope, is not cached.
can you zip all your forum dirs as i did so i can compare it?
Quote from: slimjack on September 25, 2006, 12:21:53 PM
Thanks for the winmerge tip and the clean install files.
I've run it and made the changes so that the two files are identicle. But I'm still seeing this:
1 Spider, 1 Spider, 0 Guests, 1 User (0 Buddies)
Users active in past 15 minutes:
SlimJack
Spiders active in past 15 minutes:
Yahoo! Slurp
Spiders active in past 15 minutes:
Yahoo! Slurp
Could this be cached somewhere? Is there another file I should be comparing?
You bet, thanks for the offer to take a look at it.
I've rar'd the whole thing up and put it on the site. I only did the whole thing (minus avatars and smiley dir's) just to be sure - I'm positive you don't need it all but wanted to just be safe.
I'll pm you the link to download it.
Quote from: Omar Bazavilvazo on September 25, 2006, 11:23:12 AM
Ok,
You have to check the BoardIndex.php and BoardIndex.template.php files
Here is a .zip containing a "clean" smf 1.1RC3 with Googlebot:
Smf_11rc3.Zip by Bigupload.Com (http://www.bigupload.com/d=6845D16B)
You can compare this directories with your own installation using something like WinMerge (http://winmerge.org/).
Also, I'm adding 2 reports of the changes made by my mod in those 2 files.
And, as you asked, here is where the list of who is online is generated:
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];
:)
I notice that one of my users generate this error message:
8: Undefined index: ob_googlebot_spiders
File: /forum/SSI.php
Line: 758
Anything I can do?
Hi, I installed the googlebot & spiders mod ver2.2 on rc3, and it doesnt appear to be working. I have all the controls in the admin panel, but google was at my site last night, and it didnt say so.... I have the permissions set so even a guest should see the spiders in the who's online list. my url is :
http://www.exoticbirds.us/forum/
Any info would help... Thanks
Exoticbirds_us
Quote from: exoticbirds_us on September 26, 2006, 08:55:03 AM
Hi, I installed the googlebot & spiders mod ver2.2 on rc3, and it doesnt appear to be working. I have all the controls in the admin panel, but google was at my site last night, and it didnt say so.... I have the permissions set so even a guest should see the spiders in the who's online list. my url is :
http://www.exoticbirds.us/forum/
Any info would help... Thanks
Exoticbirds_us
The Mod only shows info the the default theme. To modify on other themes, you have to edit Boardindex.template.php
Check in the zip file of the mod the install.xml file for information about what lines to change :)
Quote from: slimjack on September 25, 2006, 12:21:53 PM
Thanks for the winmerge tip and the clean install files.
I've run it and made the changes so that the two files are identicle. But I'm still seeing this:
1 Spider, 1 Spider, 0 Guests, 1 User (0 Buddies)
Users active in past 15 minutes:
SlimJack
Spiders active in past 15 minutes:
Yahoo! Slurp
Spiders active in past 15 minutes:
Yahoo! Slurp
Could this be cached somewhere? Is there another file I should be comparing?
I just checked the files, and they are exactly the same :S
(At least boardindex)
So, the truth is, now I don't know what is the problem :S
Can you tell me how are your settings of the mod? I mean, this screen:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg147.imageshack.us%2Fimg147%2F2061%2Fgboptionswi2.jpg&hash=6fdcc34ab34e8f5ef84ad3d16f8b353c45f8bb75)
ja ne!
In the airport now so forgive me if this posts twice...
I've tried it a few diff ways, but right now I've got all of the options checked. I'm more than open to an alternate setup, of course.
:-(
Ok, I see it works in the default theme,...... but my browser wont let me open install.xml.. it says :
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error
I went into my browser settings, and I cannot figure out how to change the stylesheet.. any info? Thanks
Exoticbirds_us
Got ya' stumped, Omar?
Quote from: exoticbirds_us on September 26, 2006, 11:49:12 AM
I went into my browser settings, and I cannot figure out how to change the stylesheet.. any info? Thanks
The install.xml i told you to check was for reference, you wont be able to install it with your browser or something else. you need to open the .xml file with notepad, for example, search for all the instances of the .template.php files to modify, and do the changes by hand. Since each theme is different, is impossible to do it automatically on all of them
This is going to take some effort to learn, and patience :P
Quote from: slimjack on September 27, 2006, 09:18:24 AM
Got ya' stumped, Omar?
Heh. I can't find any logical explanation of why it doen't works. Maybe is your server, your installation, your instegration, or your mods, truly is, i don't know.
You can try to install again on a local server on a windows computer (let's say, using wampserver or something), but for me , it looks more a specific-server problem, since i can't really find what happened, and i compared ALL modified files :S
a clean installation is possible, but i think is too much work for a single mod :P
Hi Omar,
I know you're busy, but do you know what might be causing this:
I notice that one of my users generate this error message:
8: Undefined index: ob_googlebot_spiders
File: /forum/SSI.php
Line: 758
Anything I can do?
Thanks!
Quote from: Omar Bazavilvazo on September 27, 2006, 11:24:31 AM
Heh. I can't find any logical explanation of why it doen't works. Maybe is your server, your installation, your instegration, or your mods, truly is, i don't know.
You can try to install again on a local server on a windows computer (let's say, using wampserver or something), but for me , it looks more a specific-server problem, since i can't really find what happened, and i compared ALL modified files :S
a clean installation is possible, but i think is too much work for a single mod :P
Yeah, bit stuck, though. It isn't recognized as installed.... so there is no uninstalling it. :(
I'd like to install the Googlebot & Spiders Mod 2.0.0 but having problems and don't know how to accomplish the task.
When I go to install the test fails due to our older index.template.php file.
I have SMF 1.1 RC3 installed but our index.template.php is version 1.0 RC2
Any suggestions?
Quote from: Wrightwood on October 03, 2006, 02:10:07 PM
I'd like to install the Googlebot & Spiders Mod 2.0.0 but having problems and don't know how to accomplish the task.
When I go to install the test fails due to our older index.template.php file.
I have SMF 1.1 RC3 installed but our index.template.php is version 1.0 RC2
Any suggestions?
upgrade ur index.template.php to version 1.1 RC 3 :)
I have SMF 1.1 RC3 and installed the latest googlebot which seemed to install okay I get the meny but don't see the bot(s) online ?
Quote from: Defiant on October 03, 2006, 04:31:54 PM
I have SMF 1.1 RC3 and installed the latest googlebot which seemed to install okay I get the meny but don't see the bot(s) online ?
Coz there isn't any google bot / spiders on your site.
I have no idea on how to convert my index.template.php to version 1.1 RC 3.
Where can I find find help on that?
Quote from: Vinspire on October 03, 2006, 04:33:41 PM
Quote from: Defiant on October 03, 2006, 04:31:54 PM
I have SMF 1.1 RC3 and installed the latest googlebot which seemed to install okay I get the meny but don't see the bot(s) online ?
Coz there isn't any google bot / spiders on your site.
So what do you think the mod is for ::)
Awesome mod, thanks Omar.
One question, it killed the list of members displayed out front. Any idea what I may have done wrong.
Now it says;
1 Spider, 0 Guests, 5 Users
Spiders active in past 15 minutes:
Googlebot
But it doesn't list the mebers names anymore
Running Cerbus on 1.0.8
Any idea what I may have done wrong?
Scratch that.......
I made the mistake of copying some code you had presented to someone else in a post.(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.championtannery.com%2Fsmilies%2Finnocentwhistle.gif&hash=1ea12c14688ca05798d80f6be7b2888e47e09895)
Come to find out according to the xml file, I had to make other changes.
Works like a charm....thank you much for the great Mod. (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.championtannery.com%2Fsmilies%2Fyoyo.gif&hash=4806f98545c822c1f093a230dae5a13860504c7b)
Quote from: Defiant on October 03, 2006, 04:37:49 PM
Quote from: Vinspire on October 03, 2006, 04:33:41 PM
Quote from: Defiant on October 03, 2006, 04:31:54 PM
I have SMF 1.1 RC3 and installed the latest googlebot which seemed to install okay I get the meny but don't see the bot(s) online ?
Coz there isn't any google bot / spiders on your site.
So what do you think the mod is for ::)
The mod is to inform you when there is a bot / spiders that visited ur site. If there isn't any ... how could they inform you about it ? ::)
Quote from: Vinspire on October 03, 2006, 11:36:15 PM
Quote from: Defiant on October 03, 2006, 04:37:49 PM
Quote from: Vinspire on October 03, 2006, 04:33:41 PM
Quote from: Defiant on October 03, 2006, 04:31:54 PM
I have SMF 1.1 RC3 and installed the latest googlebot which seemed to install okay I get the meny but don't see the bot(s) online ?
Coz there isn't any google bot / spiders on your site.
So what do you think the mod is for ::)
The mod is to inform you when there is a bot / spiders that visited ur site. If there isn't any ... how could they inform you about it ? ::)
So what was the list of bots which could be added to this then ?
Quote from: Defiant on October 04, 2006, 02:42:44 AM
So what was the list of bots which could be added to this then ?
Ermm ... you seems to be confuse about this mod.
The function of this mod is not to add spiders / bots to your site but to inform you in your who's online list when you got a bot / spiders in your site.
The bot / spiders will crawl into your site automatically or when you subscribe to the search engines or directory sites.
If there isn't any bot / spiders crawling in your site. Nothing will show up in ur bots / spiders list on who's online.
Quote from: RoarinRow on September 27, 2006, 03:54:19 PM
Hi Omar,
I know you're busy, but do you know what might be causing this:
I notice that one of my users generate this error message:
8: Undefined index: ob_googlebot_spiders
File: /forum/SSI.php
Line: 758
Anything I can do?
Thanks!
Are you sure you installedit properly, V 2.0.2?
That error is beacuse that strings are not in modifications.english.php
Quote from: FinsandFur on October 03, 2006, 10:46:47 PM
Works like a charm....thank you much for the great Mod. (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.championtannery.com%2Fsmilies%2Fyoyo.gif&hash=4806f98545c822c1f093a230dae5a13860504c7b)
Glad is working :)
Heya,
I'm having a question,
first of all my forum:
1.1 RC3
Theme: DilberMC TP
Tinyportal installed
But I've got an error,
the index does not show any bots or spiders while they also don't show the spiders as guests, so those spiders just does not excist on the index.
At the normal SMF default theme it works fine, but now it just jams.
it does not work with "Display spiders in its own list" ticked or un-ticked
Can ya help me out?
Matthijs
Quote from: Inflame on October 07, 2006, 09:41:00 AM
Heya,
I'm having a question,
first of all my forum:
1.1 RC3
Theme: DilberMC TP
Tinyportal installed
But I've got an error,
the index does not show any bots or spiders while they also don't show the spiders as guests, so those spiders just does not excist on the index.
At the normal SMF default theme it works fine, but now it just jams.
it does not work with "Display spiders in its own list" ticked or un-ticked
Can ya help me out?
Matthijs
You need to manually edit the file if you want the mod to work on other theme :)
yeah, it will only work on default theme
compare your modified boardindex.template.php, with one unmodified to check the sections the mod modified, and do the same with your dilbert theme
Hello Omar
I had asked for help several pages back in unintalling an older version of this mod, and one thing leading to another, didn't get the chance to come back around to trying the uninstall again until today. Your suggestion worked like a charm and I was able to uninstall it, and the install of the latest version was problem free. I just wanted to belatedly say thank you for the help, and for this mod and keeping it up to date for the rest of us. :)
Quote from: ~dragonfly~ on October 07, 2006, 03:13:44 PM
Hello Omar
I had asked for help several pages back in unintalling an older version of this mod, and one thing leading to another, didn't get the chance to come back around to trying the uninstall again until today. Your suggestion worked like a charm and I was able to uninstall it, and the install of the latest version was problem free. I just wanted to belatedly say thank you for the help, and for this mod and keeping it up to date for the rest of us. :)
:) Thanks for stopping to say that :)
Quote from: Omar Bazavilvazo on October 07, 2006, 12:35:37 PM
yeah, it will only work on default theme
compare your modified boardindex.template.php, with one unmodified to check the sections the mod modified, and do the same with your dilbert theme
Thanks it works :D
Hi!
I have installed this mod and now my page is white.
Can enyone tell me why?
I use SMF 1.1 RC3 and I installed Googlebot_v2_0_2_only_smf1.1rcx.zip
Is this wrong?
And hove do I fix this?
Plz help me!
//Micke
Well, since I can't read the future, is a little hard to give yoou a magical fix.
When you installed the mod, did you get any errors?
Also, in the DB, in the table of errors, what do you get?
Quote from: Omar Bazavilvazo on October 13, 2006, 09:02:23 PM
Well, since I can't read the future, is a little hard to give yoou a magical fix.
When you installed the mod, did you get any errors?
Also, in the DB, in the table of errors, what do you get?
Hi!
I did not get eny error in the install.
And in DB I get this:
Error
The additional Features for working with linked Tables have been deactivated. To find out why click here.
And when I click the link:
PMA Database ... not OK[ Documentation ]
General relation features Disabled
Can this error bee the problem?
If you like and have time I can PM the loggin namn and pass to myadmin and to FTP so you can take a look :)
well, the tables where i'm interested for you to give me data is:
smf_log_errors
I'm interested in the message field.
Also, in Settings.php you must have this, to enable debugging:
$db_show_debug = true;
Quote from: Omar Bazavilvazo on October 14, 2006, 06:29:26 AM
well, the tables where i'm interested for you to give me data is:
smf_log_errors
I'm interested in the message field.
Also, in Settings.php you must have this, to enable debugging:
$db_show_debug = true;
My errors:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.bikersite.se%2Ferror.jpg&hash=91b61a744e4cc2615f9d0b0c7ffd3eb135ac696f)
I don't have this line in my settings: $db_show_debug = true;
This is my settings:
<?php
/******************************************************************************
* Settings.php *
*******************************************************************************
* SMF: Simple Machines Forum *
* Open-Source Project Inspired by Zef Hemel ([email protected]) *
* =========================================================================== *
* Software Version: SMF 1.1 RC3 *
* Software by: Simple Machines (http://www.simplemachines.org) *
* Copyright 2001-2006 by: Lewis Media (http://www.lewismedia.com) *
* Support, News, Updates at: http://www.simplemachines.org *
*******************************************************************************
* This program is free software; you may redistribute it and/or modify it *
* under the terms of the provided license as published by Lewis Media. *
* *
* This program is distributed in the hope that it is and will be useful, *
* but WITHOUT ANY WARRANTIES; without even any implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* *
* See the "license.txt" file for details of the Simple Machines license. *
* The latest version can always be found at http://www.simplemachines.org. *
******************************************************************************/
########## Maintenance ##########
# Note: If $maintenance is set to 2, the forum will be unusable! Change it to 0 to fix it.
$maintenance = 0; # Set to 1 to enable Maintenance Mode, 2 to make the forum untouchable. (you'll have to make it 0 again manually!)
$mtitle = 'Maintenance Mode'; # Title for the Maintenance Mode message.
$mmessage = 'Okay faithful users...we\'re attempting to restore an older backup of the database...news will be posted once we\'re back!'; # Description of why the forum is in maintenance mode.
########## Forum Info ##########
$mbname = ''; # The name of your forum.
$language = 'swedish-utf8'; # The default language file set for the forum.
$boardurl = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; # URL to your forum's folder. (without the trailing /!)
$webmaster_email = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; # Email address to send emails from. (like [email protected].)
$cookiename = 'SMFCookie200'; # Name of the cookie to set for authentication.
########## Database Info ##########
$db_server = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
$db_name = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
$db_user = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
$db_passwd = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
$db_prefix = 'smf_';
$db_persist = 0;
$db_error_send = 1;
########## Directories/Files ##########
# Note: These directories do not have to be changed unless you move things.
$boarddir = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; # The absolute path to the forum's folder. (not just '.'!)
$sourcedir = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; # Path to the Sources directory.
########## Error-Catching ##########
# Note: You shouldn't touch these settings.
$db_last_error = 1159458919;
# Make sure the paths are correct... at least try to fix them.
if (!file_exists($boarddir) && file_exists(dirname(__FILE__) . '/agreement.txt'))
$boarddir = dirname(__FILE__);
if (!file_exists($sourcedir) && file_exists($boarddir . '/Sources'))
$sourcedir = $boarddir . '/Sources';
?>
I added xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx where it is info I don't want to show.
hmm
you are still having the blank screen? send me to my PM the url of your site, plz.
also that string you don't have it by default, you must add it.
Hi!
I added it like this, is it right?:
<?php
/******************************************************************************
* Settings.php *
*******************************************************************************
* SMF: Simple Machines Forum *
* Open-Source Project Inspired by Zef Hemel ([email protected]) *
* =========================================================================== *
* Software Version: SMF 1.1 RC3 *
* Software by: Simple Machines (http://www.simplemachines.org) *
* Copyright 2001-2006 by: Lewis Media (http://www.lewismedia.com) *
* Support, News, Updates at: http://www.simplemachines.org *
*******************************************************************************
* This program is free software; you may redistribute it and/or modify it *
* under the terms of the provided license as published by Lewis Media. *
* *
* This program is distributed in the hope that it is and will be useful, *
* but WITHOUT ANY WARRANTIES; without even any implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* *
* See the "license.txt" file for details of the Simple Machines license. *
* The latest version can always be found at http://www.simplemachines.org. *
******************************************************************************/
########## Maintenance ##########
# Note: If $maintenance is set to 2, the forum will be unusable! Change it to 0 to fix it.
$maintenance = 0; # Set to 1 to enable Maintenance Mode, 2 to make the forum untouchable. (you'll have to make it 0 again manually!)
$mtitle = 'Maintenance Mode'; # Title for the Maintenance Mode message.
$mmessage = 'Okay faithful users...we\'re attempting to restore an older backup of the database...news will be posted once we\'re back!'; # Description of why the forum is in maintenance mode.
########## Forum Info ##########
$mbname = ''; # The name of your forum.
$language = 'swedish-utf8'; # The default language file set for the forum.
$boardurl = 'xxxxxxxxxxxxxxxxxxxxxxxxxxx'; # URL to your forum's folder. (without the trailing /!)
$webmaster_email = 'xxxxxxxxxxxxxxxxxxxxxxxxxxx'; # Email address to send emails from. (like [email protected].)
$cookiename = 'SMFCookie200'; # Name of the cookie to set for authentication.
########## Database Info ##########
$db_server = 'xxxxxxxxxxxxxxxxxxxxxxxxxxx';
$db_name = 'xxxxxxxxxxxxxxxxxxxxxxxxxxx';
$db_user = 'xxxxxxxxxxxxxxxxxxxxxxxxxxx';
$db_passwd = 'xxxxxxxxxxxxxxxxxxxxxxxxxxx';
$db_prefix = 'xxxxxxxxxxxxxxxxxxxxxxxxxxx';
$db_persist = 0;
$db_error_send = 1;
$db_show_debug = true;
########## Directories/Files ##########
# Note: These directories do not have to be changed unless you move things.
$boarddir = '/customers/bikersite.se/bikersite.se/httpd.www/forum'; # The absolute path to the forum's folder. (not just '.'!)
$sourcedir = '/customers/bikersite.se/bikersite.se/httpd.www/forum/Sources'; # Path to the Sources directory.
########## Error-Catching ##########
# Note: You shouldn't touch these settings.
$db_last_error = 1159458919;
# Make sure the paths are correct... at least try to fix them.
if (!file_exists($boarddir) && file_exists(dirname(__FILE__) . '/agreement.txt'))
$boarddir = dirname(__FILE__);
if (!file_exists($sourcedir) && file_exists($boarddir . '/Sources'))
$sourcedir = $boarddir . '/Sources';
?>
That don't work.
And what I can see it is 2 lines like that one in index.php, I did what you writed in PM to me, and I tryed remove that lines and it don't work.
This is my index fil:
<?php
/******************************************************************************
* index.php *
*******************************************************************************
* SMF: Simple Machines Forum *
* Open-Source Project Inspired by Zef Hemel ([email protected]) *
* =========================================================================== *
* Software Version: SMF 1.1 RC3 *
* Software by: Simple Machines (http://www.simplemachines.org) *
* Copyright 2001-2006 by: Lewis Media (http://www.lewismedia.com) *
* Support, News, Updates at: http://www.simplemachines.org *
*******************************************************************************
* This program is free software; you may redistribute it and/or modify it *
* under the terms of the provided license as published by Lewis Media. *
* *
* This program is distributed in the hope that it is and will be useful, *
* but WITHOUT ANY WARRANTIES; without even any implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* *
* See the "license.txt" file for details of the Simple Machines license. *
* The latest version can always be found at http://www.simplemachines.org. *
******************************************************************************/
/* This, as you have probably guessed, is the crux on which SMF functions.
Everything should start here, so all the setup and security is done
properly. The most interesting part of this file is the action array in
the smf_main() function. It is formatted as so:
'action-in-url' => array('Source-File.php', 'FunctionToCall'),
Then, you can access the FunctionToCall() function from Source-File.php
with the URL index.php?action=action-in-url. Relatively simple, no?
*/
$forum_version = 'SMF 1.1 RC3';
// Get everything started up...
define('SMF', 1);
@set_magic_quotes_runtime(0);
error_reporting(E_ALL);
$time_start = microtime();
// Load the settings...
require_once(dirname(__FILE__) . '/Settings.php');
// And important includes.
require_once($sourcedir . '/QueryString.php');
require_once($sourcedir . '/Subs.php');
require_once($sourcedir . '/Errors.php');
require_once($sourcedir . '/Load.php');
require_once($sourcedir . '/Security.php');
// Using an old version of PHP?
if (@version_compare(PHP_VERSION, '4.2.3') != 1)
require_once($sourcedir . '/Subs-Compat.php');
// If $maintenance is set specifically to 2, then we're upgrading or something.
if (!empty($maintenance) && $maintenance == 2)
db_fatal_error();
// Connect to the MySQL database.
if (empty($db_persist))
$db_connection = @mysql_connect($db_server, $db_user, $db_passwd);
else
$db_connection = @mysql_pconnect($db_server, $db_user, $db_passwd);
// Show an error if the connection couldn't be made.
if (!$db_connection || !@mysql_select_db($db_name, $db_connection))
db_fatal_error();
// Load the settings from the settings table, and perform operations like optimizing.
reloadSettings();
//Get rid of ?PHPSESSID in the case is a Googlebot any other Spider. Even if is a user (maybe User-Agent extension), will be redirected. Easier this way.
if ($modSettings['ob_googlebot_redirect_phpsessid'] && ob_googlebot_getAgent($_SERVER['HTTP_USER_AGENT'], $spider_name, $agent))
{
$actualurl = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$correcturl = preg_replace('/([?&]PHPSESSID=[^&]*)/', '', $actualurl);
$correcturl = str_replace('index.php&', 'index.php?', $correcturl);
if ($correcturl != $actualurl) {
header("HTTP/1.1 301 Moved Permanently");
header("Location: " . $correcturl);
exit();
}
}
//Get rid of ?PHPSESSID in the case is a Googlebot any other Spider. Even if is a user (maybe User-Agent extension), will be redirected. Easier this way.
if ($modSettings['ob_googlebot_redirect_phpsessid'] && ob_googlebot_getAgent($_SERVER['HTTP_USER_AGENT'], $spider_name, $agent))
{
$actualurl = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$correcturl = preg_replace('/([?&]PHPSESSID=[^&]*)/', '', $actualurl);
$correcturl = str_replace('index.php&', 'index.php?', $correcturl);
if ($correcturl != $actualurl) {
header("HTTP/1.1 301 Moved Permanently");
header("Location: " . $correcturl);
exit();
}
}
// Clean the request variables, add slashes, etc.
cleanRequest();
$context = array();
// Determine if this is using WAP, WAP2, or imode. Technically, we should check that wap comes before application/xhtml or text/html, but this doesn't work in practice as much as it should.
if (isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'application/vnd.wap.xhtml+xml') !== false)
$_REQUEST['wap2'] = 1;
elseif (isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'text/vnd.wap.wml') !== false)
{
if (strpos($_SERVER['HTTP_USER_AGENT'], 'DoCoMo/') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'portalmmm/') !== false)
$_REQUEST['imode'] = 1;
else
$_REQUEST['wap'] = 1;
}
if (!defined('WIRELESS'))
define('WIRELESS', isset($_REQUEST['wap']) || isset($_REQUEST['wap2']) || isset($_REQUEST['imode']));
// Some settings and headers are different for wireless protocols.
if (WIRELESS)
{
define('WIRELESS_PROTOCOL', isset($_REQUEST['wap']) ? 'wap' : (isset($_REQUEST['wap2']) ? 'wap2' : (isset($_REQUEST['imode']) ? 'imode' : '')));
// Some cellphones can't handle output compression...
$modSettings['enableCompressedOutput'] = '0';
// !!! Do we want these hard coded?
$modSettings['defaultMaxMessages'] = 5;
$modSettings['defaultMaxTopics'] = 9;
// Wireless protocol header.
if (WIRELESS_PROTOCOL == 'wap')
header('Content-Type: text/vnd.wap.wml');
}
// Check if compressed output is enabled, supported, and not already being done.
if (!empty($modSettings['enableCompressedOutput']) && !headers_sent() && ob_get_length() == 0)
{
// If zlib is being used, turn off output compression.
if (@ini_get('zlib.output_compression') == '1' || @ini_get('output_handler') == 'ob_gzhandler' || @version_compare(PHP_VERSION, '4.2.0') == -1)
$modSettings['enableCompressedOutput'] = '0';
else
ob_start('ob_gzhandler');
}
// This makes it so headers can be sent!
if (empty($modSettings['enableCompressedOutput']))
ob_start();
// Register an error handler.
set_error_handler('error_handler');
// Start the session. (assuming it hasn't already been.)
loadSession();
// What function shall we execute? (done like this for memory's sake.)
call_user_func(smf_main());
// Call obExit specially; we're coming from the main area ;).
obExit(null, null, true);
// The main controlling function.
function smf_main()
{
global $modSettings, $settings, $user_info, $board, $topic, $maintenance, $sourcedir;
// Special case: session keep-alive.
if (isset($_GET['action']) && $_GET['action'] == 'keepalive')
die;
// Load the user's cookie (or set as guest) and load their settings.
loadUserSettings();
// Load the current board's information.
loadBoard();
// Load the current theme. (note that ?theme=1 will also work, may be used for guest theming.)
loadTheme();
// Check if the user should be disallowed access.
is_not_banned();
// Load the current user's permissions.
loadPermissions();
// Do some logging, unless this is an attachment, avatar, theme option or XML feed.
if (empty($_REQUEST['action']) || !in_array($_REQUEST['action'], array('dlattach', 'jsoption', '.xml')))
{
// Log this user as online.
writeLog();
// Track forum statistics and hits...?
if (!empty($modSettings['hitStats']))
trackStats(array('hits' => '+'));
}
// Is the forum in maintenance mode? (doesn't apply to administrators.)
if (!empty($maintenance) && !allowedTo('admin_forum'))
{
// You can only login.... otherwise, you're getting the "maintenance mode" display.
if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'login2')
{
require_once($sourcedir . '/LogInOut.php');
return 'Login2';
}
// Don't even try it, sonny.
else
{
require_once($sourcedir . '/Subs-Auth.php');
return 'InMaintenance';
}
}
// If guest access is off, a guest can only do one of the very few following actions.
elseif (empty($modSettings['allow_guestAccess']) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('login', 'login2', 'register', 'register2', 'reminder', 'activate', 'smstats', 'help', '.xml', 'verificationcode'))))
{
require_once($sourcedir . '/Subs-Auth.php');
return 'KickGuest';
}
elseif (empty($_REQUEST['action']))
{
// Action and board are both empty... BoardIndex!
if (empty($board) && empty($topic))
{
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';
}
// Topic is empty, and action is empty.... MessageIndex!
elseif (empty($topic))
{
require_once($sourcedir . '/MessageIndex.php');
return 'MessageIndex';
}
// Board is not empty... topic is not empty... action is empty.. Display!
else
{
require_once($sourcedir . '/Display.php');
return 'Display';
}
}
// Here's the monstrous $_REQUEST['action'] array - $_REQUEST['action'] => array($file, $function).
$actionArray = array(
'activate' => array('Register.php', 'Activate'),
'admin' => array('Admin.php', 'Admin'),
'announce' => array('Post.php', 'AnnounceTopic'),
'ban' => array('ManageBans.php', 'Ban'),
'boardrecount' => array('Admin.php', 'AdminBoardRecount'),
'buddy' => array('Subs-Members.php', 'BuddyListToggle'),
'calendar' => array('Calendar.php', 'CalendarMain'),
'cleanperms' => array('Admin.php', 'CleanupPermissions'),
'collapse' => array('Subs-Boards.php', 'CollapseCategory'),
'convertentities' => array('Admin.php', 'ConvertEntities'),
'convertutf8' => array('Admin.php', 'ConvertUtf8'),
'coppa' => array('Register.php', 'CoppaForm'),
'deletemsg' => array('RemoveTopic.php', 'DeleteMessage'),
'detailedversion' => array('Admin.php', 'VersionDetail'),
'display' => array('Display.php', 'Display'),
'dlattach' => array('Display.php', 'Download'),
'dumpdb' => array('DumpDatabase.php', 'DumpDatabase2'),
'editpoll' => array('Poll.php', 'EditPoll'),
'editpoll2' => array('Poll.php', 'EditPoll2'),
'featuresettings' => array('ModSettings.php', 'ModifyFeatureSettings'),
'featuresettings2' => array('ModSettings.php', 'ModifyFeatureSettings2'),
'findmember' => array('Subs-Auth.php', 'JSMembers'),
'help' => array('Help.php', 'ShowHelp'),
'helpadmin' => array('Help.php', 'ShowAdminHelp'),
'im' => array('PersonalMessage.php', 'MessageMain'),
'jsoption' => array('Themes.php', 'SetJavaScript'),
'jsmodify' => array('Post.php', 'JavaScriptModify'),
'lock' => array('LockTopic.php', 'LockTopic'),
'lockVoting' => array('Poll.php', 'LockVoting'),
'login' => array('LogInOut.php', 'Login'),
'login2' => array('LogInOut.php', 'Login2'),
'logout' => array('LogInOut.php', 'Logout'),
'maintain' => array('Admin.php', 'Maintenance'),
'manageattachments' => array('ManageAttachments.php', 'ManageAttachments'),
'manageboards' => array('ManageBoards.php', 'ManageBoards'),
'managecalendar' => array('ManageCalendar.php', 'ManageCalendar'),
'managesearch' => array('ManageSearch.php', 'ManageSearch'),
'markasread' => array('Subs-Boards.php', 'MarkRead'),
'membergroups' => array('ManageMembergroups.php', 'ModifyMembergroups'),
'mergetopics' => array('SplitTopics.php', 'MergeTopics'),
'mlist' => array('Memberlist.php', 'Memberlist'),
'modifycat' => array('ManageBoards.php', 'ModifyCat'),
'modifykarma' => array('Karma.php', 'ModifyKarma'),
'modlog' => array('Modlog.php', 'ViewModlog'),
'movetopic' => array('MoveTopic.php', 'MoveTopic'),
'movetopic2' => array('MoveTopic.php', 'MoveTopic2'),
'news' => array('ManageNews.php', 'ManageNews'),
'notify' => array('Notify.php', 'Notify'),
'notifyboard' => array('Notify.php', 'BoardNotify'),
'optimizetables' => array('Admin.php', 'OptimizeTables'),
'packageget' => array('PackageGet.php', 'PackageGet'),
'packages' => array('Packages.php', 'Packages'),
'permissions' => array('ManagePermissions.php', 'ModifyPermissions'),
'pgdownload' => array('PackageGet.php', 'PackageGet'),
'pm' => array('PersonalMessage.php', 'MessageMain'),
'post' => array('Post.php', 'Post'),
'post2' => array('Post.php', 'Post2'),
'postsettings' => array('ManagePosts.php', 'ManagePostSettings'),
'printpage' => array('Printpage.php', 'PrintTopic'),
'profile' => array('Profile.php', 'ModifyProfile'),
'profile2' => array('Profile.php', 'ModifyProfile2'),
'quotefast' => array('Post.php', 'QuoteFast'),
'quickmod' => array('Subs-Boards.php', 'QuickModeration'),
'quickmod2' => array('Subs-Boards.php', 'QuickModeration2'),
'recent' => array('Recent.php', 'RecentPosts'),
'regcenter' => array('ManageRegistration.php', 'RegCenter'),
'register' => array('Register.php', 'Register'),
'register2' => array('Register.php', 'Register2'),
'reminder' => array('Reminder.php', 'RemindMe'),
'removetopic2' => array('RemoveTopic.php', 'RemoveTopic2'),
'removeoldtopics2' => array('RemoveTopic.php', 'RemoveOldTopics2'),
'removepoll' => array('Poll.php', 'RemovePoll'),
'repairboards' => array('RepairBoards.php', 'RepairBoards'),
'reporttm' => array('SendTopic.php', 'ReportToModerator'),
'reports' => array('Reports.php', 'ReportsMain'),
'requestmembers' => array('Subs-Auth.php', 'RequestMembers'),
'search' => array('Search.php', 'PlushSearch1'),
'search2' => array('Search.php', 'PlushSearch2'),
'sendtopic' => array('SendTopic.php', 'SendTopic'),
'serversettings' => array('ManageServer.php', 'ModifySettings'),
'serversettings2' => array('ManageServer.php', 'ModifySettings2'),
'smileys' => array('ManageSmileys.php', 'ManageSmileys'),
'smstats' => array('Stats.php', 'SMStats'),
'spellcheck' => array('Subs-Post.php', 'SpellCheck'),
'splittopics' => array('SplitTopics.php', 'SplitTopics'),
'stats' => array('Stats.php', 'DisplayStats'),
'sticky' => array('LockTopic.php', 'Sticky'),
'theme' => array('Themes.php', 'ThemesMain'),
'trackip' => array('Profile.php', 'trackIP'),
'about:mozilla' => array('Karma.php', 'BookOfUnknown'),
'about:unknown' => array('Karma.php', 'BookOfUnknown'),
'unread' => array('Recent.php', 'UnreadTopics'),
'unreadreplies' => array('Recent.php', 'UnreadTopics'),
'viewErrorLog' => array('ManageErrors.php', 'ViewErrorLog'),
'viewmembers' => array('ManageMembers.php', 'ViewMembers'),
'viewprofile' => array('Profile.php', 'ModifyProfile'),
'verificationcode' => array('Verification.php', 'VerificationCode'),
'vote' => array('Poll.php', 'Vote'),
'viewquery' => array('ViewQuery.php', 'ViewQuery'),
'who' => array('Who.php', 'Who'),
'.xml' => array('News.php', 'ShowXmlFeed'),
);
// Get the function and file to include - if it's not there, do the board index.
if (!isset($_REQUEST['action']) || !isset($actionArray[$_REQUEST['action']]))
{
// Catch the action with the theme?
if (!empty($settings['catch_action']))
{
require_once($sourcedir . '/Themes.php');
return 'WrapAction';
}
// Fall through to the board index then...
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';
}
// Otherwise, it was set - so let's go to that action.
require_once($sourcedir . '/' . $actionArray[$_REQUEST['action']][0]);
return $actionArray[$_REQUEST['action']][1];
}
?>
If it is 2 lines like that one you writed in PM to me in index.php, can there bee 2 lines in all files that Googlebot & Spiders installed?
Can you see eny wrong whit this file?
plz also comment this lines
//Get rid of ?PHPSESSID in the case is a Googlebot any other Spider. Even if is a user (maybe User-Agent extension), will be redirected. Easier this way.
if ($modSettings['ob_googlebot_redirect_phpsessid'] && ob_googlebot_getAgent($_SERVER['HTTP_USER_AGENT'], $spider_name, $agent))
{
$actualurl = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$correcturl = preg_replace('/([?&]PHPSESSID=[^&]*)/', '', $actualurl);
$correcturl = str_replace('index.php&', 'index.php?', $correcturl);
if ($correcturl != $actualurl) {
header("HTTP/1.1 301 Moved Permanently");
header("Location: " . $correcturl);
exit();
}
}
also, if it doesn't works, backup and replace with a clean index.php, since is taking quite a time, and your forum is offline :)
Nothing that you writed works for me.
So I did this:
I replaced the whole "forum" and "MKportal" map's on my site whit backup that I made a week ago.
And then my site works again. =)
I don't think I install this Mod on my site.
Thanks for your help on this problem my friend!
Have a nice day!
//Micke
yup, bad it didn't work, but i'm glad you had backups :)
Next time (any mod) try installing on a backup or local, before :)
Yes I will do that!
Thx my friend for your help!
//Micke
Since the bot was installed on mine 1.1 RC3 installed 4th Oct the date has stayed 4th Oct but the time changes ?
Quote from: Defiant on October 17, 2006, 04:50:39 AM
Since the bot was installed on mine 1.1 RC3 installed 4th Oct the date has stayed 4th Oct but the time changes ?
that has nothing to do with the mod. the mod, in no way modifies that information
Quote from: Omar Bazavilvazo on October 17, 2006, 06:19:45 AM
Quote from: Defiant on October 17, 2006, 04:50:39 AM
Since the bot was installed on mine 1.1 RC3 installed 4th Oct the date has stayed 4th Oct but the time changes ?
that has nothing to do with the mod. the mod, in no way modifies that information
Well how do the bots keep going back in time to the 4th of October at different times ?
Example
QuoteGoogle visited last this page October 04, 2006, 03:07:35 AM
SMF 1.1 RC3 & TP 0.9.5 - Installed on a test forum and a production forum... same mods on both instances...
Ok so I figured I'd try this mod... anyway I installed it on both my production forum and my test forum... and I have bots / spiders visit both and this is all I see... whats going on bec the test installs went successful and I can manage permissions and the settings for what it does or doesnt show butthis is all I get on he main index page wtf... keeping in mind the "guest" is a yahoo spider but I dont have a spider field with the yahoo bot in it...
Edit : Yes I AM using the default theme to test this before I edit my custom theme files...
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fuotc.freeyellow.com%2Fnospiderfield.gif&hash=008814bbaa6ac416b348cc966cc7a034aced11b6)
You need to add code in your TPortalBlocks.template.php in order to get them listed in the statsblock
find
echo '<br />'.$bullet.$txt['tp-hidden'].': '.$online['hidden'];
echo '<br />'.$bullet.$txt['tp-buddies'].': '.$online['buddies'];
echo '<br />'.$bullet.$txt['tp-guests'].': '.$online['guests'];
add after
echo '<br />'.$bullet.$txt['Spiders'].': '.$online['num_spiders'];
And in your Tportal.english.php add this text
$txt['Spiders']= 'Spiders';
Quote from: Mrs G6 on October 22, 2006, 12:14:36 PM
You need to add code in your TPortalBlocks.template.php in order to get them listed in the statsblock
find
echo '<br />'.$bullet.$txt['tp-hidden'].': '.$online['hidden'];
echo '<br />'.$bullet.$txt['tp-buddies'].': '.$online['buddies'];
echo '<br />'.$bullet.$txt['tp-guests'].': '.$online['guests'];
add after
echo '<br />'.$bullet.$txt['Spiders'].': '.$online['num_spiders'];
This might be due to me not sleeping in over 24 hrs but where is the file bec i cant find it lol... its not in sources or ne thin else i looked in keepin in mind yes i could have missed it which i obviously am lol
Edit : nm found it...
I added the code and this is all I get... weird...
Edit : went back and check looks liked iforgot the english code line... ill do that then get back to u to say if it worked hehe...
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fuotc.freeyellow.com%2Fhuh.gif&hash=88e0f6a5ba86201e1d15d86c7784e681544bd2de)
Worked like a charm... thx.. now I just need to figure out the who.tempate.php (http://www.simplemachines.org/community/index.php?topic=19243.0) thing to get it to split em up in whos online... I cant use the attached file bec my whotemplate has existing mods... so i gotta "try" to do this by hand ;-/ ... got me a little lost the way its explained **sighs**
Get a program called "Winmerge" It is a file comparison software. This will make it easy for you to edit.
Has anyone integrated this with Bloc's Helios multi theme?
I have the mod installed, but need to alter the Helios files to get it to display on the main page.
Yeah I know I can manually change the files myself, but if anyone's already done it I'd appreciate it.
NM, think I've sorted it now..
Ok... I got this installed :-
- SMF 1.1RC3 + TinyPortal + SMF+G2 Bridge and Aero97 themes
So, Am I right if i want to display the google/spiders on :-
1) Forum
- compare pre-modified BoardIndex.template and modified BoardIndex.template of default theme
- Add this to my Aero97 theme BoardIndex.template ?
2) Portal Stats box
- Modified the TPortalBlocks.template.php ?
Thanks for the help.
1 = Yes
2= Yes :)
Ok... I have make the modification and maybe i attached the file for those interested.
Aero97 Themes
- BoardIndex.template.php ( TP 0.95 + SMF 1.1RC3 + G2 )
1. Look for
if ($context['show_who'])
echo '
<a href="', $scripturl, '?action=who">';
Insert this after the above :-
echo (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['user'] ;
2. Look for this
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);
Insert this after the above :-
if (!empty($context['spiders']))
{
if ($modSettings['ob_googlebot_display_own_list'])
echo '
<br />
', $txt['ob_googlebot_spiders_last_active'], ':<br />';
else
{
if (empty($context['users_online']))
echo '
', $txt[140], ':<br />';
else
echo ', ';
}
echo implode(', ', $context['spiders']);
}
I'm getting this reply when I try to install: SMF1.0.8 (patch to 1.0.9)
Install Actions for archive Googlebot_v2_0_2_only_smf1.1rcx.zip:
Installing this package will perform the following actions: Type Action Description
1. Execute Modification ./index.php Success
2. Execute Modification ./SSI.php Success
3. Execute Modification ./Sources/BoardIndex.php Success
4. Execute Modification ./Sources/ManagePermissions.php Success
5. Execute Modification ./Sources/ModSettings.php Failure
6. Execute Modification ./Sources/Subs.php Success
7. Execute Modification ./Themes/default/languages/Modifications.english.php Success
8. Execute Modification ./Themes/default/languages/Modifications.spanish.php Success
9. Execute Modification ./Themes/default/index.template.php Success
10. Execute Modification ./Themes/default/BoardIndex.template.php Success
11. Execute Code
Any suggestions please
try manually modifying it
Quote from: DemonicInfluence on November 11, 2006, 08:20:43 AM
try manually modifying it
I'm also getting the same error..How do i manually modify it? and what to modify?
by looking at the edits in the file... Then, download the file and edit according to the edits.
This should help : http://www.simplemachines.org/community/index.php?topic=34526.0
so I upgraded to RC3 with T P0.9.6. I installed the mod for this new version and I don't see any difference. I checked all the boxes in admin settings but unlike 1.0.9, it doesn't show up in who's online or anywhere that I can tell. It installed through package manager successfully. Is there something I'm missing?
If you are using any theme other than the default then you will have to do any edits to that theme for the mod to work.
Quote from: jessicac on November 15, 2006, 09:40:15 AM
so I upgraded to RC3 with T P0.9.6. I installed the mod for this new version and I don't see any difference. I checked all the boxes in admin settings but unlike 1.0.9, it doesn't show up in who's online or anywhere that I can tell. It installed through package manager successfully. Is there something I'm missing?
Quote from: jessicac on November 15, 2006, 09:40:15 AM
so I upgraded to RC3 with T P0.9.6. I installed the mod for this new version and I don't see any difference. I checked all the boxes in admin settings but unlike 1.0.9, it doesn't show up in who's online or anywhere that I can tell. It installed through package manager successfully. Is there something I'm missing?
I'm having the same problem. I don't use default theme. What exactly I have to do to make it useable on another theme?
I am using the default SMF theme.
hello ev'rybody,
I've just installed Googlebot& spaidr mod, everything ran wall on my smf 1.1RC3 bridged with Joomla! 1.0.11. The fact is I cannot find where to configure themod, can't find the settings. When I go to explore packages, I see it, but I can only uninstall, list files, or remove.
thanks!
Admin Panel> Features and Options > then you should have some links like this:
Basic Features | Layout and Options | Googlebot & Spiders | Karma
Has anyone figured out how have it work on another theme?
Quote from: gamer6969 on November 19, 2006, 12:43:05 AM
Has anyone figured out how have it work on another theme?
Get ur answer HERE (http://www.simplemachines.org/community/index.php?topic=34526.0)
I installed the mod on RC3 default theme and had no problems..
But i still cannot see the mod in action... I checked all options in the admin section for Google Bot and Spiders and nothing changes on my main page (www.multimontreal.com).. I have yahoo slurping my page every 10 mins or so but it doesn't show with the mod..
Any ideas ?
I've been trying to install this all night on 1.0.9 and I'm still having some problems. I have to manually install the ModSettings.php and Index.Template.php files because I'm using the classic theme. It appears that I've done the install correctly, but then when I look at the guests, users on the homepage it always lists the guests as 1 and the users correctly. I'm not sure what's going wrong here. Can anyone point me in the right direction?
Ok I'm really desperate to get this mod working !
I installed it and I had no errors.
And all my Permissions are set to "View Googlebot & Spiders" !
In Features and Options ---> Googlebot & Spiders , I have everything checked !
When I go to my main page www.multimontreal.com, it's like the mod didn't even exist ! I don't see any change :(
Anyone ?
Are you using a custom theme or the default theme. ??? If you are using a custom theme you must do the edits to that theme manually as modification packages only install to the default theme.
I'm using the default theme (www.multimontreal.com)
Maybe you just have to wait for the spiders to come.
I'm not sure if I'm posting this in the right spot but when I upgraded my TP from 0.9.5 to 0.9.6 it got rid of the "spiders" thing in the users online list on my main index page of both my main forum and my sub forum ( I have two forum installs for diff games) and I dunno how to fix it... see pic below to see what is missing , although it isnt in the pic...
Edit : the whos online list seems to be fine as far as I can tell it just messed the " spiders " thing up...
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fuotc.freeyellow.com%2Fmissingspiders.jpg&hash=7a3b7b137b911ff0d417ad527b2322d853edd219)
Is it possible to get this mod work with RC3 and UTF8?
QuoteExcellent Mod, used it before in RC2. However now moved to RC3 and implements UTF8, this mod falls over.
Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='
File: C:\RootWWW\htdocs\midlandrocketry\Sources\Subs.php
Line: 3367
I change the collation in the db for table smf_ob_googlebot_stat
Thanks for the mod. I installed it on smf 1.0.9. I don't use the default theme. The installation went fine. I manually modified the index.template.php file. i removed the if statement & directly echoed the line that prints google last visited this page. I saw strange results. when i logged out it showed the correct time when google last visited my forums. but when i was logged in it showed some time in 1970. My forum error log said undefined symbol about a variable. then i reinserted the if statement & now there are no views of when google visited either logged in or out. Kindly help
I have spiders slurping my site every 10 mins..
I don't even see the Green logo that everyone has in here...
:(
OK never mind !!
Works great :D
google visits on my site everday but it says "Google visited last this page September 25, 2006, 11:09:36 AM".... how can i fix this? ???
Umm... I have SMF 1.0.9 and I am getting problems installing the Googlebot Spider mod. I get a fatal error on the screen after typing in (www.mydomain.com/forum/install.php)
You should be installing it via the package manager in your admin panel.
Ah I see, cheers. But I have encountered another problem after clicking on "Apply mod" option.
I get:
Quote
2: file_put_contents() [<a href='function.file-put-contents'>function.file-put-contents</a>]: SAFE MODE Restriction in effect. The script whose uid/gid is 16484/16484 is not allowed to access /myurl/forums/Packages/temp owned by uid/gid 99/99
File: /myurl/Subs-Package.php
Line: 455
I don't know what this means. Could mean that the mod isn't compatible with SMF 1.0.9 at all.
You will have to talk to your host about that one. It looks like safe mode has been enabled on the server.
No probs. I have just solved that one :). Now that I've installed this MOD, I get this:
Quote
Type Action Description
1. Execute Modification ./index.php Success
2. Execute Modification ./SSI.php Success
3. Execute Modification ./Sources/BoardIndex.php Success
4. Execute Modification ./Sources/ManagePermissions.php Success
5. Execute Modification ./Sources/ModSettings.php Success
6. Execute Modification ./Sources/Subs.php Success
7. Execute Modification ./Themes/default/languages/Modifications.english.php Success
8. Execute Modification ./Themes/default/languages/Modifications.spanish.php Success
9. Execute Modification ./Themes/default/index.template.php Success
10. Execute Modification ./Themes/default/BoardIndex.template.php Success
11. Execute Code install.php
This seems all good, but I can't seem to find any spider settings in the permissions. The only difference I see is the user online list as I have installed the who.template.php MOD seperately.
If your using a custom theme instead of the default one youll need to modify your custom theme files to make the mod work...
Nope, it's the default theme.
Quote from: Lothos Von Omega on November 28, 2006, 03:38:29 PM
Nope, it's the default theme.
Well then it should be working / showing... go into admin click features & options and see if theres a " Googlebot & Spiders " link... if so click that it should open up all the admin options for the mod... if you have it installed on the default theme and are using the default theme then I dont see how it could not be working unless you have it installed on a SMF version its not made for...
Well, my version is SMF 1.0.9, and as these spider settings are not there, that has got to mean that the MOD isn't compatible with 1.0.9, although no errors were displayed after a successful installation as it claimed.
This is all there is still:
Basic Forum Features
Layout and Options
Search
Avatars
Attachments
Karma
Calendar
Well, I'm at somewhat of a loss then bec after you click features and options there should be a googlebot & spiders link at the top of the page "not on the side"... so if its not showing then its can only be one of two things...
1. Not compatible with your SMF version...
2. Something went wrong in the install even though its not showing as an error...
You could try upgrading to 1.1RC3 as thats what I'm using and everythings working just fine for me...
Edit : I just looked at the mod page and it says its compatible ith 1.0.6 , 1.0.8 , 1.1 RC2 , 1.1 RC3
I dont see 1.0.9 in there but it should still work... so long as you downloaded one of the 1.0.x versions... and not one of the 1.1 versions... but still you should upgrade to 1.1 RC3 so long as your confortbale running a forum on software thats not final... but so far ive no issue runnin 1.1 RC3 with any of the 13 mods I have installed one of which is this mod...
Upgrading could be dodgy, I could lose all posts made. (Sorry to go off-topic)
Quote from: Lothos Von Omega on November 28, 2006, 04:48:38 PM
Upgrading could be dodgy, I could lose all posts made. (Sorry to go off-topic)
So long as you use the upgrade version of the RC3 software you shouldnt lose anything just make a backup of all your files and databases... an if something does go wrong which i shouldnt then your fine.. but if something did go wrong you just install all the backups you made and your good to go... either way youve nothing to lsoe but what half an hr of time...
I tried but the upgrade failed. I give up and will give up trying to get the spider Mod to work.
Dont give up yet man it really is great mod... just wait til someone whos knows about coding or whatever to come and help better than I could...
Can anyone tell me how to manually install THIS mod? I have successfully manually installed other mods, so I don't need generic instructions. I can't install this mod for the life of me. When I think I have it installed (I see the permissions) I go and check and it shows that I only have 1 guest viewing the site, but in reality there's several others. If those guests happen to be spiders, then it's not properly displaying the spiders.
I'm using version 1.0.9 with the Classic theme. Any help would be appreciated.
Quote from: MoreBloodWine on November 28, 2006, 05:32:41 PM
Dont give up yet man it really is great mod... just wait til someone whos knows about coding or whatever to come and help better than I could...
Now that my MySQL database has now been ruined, I can no longer access my board. I will have to delete the board and install a later version as the upgrade has caused database damage.
Well , I did suggest that before you upgrade / attempted to upgrade that you backup all files and databases... but I am sorry something went wrong...
I did back it up, but it fails also. I have lost the whole board. Re-installation fails. I am going back to Invision. That mod is dangerous.
Gettin' ready for 1.1 Final?
;D what a great mod. I've got it too work with a theme I'm using (called Pn-Pn (for 1.1 RC3) by koni). Anyway to get it to work is easy, you will need to modify three files:
- yourtheme/index.template.php
- yourtheme/BoardIndex.template.php
- yourtheme/languages/Modifications.english(or what ever).php
Backup those three files first into a backup directory on your hard disk, just incase the mod does not work, at least you have a backup original copy.
Now open (if you have not already un-zipped the files into a directory on your hard disk) install.xml.
Look for the following lines:
- <file name="$languagedir/Modifications.english.php">
- <file name="$themedir/index.template.php">
- <file name="$themedir/BoardIndex.template.php">
And look what lines need to be edited in each file. Don't worry, they are not many and with a quick copy and paste into the search box you can then find each line very easily.
Open each file and modify to what the install.xml file says.
Now upload each file to it's directory for the theme your using, login to admin in your forum, go to "Features and Options" and you should now see the link for this mod.
Hope this helps everyone,
spence
Thanks Spence. I've tried modifying to what the install.xml file says and I must not understand what it's trying to say because it doesn't work afterward. As I've said, I have successfully manually installed several mods, but this one baffles me. Can anyone spell out what I need to find and replace, or add to?
This is a great mod. I love it! But is there any way to add the spiders and bots to a member group? I have all my forums setup so you have to login to view the content so the spiders can only list the forum title but no threads without being in the members group.
hi friends,
sorry, i want to remove this mod of my forum, but i can't do it.
please help me ...
Quote from: justafishermen on December 02, 2006, 11:00:33 AM
This is a great mod. I love it! But is there any way to add the spiders and bots to a member group? I have all my forums setup so you have to login to view the content so the spiders can only list the forum title but no threads without being in the members group.
No one knows if this is possible?
Quote from: spence_noodle on November 29, 2006, 02:33:14 PM
;D what a great mod. I've got it too work with a theme I'm using (called Pn-Pn (for 1.1 RC3) by koni). Anyway to get it to work is easy, you will need to modify three files:
- yourtheme/index.template.php
- yourtheme/BoardIndex.template.php
- yourtheme/languages/Modifications.english(or what ever).php
Backup those three files first into a backup directory on your hard disk, just incase the mod does not work, at least you have a backup original copy.
Now open (if you have not already un-zipped the files into a directory on your hard disk) install.xml.
Look for the following lines:
- <file name="$languagedir/Modifications.english.php">
- <file name="$themedir/index.template.php">
- <file name="$themedir/BoardIndex.template.php">
And look what lines need to be edited in each file. Don't worry, they are not many and with a quick copy and paste into the search box you can then find each line very easily.
Open each file and modify to what the install.xml file says.
Now upload each file to it's directory for the theme your using, login to admin in your forum, go to "Features and Options" and you should now see the link for this mod.
Hope this helps everyone,
spence
How about you update the mod for us.
It might be able to be done but I think it would take a alot of work. On the other hand in order to be put into a membergroup you have to be registered which bots can't do so maybe it's not possible.
Quote from: justafishermen on December 03, 2006, 05:39:54 PM
Quote from: justafishermen on December 02, 2006, 11:00:33 AM
This is a great mod. I love it! But is there any way to add the spiders and bots to a member group? I have all my forums setup so you have to login to view the content so the spiders can only list the forum title but no threads without being in the members group.
No one knows if this is possible?
QuoteOpen each file and modify to what the install.xml file says.
If you don't understand the install.xml file, upload it to http://server.daniel15.com/smf_xml/modification.php?action=file . This will parse the XML file, and show you exactly what you need to do :)
Also, is this MOD compatible with SMF 1.1 yet? I may try it out later.
When is this great mod upgraded to SMF 1.1 Final boards?
I installed it on !.! final no problems. The only glitch is the settings won't update the database, so you have to alter them manually in the database. It doesn't throw up any errors, and seems to work fine...
Excellent mod... well done..
I have one minor glitch.. (I think)
I use TinyPortal mod aswell.. so at the bottom of the page I should have:
Users: 1
Guests: 1
Total: 2
But no "Spiders: ?"
See attached screenshot.
How can I fix it ?
Check out tinyportal website on how to add that to that block
Quote from: Bigguy on December 07, 2006, 04:56:30 PM
Check out tinyportal website on how to add that to that block
OK thanks.
Tiny Portal 0.9.7 was released today. Hopefully, this mod will be compatible with the new version and 1.1 Final :)
Quote from: Witte on December 07, 2006, 04:24:35 AM
I installed it on !.! final no problems. The only glitch is the settings won't update the database, so you have to alter them manually in the database. It doesn't throw up any errors, and seems to work fine...
Which settings in the database? What did you need to change? Where?
Thanks!
Quote from: RoarinRow on December 08, 2006, 01:29:36 PM
Tiny Portal 0.9.7 was released today. Hopefully, this mod will be compatible with the new version and 1.1 Final :)
It works in 1.1 and tp 0.9.7...have it installed and running.. :D
Quote from: nite0859 on December 09, 2006, 03:02:27 PM
Quote from: Witte on December 07, 2006, 04:24:35 AM
I installed it on !.! final no problems. The only glitch is the settings won't update the database, so you have to alter them manually in the database. It doesn't throw up any errors, and seems to work fine...
Which settings in the database? What did you need to change? Where?
Thanks!
The settings in smf_settings ::
ob_googlebot_display_all_instances 1
ob_googlebot_count_all_instances 1
ob_googlebot_display_agent 0
ob_googlebot_display_own_list 1
ob_googlebot_count_most_online 1
ob_googlebot_redirect_phpsessid 1
ob_googlebot_stats 1
I have to do them manually to change them, if I do it from the admin in SMF, it doesn't do it, and it also resets the PM options...
Quote from: Witte on December 09, 2006, 03:12:05 PM
Quote from: RoarinRow on December 08, 2006, 01:29:36 PM
Tiny Portal 0.9.7 was released today. Hopefully, this mod will be compatible with the new version and 1.1 Final :)
It works in 1.1 and tp 0.9.7...have it installed and running.. :D
Quote from: nite0859 on December 09, 2006, 03:02:27 PM
Quote from: Witte on December 07, 2006, 04:24:35 AM
I installed it on !.! final no problems. The only glitch is the settings won't update the database, so you have to alter them manually in the database. It doesn't throw up any errors, and seems to work fine...
Which settings in the database? What did you need to change? Where?
Thanks!
The settings in smf_settings ::
ob_googlebot_display_all_instances 1
ob_googlebot_count_all_instances 1
ob_googlebot_display_agent 0
ob_googlebot_display_own_list 1
ob_googlebot_count_most_online 1
ob_googlebot_redirect_phpsessid 1
ob_googlebot_stats 1
I have to do them manually to change them, if I do it from the admin in SMF, it doesn't do it, and it also resets the PM options...
Where are you getting those variables, 1 and 0?
These are the columns I see in the database:
agent board topic url lastvisit frequency visits timestamp
phpmyadmin/smf_database?/smf_settings/browse/ (Near the end...) You can alter the variables, either 1 or 0, true or false... ;D
But in my installation I can't change these variables via the admin cp...
So is this good with 1.1 final yet or not? ???
Quote from: Skipdawg on December 11, 2006, 01:34:11 PM
So is this good with 1.1 final yet or not? ???
I didn't try the fix that Witte posted above. I'm scared lol :D
Quote from: RoarinRow on December 11, 2006, 01:47:12 PM
Quote from: Skipdawg on December 11, 2006, 01:34:11 PM
So is this good with 1.1 final yet or not? ???
I didn't try the fix that Witte posted above. I'm scared lol :D
Hahaha, I did install on my 1.1 and no install problems. 8)
Update Update Update for 1.1?
Quote from: rockinaway on December 12, 2006, 12:54:37 PM
Update Update Update for 1.1?
Last version works fine on my 1.1 so far 8)
Quote from: RoarinRow on December 12, 2006, 01:50:44 PM
Quote from: rockinaway on December 12, 2006, 12:54:37 PM
Update Update Update for 1.1?
Last version works fine on my 1.1 so far 8)
Can you change the settings via Admin cp? and did it alter anything in the new pm settings? ie the visual verification, and the number of pm's can be sent at once etc?
Quote from: RoarinRow on December 12, 2006, 01:50:44 PM
Quote from: rockinaway on December 12, 2006, 12:54:37 PM
Update Update Update for 1.1?
Last version works fine on my 1.1 so far 8)
I can confirm this. I can even see when Google last visited my page.
Quote from: nite0859 on December 12, 2006, 05:50:12 PM
Quote from: RoarinRow on December 12, 2006, 01:50:44 PM
Quote from: rockinaway on December 12, 2006, 12:54:37 PM
Update Update Update for 1.1?
Last version works fine on my 1.1 so far 8)
I can confirm this. I can even see when Google last visited my page.
Could you try to change the options in the admin panel? cos I can't, makes you think it has worked, but it actually doesn't update the db...maybe it's just my installation...
no i got the same thing, it works of my test forums which have no mods but when i go to my massive forums with lots of mods it doesnt work :(
Quote from: robotman321 on December 12, 2006, 07:05:17 PM
no i got the same thing, it works of my test forums which have no mods but when i go to my massive forums with lots of mods it doesnt work :(
Well, a temporary fix, if you dare, is to change the settings yourself in phpmyadmin (If you are not happy with the defaults...or change the install file itself before you install it). I did it, and haven't had any bad results, so at your own risk of course....until a proper fix comes along...
any ideas how to fix it?
Latest Version: 2.0.2 is working fine with 1.1 final yes or no? ???
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.
Yesterday, I installed this mod on a german SMF 1.1 (Final) Board.
I got various error messages (not during the installation) in the error log.
I thought this is "normal" and cleaned the log. Today I reviewed the error log an got 6 sites of error messages like this:
Quote
8: Undefined index: ob_googlebot_modname
Datei: /www/htdocs/wenzinga/smf/Sources/ModSettings.php
Zeile: 141
Quote
8: Undefined index: ob_googlebot_stats_lastvisit
Datei: /www/htdocs/wenzinga/smf/Themes/default/languages/Post.german.php (eval?)
Zeile: 386
Quote
8: Undefined index: ob_googlebot_stats_lastvisit
Datei: /www/htdocs/wenzinga/smf/Themes/default/BoardIndex.template.php (eval?)
Zeile: 386
Quote
8: Undefined index: ob_googlebot_stats_lastvisit
Datei: /www/htdocs/wenzinga/smf/Themes/default/Display.template.php (eval?)
Zeile: 386
Quote
8: Undefined index: ob_googlebot_stats_lastvisit
Datei: /www/htdocs/wenzinga/smf/Themes/default/Recent.template.php (eval?)
Zeile: 386
Quote
8: Undefined index: ob_googlebot_stats_lastvisit
Datei: /www/htdocs/wenzinga/smf/Themes/default/SendTopic.template.php (eval?)
Zeile: 386
Quote
8: Undefined index: ob_googlebot_stats_lastvisit
Datei: /www/htdocs/wenzinga/smf/Themes/default/Stats.template.php (eval?)
Zeile: 386
and so on...
The next problem is, I can not see the configuration dialog in the admin cp while using german as default board language.
Is there any way to fix these problems?
P.S. The mod is GREAT :D
Looks like this is tossing errors with 1.1 final huh :(
I guess I'll wait for a update then. ;)
No errors at all from it on my site.
Quote from: Bigguy on December 15, 2006, 09:26:15 PM
No errors at all from it on my site.
Sounds good. Just did not want to have to go in and clean up again like I did after the RC2 to RC3 update. That screwed up my board and I had to go in manual and clean up the bread crumbs for it would not unistall correctly. ;D ;)
Could you plesae update this to SMF 1.1 Final?
And compatible with TP 0.9.7. would be awesome too!
This thing doesnt work indeed on SMF 1.1 without update ;)
I have both of those running and this mod and like I have stated I have no errors on my site from it and it is running. Do you get a failure during install from the package manager. ???
To enable specific features you need to login to phpmyadmin and display table smf_settings.
Its at the end of the table around entry 180.
"ob_googlebot" values 0/1 ~ disable/enable
So far nothing inside the error log ...
I'm getting this error when I try to install with the Package Manager:
Quote1. Execute Modification ./Sources/BoardIndex.php Test successful
2. Execute Modification ./Sources/ManagePermissions.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test failed
4. Execute Modification ./Sources/Subs.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
7. Execute Modification ./SSI.php Test successful
8. Execute Code install.php
Any ideas? I downloaded Googlebot_v105_smf1.1RC2.zip (7KB) and I use RC2
Thanks
Works with the described problem under 1.1 final.
I don't want to upgrade at this point. I'll upgrade as soon as all the mods are upgraded aswell.
I have sorted out all the bugs and problems. Mod installed aswell as the database updated but if I make changes to the admin it doesn't save the changes in the database? I checked the database and all the data is in place. Any ideas?
8)
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
Thank you for your time to respond! I appreciate it...
This what I have in my Modsettings.php:
$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'googlebot' => 'ModifyGooglebotSettings',
'karma' => 'ModifyKarmaSettings',
and the second (almost similar)
$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',
weird I would say! I'm using RC2 in this particular forum
Quote from: sanax on December 20, 2006, 12:55:00 AM
Thank you for your time to respond! I appreciate it...
This what I have in my Modsettings.php:
$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'googlebot' => 'ModifyGooglebotSettings',
'karma' => 'ModifyKarmaSettings',
and the second (almost similar)
$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',
weird I would say! I'm using RC2 in this particular forum
Yea just add that googlebot line into the second one, I am using 1.1 with TP 9.7 so its just a tad different but the same concept.
Thanks Dark!! For someone who has only 4 posts you're a master!!... lol
Works like a charm! Thank you!
Anyone have this for SMF 1.1.1
Quote from: wickedstangs on December 20, 2006, 01:44:59 AM
Anyone have this for SMF 1.1.1
Working fine on both of mine. ;)
And mine as well.
Quote from: sanax on December 20, 2006, 01:26:09 AM
Thanks Dark!! For someone who has only 4 posts you're a master!!... lol
Works like a charm! Thank you!
;D
Quote8: Undefined index: ob_googlebot_modname
Fil: /customers/kullenssfk.se/kullenssfk.se/httpd.www/forum/Sources/ModSettings.php
Rad: 141
installed without problems, but i get errors in the log.
Could this be because I have a swedish version?
Ok I installed this mode everything seem to be working....Except when I go to the Admin ~ Features and Options ~ Googlebot & Spiders I try to click on Display agent and Display Spider List hit save and it does'nt save? It always has 3 items checked (Count all instances of same spider, Display all instances of same spider , Redirect PHPSESSID URLs) I try to remove them and it still comes back with those 3 checked.. >:(
Quote from: wickedstangs on December 23, 2006, 02:32:23 PM
Ok I installed this mode everything seem to be working....Except when I go to the Admin ~ Features and Options ~ Googlebot & Spiders I try to click on Display agent and Display Spider List hit save and it does'nt save? It always has 3 items checked (Count all instances of same spider, Display all instances of same spider , Redirect PHPSESSID URLs) I try to remove them and it still comes back with those 3 checked.. >:(
Read what I posted like 8 or 9 posts up from yours, that will fix your problem.
This is what my code looks like.
$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',
'googlebot' => 'ModifyGooglebotSettings',
);
$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',
);
Change it to This?
$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',
'googlebot' => 'ModifyGooglebotSettings',
'profile' => 'ModifyProfileSettings',
);
Should I ad the profile?
So, this mod is working on SMF 1.1.1 ?
Quote from: wickedstangs on December 23, 2006, 11:59:06 PM
This is what my code looks like.
$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',
'googlebot' => 'ModifyGooglebotSettings',
);
$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',
);
Change it to This?
$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',
'googlebot' => 'ModifyGooglebotSettings',
'profile' => 'ModifyProfileSettings',
);
Should I ad the profile?
No, It will be a tad different depending on what you have installed, you do not need to add the profile line only the googlebot line. So for you both groups should look like this.
$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',
'googlebot' => 'ModifyGooglebotSettings',
);
:D
i cant even see any on my forum, im using 1.1 RC3, and i cant real 67 pages of posts to get the answer lol, no time for that
well , i am using this Mod on 1.1.1 but
it is still sending PHPSEED
how to get Rid of these sessions ?
How do we use this for 1.1.1?
Quote from: Miraploy on December 29, 2006, 09:51:19 PM
How do we use this for 1.1.1?
Just look above at all my questions they will help you install it on 1.1.1
do i have to change something if its not the default smf theme? i just noticed that
Quote from: Skipdawg on December 20, 2006, 01:53:05 AM
Quote from: wickedstangs on December 20, 2006, 01:44:59 AM
Anyone have this for SMF 1.1.1
Working fine on both of mine. ;)
I just installed it, and it seems to work. But where in the admin panel do you find it, if i wanna make som changes there?
found zis today in visitor list;
I think is a spider;
64.29.182.10, Filangy/1.01 (Filangy; http://www.filangy.com/filangyinfo.jsp?inc=robots.jsp;
[email protected]))
can it be recongnized properly?
It tells me to add <search position="before"><![CDATA[', $txt[140], ':<br />', implode(', ', $context['list_users_online']);]]></search>
<add><![CDATA[
if (!empty($context['spiders']))
{
if ($modSettings['ob_googlebot_display_own_list'])
echo '
<br />
', $txt['ob_googlebot_spiders_last_active'], ':<br />';
else
{
if (empty($context['users_online']))
echo '
', $txt[140], ':<br />';
else
echo ', ';
}
echo implode(', ', $context['spiders']);
}]]></add>
But mine once again has been moded and looks like:
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);
echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';
Again, how can I fix that bit :-[ as when I add that bit it gives me a string error.
Any help would be greatly appreciated !
TIA,
Veldfire
hello? somebody tell me what i have to do to make it show up on the forum because i have installed it successfully, pm will be appreciated since i dont have time to visit everything
Are you using a custom theme ??? If so, packages usually only install to the default theme.
but is there a way to make it appear on a custom theme? like altering parts of the template?
Quote from: njoker555 on December 31, 2006, 10:09:04 PM
but is there a way to make it appear on a custom theme? like altering parts of the template?
You will need to modify three files:
yourtheme/index.template.php
yourtheme/BoardIndex.template.php
yourtheme/languages/Modifications.english(or what ever).php
and what do i modify there lol
Quote from: njoker555 on December 31, 2006, 11:51:06 PM
and what do i modify there lol
Open each file and modify to what the install.xml file says.
Look for the following lines:
<file name="$languagedir/Modifications.english.php">
<file name="$themedir/index.template.php">
<file name="$themedir/BoardIndex.template.php">
And look what lines need to be edited in each file.
Have 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.
keith021773 you are asking about another MOD. It can be found here --> http://www.simplemachines.org/community/index.php?topic=19243.0
well when i look at those files and try to edit, when i search for those, it isnt exactly that, but i put it anyway and it just gives me errors, im using the skin aa new damage by m3talc0re
Gargoyle. I feel like such an idiot! LOL Works like a charm. Sorry about that.. Sometimes I act like an idiot.. Sometimes I don't. :)
when i go to modify the boardindex.template.php it tells me to do
<operation>
<search position="after"><![CDATA[$context['num_guests'], ' ', $context['num_guests'] == 1]]></search>
<add><![CDATA[(empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), ]]></add>
</operation>
but the skin im using doesnt have the ![CDATA part or the ]] parts, and i keep getting errors, how can i fix this?
Quote from: njoker555 on January 03, 2007, 10:10:28 PM
when i go to modify the boardindex.template.php it tells me to do
but the skin im using doesnt have the ![CDATA part or the ]] parts, and i keep getting errors, how can i fix this?
modify
/Themes/Default/boardindex.template.php
and it should work for you in your theme. :)
...this mod caused so much problems in 1.1.1 that I had to re-install my entire forum! ...after it said the installation was a success?! Then my entire forum crashed!
Hello
When i install this mod i get the following error.
Fatal error: Cannot redeclare ob_googlebot_getagent() (previously declared in /home/locatorr/public_html/main/Sources/Subs.php:3646) in /home/locatorr/public_html/main/Sources/Subs.php on line 3873
config
SMF 1.1.1
Tiny Portal 0.9.7
Gallery pro
Cheers Locatorr
www.Locatorr.nl
Quote from: locatorr on January 04, 2007, 07:08:48 PM
Hello
When i install this mod i get the following error.
Fatal error: Cannot redeclare ob_googlebot_getagent() (previously declared in /home/locatorr/public_html/main/Sources/Subs.php:3646) in /home/locatorr/public_html/main/Sources/Subs.php on line 3873
config
SMF 1.1.1
Tiny Portal 0.9.7
Gallery pro
Cheers Locatorr
www.Locatorr.nl
Sounds like your mod didn't install correctly, I would go through the install.xml file and make sure you got everything.
This will help you
http://docs.simplemachines.org/index.php?topic=402.0
too bad it doesnt work for 1.1.1.. try it, and i got error installation.
Using it on two different 1.1.1 sites.
Works just like it's supposed to.
I've got it working on 1.1.1
Keep getting this error:
Quote8: Undefined index: uot_users_online_today
Fil: /customers/kullenssfk.se/kullenssfk.se/httpd.www/forum/Themes/default/Stats.template.php (eval?)
Rad: 46
version 1.1.1
Swedish language
babylon theme
Any ideas what´s wrong?
???
i installed this on my 1.1.1 version, but I can't get it off.
someone mentioned that i can manually remove it by editing the code, could someone explain that to me?
Quote from: keith021773 on January 01, 2007, 12:11:17 PM
Have 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
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
@ njoker555: Do not include these at all:
<![CDATA[code is between these tags]]
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?
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
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 fileLook 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.
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>';
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
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.
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 (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.
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
Works Ok on SMF 1.1.1, TP 0.97.1 and Default Theme.
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 ? :)
Been working on mine for several weeks now
SMF 1.1.1 TP 0.97 and default + AA_new_damage + dilbur themes.
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
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!
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?
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
what is on line 170 in the file ModSettings.php? this would help a lot.
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');
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?
I need this mod as well...how can we get it to work with 1.1.1 ?
Is it possible?
Whats a spider and why let google or how do you let google into your site? just curious, thanks
Spiders are "bots" that crawl your site looking for content etc. so that search engines can index the pages of your website so others can find them when doing a search.
Google, msn, yahoo search engines are the main examples here.
I know everyone else has asked lol so forgive me hehe... but can we expect an update for SMF 1.1.1 & TP 0.9.7.1 ?
Not only that, but is an update required for 1.1.1 or is there a fix currently?
Will someone please let us know a yes or no question...what are we to expect for 1.1.1 version.
Apparently there is no fix or manual way to safely install this mod..so please give us an update whether or not we have something to look forward to in the near future or not.
Ok I want this updated just as much as you but dont be so impatient... its things like this that make mod authors wana back off especially when they do this for FREE...
Quote from: goitalone on February 05, 2007, 12:57:55 AM
Will someone please let us know a yes or no question...what are we to expect for 1.1.1 version.
Apparently there is no fix or manual way to safely install this mod..so please give us an update whether or not we have something to look forward to in the near future or not.
No..its just that I see like a alot of people being completely ignored when they ask a question and I don't think that's nice no matter what they are doing for us for free.
I do appreciate these peoples hard work and dedication to a software product they share with us all for free..my point is, it shouldn't be such a big deal to give us all a simple yes or no or answer so we won't have to lurk around GETTING all impatient.
My main question was IS there a fix? If yes cool may I have the answer to it please? IF NO, then it would be very sweet of you to make this plainly known..yes or no it's not all that much to ask extra of anyone is it?
I don't think so personally
And if there weren't anyone out there like these great human beings, I wouldn't even be here trying to make a cool forum for my Christian beliefs as it would be too difficult to do it myself with so much less understanding and technical skill.
So thanks to ALL of you who do us ALL this great service!
God bless!
This mod seems really REALLY cool. I really need it too, I'm tired of explaining to my paranoid forum members that it was a BOT BOT BOT BOT AND ONLY A BOT looking at their profile, a million times over. Since I can't seem to block them from viewing the forum, this would solve the problem for me, if only it worked on 1.1.1. :(
sigh.
ah well, guess I'm gonna subscribe to this topic and.... wait.
hopefull.
Yeah..I can hard wait. BE nice to know if someone is working on it or not tho.
I would think they would be, but I dunno.
When you try to install this on 1.1.1 what error do you get. ???
Hmm..I have done forget how the install went...I will have to reinstall it on my test forum to find out for sure.
I'll do that right now..brb
I haven't tried, I just went along with the notice that it works on up to. 1.1RC3 and reading this thread concluded it indeed doesn't work on 1.1.1 so I didn't try?
Is it supposed to work on 1.1.1.????
Actually..I am not sure which is the best version to try this with..
I first tried it with the latest version I think, and it crashed my forum and I had to reinstall SMF.
The next time I believe I used the version before it and it went ok I think, but acted like it didn't do anything at all
I don't think it has been updated to work with 1.1.1 but there should not be to many changes to make to get it to work.
Would anyone here know how to do it? I really would love to have this mod installed.
Ok, has anyone actually got it to work with 1.1.1??
OK, I just installed it on my test forum. Everything looked like it went ok with the install, but then I go to click a link out of there, and the forum crashes into THIS ERRO:
Fatal error: Cannot redeclare ob_googlebot_getagent() (previously declared in /www/110mb.com/g/o/i/t/a/l/o/n/goitaloner/htdocs/forumtest/Sources/Subs.php:3646) in /www/110mb.com/g/o/i/t/a/l/o/n/goitaloner/htdocs/forumtest/Sources/Subs.php on line 3873
Something in Subs.php didn't match up on those two lines er something
Can you upload your Subs.php file for me with the mod installed. I am not promissing anything as this is not my mod but I will see what I can do.
Alright..thanks for taking a peek.
I put the old and the new files up.
Also, have you been following at all my problem with IE6 not being able use the News Fader?
I have asked serveral people and they haven't gotten back with me on it yet.
I don't know if they are working on a fix for the issue er not.
It's only on a few themes that the fader will not fade or change to the next message.
It does fade on Firefox though..all the themes did..just some kinda bug with IE6 and js er something.
This is the error coming up...someone showed me in a post in a diff thread how it came up in his IE6
http://www.simplemachines.org/community/index.php?topic=138377.msg941834#msg941834
I am currently using Moonraker theme...a saw this error in a few other themes as well.
Try this for your subs.php BACK UP FIRST
Ok, after put your Subs.php in there all the pages work, but display this error at the header:
Notice: Undefined variable: modSettings in /www/110mb.com/g/o/i/t/a/l/o/n/goitaloner/htdocs/forumtest/Sources/Subs.php on line 3310
TEST FORUM
February 06, 2007, 01:20:15 AM Hello test
Show unread posts since last visit.
Show new replies to your posts.
Total time logged in: 2 hours and 52 minutes.
And this at the footer:
Fatal error: Call to undefined function template_footer() in /www/110mb.com/g/o/i/t/a/l/o/n/goitaloner/htdocs/forumtest/Sources/Subs.php on line 2679
Then, I went in to the googlebots tab and checkmarked ALL the boxes, and then the forum crashed while going to the next page after applying the settings and displayed this error on a blank white page again:
Notice: Undefined variable: modSettings in /www/110mb.com/g/o/i/t/a/l/o/n/goitaloner/htdocs/forumtest/Sources/Subs.php on line 3310
You still have the mod installed right. You didn't uninstall it and then add the new Subs.php Looks like more edits have gotten in twice. Thats what the problem was with the Subs.php 1 edit was in the wrong place and the other was in twice. Can I see your modsettings.php and take off the check marks on all that might stop the error at the bottom. I am not sure about that one yet.
Well, I may tested the googlebots on the testforum once before like a few days ago..I think I did, not for sure though what I did though.
I just realized that it is only when I click Save that it goes to the Notice: Undefined variable: modSettings in /www/110mb.com/g/o/i/t/a/l/o/n/goitaloner/htdocs/forumtest/Sources/Subs.php on line 3310
So basically, it will not save..this is how the settings are stuck at:
Googlebot & Spiders (check marked)
Count all instances of same spider (check marked)
Display all instances of same spider
("Count all instances of same spider" must be selected)
Display agent instead of name
Display spiders in its own list
--------------------------------------------------------------------------------
Count in "Most Online"
--------------------------------------------------------------------------------
Redirect PHPSESSID URLs (check marked)
Well, I think everything looked fine in that file. I did move a couple things around but I doubt it made a difference. Try this anyway. BACKUP first:
Ok for the record, I have just installed it in a test 1.1.1 forum now, and I am getting no errors at all. Can't tell for sure if it's really working or not cos there are no bots viewing that forum, but basically, no errors at all for me, so maybe it does work!
I'll see when I eventually install it in my real forum which has lots of bots in it all the time. I'll do that once I sort out its template (the BoardIndex.template.php is for the default theme and mine is based on classic, need to fiddle with that).
If you are talking about that spider and bots thing it has been working on mine daily. I have 1.1.1 and no problems at all with installation. I get a lot of yahoo soiders, I don't think they really do much though but make people paranoid. Can they read content on hidden boards, does anyone know this?
I have it installed on 1.1 Final and it works to so maybe it is working but conflicting with packages people have installed.
OK, don't forget though that was just my test forum and also I am using the Moonraker theme..which apparently is based on the BoardIndex.template.php
EDIT: Also, they were BOTH set up with Moonraker themes when I installed it.
I can't remember if I checked it on default theme or any others though.
Quote from: goitalone on February 05, 2007, 08:44:36 PM
OK, don't forget though that was just my test forum and also I am using the Moonraker theme..which apparently is based on the BoardIndex.template.php
may be a dumb question, but you
have copied all the affected theme files from default to moonraker, right? (Or copied the changes manually, whichever) Cos the mod won't do it automatically, it only edits the default theme. If you've done it, appologies. :)
Question to
Bigguy - if there are no bots or spiders viewing the forum, will it say "0 Spiders" or will it just not mention them at all on the board index summary?
Quote from: lordevil on February 05, 2007, 08:43:03 PM
Can they read content on hidden boards, does anyone know this?
Shouldn't be able to. I've had some confusion today cos I closed the forum for guests yesterday, but the bots still seemed to be viewing topics today. My guess is they were just accessing their URLs cos they have them saved, but in fact couldn't see anything past the log in screen.
No, I didn't copy anything from default to Moonraker cause I couldn't find any information about how to install it manually.
So, which files do I need to put in there?
I have mine in the users list and if shows spiders, guests, Users, when none are around it just shows guests and users. I have 7 on average
I just installed the googlebot mod on the test forum and then I replaced the Subs.php with the one it modified and it looks like everything is ok...my question is, how can I make sure, and ..is it suppose to look any different on the board from what the Who.template.php looks like? (after being added)
Quote from: goitalone on February 05, 2007, 08:50:29 PM
No, I didn't copy anything from default to Moonraker cause I couldn't find any information about how to install it manually.
So, which files do I need to put in there?
Aaah! See, when you install the package it always tells you which files will be affected. I always save that list and make backups of those files before applying any mod.
These are the files it changes:
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 successful
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
So basically, you need to copy your Modifications.english.php language file to your theme folder (and spanish if you need it). Also index.template.php and BoardIndex.template.php need to be done. I don't know how different those files are from default in the Moonraker theme, so perhaps the safest thing would be to find the code manually, if you just copy the files from default you could overwrite some design changes that may have been made in them. This is less likely to go wrong if Moonraker is based on default too, I don't know if it is.
Anyway, I just did this in my test forum, (which has a custom skin based on default) and I
think it should do the trick, but I'm not 100% sure so absolutely keep all your backups before doing it.
In index.template.phpFind
// 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>';
and add right underneath it
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>';
in boadrindex.template.php
Find
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];
and replace with
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];
find
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);
echo '
and right underneath it add
if (!empty($context['spiders']))
{
if ($modSettings['ob_googlebot_display_own_list'])
echo '
<br />
', $txt['ob_googlebot_spiders_last_active'], ':<br />';
else
{
if (empty($context['users_online']))
echo '
', $txt[140], ':<br />';
else
echo ', ';
}
echo implode(', ', $context['spiders']);
}
That's what I did to mine, and so far no errors. I should still put up a disclaimer though, I know nothing about php, I just worked that above out by comparing the modded default files with my skin files, and I
think that's all that's been edited. May be wrong. Worth a try though if you can't get it to work otherwise! Can always undo it with your backed up files. :)
Quote from: lordevil on February 05, 2007, 08:58:44 PM
I have mine in the users list and if shows spiders, guests, Users, when none are around it just shows guests and users. I have 7 on average
ok thanks, that means it might be working for me! :)
Well, I modified the first one, but then I had a problem here on the second one:
This is what my boardindex.template.php looks like
// "Users online" - in order of activity.
echo '
<tr>
<td class="catbg" colspan="2">', $txt[158], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', '<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], '" border="0" />', $context['show_who'] ? '</a>' : '', '
</td>
<td class="windowbg2" width="100%">';
if ($context['show_who'])
echo '
<a href="', $scripturl, '?action=who">';
echo $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];
Quote from: goitalone on February 05, 2007, 09:29:51 PM
Well, I modified the first one, but then I had a problem here on the second one:
This is what my boardindex.template.php looks like
// "Users online" - in order of activity.
echo '
<tr>
<td class="catbg" colspan="2">', $txt[158], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', '<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], '" border="0" />', $context['show_who'] ? '</a>' : '', '
</td>
<td class="windowbg2" width="100%">';
if ($context['show_who'])
echo '
<a href="', $scripturl, '?action=who">';
echo $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];
ah crap... yeah I'm afraid I'm not clever enough to help with that one. My original forum runs on a variation of a classic theme and it's very different too, I can't figure out what to copy to it either. Well, I tried! :)
Yeah thanks for trying...this sure is frustrating...I feel like I ALMOST have it.
I hope maybe someone with some actual knowledge of php can help you to implement that code into your template, now that we've at least pinned it down!
Adding mods by hand to custom themes is really not that hard you just have to know what to search for where to add the lines and all that junk... but its really not that hard.
Yes, well I know that, I don't know what to search for tho.
If I knew exactly what I needed to search and replace, I wouldn't be here right now
http://www.simplemachines.org/community/index.php?topic=34526.0
The above post didnt help me much when I started out b ec it in my opinion isnt completely worded / explained right... but for the most part it should help some... but I wil ltell you this the file your looking for that tells you what changes to make is one of the xml files contained in the mods zip file...
It won't show at all I don't think if there is no spider.
Quote from: tinatoth on February 05, 2007, 08:47:33 PM
Quote from: goitalone on February 05, 2007, 08:44:36 PM
OK, don't forget though that was just my test forum and also I am using the Moonraker theme..which apparently is based on the BoardIndex.template.php
may be a dumb question, but you have copied all the affected theme files from default to moonraker, right? (Or copied the changes manually, whichever) Cos the mod won't do it automatically, it only edits the default theme. If you've done it, appologies. :)
Question to Bigguy - if there are no bots or spiders viewing the forum, will it say "0 Spiders" or will it just not mention them at all on the board index summary?
Quote from: MoreBloodWine on February 05, 2007, 10:31:55 PM
Adding mods by hand to custom themes is really not that hard you just have to know what to search for where to add the lines and all that junk... but its really not that hard.
well, usually changes are clearly commented and easy to find for that reason, but if the template you need to edit has significantly different code then to find where to put the changed lines I think you also need to know a little php, if you don't understand where php statements begin and end and how the syntax works you'll end up getting parse errors. You may still get it right with a little trial and error though.
I have posted ALL the ad management code over at smfads.com For all to see and use. It is in the theme support thread. If you have a good editor that lets you search through code like "php designer 2007" does then editing becomes very easy.
anyone??
thanks so much!
Quote from: btbio on February 03, 2007, 10:56:36 AM
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');
Quote from: Bigguy on February 06, 2007, 10:06:40 AM
I have posted ALL the ad management code over at smfads.com For all to see and use. It is in the theme support thread. If you have a good editor that lets you search through code like "php designer 2007" does then editing becomes very easy.
I never really looked for an editor other than the first one I found which is EditPad Pro.
Does mine suck?
I personally use and love the Antechinus PHP Editor... it has a one time fee of like $30 - $40... but its well worth it imo you can have multiple files open through the program so you can switch between files making edits easy... but I've never had any issues using it...
Yahoo Search - Antechinus PHP Editor (http://search.yahoo.com/search;_ylt=A0oGkkkb8shFy.sAaT1XNyoA?p=Antechinus+PHP+Editor&ei=UTF-8&fr=yfp-t-501&x=wrt)
Quote from: goitalone on February 06, 2007, 01:41:14 PM
Quote from: Bigguy on February 06, 2007, 10:06:40 AM
I have posted ALL the ad management code over at smfads.com For all to see and use. It is in the theme support thread. If you have a good editor that lets you search through code like "php designer 2007" does then editing becomes very easy.
I never really looked for an editor other than the first one I found which is EditPad Pro.
Does mine suck?
I Never had any probs with EditPad Pro either, and it also lets you edit multiple files...I edited the King James Version Bible I put on my site with it.
I edited over 1100 pages with only one click ;)..not sure how these other guys work, I will check them out though.
Quote from: Bigguy on February 05, 2007, 08:44:17 PM
I have it installed on 1.1 Final and it works to so maybe it is working but conflicting with packages people have installed.
is it definitely working for 1.1.1 AND tiny portal latest version 0.9.7.1?
Just checking before installing
Same here more or less but even then I'm still gonna be iffy about it assuming the answer is yes... I'll just wait til the mod author updates the zip for 1.1.1 whenever that is / will be...
Quote from: perplexed on February 06, 2007, 04:43:28 PM
Quote from: Bigguy on February 05, 2007, 08:44:17 PM
I have it installed on 1.1 Final and it works to so maybe it is working but conflicting with packages people have installed.
is it definitely working for 1.1.1 AND tiny portal latest version 0.9.7.1?
Just checking before installing
Well, I tell you now, it didn't work for me..but I was not using just the moonraker theme either so..
When I tested it, it was a clean install of a test forum and all I added was Moonraker theme before applying that mod...
It crashed my testforum with the clean install.
That is all I know..
oooh I just found something cool! Here's a tip for everyone who's not sure if it's working on their forum cos they currently have no spiders viewing it:
Click to validate your css or html in the bottom of the page! Once you've done that the online list should have the W3C validator spider listed and named! :)
I just did it and it officially works on my 1.1.1. installation. :) yay!
..hmmm I was wondering if there were some way to test it like that...thanks for the info.
What theme are you using? Did it install perfectly?
I am sure this has been answered here somewhere but can't find it in 74 pages :(
I get an error when trying to install this mod
Execute Modification ./Sources/ModSettings.php Test failed
What is the fix pls I am running 1.1.1
Thanks
Mark
maybe your ModSettings.php isn't writeable? Chmod it 777? Or maybe you have some other mod installed which also used ModSettings.php and clashes with this one?
Quote from: tinatoth on February 07, 2007, 10:09:36 AM
maybe your ModSettings.php isn't writeable? Chmod it 777? Or maybe you have some other mod installed which also used ModSettings.php and clashes with this one?
files 0666 and only dirs 0777
thanks people but I am still getting the same??
Quote from: perplexed on February 06, 2007, 04:43:28 PM
Quote from: Bigguy on February 05, 2007, 08:44:17 PM
I have it installed on 1.1 Final and it works to so maybe it is working but conflicting with packages people have installed.
is it definitely working for 1.1.1 AND tiny portal latest version 0.9.7.1?
Just checking before installing
*bump* sorry but I need to know so I can upgrade - thanks
Just..someone tell me how to do it manually..Package Parser doesn't show it as a valid xhtml
http://server.daniel15.com/smf/package.php
So I cannot find a a way to install it correctly MAUALLY
I cant help you manually but I can tell you that I had 14 other mods installed and then installed this one and it installed ok. that was version 2.0.2 on RC3. I realise that might not be helpful to you, sorry.
btw I never knew http://server.daniel15.com/smf/package.php that existed.
Yeah I have 1.1.1 with 38 mods installed :(
lol I have 28 total but this one was #15 in order to get them all to install with no problems. Maybe it has something to do with the order *shrug*
Well, I tried it on a freash install..I think it had more to do with the theme I am using
hmmm I only use variations of the default theme. Is it working on the default theme? Edits have to be done manually on custom themes, sorry stating the obvious but it's late :)
I dunno..I always just installed it after moonraker..was a fresh install other than that
have you switched to the default theme to see if it is working there?
which version of googlebot did you use?
No, because even if it was I still wouldn't know how to fix it in my theme.
So there is no point as I am not going to be using the default
but then you would at least know that it installed correctly. Then you could look at the instructions in the zip file and follow them manually to add the edits to your theme. :)
there are no instructions
Installed the " Googlebot_v2_0_2_only_smf1.1rcx.zip " zip file from the dl page on my test forum default theme using TP 0.9.7.1 and SMF 1.1.1... and it appears to work...
http://www.choice-online-gaming.com/index.php?action=forum
BUT I cant seem to save any settings in the admin for the mod... every setting is checked except for Count in "Most Online" & Display agent instead of name... and everytime I try to change a setting and save it , it doesnt save... it goes back to the last known settings for lack of a better description... I just hope someone who knows what theyre doing if not the original mod author can come by and fix / update this mod for SMF 1.1.1 and TP 0.9.7.1 so it works as intended...
Indeed...I sure hope it happens soon too.
I am not messing with it any further until then. I am tired of crashing my forum and having to replace backup files.
*Done with it fer now* :P
Quote from: MoreBloodWine on February 09, 2007, 05:05:33 PM
Installed the " Googlebot_v2_0_2_only_smf1.1rcx.zip " zip file from the dl page on my test forum default theme using TP 0.9.7.1 and SMF 1.1.1... and it appears to work...
http://www.choice-online-gaming.com/index.php?action=forum
BUT I cant seem to save any settings in the admin for the mod... every setting is checked except for Count in "Most Online" & Display agent instead of name... and everytime I try to change a setting and save it , it doesnt save... it goes back to the last known settings for lack of a better description... I just hope someone who knows what theyre doing if not the original mod author can come by and fix / update this mod for SMF 1.1.1 and TP 0.9.7.1 so it works as intended...
damn that's annoying. I might have to upgrade and go without this for now as I can't wait much longer. This is the only thing that is holding me up
QuoteJust..someone tell me how to do it manually..Package Parser doesn't show it as a valid xhtml
XML, not XHTML.
Basically, the &
needs to be & in order for it to be valid. SMF's XML parser doesn't really care about this, but the one I use (SimpleXML) needs perfectly valid XML (as does most parsers) .
If you edit the package-info.xml file and either remove the & in "Googlebot & spiders", or replace it with &, it should be parsed correctly :)
Quote from: MoreBloodWineInstalled the " Googlebot_v2_0_2_only_smf1.1rcx.zip " zip file from the dl page on my test forum default theme using TP 0.9.7.1 and SMF 1.1.1... and it appears to work...
http://www.choice-online-gaming.com/index.php?action=forum
BUT I cant seem to save any settings in the admin for the mod... every setting is checked except for Count in "Most Online" & Display agent instead of name... and everytime I try to change a setting and save it , it doesnt save... it goes back to the last known settings for lack of a better description... I just hope someone who knows what theyre doing if not the original mod author can come by and fix / update this mod for SMF 1.1.1 and TP 0.9.7.1 so it works as intended...
I posted a fix on this earlier
http://www.simplemachines.org/community/index.php?topic=38003.975Hope that helps ;)
Quote from: goitaloneNo, because even if it was I still wouldn't know how to fix it in my theme.
So there is no point as I am not going to be using the default
There is a point in making sure it works with your default theme. This mod like almost all mods is made for a clean default theme not your current theme. You must make sure it is working on the default theme with no problems first and then adjust your current theme to the mod not the other way around. If it is working with the default theme then you know the problem is in your current theme and not the googlebot mod itself. You can't expect the mod creator to release a million and one versions of the mod for each individual theme ever created. On the same note you can't expect to ever get it working if you don't make the effort to at least check the items the mod was originally created for.
Once you know it works on the default theme you then adjust your current theme. Generally you would do this by opening the install.xml located within your mod package and adjusting only the files that match the files in your current theme folder. You can use this as a reference
http://docs.simplemachines.org/index.php?topic=402.0I also wanted to point out that just because you have it working on a clean install does not mean it will work on the forum you are using, one of those 38 other mods you have installed may cause a conflict.
If you keep getting an error during your installation make a note of the file. You can then apply the code manually to that file using the information in this link to guide you
http://docs.simplemachines.org/index.php?topic=402.0 When you install googlebot you will notice that "0 Spiders" does not appear in your users online list. You will see "1 Spider", "2 Spiders", etc appear only when a spider is actually in your forum.
One last thing I have this working on SMF V1.1, 1.1 with TP 9.7, and 1.1.1, I have not tested it with TP 9.7.1
DarkOmega... I could kiss you right now "no im not gay just happy, lol" if it wasnt for you I'd have prolly waited forever to a mod update... thx now it works fine / as intended... but a mod update would still be helpful for people who dont like messing with php files...
Edit :
For those of you who have this mod working and want to get rid of the "google last visted this page" thing at the bottom of your pages just do the following...
Open up the index.template.php file of whatever theme you have this working on and delete the following information... it wont harm the mod it will just get rid of the google stat at the bottom of every page that says " google last visited this page "
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>';
lol im glad I could help, I didnt create this mod though so I have no control over that ;)
If you don't have anything to say that pertains to the topic, don't post. Nobody gains anything from people arguing over the internet.
Sorry guys, I have been quite busy because end of Feb is the exam for my entrance examination for Master course. In march i will update this, sorry
Good luck with your exam, Omar!
I anxiously await the update to this mod, but please by no means should you feel rushed. :)
Quote from: Omar Bazavilvazo on February 12, 2007, 12:54:42 AM
Sorry guys, I have been quite busy because end of Feb is the exam for my entrance examination for Master course. In march i will update this, sorry
Yea no hurry. Best of luck on the Masters. ;D ;)
Yeah man...this mod actually started an argument between me and some other dude, it got so bad.
Thanks for the great mod...all I ever wanted was to know someone is still there working on updating it...I can wait being assured of that.
Sorry to the guy who I got angry with btw.
This mod is working on 1.1.1 I got it installed ok on my forum... if you want I can help you with it since your not to good with hand edits... Assuming your using a custom theme seme the following files from you custom theme in zip format to
[email protected] and I will make the hand edits for you... Also keep in mind I make no guarantee this will work bec I dont have full access to your forum... so when you mail me the files keep a backup of them on your HD somewhere so if the hand edits I make dont work you can "restore" the backups... but basically how this will work is that you will install the the mod like normaly to the default theme and then put the modded files I will be mailing back to the coustom themes folder where they need to go and the mod "should" work on your custom theme... hope this makes sense but ya if you send me the below files in you custom themes folder we should be able to get this working for you... also when you mail me the files send along in the message field either an ICQ number or an AIM / Yahoo name to make communicating easi to fix any sm bugs or erros that may come up...
Files I Need From You Customn Theme...1. ./Themes/custom_theme/languages/Modifications.english.php
2. ./Themes/custom_theme/index.template.php
3. ./Themes/custom_theme/BoardIndex.template.php
4. ./Themes/custom_theme/sources/ModSettings.php (I need this source file bec theres a sm bug with the instal of the theme that "misses" a line)
Quote from: goitalone on February 13, 2007, 08:35:36 PM
Yeah man...this mod actually started an argument between me and some other dude, it got so bad.
Thanks for the great mod...all I ever wanted was to know someone is still there working on updating it...I can wait being assured of that.
Sorry to the guy who I got angry with btw.
I am fine with manually installing...I had to do it on alot of my mods, and 1100 page Bible, and tons of other things.. but on this one, something always seems to go wrong BAD WRONG...it ALWAYS crashes my forum bad when I install it...last time I tried to manually install it, it completely f'ed my forum up a I did make a backup before it, BUT smf just makes a backup in TEXT form..well, at least that is what I thought until just yesterday when I realizd I had 1.8 GIG's of backup file's when I tried to download my whole forum to try and update to 1.1.2.
I still don't get how I have 1.8 GIG's of backups on my host...it doesn't even show it on my USEAGE chart from my host's front page. It took hours for it to download, and now I kinda know why, and kinda don't lol.
Anyways...for some reason I am seeing spiders in my forum for some reason, but the googlebot mod is not installed anymore...I assume there are still a crap load of left-over files left in there to make it kinda work? Or is that just the custom Who.template doing this?
My yahoo ID is charlie_passion btw
As for the spider thing if its only in the whos online then yes it is bec of the modified who file... as for you oversized backup which is an understatement you got me on that one LOL... but gl with everything if you do need some help I can and will lend a hand when possible... assuming I can even help with whats wrong ;-)
Quote from: goitalone on February 14, 2007, 09:31:52 AM
I am fine with manually installing...I had to do it on alot of my mods, and 1100 page Bible, and tons of other things.. but on this one, something always seems to go wrong BAD WRONG...it ALWAYS crashes my forum bad when I install it...last time I tried to manually install it, it completely f'ed my forum up a I did make a backup before it, BUT smf just makes a backup in TEXT form..well, at least that is what I thought until just yesterday when I realizd I had 1.8 GIG's of backup file's when I tried to download my whole forum to try and update to 1.1.2.
I still don't get how I have 1.8 GIG's of backups on my host...it doesn't even show it on my USEAGE chart from my host's front page. It took hours for it to download, and now I kinda know why, and kinda don't lol.
Anyways...for some reason I am seeing spiders in my forum for some reason, but the googlebot mod is not installed anymore...I assume there are still a crap load of left-over files left in there to make it kinda work? Or is that just the custom Who.template doing this?
Thanks...I will send you those files on yahoo if you want to try it for me. Preciate it!
Just let me know when.
But you said in a last post you know how to do hand edits and if you have "dirty" files meaning leftover code from alot of mods... then I dont know If I can help ya... but I can try... but ya I thought you said your ok with hand edits...
Quote from: goitalone on February 14, 2007, 12:06:16 PM
Thanks...I will send you those files on yahoo if you want to try it for me. Preciate it!
Just let me know when.
I am fine with manual edits...never had any problems til this one.
Look, I am sure it won't work anyways, like I said..I hand edited it myself and it didn't work then either..I will just wait for the version update. I even went as far as cleaning out alot of other junk left over from that and a few other mods while I was doing it manually.
Thanks tho..I am not all that interested in it anymore anyways...I just wanted to See google spiders on my site, and I didn't for the first 3 - 4 weeks...I was just worried SMF was blocking google like I had been reading about because when I had my phpbb forum, it was googlebot all day long as soon as I installed it basically.
I now see that same result finally with SMF, as if anything is posted, there will instantly be a google spider right behind it..googbot and google adsense spiders.
So, I am pretty much done with it.
TTYL
Well sorry for your problems and stuff... but if you are running adsense on your forum you should see one "spider" once in a while but to get them constanly crawling your sites you have to submit it to search engines like MSN , Yahoo and stuff... either way if and when you need help let me know and I will try to help where / when I can... also not to get off topic of this post but I'd like to take a look at your forum (if you dont mind)... can you PM or post here a link or it I wana take a look at the bible you have there or whatever it was you said you did a edit on for 1100 pages or so... either way ttyl and tc and god bless...
I did all that submitting crap long ago and still do it every once inawhile...you don't get penalized like people think.
And I have more than google adsense spiders...I am getting yahoo and a buncha of other google spiders as well as adsense ones crawling constanly now finally. Took long this time...phpbb they were crawing from day one every second.
I used that coffeecup sitemapper and it mapped my 1200 + pages so I am doing good...got my google page rank of 3-4 last week
Something else you can do is show the bots and spiders the way.
Do a search for your site/forum on what ever search engine and if found click on it.
Once the spiders and bots know the way they can hit you faster too.
Submitting is great but can take days to weeks for that to process through various systems. ;)
I ALWAYS click search Google on the Google bar to get to the page on the web to get my all my websites sites ;)
The sitemapper I used helped like instant it seemed...I recommend it. Coffeecup google sitemapper I used.
I also, do it with yahoo and MSN on occasion as well. And I always try and leave a link or to in forums I go to asking questions for whatever it is I need...some get deleted, some don't.
I don't spam really, just leave a signature link or two here and there :P
Ok, I have had my board up and running for about 2 months with no problems, now all of a sudden I am getting the following error:
Fatal error: Cannot redeclare ob_googlebot_getagent() (previously declared in C:\Program Files\Apache Group\Apache2\htdocs\tba\smf\Sources\Subs.php:3646) in C:\Program Files\Apache Group\Apache2\htdocs\tba\smf\Sources\Subs.php on line 3873
Hello,
Is this mod working properly with SMF 1.1.2 (french & utf8) ?
Thank you very much !!
Quote from: heckuvanoob on February 16, 2007, 08:28:38 AM
Ok, I have had my board up and running for about 2 months with no problems, now all of a sudden I am getting the following error:
Fatal error: Cannot redeclare ob_googlebot_getagent() (previously declared in C:\Program Files\Apache Group\Apache2\htdocs\tba\smf\Sources\Subs.php:3646) in C:\Program Files\Apache Group\Apache2\htdocs\tba\smf\Sources\Subs.php on line 3873
This means somehow there is a duplicate line of code and it cannot redeclare one of them...get a good text editor like EditPad Pro or something similar and go in manually and delete one of these duplicate lines of code.
I had this same problem as well, so just go delete one of these lines of, code...there are probably other files this mod changes that also have duplicate lines of code but start by deleting one of these lines first..either on (or near) line 3646 or line 3873
Quote from: MacDo on February 21, 2007, 10:29:05 AM
Hello,
Is this mod working properly with SMF 1.1.2 (french & utf8) ?
Thank you very much !!
No, it hadn't been updated yet as far as I know.
Does it work ok with smf 1.1.1??
Quote from: ziycon on February 21, 2007, 01:07:47 PM
Does it work ok with smf 1.1.1??
People say it has on the default theme with no mods installed etc. but had a few minor probs.
Didn't work for me though...crashed my forum and I had to go in manually and fix it.
I use Moonraker theme mostly though and didn't even look to see how it installed on default theme.
I tried evreything though and it didn't work right, so I am done with it until the update which was promised by the author a week er so ago.
Quote from: ziycon on February 21, 2007, 01:07:47 PM
Does it work ok with smf 1.1.1??
It works fine on 1.1.1 / 1.1.2 on my forum that has many other mods installed and uses a custom theme... I have two production sites and a test forum all running the same thing for the most part and I havent had any issues with this mod...
Quote from: MacDo on February 21, 2007, 10:29:05 AM
Hello,
Is this mod working properly with SMF 1.1.2 (french & utf8) ?
Thank you very much !!
This Mod does work If you already have it installed before you upgrade your forum. The install itself however fails to add the required code to the ModSettings.php file in SMF 1.1.2. The code can be added in with some minor difficulty but googlebot does not appear to work with french-utf8 anyway. When I converted my test forum to french-utf8 none of the text appeared but this too can be fixed by adding some minor translation to the Modifications.french-utf8.php file.
Hope that helped ;D
Quote from: DarkOmega on February 21, 2007, 02:09:46 PM
Hope that helped ;D
Well, actually, yes, it helped :-) It totally discourages me from installing it on my forum... soooo sad...
I hope that I'm not the only guy who wants it... If someone finds a solution one day, please tell me :-) Many thanks in advance ! :-)
Be best
Just because it worked for them doesnt mean yer going to be happy with your own personal end result. Trust me on this one.
No, of course, but If someone (who knows SMF more than I do - and that's quite easy) tells me that the mod does not work properly with SMF 1.1.2 and, even if it would, it would be unusable with french pack and utf8, I prefer not installing it... :-) That's not the problem that a mod is working on other SMF forums : it appears not to be working on 1.1.2, according to DarkOmega :-)
DarkOmega : is this "only" an encoding problem of the messages displayed by this mod ? If so, would it be sufficient to translate those messages in french, using the utf8 encoding ?? Well, of course, if this mod does not work in english with utf8, I'll not try to translate it...
Thanks for your help ! once more... :-)
I will confirm with 100% that it does infact work on a 1.1.2 forum using a custom theme and TP 0.9.7... as for the french UTF-8 thing I couldnt answer that...
Quote from: MacDo on February 22, 2007, 05:11:45 AM
No, of course, but If someone (who knows SMF more than I do - and that's quite easy) tells me that the mod does not work properly with SMF 1.1.2 and, even if it would, it would be unusable with french pack and utf8, I prefer not installing it... :-) That's not the problem that a mod is working on other SMF forums : it appears not to be working on 1.1.2, according to DarkOmega :-)
DarkOmega : is this "only" an encoding problem of the messages displayed by this mod ? If so, would it be sufficient to translate those messages in french, using the utf8 encoding ?? Well, of course, if this mod does not work in english with utf8, I'll not try to translate it...
Thanks for your help ! once more... :-)
Quote from: MoreBloodWineI will confirm with 100% that it does infact work on a 1.1.2 forum using a custom theme and TP 0.9.7... as for the french UTF-8 thing I couldnt answer that...
The mod works for me too only because it was an existing install and I updated the forum around it. :D, A fresh install however does not work on a 1.1.2 forum. The install.xml file does not have the required information to adjust the ModSettings.php file correctly so you would have to adjust it yourself.
Quote from: MacDoDarkOmega : is this "only" an encoding problem of the messages displayed by this mod ? If so, would it be sufficient to translate those messages in french, using the utf8 encoding ?? Well, of course, if this mod does not work in english with utf8, I'll not try to translate it...
Yes the only problem as far as the translation is concerned is the display messages. To fix this problem all you need to do is highlight and copy the code below to wordpad or whatever. You would then translate everything I marked in red, then copy and paste it all anywhere in the Modifications.french-utf8.php file. The file itself does not toss around errors if the display text is not translated correctly or anything like that. It will work with whatever you translate it to just as long as the code remains untouched and is present in the file. Omar is also working to update the package so the mod installs correctly, it shouldn't be too much longer. I doubt he will add French translation but at least you will have a clean install to work with. ;)
// 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 <div class="smalltext">("' . $txt['ob_googlebot_count_all_instances'] . '"
must be selected)</div>';
$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
ok :-) thank you very very much for your help ! Since my forum is already running 1.1.2, I'll maybe try to add this mod manually. But If one day I have to remove them, I'll not be happy as I could be if it would have been a mod... This is quite strange that the SMF versions increases, but not the versions of the mod's... Sooo sad... :-s
Mate could you please up-date this mod?
It's download but you didn't update it to 1.1.2 or even 1.1.1.
I would serious love to see a new version of this mod, it's very handy, but not working at all.
So please up-date this mod, and let me know about it.
1.1.1 is already up for nearly 3 months, should be long enough to update :)
I tried to install this mod and I'm using SMF 1.1.1 and the latest version of TinyPortal, I got this message:
Fatal error: Cannot redeclare ob_googlebot_getagent() (previously declared in /home/thedeadd/public_html/smf/Sources/Subs.php:3677) in /home/thedeadd/public_html/smf/Sources/Subs.php on line 3792
any ideas?
Hokay. I attatched my sub.php file .. I would be really grateful if someone could take a peek and help me figure out how to fix my forums without me having to reinstall etc. :-[
I don't have time really to look right now as I have to run out for a minute but it seems the code for googlebot might be in there twice.
Go in maunally to the lines it describes and delete one of the duplicates.
That file you attached doesn't even have googlebot installed on it. I compared the entire file quickly with a clean subs.php file and they appear to be identical.
I am also interested in this mod for 1.1.2 ;D
lol
sorry I am drunkz
my forum is now running 1.1.2
was running this mod on RC2 and it worked great...
Im now getting errors like this :
Undefined index: smf_stats_12
File: /home/lotruk/public_html/forum/Themes/default/languages/Who.english.php
Im assuming its something to do with this mod :-\
any clues anyone... or perhaps an update for 1.1.2 would make it work :-\
Oh I also so need this updated. I miss greatly seeing how many are about.
Just installed this mod on SMF 1.1.1
I'm using two themes
SMF Default and a slightly modified Babylon.
Few tweaks and its working with no apparent errors for the SMF default theme.
Tried following the xml file to find out which changes where theme specific but got a parse error.
I'm a bit confused on the search before / after bit
If it says before does the added code go before the bit its searching for or after...seems obvious, but checking the other files that had changes, its seems that if the xml said after, the actual change was placed before ??
Anybody make it easy and show the theme specific changes, and where to put the code.
cheers
Ok, it is posiive, I had no problem with SMF 1.1.2 and TP 0.9.7 for me!
This is a great idea, and I want to include it on my forum.
Is it now tested and working with 1.1.2?
Thanks!
I don't really care about this mod anymore to be honest with you..the custom who.template shows all I care to see (MSN, Yahoo and Google spiders etc.)
I just want to know..was there any noticable changes in the new 1.1.2 SMF update?
I didn't feel having to reinstall all my 38 mods after just fixing everything the way it should be so I stayed with 1.1.1
I couldn't get the thing to run on 1.1.1 or on a new install of 1.1.2 so I tried something simple and it is working perfect on both with TP 9.7
The only change I made was to change the top line in the package-info.xml file from
<?xml version="1.0"?> to
<?xml version="1.1.1"?> or <?xml version="1.1.2"?> depending on what version you have.
Note before you upgrade up to anything above RC3 make sure to remove this mod and then reinstall after your upgrade.
done that but get this error -
QuoteInstalling 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
change the .xml to 1.12
Is it working with smf 1.1.2 and TP 0.98?
Hi.
I've tried using this with the DilberMC theme but with no luck.
I didn't use the who.template.php as it's not usable with this theme.
Can someone help me make this mod work with this theme please.
Thanks. :)
P.S.
Forgot to mention. Using SMF 1.1 RC2
Quote from: giggetto on March 21, 2007, 08:47:40 AM
Is it working with smf 1.1.2 and TP 0.98?
Its working for me with that setup plus helios multi theme
www.m-d-p.net
Hi guys
i'm going to start working on the update. Now i have more time, so i want to finish this.
Give me a week :)
Quote from: Omar Bazavilvazo on March 26, 2007, 04:07:09 AM
Hi guys
i'm going to start working on the update. Now i have more time, so i want to finish this.
Give me a week :)
great !! waiting for the release.
oooh can't wait
Brilliant, i have it kinda working on 1.1.2, when a bot is on the forum it will show up in the 'Users Online' area but when in the admin mode when i tick the boxes and click save it never saves any boxes i've clicked.
Might be of some help to you in the update. Looking forward to it.
Quote from: Omar Bazavilvazo on March 26, 2007, 04:07:09 AM
Hi guys
i'm going to start working on the update. Now i have more time, so i want to finish this.
Give me a week :)
Fantastic news! ;)
We had this mod installed pre-1.1.2, and can't wait to get it back. Thank you ahead of time for the work you're putting into it.
Omar Bazavilvazo, I can't wait for the updated GoogleBot mod, you have us all waiting in great anticipation. :P
Thanks for the update, this will be a long week. ;)
This is great.
Can't wait for the update.
Add me to those waiting for the update! :) Thanks for your hard work on this!
Looking forward to it as well..thanks man!
i am waiting for it too.....thanks....
When I install it I get this error
4. Execute Modification ./Sources/ManagePermissions.php Test failed
5. Execute Modification ./Sources/ModSettings.php Test failed
I tried to install it manually. When I go to the SMF Package Parser I get this error
ERROR: The package-info.xml file is invalid!
Can anyone help me here? I tried to just read the xml document, but I could not find what it was asking me to find. Now I know why it failed
I am running smf 1.1.2
Quote from: GPGrieco on April 03, 2007, 09:48:33 PM
When I install it I get this error
4. Execute Modification ./Sources/ManagePermissions.php Test failed
5. Execute Modification ./Sources/ModSettings.php Test failed
I tried to install it manually. When I go to the SMF Package Parser I get this error
ERROR: The package-info.xml file is invalid!
Can anyone help me here? I tried to just read the xml document, but I could not find what it was asking me to find. Now I know why it failed
I am running smf 1.1.2
Wait on the update
So an update for v1.1.2 is coming out, I can't wait
Mod has been updated finally. Problem is, that the mod site is having some problems (bugs), and I can't upload the file.
As soon as they fix it, i will upload the new version that works with 1.1.2 :)
Quote from: Omar Bazavilvazo on April 09, 2007, 03:53:27 AM
Mod has been updated finally. Problem is, that the mod site is having some problems (bugs), and I can't upload the file.
As soon as they fix it, i will upload the new version that works with 1.1.2 :)
Could you please send a PM to some of the moderators at the board?
Cool..thanks man!
Will the Version compatibility on the download page change when your finished?
How will I know when to download it.
P.S. Looks like it will be a great mod. Great job.
Quote from: awsomejoe23 on April 09, 2007, 10:51:07 AM
Will the Version compatibility on the download page change when your finished?
How will I know when to download it.
P.S. Looks like it will be a great mod. Great job.
new version is only for 1.1.x. i'll leave the current ones also.
So you are going to make it an entirely new download that will work for version 1.1.2?
Did I understand you correctly?
Thanks,
Joe
i will leave the current ones that works for 1.0.x, and rc.
Also, I will add a new one that works only on 1.1.x (1.1.2 for example), since is the last version. :)
New version 2.0.3 compatible with SMF 1.1.2 is up.
Please check it, and if you have any problem let me know
Direct download link:
http://custom.simplemachines.org/mods/index.php?action=download;mod=143;id=31124
Enjoy :)
Yippee!!! Thank you so much for updating this package. We love having a more accurate count of guests versus spiders. :D
If we have 2.0.2 installed is there any reason for us to update ?
The test gives the following error:
./Sources/ManagePermissions.php failed
Roger
Installed perfectly but..I cannot get these following three options to SAVE after I check mark them and click on save they simply reset to unchecked.
Display agent instead of name
Display spiders in its own list
----------------------------------------
Count in "Most Online"
Am I missing something er what?
I just tried an install on default theme, 1.1.2 and got this error.
Execute Modification ./Sources/ModSettings.php Test failed
thats with the latest 2.0.3 file as well..
Quote from: MattJ on April 12, 2007, 05:39:19 AM
I just tried an install on default theme, 1.1.2 and got this error.
Execute Modification ./Sources/ModSettings.php Test failed
thats with the latest 2.0.3 file as well..
Same error
QuoteExecute Modification ./Sources/ModSettings.php Test failed
same error too
Sorry to hear that some of you are experiencing problems. :(
My install went smoothly, no problems experienced and my error log is clear.
I'm wondering if you guys maybe have a mod installed that's common between all of you that is causing the error.
I'm sure Omar will be be able to get to the bottom of it but I wonder if posting what mods you have on your forums would help. :)
Thanks Omar, great mod!
Do all of your check marks get saved in the googlebots and spiders section though? Mine won't save three options.
If you look in the modifications file you can often spot the problem...
Mine failed with this code 'karma' => array(
'title' => $txt['smf293'],
'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
'is_last' => true,
),
Because 'is_last' => true, is actually added to 'sig' in my modsettings file 'sig' => array(
'title' => $txt['signature_settings'],
'description' => $txt['signature_settings_desc'],
'href' => $scripturl . '?action=featuresettings;sa=sig;sesc=' . $context['session_id'],
'is_last' => true,
...which is why it failed...
I made the changes manually to modsettings.php and all was fine with the install then.
Quote from: goitalone on April 12, 2007, 05:24:27 PM
Do all of your check marks get saved in the googlebots and spiders section though? Mine won't save three options.
Looks like I did the same as Omar and missed the obvious! ;D
As you point out, goitalone, the check boxes aren't being accounted for.
An update would be appreciated when you get the chance Omar, still a great mod though!
Quote from: goitalone on April 12, 2007, 05:24:27 PM
Do all of your check marks get saved in the googlebots and spiders section though? Mine won't save three options.
Im having the same probelm!
good its working now
QuoteLooks like I did the same as Omar and missed the obvious!
As you point out, goitalone, the check boxes aren't being accounted for.
An update would be appreciated when you get the chance Omar, still a great mod though!
Quote from: ziycon on April 12, 2007, 09:02:30 PM
Quote from: goitalone on April 12, 2007, 05:24:27 PM
Do all of your check marks get saved in the googlebots and spiders section though? Mine won't save three options.
Im having the same probelm!
So I am not the only one eh?
To be honest, I had the same problem on an install of smf 1.1.1 on the default theme even before this updated version came about. Not sure why it never worked or saved those three settings or if was even suppose to ( I would think it would), but it never worked right for me...that's all I know.
hmm
ok
i will do more tests, and come with an update tomorrow
K thats cool...take yer time :)
I installed the Mod this morning, and it went in without a hiccup. Thank you!! :D
As a sort of side note, I installed this mod with the FlashChat Integration Mod already in place at our forum. There have been some issues identified in the past with the two mods not working together, but I didn't have any problems with putting the Googlebot mod "on top" of the FlashChat mod.
I've got some custom themes that need the BoardIndex.template.php files adjusted so the spiders show up in the Users Online list, but I expected that. (Our Admin Team is debating not making those changes, since we don't really care how many spiders are crawling the forum as long as the numbers don't show up in our tally of Guests.)
Thanks again, Omar. We loooooooooove this mod.
when i installed this mod on to my forum (1.1.2) i got this at the top of my site:
// 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 just installed this mod (1.1.2) and can't get the same 3 checkmarks to save that others have mentioned. I didn't have any errors with the install. I'll keep watching in case someone comes up with the fix.
Great mod, Omar.
A bit more info here, after installing this mod, and attempting to check one of the boxes that are unchecked, I checked my error log and found this:
http://www.xxxxxxxxxxxxxxxx.xxx/smf/index.php?action=featuresettings2;save;sa=googlebot
8: Undefined index: pm_posts_per_hour
File: /var/www/vhosts/xxxxxxxxxxxxxxxx.xxx/httpdocs/smf/Sources/ModSettings.php
Line: 239
http://www.xxxxxxxxxxxxxxxx.xxx/smf/index.php?action=featuresettings2;save;sa=googlebot
8: Undefined index: pm_posts_verification
File: /var/www/vhosts/xxxxxxxxxxxxxxxx.xxx/httpdocs/smf/Sources/ModSettings.php
Line: 239
http://www.xxxxxxxxxxxxxxxx.xxx/smf/index.php?action=featuresettings2;save;sa=googlebot
8: Undefined index: max_pm_recipients
File: /var/www/vhosts/xxxxxxxxxxxxxxxx.xxx/httpdocs/smf/Sources/ModSettings.php
Line: 239
I have enabled reporting of pms and checked the settings and they had all been changed to zero.
Should I uninstall this mod or do I have something else going on?
Same here, 3 options dont save.
Can you also let me know if you have to change anything to make it work with other templates other than default?
^^^ ditto .. I cant even see the spiders bit on my front page ... options wont save
Like I said, I never got them to work even on the old version. Makes me wonder if they ever saved in the first place.
Quote from: MattJ on April 12, 2007, 05:39:19 AM
I just tried an install on default theme, 1.1.2 and got this error.
Execute Modification ./Sources/ModSettings.php Test failed
thats with the latest 2.0.3 file as well..
just the same error as you,
SMF 1.1.2Great mod nonetheless
Quote from: Omar Bazavilvazo on April 13, 2007, 01:52:26 AM
hmm
ok
i will do more tests, and come with an update tomorrow
???
Quote from: byon on April 19, 2007, 05:09:28 AM
Quote from: MattJ on April 12, 2007, 05:39:19 AM
I just tried an install on default theme, 1.1.2 and got this error.
Execute Modification ./Sources/ModSettings.php Test failed
thats with the latest 2.0.3 file as well..
just the same error as you,
SMF 1.1.2
Great mod nonetheless
Same here.
error en code.php ???
Incorrect table name ''
Archivo: /home2/hardmodd/public_html/smf/Packages/temp/code.php
Línea: 3
home2 ????? :-[
Notice: Undefined index: ob_googlebot_redirect_phpsessid in /home2/hardmodd/public_html/smf/index.php on line 77
smf 1.1.2
bridge 1.1.7
joomla 1.0.12
working on it right now :P
Quote from: Omar Bazavilvazo on April 20, 2007, 09:38:08 PM
working on it right now :P
tu hablas español??
bueno considero que es un excelente trabajo
saludos desde chile
Ehm sorry i am new to SMF. Seems to be a great piece of software, and i installed your mod. But i don't see any difference in the adminpanel for modifying the mod settings. Where are they? Thanks in advance
/edit
My board is in German-UTF8, so i tried to select english as default-language. And now it works correctly (same issue with all other mods though). Is there a way to use that mod for other languages too?
there are two major problems with this mod:
1- I had .02 and it said it was the current version, and had the green circle and everything was fine. then I just happened to notice it's NOT the current version, there is in fact a .03.... wtf
2-this mod apparently does nothing. forum still says x guests and x users after successful install. it's possible that it only changes when there is actually bots on, but I have not seen anything different... I have the 'strongly recommended' mod installed too...
mod=does nothing at all ?
i have this problem too:( My forum is in russian-utf8. I don`t see any differents in admin panel. forum 1.1.2 with tinyportal 0.98.
New 2.0.3 updated files are uploaded athttp://custom.simplemachines.org/mods/index.php?action=download;mod=143;id=31743
Quote from: Roger on April 11, 2007, 01:20:26 PM
The test gives the following error:
./Sources/ManagePermissions.php failed
Roger
Which mods have you installed?
Quote from: goitalone on April 11, 2007, 03:08:52 PM
Installed perfectly but..I cannot get these following three options to SAVE after I check mark them and click on save they simply reset to unchecked.
Display agent instead of name
Display spiders in its own list
----------------------------------------
Count in "Most Online"
Am I missing something er what?
I'm supposed to have fixed this. please check new version (updated files)
Quote from: MattJ on April 12, 2007, 05:39:19 AM
I just tried an install on default theme, 1.1.2 and got this error.
Execute Modification ./Sources/ModSettings.php Test failed
thats with the latest 2.0.3 file as well..
Can you try with the new updated version? also, which mods have you installed?
Quote from: deadpoeticstar on April 12, 2007, 09:00:48 AM
Quote from: MattJ on April 12, 2007, 05:39:19 AM
I just tried an install on default theme, 1.1.2 and got this error.
Execute Modification ./Sources/ModSettings.php Test failed
thats with the latest 2.0.3 file as well..
Same error
Same. Can you try with the new updated version? also, which mods have you installed?
Please everybody that expected problems reinstall the mod with the new updated files for 2.0.3. Also, ppl that mod 2.0.3 is working without problems would be a good idea to try the new version, since in 1.1.2 seems that only 1 instance of the found string is replaced, and before, it was as many as needed .
Let me know how it goes, i will try to have faster updates :)
Quote from: scythetleppo on April 21, 2007, 12:07:45 PM
there are two major problems with this mod:
1- I had .02 and it said it was the current version, and had the green circle and everything was fine. then I just happened to notice it's NOT the current version, there is in fact a .03.... wtf
2-this mod apparently does nothing. forum still says x guests and x users after successful install. it's possible that it only changes when there is actually bots on, but I have not seen anything different... I have the 'strongly recommended' mod installed too...
mod=does nothing at all ?
About the green number it was a mistake from my part that I didnt updated the mod page with 1.0.3, so, it should be fixed now
2) to check if actually is working and you dont want to wait forever for googlebots, you can "simulate" you are googlebot by installing firefox extension into firefo, and then change user agent as of googlebot. the extension is in:
https://addons.mozilla.org/en-US/firefox/addon/59
If you see a bot listed in the "who is online" page, you must see it on the board index. mod doesnt do anything until a ot actually comes.
Quote from: agentru on April 21, 2007, 12:18:03 PM
i have this problem too:( My forum is in russian-utf8. I don`t see any differents in admin panel. forum 1.1.2 with tinyportal 0.98.
in admin->Features and Options must be a new tab right of karma called "Googlemod & spiders" :P
let me know how it works
Quote from: shinji on April 20, 2007, 09:41:02 PM
Quote from: Omar Bazavilvazo on April 20, 2007, 09:38:08 PM
working on it right now :P
tu hablas español??
sip, soy de mexico :)
bueno considero que es un excelente trabajo
saludos desde chile
yes! with the russian language(utf-8) mod works correct;)
OK, I got it working...had to go in manually and delete some left overs from the other install, but other than that it's working perfect now. :)
Thank Omar,
Peace!
The update has fixed the checkbox options not having any effect/being saved Omar.
I uninstalled the previous mod and reinstalled the new one and it's working perfectly now!
Very useful mod and the permissions make it flexible, thanks for the work Omar. :)
cool!
glad finally more good feedback :P i don't like buggy mods :)
Quote from: veldfire on April 11, 2007, 01:11:22 PM
If we have 2.0.2 installed is there any reason for us to update ?
if you have 2.0.2 in something different that smf 1.1.2 not needed
if you have 2.0.2 in smf 1.1.2, i would recommend to upgrade because i found some nasty bugs :P
Quote from: Omar Bazavilvazo on April 21, 2007, 10:42:30 PM
if you have 2.0.2 in something different that smf 1.1.2 not needed
if you have 2.0.2 in smf 1.1.2, i would recommend to upgrade because i found some nasty bugs :P
Thank you for the info !
Uninstalled the previous version and installed the update and everything works great. No errors in the log and all the options will save.
Thanks for a great mod Omar :)
Quote from: JimM on April 22, 2007, 07:12:58 PM
Uninstalled the previous version and installed the update and everything works great. No errors in the log and all the options will save.
Thanks for a great mod Omar :)
thanks :) i'm glad you like the mod :)
i've got the same error in mod settings.php file like before...
Quote from: Farmacija on April 23, 2007, 08:21:00 AM
i've got the same error in mod settings.php file like before...
can you plz upload your modsettings.php file, so i can check it plz?
Here it is
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimgplace.com%2Fdirectory%2Fdir1765%2F1177449153_6105.JPG&hash=d56d06048b07a65b061df0823e71462c88177871) (http://imgplace.com/image.php?img=directory/dir1765/1177449153_6105.JPG)
i hv this problem
same issue as teamyakuza
Quote from: Farmacija on April 24, 2007, 06:23:40 AM
Here it is
you have many mods installed. that's why it doesnt works. i will try to modify it to bemore friendly towards more mods
Quote from: teamyakuza on April 24, 2007, 05:14:20 PM
i hv this problem
hmmm did you got any error when you installed the mod? seems ModSettings.english.php is corrupted or something. can you upload that file so i can see what it has?
i know i have a lot of mods but i really need it. thanx :)
// 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 get this at the top of my forum.. can anyone help???
plz upload your ModSettings.english.php
I don't have that file anywhere.all i see is ModSettings.php
Okay to make it more clear. I don't have that file. So where can I get it? Where do I apply it (i.e. location)
And I noticed when I installed the google & spiders mod, it doesn't install that file. Same kinda thing happens when I install the avatar in profile mod, except its just one line above the forums.
Would appreciate all the help. Thanks guys/gals.
Jerry
I understand this is to much for some, but come on can I get an answer?
My Forums (http://www.bhclan.us/smf)
As you can see on top is the problem. I have uninstalled it the first time and it disappeared, but because I thought it was gonna work again and a fresh install would help I reinstalled. Then it did this. Uninstalled, this time it stayed.
Now I understand that I am noob, but I am needing assistance with this. I am not sure how to get rid of this. Can someone guide me through this or post back with what I can do to delete this. Thank you. I wouldn't have posted again but it has been over 13 hours since last post. Thanks
Jerry
Look in the langauge folder of the defult theme and find the "Modifications.english.php" file. In that file somewhere NEAR the bottom you will find a symbol like this:
?>
That has to be moved to the VERY END of the file and all that text should go away.
I really appreciate it. Thanks so much for your help!
My pleasure. :)
Seems not to be compatible with TinyPortal v0.9.8. You can have a look on www.D3scene.com/forum/. Spiders are not showing in the "Online" List.
When you browse to the Forumonline List it works fine :).
Thanks for this great Addon.
Hey there!
I'm really stupid when it comes to databases... I was checking "modification.xml", but I found nothing that executes "code.php" that's included in the package!
I went to my phpmyadmin and found no table for example "ob_googlebot_stats"!
Should the stuff that's in the code.php be included into the database, if true...
How do I insert it the right way???
Thanx in advance!
i cant install this mod. because smf occurs an error "you cant download or install any mod because of file/folder permissions.." or somethink like that.. (i translate it from Turkish)
but i am using lots of mod.. and none of them never gives this error?? where is the problem??
Quote from: Hendricius on April 29, 2007, 07:31:25 PM
Seems not to be compatible with TinyPortal v0.9.8. You can have a look on www.D3scene.com/forum/. Spiders are not showing in the "Online" List.
When you browse to the Forumonline List it works fine :).
Thanks for this great Addon.
Hmmm in fact the mod works in the forum index, not in TP portal index... I will add it as a feature for next version
Quote from: Green CoW on April 30, 2007, 02:44:20 PM
Hey there!
I'm really stupid when it comes to databases... I was checking "modification.xml", but I found nothing that executes "code.php" that's included in the package!
I went to my phpmyadmin and found no table for example "ob_googlebot_stats"!
Should the stuff that's in the code.php be included into the database, if true...
How do I insert it the right way???
Thanx in advance!
in fact, code.php have the CREATE TABLE statement. The table is not created when you install the mod? or you want to install it manually?
Quote from: Praxis on April 30, 2007, 04:02:01 PM
i cant install this mod. because smf occurs an error "you cant download or install any mod because of file/folder permissions.." or somethink like that.. (i translate it from Turkish)
but i am using lots of mod.. and none of them never gives this error?? where is the problem??
try downloading the mod from your browser and uploading it via ftp to your packages folder
Ok I installed this and now I have this
In your modifications.english.php file NEAR the bottom, look for this:
?>
It won't be at the very end of the file. Move it to the last line of that file and then save and upload. Thats should take care of that.
Quote from: Omar Bazavilvazo on May 02, 2007, 02:12:00 PM
in fact, code.php have the CREATE TABLE statement. The table is not created when you install the mod? or you want to install it manually?
I installed it via the package manager, but the table wasn't installed... I really don't know what went wrong..
After I installed this mod I get the admin panel options to show up, but I never see anything on the board index.
Anyone have this happen before?
After I installed this mod, it showed the text for the mod at the top of the forum instead of working. I'd only installed SMF Acade before I installed this one. Please help!
The mod is working fabulously for me! I do have one question, though. There is one bot that is not showing up as a spider on the main page. I added it to who.template.php so it shows up as a spider once I look at the who's online page, but on the main page it just shows up as a guest, not a spider. It's definitely not a huge deal, I'm just being picky. ;D Any idea how to fix this?
Can't anyone help me out?
Quote from: Bigguy on April 28, 2007, 11:26:40 AM
Look in the langauge folder of the defult theme and find the "Modifications.english.php" file. In that file somewhere NEAR the bottom you will find a symbol like this:
?>
That has to be moved to the VERY END of the file and all that text should go away.
Bigguy answered this earlier in the thread!
Twice, in fact!
:( No one has helped me though :)
Maybe you haven't had any bots on your site. It won't show up if there aren't any there.
I've had like 300 guests on my forum for over 3 weeks!
Have you checked the IPs to see if they're bots? Maybe it's just me, but 300 seems excessive. I rarely have more than 10 bots at any one time! But if you have a lot of users on AOL, each one can show up as a ton of guests because the IP changes with each new page.
I don't claim to have all the answers, but 300? Wow.
The IP tracks to Yahoo, but they are ALWAYS on my website doing things like looking at 4 year old posts, and "Reporting User To Moderator"
i got a
5. Execute Modification ./Sources/ModSettings.php Test failed
What shall i do ?!
Thank u
Quote from: Trihedralguy on May 09, 2007, 02:29:45 PM
The IP tracks to Yahoo, but they are ALWAYS on my website doing things like looking at 4 year old posts, and "Reporting User To Moderator"
You can actually open up the modifications.xml and see what changes are supposed to happen on which pages... check that against your files and make sure everything matches up.
I finally figured out what my problem was....Apparently you have to ALLOW your members to be able to see the Google Spiders and Bots through Permissions.
So Admin > Permissions > "Regular Members" > Allow Visable Google Spider and Bots
To let everyone see the Spiders and Bots, otherwise they contiune to show up as guests.
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/shomazta/public_html/smf/Sources/ModSettings.php on line 114
can someone help?? I'm unable to get to my Feature Settings. Not in a rush tho =P
Edit I modified the file using SMF Package Parser and I get this
Fatal error: Cannot redeclare modifygooglebotsettings() (previously declared in /home/shomazta/public_html/smf/Sources/ModSettings.php:343) in /home/shomazta/public_html/smf/Sources/ModSettings.php on line 475
I uploaded the modified ModSettings.php file can someone please help?
hi i just installed this mod and when i go to pemisions i dont see nopthing to check so members can see spiders i think it might be to do with maneg pemision but evry time i try to mod it i allways get parse errer i have atteched a copy of my manege permisions php if any one canpont me in th right diretion would be very much appretated thank in advance
Hi - I installed this mod and I really like it, but I have a problem - I can't change the settings in Features and Options - I can tick/untick boxes but as soon as I click "save" it bounces me back to basic features and doesn't save the changes.
I'm using the v1.1.2 engine and a theme - did I miss something somewhere when manually installing to the theme or is this a known issue etc?
Quote from: SMdot™ on May 15, 2007, 11:07:18 PM
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/shomazta/public_html/smf/Sources/ModSettings.php on line 114
can someone help?? I'm unable to get to my Feature Settings. Not in a rush tho =P
Edit I modified the file using SMF Package Parser and I get this
Fatal error: Cannot redeclare modifygooglebotsettings() (previously declared in /home/shomazta/public_html/smf/Sources/ModSettings.php:343) in /home/shomazta/public_html/smf/Sources/ModSettings.php on line 475
In the file ModSetting.php (you'll find that in your sources directory), you'll find a double declaration of:
function ModifyGooglebotSettings()
{
global $txt, $scripturl, $context, $settings, $sc;
$config_vars = array(
// Count all instances of spiders?
array('check', 'ob_googlebot_count_all_instances'),
array('check', 'ob_googlebot_display_all_instances'),
array('check', 'ob_googlebot_display_agent'),
array('check', 'ob_googlebot_display_own_list'),
'',
// Count spiders on most online?
array('check', 'ob_googlebot_count_most_online'),
'',
// Redirect PHPSESSID URLs?
array('check', 'ob_googlebot_redirect_phpsessid'),
);
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
//redirectexit('action=featuresettings;sa=googlebot');
}
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=googlebot';
$context['settings_title'] = $txt['ob_googlebot_modname'];
prepareDBSettingContext($config_vars);
}
One of them should be at the end while the other one should be somewhere higher up in the code, delete the first occurrence of this block of code, hope it helps!
PS, any ideas on fixing the setting that won't save? Think I'll manually edit it in the database since the control panel doesn't save it for me.
It doesn't seem to work well with DilberMC theme. I guess the phpSessId is OK, but no spiders are displayed on the forum index.
How is it possible to fix it ?
Quote from: Vampy on May 19, 2007, 07:04:51 AM
Hi - I installed this mod and I really like it, but I have a problem - I can't change the settings in Features and Options - I can tick/untick boxes but as soon as I click "save" it bounces me back to basic features and doesn't save the changes.
I'm using the v1.1.2 engine and a theme - did I miss something somewhere when manually installing to the theme or is this a known issue etc?
That was a known issue with v2.0.2 of the mod, but was fixed with 2.0.3. If you read back in the thread you will see that there were several of us that had this issue and when Omar released 2.0.3 we uninstalled the old version and installed 2.0.3 and it fixed the problem.
It is v2.03 I have installed and not 2.0.2 - which is why I dodn't understand why i'm still getting this problem
Ok, I installed it, but I can't figure out the Users Online part at the bottom.
Before I installed it: 69 Guests, 24 Users
After I installed it: 27 Guests, 24 Users
Though by looking at my action=who, I can tell that there are a ton of bots... I checked the checkbox under guests for "View Googlebot & Spiders". I also checked it for every user... Whether I'm logged in or not, I can't see the expected ", # Spiders"
Any thoughts? (Oh, I'm using SMF 1.1.2)
Nobody for my DilberMC problem ? Please...
Guys,
Could someone please tell me how i check which version of SMF i have installed? There are various packages of this mod so i need to make sure i get the righjt one for my smf installation.
Cheers
Darren
On the foot of the page, you can see the SMF version. In the admin section too.
Quote from: Dr.WhO on May 09, 2007, 02:55:47 PM
i got a
5. Execute Modification ./Sources/ModSettings.php Test failed
Same problem. What does this mean? Is it safe to force an install still?
Specifically, this is what I get:
Quote
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
So it's only the modsettings that's off.
Also running SMF 1.1RC1, and Googlebot 2.02 for 1.1rcx and the custom who.template.php as suggested.
EDIT: So I went ahead and tried.
Nothing happened, except everyone was able to view the spiders online, even when I denied like ALL the groups. So I guess that's what modsettings.php does. :o
This is a great mod, thanks heaps for it... The bots show up in "who is online" perfectly.
One question though: In the Stats block in TP0.9.8, under "Users Online" I have 1 user (me), 0 guests, and 6 total. I assume that the 5 unaccounted for are bots. Is there a way to have the list say "5 spiders" or "5 bots" or similar?
Thanks.
I have installed this on a forum that I co-admin and it says that everything is fine, but it is not showing anything more in the logged in users part of the forum, here are its settings.....are they correct:
click the thumbnail please...
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg519.imageshack.us%2Fimg519%2F3985%2Funtitled1bi2.th.gif&hash=fe0f637edd37cb2c4fdebfb70d7c57d49d66807f) (http://img519.imageshack.us/my.php?image=untitled1bi2.gif)
and this is whats showing on the main page:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg255.imageshack.us%2Fimg255%2F7213%2Funtitled1sn9.th.gif&hash=da283f47ea2c27ba65d5d0922bfacad089a7bdb3) (http://img255.imageshack.us/my.php?image=untitled1sn9.gif)
And what to show the spider list on a DilberMC Theme ? Mmmh ?
Can i get some help on this because surely this should be working, otherwise whats the point in the mod?
@Nutronic
Did you turn the permissions on so that users can see the results?
Admin > Permissions > Regular Members > Allow Visable Google Spider and Bots
You would need to do this for all your membergroups.
its ok now, it only shows as and when a bot is on the site instead of it saying 0 bots, which would be a good feature to have.
Ummm, I got:
QuoteIncorrect table name ''
File: /home/vol4/byethost7.com/b7_620123/fiestaonlinehq.com/htdocs/forum/Packages/temp/code.php
Line: 3
I use dilbermc theme.
So i modify too :
Themes/dilbermc/BoardIndex.template.php
and
Themes/dilbermc/index.template.php
with the same modifications than in Themes/default/
The install mod is without error and i install also
Who.template.php
When i'm in administration part of my forum i can see the part for this mod :
(https://www.simplemachines.org/community/index.php?action=dlattach;topic=38003.0;attach=34937;image)
And however, nothing is changed with display of users :
(https://www.simplemachines.org/community/index.php?action=dlattach;topic=38003.0;attach=34941;image)
I don't understand why ?
Can somebody help me ?
Thanks,
Pierre
5. Execute Modification ./Sources/ModSettings.php Test failed
anyone? default theme vr 1.1.2
Go into the packages .xml file and add the edits manually to that file. You will have to unzip it on your desktop and find the .xml file (NOT the package-info.xml) and look through it a bit to find the right edits to add. A good editor always works wonders to, one with a search function so you can search for the code in a file.
OK, but what are the right edits for DilberMC ? I have tried some, but with errors, so I ran back quickly...
5. Execute Modification ./Sources/ModSettings.php Test failed
anyone? default theme vr 1.1.2 anyone?? why cant i install this mod
Something weird's going on with my google and spider settings. I've installed the mod fine. I go to my settings and check the necessary options, it saves them but the stats don't show up on my actual board. What's happening?
kimba i am having the same problem. on my board index it does not say spiders. it says 1 member, 0 guests and that is not. nothing about spiders or bots
5. Execute Modification ./Sources/ModSettings.php Test failed
SMF 1.1.2 default theme
can anyone help regarding this
Make sure you have turned on viewing of the spiders in
Admin > Permissions > Modify
Make sure the box is checked for > View Googlebot & Spiders
If there are no bots or spiders on your board, you won't see any change.
I would have thought you'd at least see something like "0 spiders" in the stats. As an admin, you'd see something regardless of whether you have set permissions or not. All my member groups have the permission set to see them anyway.
i have all the permissions set correctly. it is just not showing up. i did see that when i have the mod installed and there is a spider on my site that it comes up 1 user, 0 guests, and thats it. but when i go to my whos online page it says Google Spider. It is interesting that what page it uses to say oh there is 1 user, 0 guests shows up it does not say about spiders even thought it asks it edited all the files okay.
I'm with Boro and Kimba. I've added the who.template to my theme and installed the mod with no errors. I have added the permission to all my membergroups but I see no changes in the forum.
Running smf 1.1.3
loaded thru package manager.
Added code to modsettings.php by hand
When trying to enter Features and Options
I get this error code:
Fatal error: Cannot redeclare modifygooglebotsettings() (previously declared in /home/tumble/public_html/gc/Sources/ModSettings.php:400) in /home/tumble/public_html/gc/Sources/ModSettings.php on line 485
This is the code i placed in the Modsettings.php
function ModifyGooglebotSettings()
{
global $txt, $scripturl, $context, $settings, $sc;
$config_vars = array(
// Count all instances of spiders?
array('check', 'ob_googlebot_count_all_instances'),
array('check', 'ob_googlebot_display_all_instances'),
array('check', 'ob_googlebot_display_agent'),
array('check', 'ob_googlebot_display_own_list'),
'',
// Count spiders on most online?
array('check', 'ob_googlebot_count_most_online'),
'',
// Redirect PHPSESSID URLs?
array('check', 'ob_googlebot_redirect_phpsessid'),
);
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=googlebot');
}
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=googlebot';
$context['settings_title'] = $txt['ob_googlebot_modname'];
prepareDBSettingContext($config_vars);
}
any idea were i might have gone wrong?
tumble
Quote from: bklynjay on June 17, 2007, 04:21:21 AM
5. Execute Modification ./Sources/ModSettings.php Test failed
anyone? default theme vr 1.1.2 anyone?? why cant i install this mod
I get the same error but I'm using SMF 1.1.3, Tiny Portal 0.98 and the Helios theme.
The Package I'm trying to install is Googlebot_v2_0_3_only_smf1.1.x.zip
Unfortunately I'm a bit clueless about editing the file myself.
Please help if you can it seems like a common problem.
Thank you all.
VERY NICE MOD!
working very well with NO ERRORS AT ALL ;) ;D
i got the sam error so i backed out... i have smf 1.1.3
5. Execute Modification ./Sources/ModSettings.php Test failed
Works like a charm on SMF 1.1.3 . :D Thanks for making such a cool mod.
Quote from: Filipina on July 02, 2007, 10:03:42 AM
i got the sam error so i backed out... i have smf 1.1.3
5. Execute Modification ./Sources/ModSettings.php Test failed
I have that error on 1.1.2 and default theme. Anyone know how to solve it?!
Anyone got any ideas?
Hello.. just checking back to see if there is a solution for
5. Execute Modification ./Sources/ModSettings.php Test Failed
What can happen if you just install with this error? Has anyone else found a fix with the same problem?
I'm looking for a solution to that problem too.
Not trying to sound like a smartazz but you could do the modification by hand.
I'm a bit dim with SMF modifications so how would I do that? :-\
yes, some of us are just looking for a little guidance... i tried to do a modification by hand once and the results were not good
Support on this forum is shocking :/
help i have double edits somwhare
i have this twice but cant figar out where the double edits are taking place can someone help me please thanks in advance
Google visited last this page May 22, 2007, 08:03:47 AM
Google visited last this page May 22, 2007, 08:03:47 AM
im using smf 1.1.3 and installed this thru admin and packages and said install was sucessful but there is no change when showing who is online . Will it only show when a spider or googlebot is online or should it show a zero?? im using dibermc theme and have tp installed too.
would appreciate any help with this but be warned im new to all this so may take time getting it sorted lol :D
I have been trying to get this googlebot thing to work with dibler mc theme and still cant figure it out. can anyone give step by step instructions on getting this mod to work on dibler mc theme please.
I am using smf 1.1.3 with the dilber multicolor theme, could you explain what i need to do please? The installation of the package fails because the ModSettings.php fails.
I've tried uploading the who.template.php, but there isn't an original version of this file in the theme directory. On closer inspection it would appear that most of the relevant coding occurs in the Boardindex.template.php but I don't know enough about it to know what to replace and what not to.
Please could you give some instructions on this one?
Mods for smf usually install to the default theme. For all of you who are having problems with a specific theme other than the default you should:
1. Contact the theme's creator.
OR
2. Read the smf help files, specifically, how to manually edit a mod: http://docs.simplemachines.org/index.php?topic=402
If there is a section in the modification.xml file for index.template.php or any other file in your theme's folder you'll need to add the same code just like in the default theme.
EDIT: You might also wish to set your forums to NOT use utf-8 in your language. Most mods are not written to accommodate this feature.
Hi all
Really need this mod, spiders are all over my forum and i just wana no who is who, i try to install and get this error
5. Execute Modification ./Sources/ModSettings.php Test failed
the rest Pass, i am using dibbler theme, can you tell me what i am to do thanks
Same as above for #2. Open modifications.xml and look for /Sources/ModSettings.php. It will tell you what to add to that file. Save it and then upload that file. Then install the mod as usual. You'll still get a "test failed" but it'll work.
im using smf 1.1.3 and installed this mod and installation was sucessful but there is no change when showing who is online . Will it only show when a spider or googlebot is online or should it show a zero?? im using default theme + tp installed.
u have given so many screenshots of this mod.. any idea where theyr r found??
no you wont see untill there is spiders online and you will only see it in the board index did you also install the custom who template?
thanks for the reply
yes i also installed the custom who template to my themes folder. so when do i see these screens..only when there r bots..??
yes only when ther is spiders online
now i can see the spiders listed .. 1 Spider - Google AdSense spider
now what do i do? can anybody pls tell me..can i stop these bots or is it ok?? or where r hose screenshots which were posted to control these bots.. where can i find them..and thanks for making this tool .. :)
pls guide me
yes its ood to have bots online
and i think you mean featuresd and option google bot and spiders
Quote from: JJLodge on July 20, 2007, 10:17:17 PM
5. Execute Modification ./Sources/ModSettings.php Test failed
the rest Pass, i am using dibbler theme, can you tell me what i am to do thanks
Getting this same error using the default theme. Do I still need to do this -
Quote from: Skhilled on July 21, 2007, 03:45:19 PM
Same as above for #2. Open modifications.xml and look for /Sources/ModSettings.php. It will tell you what to add to that file. Save it and then upload that file. Then install the mod as usual. You'll still get a "test failed" but it'll work
I'm runnign SMF 1.1.3 Dilber Multicolor Theme, and I can't download it, it keeps telling me that it's not compatable with my version. :(
Hmmmm........
Can't get it to work in SMF 1.1.2
It shows "1 Guests, 5 Users", but there's no mention of the Spiders.
I'm using the classic template. Do I have to add something to the template?
I've installed the Who.template.php and it shows 4 spiders online.
Oh well, I'll try later.
I installed the mod and have a problem...
Look at the attached screenshot.
It shows "1, 2 Guests, 2 Users" instead of "1 Google Spider, 2..."
And "Google Spider" is shown as a username below.
How can I change that?
And btw, how can I arrange this listing in another order, so that members are mentioned first, then guests, and then the spider?
EDIT: This is solved, it was the missing Modifications.german-utf8.php
I wrote that myself and it's working now.
It would be interesting to know how to change the order of the displayed members anyway.
Trying to uninstall, and get the following error:
Uninstall Actions
Uninstall Actions "Googlebot & Spiders Mod":
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 failed
4. Execute Modification ./Sources/ManagePermissions.php Test successful
5. Execute Modification ./Sources/ModSettings.php Test successful
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
So I don't want to click the "uninstall now" button after seeing the test failure. What do I do?
How would I manually uninstall this mod?
I can't access the settings bit in admin, everything else has installed ok.
I am guessing I missed something, any idea what?
Quote from: Eunos on August 08, 2007, 07:32:22 AM
Trying to uninstall, and get the following error:
Uninstall Actions
Uninstall Actions "Googlebot & Spiders Mod":
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 failed
4. Execute Modification ./Sources/ManagePermissions.php Test successful
5. Execute Modification ./Sources/ModSettings.php Test successful
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
So I don't want to click the "uninstall now" button after seeing the test failure. What do I do?
How would I manually uninstall this mod?
Anyone? How can I manually uninstall this?
Quote from: Bloodsurfer on August 04, 2007, 10:09:26 AM
It would be interesting to know how to change the order of the displayed members anyway.
Anyone any idea?
Hi, I'm using smf 1.1.3 and Tinyportal 0.9.8 with the helios theme. I managed to install and edit the theme files and it works fine except with tinyportal you get a small stats box (on my site this is on the left hand side, see here www.echelon-ops.org.uk (http://www.echelon-ops.org.uk)) this box never shows any spiders. Is there any way to fix this so as this stats box shows the same info as when you click the link to see who is online?
P.S. I have both the custom who.template.php and the googlebot & spiders mod.
Bump
Any one ???
A "Test Failed" means that the file in question has been altered. In most of your cases it is ModSettings.php. You'll have to manually modify it using modification.xml which is including in the package. You can also try to use the smf parser. This is documented many times throughout this site.
A redeclared error means code has been duplicated and is trying to be used more than once. Remove the duplicate code. Read modifications.xml to find out what code goes into which file and search for the duplicates.
I suggest using a program like conText: http://www.context.cx/ (http://www.context.cx/) It will color-code tags for easier reading and you can use it to compare files.
Please make backup of your files BEFORE editing them. I also suggest creating a test site to test your edits on first. This way you'll not mess up your live site.
Quote from: Harro on June 07, 2005, 06:28:31 AM
Got one problem tough. It's a bit hard to install it manualy. xml file isn't realy easy to follow, and it's very easy to overlook something.
Assuming you read the xml file correctly and follow / understand what I have written below then manual mods / installs are easy... for me anyway...
Search position end = What you are searching for will go at the END of the php file but before the ?>
Search position before = What you are searching for will be BEFORE what you add...
Search position after = What you are searching for will be AFTER what you add...
Search position replace = What you are searching for will be REPLACED by what you add
121.34.47.35
The above IP seems to belong to a bot, if I understood things right its an asain IP or some crap. Well assuming this IP does infact belong to a bot how do I go about getting the bot details and adding them to this mod and how do you add bots to the mod ?
If I remember right MoreBloodWine the bots are in the Who.template.php check out the link as someone made a custom one that has a huge list of bots in it and it tells you how to add more :D hope it helps.
Custom Who.template.php = http://www.simplemachines.org/community/index.php?topic=19243.0 (http://www.simplemachines.org/community/index.php?topic=19243.0)
Hey guys, most recently, I've noticed that this mod hasn't been recognizing the Live Search Bot. I'm not sure if Microsoft changed anything, but it doesn't show up in the Who's Online as MSN bot like it used to, and instead shows up as a guest. Any ideas? Does the mod need updating?
This mod works with SMF 1.1.3?
Yep, works great with 1.1.3.
But i try to put it in my forum and did not works.
What version should i put to my forum SMF 1.1.3?
Sorry for my bad english.
Are you using a theme other than the default, and any errors when installing?
I'm using the default theme for install the modification.
But is not working
What version o google & Spiders mod is for the SMF 1.1.3
Googlebot_v105_smf1.0.6.zip
Googlebot_v105_smf1.1RC2.zip
Googlebot_v2_0_2_only_smf1.0.x.zip
Googlebot_v2_0_2_only_smf1.1rcx.zip
Googlebot_v2_0_3_only_smf1.1.x.zip
:S
Enverdad que no se que hacer por e tratado de instalarlas y no puedo.
I have 1.1.3 and it doesnt work either. When I updated to 1.1.3, a bunch of the mods that I was using stopped working.
anyone can help here please?
1.1.3 - same here. Bots show up in the 'Users on Line' area but nothing on the admin page.
Default template. Installed from local PC via package manager.
I'm brand new to this so it miiiight be me.
Apart from this very-minor thing, this whole thing is the bees'. Tremendously well done, this community.
cheers :D
Edit - No Admin Access -> Resolved
Folder permissions were insufficient for package manager to do a proper installation.
Solution - Give Write access (rwxrwxr-x on my server), un-install mods then re-install.
Now it works perfectly.
if you are on smf 1.1.3 use Googlebot_v2_0_3_only_smf1.1.x.zip
(hence the 1.1.x in the name)
Another Topic:
Id like to report a package installation incompatibility with the "Custom Action Mod".
I guess the most people are getting errors in ModSettings.php because some mods (e.g. custom actions mod) add their menu tab at the beginning of the default tabs.
The searching operations in this mods modifications.xml (and several others ...) depend too much on a clean smf install, one of the reasons for a failed test has been a missing intention tab in ManagePermissions.php (i dont know which of my mods changed that Oo it broke the code layout, easy to spot ...).
Suggestion for the initial post:
add "If you got the "Custom action mod" installed you WILL have to alter the modifications.xml or your current code!"
Or maybe update the download with a less restrictive modifications.xml :)
PS: i always change the modifications.xml of mods to be less restrictive on the search actions, never touching the current code of the files so other mods can safely be uninstalled, never ran into trouble that way. If somebody is interested in the less restrictive modifications.xml ill post it, but normally its really just a little change here and there.
I am running version 1.1.3 when i apply the mod i get the below at the top of the page.
Also in the users currently online its all messed up and theres no options in the admin section for it!?!
Can anyone help?
// 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
The mod did not edit Modifications.english.php correctly. It actually put the code AFTER the closing php brackets. To fix it just move ?>
directly after that code you posted and make sure it's on a separate line. :)
Niceone, working fine now! Thanks.
I have had an error with my install from months ago,
If someone here can recommend someone trustworthy to me I would pay to have it fixed.
I have PayPal.
Hi.
Installed the mod, and it should be working, but it says on the bottom of the page, 0 guests, 2 members, 0 members?
thanks for the mod - working fine, had to install modsettings.php manually, but i do have about 60 mods installed lol
btw - i use smf 1.1.4
Hi just wanna ask i don't see the screen shot thing on my site. also how can i Allowed for guests to view the spider.
I only view guest and user no spider.
You can set it up in the forum permissons in an option called "View Googlebot and Spiders." You should see that for each membergroup's permissions if you aren't using a custom theme.
its working now tnxs smith6612 by the way i notice there are only one spiders shown how can I make it more?
Hey. great mod in the default theme. i have this minor problem when i try to edit my custom theme. maybe you can help out. this is the error i get for line 382
There was a problem loading the /Themes/BlackRainv11/BoardIndex.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.
You may want to try to refresh this page or use the default theme.
--------------------------------------------------------------------------------
Parse error: parse error, unexpected '?' in .../Themes/BlackRainv11/BoardIndex.template.php on line 382
373: <td class="windowbg" width="20" valign="middle" align="center">
374: ', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', '<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], '" border="0" />', $context['show_who'] ? '</a>' : '', '
375: </td>
376: <td class="windowbg2" width="100%">';
377:
378: if ($context['show_who'])
379: echo '
380: <a href="', $scripturl, '?action=who">';
381:
382: echo $context['num_guests'], ' ', $context['num_guests'] == 1, (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];383:
384: // Handle hidden users and buddies.
385: if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies'])))
386: {
Is there a way to get rid of this line at the bottom of my forum?
"Google visited last this page Oct 3, 2007, 06:09"
Other than that it's been a great mod. Easy to install and fun for the users to look at.
bump. any help to my problem above would be greatly apreciated
lol got threads confused
this mods great, thankyou :D
could you fully update this to smf 1.1.4 im scared 2 youse it ¬.¬
This does work for SMF 1.1.4 however, I received error during upload install:
QuoteError in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
5. Execute Modification ./Sources/ModSettings.php Test failed
Those edits will have to be done manually. You can find the edits in the .xml file that is packaged with the mod. (Not the package-info.xml the other .xml file) More than likely what has happened is another mod has modified that file and this mod can't find the right code to edit because of that.
I just tried to install this mod on a brand new 1.1.4 site and I got corruption errors.
I am sorry I don't know how to provide more feedback.
Zale
[email protected]
try redownloading
if that doesnt work, come back
I've got an interesting one. Mine works fine, except for it showing September 11 as the last Google visit when I log in. I know Google has been there since.
If I view it as a visitor then it looks ok (shows a recent visit) but as soon as I log (any login - I have a few test logins) in it reverts to the September 11 date. Even when I log out it is still there on Sep 11. Ctl-F5 reloading the page = still there. IE & Firefox doing the same thing. Clearing the local browser cache reverts it back to the (correct) recent date.
Tried uninstalling then re-installing.
I'm using basically the standard theme with a couple of colour changes (mid-grey background, mainly). The only files in the custom theme directory are index.php. index.template.php and style.css. The rest is obviously running from the default template. The forum is at www.forum.CADbloke.com
For the record I don't suspect al Queda just yet (Sep 11).
Anyone got any theories ?
cheers
CADbloke
------------EDIT-------- after looking at the database tables
Figured it out - the Google visit time is indeed correct for the page /index.php. Visit times are different for pages /index.php?action=register and other actions. ie. - There's nothing wrong with the Mod.
I'll leave this here just in case anyone else ponders this
on my page, the text is missing a space...its now starting to get to me lol
1 Guest, 3 Users2 Groupies
should look like this;
1 Guest, 3 Users and 2 Groupies
(groupies=buddies, and it was messed up like that before i changed the text)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.imgfree.net%2Fimages%2F1636.jpg&hash=28455381d2e100c2f2959f9e6187ad865c9ad7fd)
basically:
it says "4 users2 buddies"
instead of "4 users 2 buddies"
or "4 users, 2 buddies"
or "4 users (2 buddies)"
on my page, the text is missing a space...its now starting to get to me lol
1 Guest, 3 Users2 Groupies
should look like this;
1 Guest, 3 Users and 2 Groupies
(groupies=buddies, and it was messed up like that before i changed the text)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.imgfree.net%2Fimages%2F1636.jpg&hash=28455381d2e100c2f2959f9e6187ad865c9ad7fd)
basically:
it says "4 users2 buddies"
instead of "4 users 2 buddies"
or "4 users, 2 buddies"
or "4 users (2 buddies)"
so are you planning on adding amazonbot? Cuz there's one too :D
hey thats so cool! i double posted!!
wow howd that happen?
I am lost, I have tried to read through 70 pages of errors and fixes, and tried to find the pages I need to install, and still am lost.
I go to install and all are fine but ModSettings.php failure
I tried to understand the .xml file in the zip and cannot (there are no instructions on where to put it, just code)
Help Help Help Also in the first post he states to install the Who.template.php edit, well the attachment is missing from that post so I cant do that either (edit- nevermind i had to login to see it)
EDIT=
Ok I went through it again, modified it so now the mod works, but it doesnt show up in the theme i have. Could someone help me with modifying the BoardIndex.Template.php for DARKDIRGE
Thank you. I have not uploaded the new Who.template.php yet either.
I need help. I am using SMF 1.1.4. A year or two ago I installed the Googlebots and Spiders mod. At some point I uninstalled it and even though the package is no longer present in the package list of installed mods, the mod continues to work and record the hits. I reinstalled it and then uninstalled it again thinking it may fix the mod. Actually, it got worse. With no packages listed in the Installed Mods area, I was now getting two instances of the mod. If a Yahoo spders were crawling it will report that twice as in USERS ONLINE: Yahoo spider, Yahoo spider.
This has been bad enough but now probably through the last SMF update or maybe the one before, I am getting these errors in the errorlog.
8: Undefined index: ob_googlebot_stats_lastvisit
This is generating about 20 pages a day.
There error seems to run through various files but always seems to be on Line 386 or 390. I really like the program but I need to get untangled from whatever is causing this and see if a later version will work as expected. I am a little afraid at this point to install a newer version because possibly winding up with 3 instances of this program. How do I get this to stop?
Not shown below, it will also error on BoardIndex.template.php (eval?) and Login.template.php
What is this crazy (eval?) thing?
http://myspacecoast.com/forums/index.php?topic=858.0;prev_next=next
8: Undefined index: ob_googlebot_stats_lastvisit
File: /home/myspace/public_html/forums/Themes/default/Display.template.php (eval?)
Line: 390
http://myspacecoast.com/forums/index.php?topic=858.0;prev_next=next
8: Undefined index: ob_googlebot_stats_lastvisit
File: /home/myspace/public_html/forums/Themes/default/Display.template.php (eval?)
Line: 386
http://myspacecoast.com/forums/index.php?board=9.0
8: Undefined index: ob_googlebot_stats_lastvisit
File: /home/myspace/public_html/forums/Themes/default/MessageIndex.template.php (eval?)
Line: 390
http://myspacecoast.com/forums/index.php?board=9.0
8: Undefined index: ob_googlebot_stats_lastvisit
File: /home/myspace/public_html/forums/Themes/default/MessageIndex.template.php (eval?)
Line: 386
http://myspacecoast.com/forums/index.php?board=8.0
8: Undefined index: ob_googlebot_stats_lastvisit
File: /home/myspace/public_html/forums/Themes/default/MessageIndex.template.php (eval?)
Line: 390
http://myspacecoast.com/forums/index.php?board=8.0
8: Undefined index: ob_googlebot_stats_lastvisit
File: /home/myspace/public_html/forums/Themes/default/MessageIndex.template.php (eval?)
Line: 386
http://myspacecoast.com/forums/index.php?action=recent
8: Undefined index: ob_googlebot_stats_lastvisit
File: /home/myspace/public_html/forums/Themes/default/Recent.template.php (eval?)
Line: 390
http://myspacecoast.com/forums/index.php?action=recent
8: Undefined index: ob_googlebot_stats_lastvisit
File: /home/myspace/public_html/forums/Themes/default/Recent.template.php (eval?)
Line: 386
installing the mod...my smf 1.1.4 says it's unable to modify the file ModSettings.php...using dilber mc theme...what do i have to do???
I successfully installed this mod. but i cant see any spiders under 'users online'. i dint know where to give these permissions. kindly help me
I am using SMF 1.1.4 and for some reason the mod installs correctly, but it does not update the admin panel in the Features and Options configuration page to add the options for this mod.
I think this has become "abandon-ware"
This Googlebot mod is fantastic after reading pages 1 to 10. But it appears many are facing installation issues for earlier versions. There are another 60 pages of messages to read ...... and I am not quite prepared to read all of them. Just hoping to have a shortcut to eternal bliss... Hee hee....
I run SMF 1.1.4 and TP 0.9.8 with the following mods:
Welcome Topic Mod 1.0
SMF Gallery Lite 1.7.5.1
SMF Arcade E2.3.2
Country Flags 1.0.1
I just downloaded Gogglebot 2.0.3. Can someone advise me how to go about installing this great mod and what changes do I need to do and to which files. Thanks in advance to all you experts.
It works only on dfault theme or any theme..???
Quote from: william777 on November 14, 2007, 11:34:26 PM
This Googlebot mod is fantastic after reading pages 1 to 10. But it appears many are facing installation issues for earleier versions. There are another 60 pages of messages to read ...... and I am not quite prepared to read all of them. Just hoping to have a shortcut to eternal bliss... Hee hee....
I run SMF 1.1.4 and TP 0.9.8 with the following mods:
Welcome Topic Mod 1.0
SMF Gallery Lite 1.7.5.1
SMF Arcade E2.3.2
Country Flags 1.0.1
I just downloaded Gogglebot 2.0.3. Can someone advise me how to go about installing this great mod and what changes do I need to do and to which files. Thanks in advance to all you experts.
all the changes are in the xml file or you could you packeg parser
http://modparser.dev.dansoftaustralia.net/
to find what to change
Quote from: rehan on November 15, 2007, 01:01:58 AM
It works only on dfault theme or any theme..???
yes most mods only install on the default theme you will have to make changes yourself to any other theme
Quote from: wdm2005 on November 15, 2007, 03:54:41 AM
all the changes are in the xml file or you could you packeg parser
http://modparser.dev.dansoftaustralia.net/
to find what to change
Thanks wdm2005. Did you install Googlebot in your site?
yes i have it installed its cool mod i think leat you know who spiders and who guest lol :D
Hay! I'm getting problem in fifth step before install it. Please help me
5. Execute Modification./Sources/ModSettings.php Test failed
THANKS FOR HELPING ME JADE!! MWAHHHH LOVE U HEHE :p
your welcome :)
you made it easier by giving me admin access :D
Hello peeps :)
I installed this mod last night..
And its done something really strange to my site..
Basically... Its gone!!!
Have a look [HERE] (http://fernside.hammersway.com/smf/index.php).
I've manually deleted the mod through c/panel.
But Im at a loss as to what else to do. :(
Any suggestions would be greatly appreciated :)
EDIT: Fixed!!!
All I did was reinstall my backup.. LOL
I didnt want to, as I thought I would lose alot of info, since my last backup was a week before hand.
But another community member told me that, SMF automatically backs itself up before each MOD installation..
So I just reinstalled before adding this mod :D
I also wrote my own robot.text and added that to the site.
So problem solved for anyone that may have a similar problem in the future.
Seeya:D
ThankYou in advance :)
Hi,
I'm still new here.
I tried to install it in my forum which is running SMF 1.1.4 but this came out:-
QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Does it have anything to do with the theme?
My forum is quite "clean". I think I have not installed other mods in it.
Thanks in advance.
Quote from: JLHC on December 02, 2007, 10:40:05 AM
Hi,
I'm still new here.
I tried to install it in my forum which is running SMF 1.1.4 but this came out:-
QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Does it have anything to do with the theme?
My forum is quite "clean". I think I have not installed other mods in it.
BTW, my forum's URL is http://forum.eewebhost.com (http://forum.eewebhost.com).
Please help.
Thanks in advance.
Ha, I get this often, you just have to go to "packages" and choose "standart files are writable".
I used this mod before but i have problems with uninstalling... I sure hope this is a good tool... although i dont know what really is the purpose of knowing spiders crawl on your web...
I hope its 100% fixed... this is a great tool to know who is the spider and who is the guest...
Quote from: Chadrew on December 02, 2007, 07:53:27 PM
Ha, I get this often, you just have to go to "packages" and choose "standart files are writable".
Hi,
It is set at "Only the standard files are writable.".
Or do I need to change anything for that?
Thanks.
Quote from: JLHC on December 03, 2007, 02:50:46 AM
Quote from: Chadrew on December 02, 2007, 07:53:27 PM
Ha, I get this often, you just have to go to "packages" and choose "standart files are writable".
Hi,
It is set at "Only the standard files are writable.".
Or do I need to change anything for that?
Thanks.
Yes, click "Change file permissions" and give it your FTP information.
Quote from: Chadrew on December 03, 2007, 10:09:16 AM
Yes, click "Change file permissions" and give it your FTP information.
Err, but I already have the FTP information in the "Installation Options" and i already chosen the "Only the standard files are writable." in the "Cleanup Permissions".
Do you mean you want me to cleanup?
Sorry, I'm not sure we are understanding each other. I'm not ever sure if it's the same problem. But I always have the error with "corrupted" files when in fact it's because some files are not writable.
See:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg80.imageshack.us%2Fimg80%2F350%2Fsmfaape7.gif&hash=fc400d958d92c730bed456bb58536a676f56a5b8)
I just tried that, but still the same thing came out.
Are you using SMF 1.1.4?
Yes. I guess it's something else then? And I was so sure. I always get this problem when my package directory and the files in it aren't writable.
I'm trying to install this but I'm getting the following error:
QuoteYou cannot download or install new packages because the Packages directory or one of the files in it are not writable!
When I check my Error Log the message is:
Quote2: packageinstall(/home/xxxxx/public_html/Packages/temp/./code.php) [<a href='function.packageinstall'>function.packageinstall</a>]: failed to open stream: No such file or directory
File: /home/xxxxx/public_html/Sources/Packages.php
Line: 552
However Packages.php is in that directory and writable.
Anyone got any hints where I can start looking to resolve this?
im not sure but got to your server and brouse to the packeges directory and see if there is a temp folder there if not create one and it should work
Forgive my ignorance on this, I didn't want to read 71 pages on this topic. I have had this mod installed for some time. I can see the spiders. Is this mod supposed to prevent spiders from getting on the board? If so, I haven't seen how to do this.
It's doing what it's supposed to do, and the mod doesn't block out Spiders.
Thanks. I just wanted to make sure I was getting out of this mod what I was supposed to.
8: Undefined index: ob_googlebot_stats_lastvisit
Datoteka: /home2/autbsorg/public_html/Themes/default/Display.template.php (main_below sub template - eval?)
Linija: 475
8: Undefined index: ob_googlebot_stats_lastvisit
Datoteka: /home2/autbsorg/public_html/Themes/default/BoardIndex.template.php (main_below sub template - eval?)
Linija: 475
8: Undefined index: ob_googlebot_stats_lastvisit
Datoteka: /home2/autbsorg/public_html/Themes/default/TPortal.template.php (main_below sub template - eval?)
Linija: 475
I need urgent help for this because it generates insane amount of errors.
Come on, anybody? :(
Well, I think my problem have been settled.
I don't know why and I don't know how, either it is SMF 1.1.4 or my theme, now I can view bots and spiders visiting my site in the 'Who's Online' page.
Thank everybody for helping me out. ;)
I don't think you have been able to view the spiders in the Who's Online list. I've been running the mod for ages, but someone can correct me if I'm wrong :)
Quote from: Smith6612 on December 11, 2007, 03:41:41 PM
I don't think you have been able to view the spiders in the Who's Online list. I've been running the mod for ages, but someone can correct me if I'm wrong :)
Here is the screenshot, noticed that 'ia_archiver' is an Alexa bot and Google spider.
I'm not using this mod, it detects spiders and bots automatically (I don't know how, maybe its SMF 1.1.4 or my theme).
Quote from: JLHC on December 11, 2007, 08:06:53 AM
Well, I think my problem have been settled.
I don't know why and I don't know how, either it is SMF 1.1.4 or my theme, now I can view bots and spiders visiting my site in the 'Who's Online' page.
Thank everybody for helping me out. ;)
use Custom Who.template.php
http://www.simplemachines.org/community/index.php?topic=19243.0
Sorry for my question.
I have just installed this MOD "Googlebot_v2_0_3_only_smf1.1.x.zip", the install was successful.
But I don't know how to use it, there is no change to my forum main index.
Do I have to set anything in the ACP and how to do that?
Thanks.
In the admin section under Features and Options is where you will find the configuration options for googlebots and spiders. :)
Quote from: Bigguy on December 18, 2007, 12:32:19 PM
In the admin section under Features and Options is where you will find the configuration options for googlebots and spiders. :)
I see that option, but what is standard options?
I use the default value but nothing shown at my forum main index.
Is it possible to test that function at localhost?
Thanks.
Is this a direct install? or will I run into issues with the mods i have already installed?
these are the one's I have installed.
Mod Name Version
1. Signature Settings Mod 1.1
2. SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update 1.0
3. Display Signatures Only Once Per Page 1.2
4. MessagePreviewOnHover 1.5
5. Users Online Today Mod 1.4.0
6. Ad Managment 2.3
I'm wanting to kill these darn bots, they totally upped my most online count today, and it's more then the people that were online today. (or at least at the time is states)
Also, will it work with the gallery mod since I'll be installing that next week.
It should install no problem with the mods you have installed. Yes it works with the gallery also. This mod will NOT stop the spiders though eh..... All it does is count them and give them a name on your board. If you want to stop the spiders all together then you should google "robot.txt"
Hi peeps :)
I am getting this error:
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 code.php
Im running SMF 1.1.4, and TP 0.9.8.
And have the TP Invasion theme installed.. This theme supports the Mod.
I have these mods installed:
1. TinyPortal 0.983
2. Are You Human? Anti-Bot Registration Check 1.0
3. E-Arcade 2.4.2
4. Welcome Topic Mod 1.0
5. Add Domaintools to TrackIP 1.0
6. Country Flags 1.0.1
7. Googlebot & Spiders Mod 2.0.3
8. Invite 1.14
I dont see why I would have this problem, but maybe one of our more experienced users, could see the problem :)
Thankyou in advance :)
Your error is a variant on the most common error of all those reported on these pages...it tells you that another mod you have installed has already edited the file in question and that you thus need to do a manual installation of this mod. Please read:
http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)
http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)
The following may also prove helpful:
http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Mirror of the last link:
http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Awesome.
Thanks buddy.. I'll get to reading these now :)
Cheers :)
where do I change it so the correct English syntax is displayed on the bottom of the page... should say 'Google last visited this page on" instead of "Google visited last this page'?
Hi All,
I installed this MOD "Googlebot_v2_0_3_only_smf1.1.x.zip", the result is successful but I can not see anything at my forum bottom such as:
"Google last visited..."
Do I miss something?
Thanks.
Are you using a theme away from the default? That might be why.
Yes, that's the problem. The MOD only work with default theme.
How to make it work with any themes?
Thanks.
this is what I get on my page
6, 0 guests, 1 User
and this error in my logs
/home/XXX/public_html/Themes/default/BoardIndex.template.php (main sub template - eval?
Quote from: vdubbia on December 25, 2007, 11:28:24 PM
where do I change it so the correct English syntax is displayed on the bottom of the page... should say 'Google last visited this page on" instead of "Google visited last this page'?
Go here
/Forum/Themes/Default/Modifications.english.php
Line 224 $txt['ob_googlebot_stats_lastvisit'] = 'Google visited last this page' ';
and change to
$txt['ob_googlebot_stats_lastvisit'] = 'Google last visited this page on ';
Why people dont seem to understand this is beyond me... but if your using a theme other than the default theme you need to hand edit your cusom theme with the mod changes to get it to work... but this DOES work with 1.1.4 & custom themes as of today seeing as how I just installed it on my 3rd forum...
No need to get angry. :) Everything takes time. ;)
Quote from: MoreBloodWine on December 31, 2007, 12:54:04 AM
Why people dont seem to understand this is beyond me... but if your using a theme other than the default theme you need to hand edit your cusom theme with the mod changes to get it to work... but this DOES work with 1.1.4 & custom themes as of today seeing as how I just installed it on my 3rd forum...
Quote from: Bigguy on December 31, 2007, 03:24:59 AM
No need to get angry. :) Everything takes time. ;)
Quote from: MoreBloodWine on December 31, 2007, 12:54:04 AM
Why people dont seem to understand this is beyond me... but if your using a theme other than the default theme you need to hand edit your cusom theme with the mod changes to get it to work... but this DOES work with 1.1.4 & custom themes as of today seeing as how I just installed it on my 3rd forum...
If that came accross as angry I apologize, but yes I to use to be the same way but it seems like you have to tell people 10 + times before they go oh wait a min thats what I have to do...
@ MoreBloodWine
Personally I tend to have some stock answers handy for such situations and so it's not a lot of bother to just cut and paste them in the reply box...it also means that I can spend more time on the members who do read the past postings and do try to help themeselves...pasting in stock answers gives the people the information they need so nobody loses and your blood pressure stays managable.
Hi,
I installed this Mod and got the following errors on my forum error log:
Quote2: fclose(): supplied argument is not a valid stream resource
File: /home/gemigene/public_html/forumsoft/Sources/Subs-Package.php
Line: 1908
2: fopen(/home/gemigene/public_html/forumsoft/Themes/default/languages/Modifications.spanish.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
File: /home/gemigene/public_html/forumsoft/Sources/Subs-Package.php
Line: 1901
How crucial are those error? I realize I don't have Español installed, could this be the reason for the error?
Also, the screencap in the permissions is not the same as shown on the Mod page, mine shows as follows (see attachment)
Thanks,
Gene
If your forum is a spanish speaking forum then maybe...
Quote from: MoreBloodWine on January 02, 2008, 06:46:55 PM
If your forum is a spanish speaking forum then maybe...
Only want to make sure that the errors were caused by the package manager trying to write to the Spanish language file.
Waiting for Bots to spider the forum to see if the Mod is working... LOL!
Hasta luego y gracias,
Gene
:)
It appears that furl_open may not be enabled on your server. A number of mods won't work without it being available but if enabled it can open vulnerabilities which is why some hosts disable it.
Quote from: TrueSatan on January 02, 2008, 07:04:13 PM
It appears that furl_open may not be enabled on your server. A number of mods won't work without it being available but if enabled it can open vulnerabilities which is why some hosts disable it.
Thanks for answering. So, I assume the Mod will not work? Should I uninstall it? I haven't had any Bots since I installed it so I have no clue if it'll work or not...
Gene
Given those errors I doubt that the mod will work (haven't checked the code though) and, personally, I don't keep mods that give errors on my sites. It isn't the mod's fault in this case but all the same you don't benefit from a full error log. To be frank the keeping of a log of the visits of bots and spiders isn't a vital issue for most forum owners so it's not the biggest loss in the world.
Quote from: TrueSatan on January 02, 2008, 07:15:14 PM
Given those errors I doubt that the mod will work (haven't checked the code though) and, personally, I don't keep mods that give errors on my sites. It isn't the mod's fault in this case but all the same you don't benefit from a full error log. To be frank the keeping of a log of the visits of bots and spiders isn't a vital issue for most forum owners so it's not the biggest loss in the world.
The only reason I installed it is that yesterday, I had 14 Yahoo Bots on my forum which were counted as visitors on my "Most Online" stats line and wanted a way to circumvent this from happening (Bots being counted as "guests").
Cheers,
Gene
This mod won't stop them but stopping them is easy to do...see the following link for details:
http://www.robotstxt.org/ (http://www.robotstxt.org/)
Quote from: TrueSatan on January 02, 2008, 07:37:12 PM
This mod won't stop them but stopping them is easy to do...see the following link for details:
http://www.robotstxt.org/ (http://www.robotstxt.org/)
I do have a robots.txt file in my root directory and I don't want Google or any of the major search engines stop crawling my board (I do want to be indexed) but it's that darn counting Spiders as guests that I don't really care for.
Cheers,
Gene
This may be what you are seeking:
http://www.simplemachines.org/community/index.php?topic=19243.0 (http://www.simplemachines.org/community/index.php?topic=19243.0)
Quote from: TrueSatan on December 31, 2007, 04:51:23 AM
@ MoreBloodWine
Personally I tend to have some stock answers handy for such situations and so it's not a lot of bother to just cut and paste them in the reply box...it also means that I can spend more time on the members who do read the past postings and do try to help themeselves...pasting in stock answers gives the people the information they need so nobody loses and your blood pressure stays managable.
LOL! Good stuff. There's a Mod for phpBB 2.0.22 for "canned responses", all you have to do is type the text in once for any usual question you answer and when you need it, pick it out from a drop-down box.
BTW, even though I had these errors, it's working. I was swarmed by Yahoo Bots and the Mod worked as expected except that it showed the Bots first (19 Spiders, 0 Guests, 1 User) instead of showing Spiders last.
Also installed that modded Who.template, works great!
Thanks for the help,
Gene
According to my previous post, I would like to show Spiders last (1 Guest, 1 User, 4 Spiders) and been playing around with this bit of code in Boardindex.template.php and I just can't get the commas and spaces in the right place.
Can anyone figure this out:
echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];
Thanks,
Gene
I installed the Googlebot & Spiders mod in the Core theme (this is the only theme I use across the site) and I installed the whois template for the spiders as well.
I can see the Spiders when i click the who's online button so I'm assuming the whois template worked.
However on the main forum page there is no difference...spiders and bots still show as Guests. There are no options in the Admin control panel to show settings for the Googlebot & Spiders mod but the mod is a green light for installed succesfully.
What has gone wrong here?
Did you activate it in the ACP?
ACP -> Features and Options -> Googlebot & Spiders?
You'll also have to set permissions for who gets to see them.
Cheers,
Gene
p.s. anyone want to help me with my previous post?
Thats what I mean...under Packages it says it is installed but there is nothing under Features and Options regarding Googlebot and Spiders. Nothing at all!
From what I've read above it sounds like the same that happens if you have a custom theme...but I don't have a custom theme...I'm just using the core smf theme.
@ Rabain
The likely reason is:
You need to go to ACP>Server Settings and set your forum language to English and not English utf8 and to ACP>Features and Options>Basic Settings and uncheck Enable user-selectable language support.
Unfortunately for me both those options are already at the settings you mention.
By the way I do have the latest version of TP installed.
TP shouldn't affect this mod...thanks for mentioning it though as it's always useful to have as much information as possible.
Please check modifications.english.php in you theme's language directory to see if you have the following strings in place in it:
// 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 <div class="smalltext">("' . $txt['ob_googlebot_count_all_instances'] . '" must be selected)</div>';
$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
If they aren't there please add them but their not being there would also make me want to have you check, by way of the process of a manual install, that all edits etc the mod seeks to make are in place as one being missing would make the rest in question.
Those entries are in the file.
I have a feeling there is something basic I'm missing here.
Firstly when you installed the mod were any failed files shown?
As a little housekeeping so as to get things right before we go further:
You need to go to ACP>Packages>Options>Installation Options and set the fields according to your hosting details then on the same page go to Cleanup Permissions and select All files Writeable and run the cleanup...check via ftp that CHMOD of all your files is now 777 or 775 according to the peculiarities of your hosting and if not recheck the settings you made in Installation Options and run the cleanup again...continue as needed until you get the right settings.
Following that you need to check the process of a manual install as I mentioned above:
Please read:
http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)
http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)
The following may also prove helpful:
http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Mirror of the last link:
http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
If your forum settings are as you say they are (not disbelieving you!) then there must be something missing in the rest of the installation and checking the files is the only way to make sure of that and to put it right.
Thanks for the tips, there was an issue about permission when I first tried to install the mod...though when I manually Chmodded the folders and created a temp directory in the Packages folder it installed with no errors.
I will try your other suggestions.
It's not common, but I've seen instances where the file ownership on a server is incorrect (can be fixed by the sysadmin using CHOWN) and the user setting CHMOD to 777/775 doesn't really give a 777/775 permission set...bit of a long shot I'll admit but that could be the problem you have.
hi everybody,
i'm a french guy so sorry fo my poor english language.
I use SMF 1.1.4 with the "AA_new_damage" template, and i have some problems with GoogleBot 2.0.3
In a first time i had an error with the instalation:
i had this message
QuoteIncorrect table name `` in .../code.php
so i had make some modifications in this file like this:
<?php
db_query("INSERT IGNORE INTO {$db_prefix}settings (`variable`, `value`) VALUES ('ob_googlebot_count_all_instances', '1')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (`variable`, `value`) VALUES ('ob_googlebot_display_all_instances', '1')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (`variable`, `value`) VALUES ('ob_googlebot_display_agent', '0')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (`variable`, `value`) VALUES ('ob_googlebot_display_own_list', '0')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (`variable`, `value`) VALUES ('ob_googlebot_count_most_online', '0')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (`variable`, `value`) VALUES ('ob_googlebot_redirect_phpsessid', '1')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (`variable`, `value`) VALUES ('ob_googlebot_stats', '1')", __FILE__, __LINE__);
db_query("
CREATE TABLE IF NOT EXISTS {$db_prefix}ob_googlebot_stats (
`agent` varchar(40) NOT NULL default '',
`board` varchar(20) NOT NULL default '',
`topic` varchar(20) NOT NULL default '',
`url` varchar(100) NOT NULL default '',
`lastvisit` int(10) unsigned NOT NULL default '0',
`frequency` int(10) unsigned NOT NULL default '0',
`visits` int(10) unsigned NOT NULL default '0',
`timestamp` timestamp(14) NOT NULL,
KEY `agent` (`agent`),
KEY `board` (`board`),
KEY `topic` (`topic`),
KEY `url` (`url`)
)", __FILE__, __LINE__);
?>
and after it succefully instaled.
i've added "Modifications.french.php" in the "/theme/default" directory (my forum is in french).
and i added the Mod of "Who.template.php".
So i cannot see any spiders name in se home page when any of this is connected on the forum.
But when i clicking on "Who online" i see this name with the mod of "Who.template.php".
i have these otions:
Quote
Count all instances of same spider Actived
Display all instances of same spider Actived
Display agent instead of name Actived
Display spiders in its own list Not Actived
Count in "Most Online" Not Actived
Redirect PHPSESSID URLs Actived
Can you help me?
My forum is here (http://www.32eme.net/joomla/forum_smf/)
EDIT: I also manualy modified "BoardIndex.php" and "Index.template.php" files of AA_New_dammage theme with the modification inclued in "Modifications.xml" for thes files.
these modifications:
<file name="$themedir/index.template.php">
<operation>
<search position="before"><![CDATA[
if ($context['show_load_time'])
echo '
<span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';]]></search>
<add><![CDATA[
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>';]]></add>
</operation>
</file>
<file name="$themedir/BoardIndex.template.php">
<operation>
<search position="after"><![CDATA[$context['num_guests'], ' ', $context['num_guests'] == 1]]></search>
<add><![CDATA[(empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), ]]></add>
</operation>
<operation>
<search position="before"><![CDATA[', $txt[140], ':<br />', implode(', ', $context['list_users_online']);]]></search>
<add><![CDATA[
if (!empty($context['spiders']))
{
if ($modSettings['ob_googlebot_display_own_list'])
echo '
<br />
', $txt['ob_googlebot_spiders_last_active'], ':<br />';
else
{
if (empty($context['users_online']))
echo '
', $txt[140], ':<br />';
else
echo ', ';
}
echo implode(', ', $context['spiders']);
}]]></add>
</operation>
</file>
and it's not work :(
Hi all,
i try to install GoogleBot 2.0.3 in my forum Powered by SMF 1.1.4 (defult theam)
i use flowing mod
1. Ad Revenue Sharing 1.2
2. SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update 1.0
3. Hide SMF Version 1.0 4. Integrated Chat 2.9
5. Invite 1.14 6. Google Talk Field 1.0.3
7. Googlebot & Spiders Mod 2.0.3
the below massege is show, when i try to install the mod.
!!Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
5. Execute Modification ./Sources/ModSettings.php Test failed
what can i do? plz help me.
Your error is a variant on the most common error of all those reported on these pages...it tells you that another mod you have installed has already edited the file(s) in question and that you thus need to do a manual installation of this mod. Please read:
http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)
http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)
The following may also prove helpful:
http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Mirror of the last link:
http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
I instal this board .. and it works with default but now with other skin/s .. I can access to Google & Spiders in Features and Options .. when I click on it .. just redirect me to Basic Features .. I get one more error .. when I try to change some member group this msg shows up :
An Error Has Occurred!
Your session timed out while posting. Please go back and try again.
what should I do ??
It installed perfectly and seems to work great. However I am unable to access the settings. Every time i press the button it simply redirects to Features and Options ==>Basic Features menu. What do I need to do to correct that?
Thank You.
Are there any errors in your error logs in the admin panel. ???
Quote from: gemigene on January 02, 2008, 10:55:50 PM
According to my previous post, I would like to show Spiders last (1 Guest, 1 User, 4 Spiders) and been playing around with this bit of code in Boardindex.template.php and I just can't get the commas and spaces in the right place.
Can anyone figure this out:
echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];
Thanks,
Gene
So, ideas anyone? I really want to show Spiders in the last position in my "Users online" box. Now I have 3 Spiders, 2 Guests, 3 Users.
Cheers,
Gene
The modsettings.php test failed, how do I fix it?
gemigene,
Why?
The only users that will see the spiders count are the admin - regular users and guests will never see it.
Quote from: Simplemachines Cowboy on February 10, 2008, 10:11:17 PM
gemigene,
Why?
The only users that will see the spiders count are the admin - regular users and guests will never see it.
That's not true. There are permissions for this, so if he selects other groups to see it, he wont be the only one ;)
Quote from: Alundra on February 11, 2008, 11:53:00 AM
That's not true. There are permissions for this, so if he selects other groups to see it, he wont be the only one ;)
Smacks myself upside the head...
Forgot to look there, you are absolutely right!
Just installed this mod manually using package parser. However, I now get this error when testing:
Notice: Undefined index: ob_googlebot_redirect_phpsessid in /usr/home/web/webXXXXX/byggmuskler.no/forum/index.php on line 76
EDIT: PROBLEM SOLVED :)
Quote from: Simplemachines Cowboy on February 11, 2008, 04:35:26 PM
Quote from: Alundra on February 11, 2008, 11:53:00 AM
That's not true. There are permissions for this, so if he selects other groups to see it, he wont be the only one ;)
Smacks myself upside the head...
Forgot to look there, you are absolutely right!
LOL
:D It's all good :D
Hi to all I have a little problem this is the error that i see:
Parse error: syntax error, unexpected $end in /web/htdocs/www.risorsedirete.com/home/forum/Sources/ModSettings.php on line 565
help me please this is my ModSettings.php
code:
<?php
/**********************************************************************************
* ModSettings.php *
***********************************************************************************
* SMF: Simple Machines Forum *
* Open-Source Project Inspired by Zef Hemel ([email protected]) *
* =============================================================================== *
* Software Version: SMF 1.1 *
* Software by: Simple Machines (http://www.simplemachines.org) *
* Copyright 2006 by: Simple Machines LLC (http://www.simplemachines.org) *
* 2001-2006 by: Lewis Media (http://www.lewismedia.com) *
* Support, News, Updates at: http://www.simplemachines.org *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under *
* the terms of the provided license as published by Simple Machines LLC. *
* *
* This program is distributed in the hope that it is and will be useful, but *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY *
* or FITNESS FOR A PARTICULAR PURPOSE. *
* *
* See the "license.txt" file for details of the Simple Machines license. *
* The latest version can always be found at http://www.simplemachines.org. *
**********************************************************************************/
if (!defined('SMF'))
die('Hacking attempt...');
/*
This file is here to make it easier for installed mods to have settings
and options. It uses the following functions:
void ModifyFeatureSettings()
// !!!
void ModifyFeatureSettings2()
// !!!
void ModifyBasicSettings()
// !!!
void ModifyLayoutSettings()
// !!!
void ModifyKarmaSettings()
// !!!
Adding new settings to the $modSettings array:
---------------------------------------------------------------------------
// !!!
*/
/*
Adding options to one of the setting screens isn't hard. The basic format for a checkbox is:
array('check', 'nameInModSettingsAndSQL'),
And for a text box:
array('text', 'nameInModSettingsAndSQL')
(NOTE: You have to add an entry for this at the bottom!)
In these cases, it will look for $txt['nameInModSettingsAndSQL'] as the description,
and $helptxt['nameInModSettingsAndSQL'] as the help popup description.
Here's a quick explanation of how to add a new item:
* A text input box. For textual values.
ie.
array('text', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
* A text input box. For numerical values.
ie.
array('int', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
* A text input box. For floating point values.
ie.
array('float', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
* A large text input box. Used for textual values spanning multiple lines.
ie.
array('large_text', 'nameInModSettingsAndSQL', 'OptionalNumberOfRows',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
* A check box. Either one or zero. (boolean)
ie.
array('check', 'nameInModSettingsAndSQL', null, &$txt['descriptionOfTheOption'],
'OptionalReferenceToHelpAdmin'),
* A selection box. Used for the selection of something from a list.
ie.
array('select', 'nameInModSettingsAndSQL', array('valueForSQL' => &$txt['displayedValue']),
&$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
Note that just saying array('first', 'second') will put 0 in the SQL for 'first'.
* A password input box. Used for passwords, no less!
ie.
array('password', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
For each option:
type (see above), variable name, size/possible values, description, helptext.
OR
make type 'rule' for an empty string for a horizontal rule.
OR
make type 'heading' with a string for a titled section. */
// This function passes control through to the relevant tab.
function ModifyFeatureSettings()
{
global $context, $txt, $scripturl, $modSettings, $sourcedir;
// You need to be an admin to edit settings!
isAllowedTo('admin_forum');
// All the admin bar, to make it right.
adminIndex('edit_mods_settings');
loadLanguage('Help');
loadLanguage('ModSettings');
// Will need the utility functions from here.
require_once($sourcedir . '/ManageServer.php');
$context['page_title'] = $txt['modSettings_title'];
$context['sub_template'] = 'show_settings';
$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'googlemap' => 'ModifyGoogleMapSettings',
'googlemap' => 'ModifyGoogleMapSettings',
'ThankYou' => 'ModifyThankYouSettings',
'MemberColorLinks' => 'ModifyMemberColorLinksSettings',
'karma' => 'ModifyKarmaSettings',
'googlebot' => 'ModifyGooglebotSettings',
);
// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];
// Load up all the tabs...
$context['admin_tabs'] = array(
'title' => &$txt['modSettings_title'],
'help' => 'modsettings',
'description' => $txt['smf3'],
'tabs' => array(
'basic' => array(
'title' => $txt['mods_cat_features'],
'href' => $scripturl . '?action=featuresettings;sa=basic;sesc=' . $context['session_id'],
),
'layout' => array(
'title' => $txt['mods_cat_layout'],
'href' => $scripturl . '?action=featuresettings;sa=layout;sesc=' . $context['session_id'],
),
'ThankYou' => array(
'title' => $txt['Thank_You_Headline'],
'href' => $scripturl . '?action=featuresettings;sa=ThankYou;sesc=' . $context['session_id'],
),
'MemberColorLinks' => array(
'title' => $txt['MemberColorLinkHeadline'],
'href' => $scripturl . '?action=featuresettings;sa=MemberColorLinks;sesc=' . $context['session_id'],
),
'sbox' => array(
'title' => $txt['sbox_ModTitle'],
'href' => $scripturl . '?action=featuresettings;sa=sbox;sesc=' . $context['session_id'],
),
'googlemap' => array(
'title' => $txt['googleMapFO'],
'href' => $scripturl . '?action=featuresettings;sa=googlemap;sesc=' . $context['session_id'],
),
'googlemap' => array(
'title' => $txt['googleMapFO'],
'href' => $scripturl . '?action=featuresettings;sa=googlemap;sesc=' . $context['session_id'],
),
'karma' => array(
'title' => $txt['smf293'],
'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
),
'googlebot' => array(
'title' => $txt['ob_googlebot_modname'],
'href' => $scripturl . '?action=featuresettings;sa=googlebot;sesc=' . $context['session_id'],
),
'googlebot' => array(
'title' => $txt['ob_googlebot_modname'],
'href' => $scripturl . '?action=featuresettings;sa=googlebot;sesc=' . $context['session_id'],
'is_last' => true,
),
),
);
// 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');
// Quick session check...
checkSession();
require_once($sourcedir . '/ManageServer.php');
$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'ThankYou' => 'ModifyThankYouSettings',
'MemberColorLinks' => 'ModifyMemberColorLinksSettings',
'karma' => 'ModifyKarmaSettings',
'googlebot' => 'ModifyGooglebotSettings',
'googlemap' => 'ModifyGoogleMapSettings',
);
// Default to core (I assume)
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
// Actually call the saving function.
$subActions[$_REQUEST['sa']]();
}
function ModifyBasicSettings()
{
global $txt, $scripturl, $context, $settings, $sc, $modSettings;
$config_vars = array(
// Big Options... polls, sticky, bbc....
array('select', 'pollMode', array(&$txt['smf34'], &$txt['smf32'], &$txt['smf33'])),
'',
// Basic stuff, user languages, titles, flash, permissions...
array('check', 'allow_guestAccess'),
array('check', 'userLanguage'),
array('check', 'allow_editDisplayName'),
array('check', 'allow_hideOnline'),
array('check', 'allow_hideEmail'),
array('check', 'guest_hideContacts'),
array('check', 'titlesEnable'),
array('check', 'enable_buddylist'),
array('text', 'default_personalText'),
array('int', 'max_signatureLength'),
'',
// Stats, compression, cookies.... server type stuff.
array('text', 'time_format'),
array('select', 'number_format', array('1234.00' => '1234.00', '1,234.00' => '1,234.00', '1.234,00' => '1.234,00', '1 234,00' => '1 234,00', '1234,00' => '1234,00')),
array('float', 'time_offset'),
array('int', 'failed_login_threshold'),
array('int', 'lastActive'),
array('check', 'trackStats'),
array('check', 'hitStats'),
array('check', 'enableErrorLogging'),
array('check', 'securityDisable'),
array('check', 'hideVersion'),
'',
// Reactive on email, and approve on delete
array('check', 'send_validation_onChange'),
array('check', 'approveAccountDeletion'),
'',
// Option-ish things... miscellaneous sorta.
array('check', 'allow_disableAnnounce'),
array('check', 'disallow_sendBody'),
array('check', 'modlog_enabled'),
array('check', 'queryless_urls'),
'',
// Action SEF URLS?
array('check', 'enableActionurls'),
array('check', 'enableCurls'),
array('check', 'enablePageurls'),
array('check', 'enableUseQuestion'),
array('check', 'enableNoIndex'),
'',
// Width/Height image reduction.
array('int', 'max_image_width'),
array('int', 'max_image_height'),
'',
// Reporting of personal messages?
array('check', 'enableReportPM'),
);
// Saving?
if (isset($_GET['save']))
{
// Fix PM settings.
$_POST['pm_spam_settings'] = (int) $_POST['max_pm_recipients'] . ',' . (int) $_POST['pm_posts_verification'] . ',' . (int) $_POST['pm_posts_per_hour'];
$save_vars = $config_vars;
$save_vars[] = array('text', 'pm_spam_settings');
saveDBSettings($save_vars);
writeLog();
redirectexit('action=featuresettings;sa=basic');
}
// Hack for PM spam settings.
list ($modSettings['max_pm_recipients'], $modSettings['pm_posts_verification'], $modSettings['pm_posts_per_hour']) = explode(',', $modSettings['pm_spam_settings']);
$config_vars[] = array('int', 'max_pm_recipients');
$config_vars[] = array('int', 'pm_posts_verification');
$config_vars[] = array('int', 'pm_posts_per_hour');
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=basic';
$context['settings_title'] = $txt['mods_cat_features'];
prepareDBSettingContext($config_vars);
}
function ModifyLayoutSettings()
{
global $txt, $scripturl, $context, $settings, $sc;
$config_vars = array(
// Compact pages?
array('check', 'compactTopicPagesEnable'),
array('int', 'compactTopicPagesContiguous', null, $txt['smf235'] . '<div class="smalltext">' . str_replace(' ', ' ', '"3" ' . $txt['smf236'] . ': <b>1 ... 4 [5] 6 ... 9</b>') . '<br />' . str_replace(' ', ' ', '"5" ' . $txt['smf236'] . ': <b>1 ... 3 4 [5] 6 7 ... 9</b>') . '</div>'),
'',
// Stuff that just is everywhere - today, search, online, etc.
array('select', 'todayMod', array(&$txt['smf290'], &$txt['smf291'], &$txt['smf292'])),
array('check', 'topbottomEnable'),
array('check', 'onlineEnable'),
array('check', 'enableVBStyleLogin'),
'',
// Pagination stuff.
array('int', 'defaultMaxMembers'),
'',
// This is like debugging sorta.
array('check', 'timeLoadPageEnable'),
array('check', 'disableHostnameLookup'),
'',
// Who's online.
array('check', 'who_enabled'),
'',
// SimpleImageshack mod - SimpleTweaks.co.nr
array('check', 'SimpleImageShack_enable'),
array('check', 'SimpleImageShack_permis'),
array('int', 'SimpleImageShack_width'),
array('int', 'SimpleImageShack_height'),
array('text', 'SimpleImageShack_txtclr'),
array('int', 'SimpleImageShack_uplfld'),
'',
// The Streaming Mod Options.
array('check', 'enableEmbeddedStream'),
array('check', 'enableEmbeddedReal'),
array('check', 'enableEmbeddedQuick'),
array('check', 'enableGoogleVideo'),
array('check', 'enableYouTube'),
);
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=layout');
loadUserSettings();
writeLog();
}
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=layout';
$context['settings_title'] = $txt['mods_cat_layout'];
prepareDBSettingContext($config_vars);
}
function ModifyKarmaSettings()
{
global $txt, $scripturl, $context, $settings, $sc;
$config_vars = array(
// Karma - On or off?
array('select', 'karmaMode', explode('|', $txt['smf64'])),
'',
// Who can do it.... and who is restricted by time limits?
array('int', 'karmaMinPosts'),
array('float', 'karmaWaitTime'),
array('check', 'karmaTimeRestrictAdmins'),
'',
// What does it look like? [smite]?
array('text', 'karmaLabel'),
array('text', 'karmaApplaudLabel'),
array('text', 'karmaSmiteLabel'),
);
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=karma');
}
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=karma';
$context['settings_title'] = $txt['smf293'];
prepareDBSettingContext($config_vars);
function ModifyGooglebotSettings()
{
global $txt, $scripturl, $context, $settings, $sc;
$config_vars = array(
// Count all instances of spiders?
array('check', 'ob_googlebot_count_all_instances'),
array('check', 'ob_googlebot_display_all_instances'),
array('check', 'ob_googlebot_display_agent'),
array('check', 'ob_googlebot_display_own_list'),
'',
// Count spiders on most online?
array('check', 'ob_googlebot_count_most_online'),
'',
// Redirect PHPSESSID URLs?
array('check', 'ob_googlebot_redirect_phpsessid'),
);
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=googlebot');
}
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=googlebot';
$context['settings_title'] = $txt['ob_googlebot_modname'];
prepareDBSettingContext($config_vars);
}
function ModifyThankYouSettings()
{
global $txt, $scripturl, $context, $settings, $sc;
$config_vars = array(
//Thank you User Settings?
array('check', 'Thank_You_UserOrder'),
array('check', 'Thank_You_MemberColor'),
array('check', 'Thank_You_AddCounter'),
'',
//ThankYouList or not ;)
array('check', 'Thank_You_LinkListOnly'),
array('check', 'Thank_You_AddLink'),
array('int', 'Thank_You_UserPreview'),
'',
//HideMod DIN1031 Version
array('check', 'Thank_You_ShowHidden'),
//HideMod Leaf Version
array('check', 'Thank_You_ShowHidePostReply'),
);
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=ThankYou');
}
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=ThankYou';
$context['settings_title'] = $txt['Thank_You_Headline'];
prepareDBSettingContext($config_vars);
}
function ModifyMemberColorLinksSettings()
{
global $txt, $scripturl, $context, $settings, $sc;
$config_vars = array(
// Standard Membercolor?
array('check', 'MemberColorLink'),
'',
//Some Stat Settings
array('check', 'MemberColorLatestMember'),
array('check', 'MemberColorStats'),
array('check', 'MemberColorWhoIsOnline'),
'',
//Thread and Boardsettings
array('check', 'MemberColorThreadOwner'),
array('check', 'MemberColorThreadLastPost'),
array('check', 'MemberColorThreadChild'),
'',
//Birthday and Calendar
array('check', 'MemberColorBoardindex'),
array('check', 'MemberColorBirthday'),
'',
//Some Recent Things
array('check', 'MemberColorRecentOwner'),
array('check', 'MemberColorRecentLastPost'),
'',
// PM Colors
array('check', 'MemberColorInbox'),
array('check', 'MemberColorOutbox'),
'',
//Guest Color
array('text', 'MemberColorGuests'),
//Banned User Color
array('text', 'MemberColorBanned'),
);
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=MemberColorLinks');
}
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=MemberColorLinks';
$context['settings_title'] = $txt['MemberColorLinkHeadline'];
prepareDBSettingContext($config_vars);
}
$txt['googleMapsEnable'] = 'Abilita Mappa Utenti Google';
$txt['googleMapsEnableLegend'] = 'Mostra legenda segnaposti';
$txt['googleSidebar'] = 'Dove mostrare la barra laterale';
$txt['googleMapsKey'] = 'Chiave per Google Maps API';
$txt['googleMapsPinGender'] = 'Mostra il sesso sul segnaposto?';
$txt['googleMapsPinNumber'] = 'Numero massimo di segnaposti da mostrare';
$txt['googleMapsType'] = 'Tipo di mappa da mostrare';
$txt['googleMapsDefaultLat'] = 'Latitudine di default';
$txt['googleMapsDefaultLong'] = 'Longitudine di default';
$txt['googleMapsDefaultZoom'] = 'Zoom di default';
$txt['googleMapsEnableClusterer'] = 'Abilita raggruppamento segnaposti';
$txt['googleMapsMinMarkerCluster'] = 'Segnaposto minimi per gruppo';
$txt['googleMapsMaxVisMarker'] = 'Numero massimo di segnaposto visibili';
$txt['googleMapsMaxNumClusters'] = 'Numero massimo di gruppi';
$txt['googleMapsMaxLinesCluster'] = 'Numero massimo di linee nel Info Box del gruppo';
$txt['googleMapFO'] = 'Mappa Utenti';
function ModifyGoogleMapSettings()
{
global $txt, $scripturl, $context, $settings, $sc;
$config_vars = array(
// Map - On or off?
array('check', 'googleMapsEnable'),
array('check', 'googleMapsEnableLegend'),
'',
// Key, pins static/gender/membergroup
array('text', 'googleMapsKey'),
array('check', 'googleMapsPinGender'),
array('int', 'googleMapsPinNumber'),
array('select', 'googleMapsType', array('G_NORMAL_MAP' => 'Map', 'G_SATELLITE_MAP' => 'Satellite', 'G_HYBRID_MAP' => 'Hybrid')),
array('select', 'googleSidebar', array('No Sidebar', 'Sidebar Right')),
'',
// Default Location/Zoom
array('float', 'googleMapsDefaultLat', '25'),
array('float', 'googleMapsDefaultLong', '25'),
array('int', 'googleMapsDefaultZoom'),
'',
// Clustering Options
array('check', 'googleMapsEnableClusterer'),
array('int', 'googleMapsMinMarkerCluster'),
array('int', 'googleMapsMaxVisMarker'),
array('int', 'googleMapsMaxNumClusters'),
array('int', 'googleMapsMaxLinesCluster'),
);
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=googlemap');
}
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=googlemap';
$context['settings_title'] = $txt['googleMapFO'];
prepareDBSettingContext($config_vars);
}
?>
I don't know where is the problem i wait for you thanks again.
Why on earth do you have all those empty lines between your // Load up all the tabs... on line 546 and // Select the right tab based on the sub action... on your line 1149 ?
Here is what my code looks like for the exact same code/area:
// Load up all the tabs...
$context['admin_tabs'] = array(
'title' => &$txt['modSettings_title'],
'help' => 'modsettings',
'description' => $txt['smf3'],
'tabs' => array(
'basic' => array(
'title' => $txt['mods_cat_features'],
'href' => $scripturl . '?action=featuresettings;sa=basic;sesc=' . $context['session_id'],
),
'layout' => array(
'title' => $txt['mods_cat_layout'],
'href' => $scripturl . '?action=featuresettings;sa=layout;sesc=' . $context['session_id'],
),
'karma' => array(
'title' => $txt['smf293'],
'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
),
'googlebot' => array(
'title' => $txt['ob_googlebot_modname'],
'href' => $scripturl . '?action=featuresettings;sa=googlebot;sesc=' . $context['session_id'],
'is_last' => true,
),
),
);
// Select the right tab based on the sub action.
exsuse me but i not understand about your question, my code has many lines becouse i installed many mod, and the error is to the end code "?>", why? This i not understand. Thanks.
Quote from: l.uca on February 13, 2008, 07:17:59 AM
exsuse me but i not understand about your question, my code has many lines becouse i installed many mod, and the error is to the end code "?>", why? This i not understand. Thanks.
He means line breaks.
You have big spaces between your lines, Like the one I just made
And made again ;)
yes it's realy strange my first code ??? maybe is the code txt on the post i you can see my code without code txt
is this the code:
<?php
/**********************************************************************************
* ModSettings.php *
***********************************************************************************
* SMF: Simple Machines Forum *
* Open-Source Project Inspired by Zef Hemel (
[email protected]) *
* =============================================================================== *
* Software Version: SMF 1.1 *
* Software by: Simple Machines (http://www.simplemachines.org) *
* Copyright 2006 by: Simple Machines LLC (http://www.simplemachines.org) *
* 2001-2006 by: Lewis Media (http://www.lewismedia.com) *
* Support, News, Updates at: http://www.simplemachines.org *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under *
* the terms of the provided license as published by Simple Machines LLC. *
* *
* This program is distributed in the hope that it is and will be useful, but *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY *
* or FITNESS FOR A PARTICULAR PURPOSE. *
* *
* See the "license.txt" file for details of the Simple Machines license. *
* The latest version can always be found at http://www.simplemachines.org. *
**********************************************************************************/
if (!defined('SMF'))
die('Hacking attempt...');
/* This file is here to make it easier for installed mods to have settings
and options. It uses the following functions:
void ModifyFeatureSettings()
// !!!
void ModifyFeatureSettings2()
// !!!
void ModifyBasicSettings()
// !!!
void ModifyLayoutSettings()
// !!!
void ModifyKarmaSettings()
// !!!
Adding new settings to the $modSettings array:
---------------------------------------------------------------------------
// !!!
*/
/* Adding options to one of the setting screens isn't hard. The basic format for a checkbox is:
array('check', 'nameInModSettingsAndSQL'),
And for a text box:
array('text', 'nameInModSettingsAndSQL')
(NOTE: You have to add an entry for this at the bottom!)
In these cases, it will look for $txt['nameInModSettingsAndSQL'] as the description,
and $helptxt['nameInModSettingsAndSQL'] as the help popup description.
Here's a quick explanation of how to add a new item:
* A text input box. For textual values.
ie. array('text', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
* A text input box. For numerical values.
ie. array('int', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
* A text input box. For floating point values.
ie. array('float', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
* A large text input box. Used for textual values spanning multiple lines.
ie. array('large_text', 'nameInModSettingsAndSQL', 'OptionalNumberOfRows',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
* A check box. Either one or zero. (boolean)
ie. array('check', 'nameInModSettingsAndSQL', null, &$txt['descriptionOfTheOption'],
'OptionalReferenceToHelpAdmin'),
* A selection box. Used for the selection of something from a list.
ie. array('select', 'nameInModSettingsAndSQL', array('valueForSQL' => &$txt['displayedValue']),
&$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
Note that just saying array('first', 'second') will put 0 in the SQL for 'first'.
* A password input box. Used for passwords, no less!
ie. array('password', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
For each option:
type (see above), variable name, size/possible values, description, helptext.
OR make type 'rule' for an empty string for a horizontal rule.
OR make type 'heading' with a string for a titled section. */
// This function passes control through to the relevant tab.
function ModifyFeatureSettings()
{
global $context, $txt, $scripturl, $modSettings, $sourcedir;
// You need to be an admin to edit settings!
isAllowedTo('admin_forum');
// All the admin bar, to make it right.
adminIndex('edit_mods_settings');
loadLanguage('Help');
loadLanguage('ModSettings');
// Will need the utility functions from here.
require_once($sourcedir . '/ManageServer.php');
$context['page_title'] = $txt['modSettings_title'];
$context['sub_template'] = 'show_settings';
$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'googlemap' => 'ModifyGoogleMapSettings',
'googlemap' => 'ModifyGoogleMapSettings',
'ThankYou' => 'ModifyThankYouSettings',
'MemberColorLinks' => 'ModifyMemberColorLinksSettings',
'karma' => 'ModifyKarmaSettings',
'googlebot' => 'ModifyGooglebotSettings',
);
// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];
// Load up all the tabs...
$context['admin_tabs'] = array(
'title' => &$txt['modSettings_title'],
'help' => 'modsettings',
'description' => $txt['smf3'],
'tabs' => array(
'basic' => array(
'title' => $txt['mods_cat_features'],
'href' => $scripturl . '?action=featuresettings;sa=basic;sesc=' . $context['session_id'],
),
'layout' => array(
'title' => $txt['mods_cat_layout'],
'href' => $scripturl . '?action=featuresettings;sa=layout;sesc=' . $context['session_id'],
),
'ThankYou' => array(
'title' => $txt['Thank_You_Headline'],
'href' => $scripturl . '?action=featuresettings;sa=ThankYou;sesc=' . $context['session_id'],
),
'MemberColorLinks' => array(
'title' => $txt['MemberColorLinkHeadline'],
'href' => $scripturl . '?action=featuresettings;sa=MemberColorLinks;sesc=' . $context['session_id'],
),
'sbox' => array(
'title' => $txt['sbox_ModTitle'],
'href' => $scripturl . '?action=featuresettings;sa=sbox;sesc=' . $context['session_id'],
),
'googlemap' => array(
'title' => $txt['googleMapFO'],
'href' => $scripturl . '?action=featuresettings;sa=googlemap;sesc=' . $context['session_id'],
),
'googlemap' => array(
'title' => $txt['googleMapFO'],
'href' => $scripturl . '?action=featuresettings;sa=googlemap;sesc=' . $context['session_id'],
),
'karma' => array(
'title' => $txt['smf293'],
'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
),
'googlebot' => array(
'title' => $txt['ob_googlebot_modname'],
'href' => $scripturl . '?action=featuresettings;sa=googlebot;sesc=' . $context['session_id'],
'is_last' => true,
),
),
);
// 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');
// Quick session check...
checkSession();
require_once($sourcedir . '/ManageServer.php');
$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'ThankYou' => 'ModifyThankYouSettings',
'MemberColorLinks' => 'ModifyMemberColorLinksSettings',
'karma' => 'ModifyKarmaSettings',
'googlebot' => 'ModifyGooglebotSettings',
'googlemap' => 'ModifyGoogleMapSettings',
);
// Default to core (I assume)
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
// Actually call the saving function.
$subActions[$_REQUEST['sa']]();
}
function ModifyBasicSettings()
{
global $txt, $scripturl, $context, $settings, $sc, $modSettings;
$config_vars = array(
// Big Options... polls, sticky, bbc....
array('select', 'pollMode', array(&$txt['smf34'], &$txt['smf32'], &$txt['smf33'])),
'',
// Basic stuff, user languages, titles, flash, permissions...
array('check', 'allow_guestAccess'),
array('check', 'userLanguage'),
array('check', 'allow_editDisplayName'),
array('check', 'allow_hideOnline'),
array('check', 'allow_hideEmail'),
array('check', 'guest_hideContacts'),
array('check', 'titlesEnable'),
array('check', 'enable_buddylist'),
array('text', 'default_personalText'),
array('int', 'max_signatureLength'),
'',
// Stats, compression, cookies.... server type stuff.
array('text', 'time_format'),
array('select', 'number_format', array('1234.00' => '1234.00', '1,234.00' => '1,234.00', '1.234,00' => '1.234,00', '1 234,00' => '1 234,00', '1234,00' => '1234,00')),
array('float', 'time_offset'),
array('int', 'failed_login_threshold'),
array('int', 'lastActive'),
array('check', 'trackStats'),
array('check', 'hitStats'),
array('check', 'enableErrorLogging'),
array('check', 'securityDisable'),
array('check', 'hideVersion'),
'',
// Reactive on email, and approve on delete
array('check', 'send_validation_onChange'),
array('check', 'approveAccountDeletion'),
'',
// Option-ish things... miscellaneous sorta.
array('check', 'allow_disableAnnounce'),
array('check', 'disallow_sendBody'),
array('check', 'modlog_enabled'),
array('check', 'queryless_urls'),
'',
// Action SEF URLS?
array('check', 'enableActionurls'),
array('check', 'enableCurls'),
array('check', 'enablePageurls'),
array('check', 'enableUseQuestion'),
array('check', 'enableNoIndex'),
'',
// Width/Height image reduction.
array('int', 'max_image_width'),
array('int', 'max_image_height'),
'',
// Reporting of personal messages?
array('check', 'enableReportPM'),
);
// Saving?
if (isset($_GET['save']))
{
// Fix PM settings.
$_POST['pm_spam_settings'] = (int) $_POST['max_pm_recipients'] . ',' . (int) $_POST['pm_posts_verification'] . ',' . (int) $_POST['pm_posts_per_hour'];
$save_vars = $config_vars;
$save_vars[] = array('text', 'pm_spam_settings');
saveDBSettings($save_vars);
writeLog();
redirectexit('action=featuresettings;sa=basic');
}
// Hack for PM spam settings.
list ($modSettings['max_pm_recipients'], $modSettings['pm_posts_verification'], $modSettings['pm_posts_per_hour']) = explode(',', $modSettings['pm_spam_settings']);
$config_vars[] = array('int', 'max_pm_recipients');
$config_vars[] = array('int', 'pm_posts_verification');
$config_vars[] = array('int', 'pm_posts_per_hour');
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=basic';
$context['settings_title'] = $txt['mods_cat_features'];
prepareDBSettingContext($config_vars);
}
function ModifyLayoutSettings()
{
global $txt, $scripturl, $context, $settings, $sc;
$config_vars = array(
// Compact pages?
array('check', 'compactTopicPagesEnable'),
array('int', 'compactTopicPagesContiguous', null, $txt['smf235'] . '<div class="smalltext">' . str_replace(' ', ' ', '"3" ' . $txt['smf236'] . ': <b>1 ... 4 [5] 6 ... 9</b>') . '<br />' . str_replace(' ', ' ', '"5" ' . $txt['smf236'] . ': <b>1 ... 3 4 [5] 6 7 ... 9</b>') . '</div>'),
'',
// Stuff that just is everywhere - today, search, online, etc.
array('select', 'todayMod', array(&$txt['smf290'], &$txt['smf291'], &$txt['smf292'])),
array('check', 'topbottomEnable'),
array('check', 'onlineEnable'),
array('check', 'enableVBStyleLogin'),
'',
// Pagination stuff.
array('int', 'defaultMaxMembers'),
'',
// This is like debugging sorta.
array('check', 'timeLoadPageEnable'),
array('check', 'disableHostnameLookup'),
'',
// Who's online.
array('check', 'who_enabled'),
'',
// SimpleImageshack mod - SimpleTweaks.co.nr
array('check', 'SimpleImageShack_enable'),
array('check', 'SimpleImageShack_permis'),
array('int', 'SimpleImageShack_width'),
array('int', 'SimpleImageShack_height'),
array('text', 'SimpleImageShack_txtclr'),
array('int', 'SimpleImageShack_uplfld'),
'',
// The Streaming Mod Options.
array('check', 'enableEmbeddedStream'),
array('check', 'enableEmbeddedReal'),
array('check', 'enableEmbeddedQuick'),
array('check', 'enableGoogleVideo'),
array('check', 'enableYouTube'),
);
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=layout');
loadUserSettings();
writeLog();
}
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=layout';
$context['settings_title'] = $txt['mods_cat_layout'];
prepareDBSettingContext($config_vars);
}
function ModifyKarmaSettings()
{
global $txt, $scripturl, $context, $settings, $sc;
$config_vars = array(
// Karma - On or off?
array('select', 'karmaMode', explode('|', $txt['smf64'])),
'',
// Who can do it.... and who is restricted by time limits?
array('int', 'karmaMinPosts'),
array('float', 'karmaWaitTime'),
array('check', 'karmaTimeRestrictAdmins'),
'',
// What does it look like? [smite]?
array('text', 'karmaLabel'),
array('text', 'karmaApplaudLabel'),
array('text', 'karmaSmiteLabel'),
);
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=karma');
}
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=karma';
$context['settings_title'] = $txt['smf293'];
prepareDBSettingContext($config_vars);
function ModifyGooglebotSettings()
{
global $txt, $scripturl, $context, $settings, $sc;
$config_vars = array(
// Count all instances of spiders?
array('check', 'ob_googlebot_count_all_instances'),
array('check', 'ob_googlebot_display_all_instances'),
array('check', 'ob_googlebot_display_agent'),
array('check', 'ob_googlebot_display_own_list'),
'',
// Count spiders on most online?
array('check', 'ob_googlebot_count_most_online'),
'',
// Redirect PHPSESSID URLs?
array('check', 'ob_googlebot_redirect_phpsessid'),
);
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=googlebot');
}
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=googlebot';
$context['settings_title'] = $txt['ob_googlebot_modname'];
prepareDBSettingContext($config_vars);
}
function ModifyThankYouSettings()
{
global $txt, $scripturl, $context, $settings, $sc;
$config_vars = array(
//Thank you User Settings?
array('check', 'Thank_You_UserOrder'),
array('check', 'Thank_You_MemberColor'),
array('check', 'Thank_You_AddCounter'),
'',
//ThankYouList or not ;)
array('check', 'Thank_You_LinkListOnly'),
array('check', 'Thank_You_AddLink'),
array('int', 'Thank_You_UserPreview'),
'',
//HideMod DIN1031 Version
array('check', 'Thank_You_ShowHidden'),
//HideMod Leaf Version
array('check', 'Thank_You_ShowHidePostReply'),
);
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=ThankYou');
}
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=ThankYou';
$context['settings_title'] = $txt['Thank_You_Headline'];
prepareDBSettingContext($config_vars);
}
function ModifyMemberColorLinksSettings()
{
global $txt, $scripturl, $context, $settings, $sc;
$config_vars = array(
// Standard Membercolor?
array('check', 'MemberColorLink'),
'',
//Some Stat Settings
array('check', 'MemberColorLatestMember'),
array('check', 'MemberColorStats'),
array('check', 'MemberColorWhoIsOnline'),
'',
//Thread and Boardsettings
array('check', 'MemberColorThreadOwner'),
array('check', 'MemberColorThreadLastPost'),
array('check', 'MemberColorThreadChild'),
'',
//Birthday and Calendar
array('check', 'MemberColorBoardindex'),
array('check', 'MemberColorBirthday'),
'',
//Some Recent Things
array('check', 'MemberColorRecentOwner'),
array('check', 'MemberColorRecentLastPost'),
'',
// PM Colors
array('check', 'MemberColorInbox'),
array('check', 'MemberColorOutbox'),
'',
//Guest Color
array('text', 'MemberColorGuests'),
//Banned User Color
array('text', 'MemberColorBanned'),
);
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=MemberColorLinks');
}
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=MemberColorLinks';
$context['settings_title'] = $txt['MemberColorLinkHeadline'];
prepareDBSettingContext($config_vars);
}
$txt['googleMapsEnable'] = 'Abilita Mappa Utenti Google';
$txt['googleMapsEnableLegend'] = 'Mostra legenda segnaposti';
$txt['googleSidebar'] = 'Dove mostrare la barra laterale';
$txt['googleMapsKey'] = 'Chiave per Google Maps API';
$txt['googleMapsPinGender'] = 'Mostra il sesso sul segnaposto?';
$txt['googleMapsPinNumber'] = 'Numero massimo di segnaposti da mostrare';
$txt['googleMapsType'] = 'Tipo di mappa da mostrare';
$txt['googleMapsDefaultLat'] = 'Latitudine di default';
$txt['googleMapsDefaultLong'] = 'Longitudine di default';
$txt['googleMapsDefaultZoom'] = 'Zoom di default';
$txt['googleMapsEnableClusterer'] = 'Abilita raggruppamento segnaposti';
$txt['googleMapsMinMarkerCluster'] = 'Segnaposto minimi per gruppo';
$txt['googleMapsMaxVisMarker'] = 'Numero massimo di segnaposto visibili';
$txt['googleMapsMaxNumClusters'] = 'Numero massimo di gruppi';
$txt['googleMapsMaxLinesCluster'] = 'Numero massimo di linee nel Info Box del gruppo';
$txt['googleMapFO'] = 'Mappa Utenti';
function ModifyGoogleMapSettings()
{
global $txt, $scripturl, $context, $settings, $sc;
$config_vars = array(
// Map - On or off?
array('check', 'googleMapsEnable'),
array('check', 'googleMapsEnableLegend'),
'',
// Key, pins static/gender/membergroup
array('text', 'googleMapsKey'),
array('check', 'googleMapsPinGender'),
array('int', 'googleMapsPinNumber'),
array('select', 'googleMapsType', array('G_NORMAL_MAP' => 'Map', 'G_SATELLITE_MAP' => 'Satellite', 'G_HYBRID_MAP' => 'Hybrid')),
array('select', 'googleSidebar', array('No Sidebar', 'Sidebar Right')),
'',
// Default Location/Zoom
array('float', 'googleMapsDefaultLat', '25'),
array('float', 'googleMapsDefaultLong', '25'),
array('int', 'googleMapsDefaultZoom'),
'',
// Clustering Options
array('check', 'googleMapsEnableClusterer'),
array('int', 'googleMapsMinMarkerCluster'),
array('int', 'googleMapsMaxVisMarker'),
array('int', 'googleMapsMaxNumClusters'),
array('int', 'googleMapsMaxLinesCluster'),
);
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=googlemap');
}
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=googlemap';
$context['settings_title'] = $txt['googleMapFO'];
prepareDBSettingContext($config_vars);
}
?>
Maybe you should ask for support in your own language? A tip for you is to use the code- tags to display your code in, like this
Quote from: Alundra on February 13, 2008, 08:14:02 AM
Quote from: l.uca on February 13, 2008, 07:17:59 AM
exsuse me but i not understand about your question, my code has many lines becouse i installed many mod, and the error is to the end code "?>", why? This i not understand. Thanks.
He means line breaks.
You have big spaces between your lines, Like the one I just made
And made again ;)
It's a bug in SMF 2.0's [code] tag. Those spaces don't exist in the code itself, SMF is misformatting the tabs.
In any case, all those $txt lines are in the wrong file. They should be in a language file (eg. Themes/default/languages/Modifications.italian.php), and not in the ModSettings.php file.
Remove this:
$txt['googleMapsEnable'] = 'Abilita Mappa Utenti Google';
$txt['googleMapsEnableLegend'] = 'Mostra legenda segnaposti';
$txt['googleSidebar'] = 'Dove mostrare la barra laterale';
$txt['googleMapsKey'] = 'Chiave per Google Maps API';
$txt['googleMapsPinGender'] = 'Mostra il sesso sul segnaposto?';
$txt['googleMapsPinNumber'] = 'Numero massimo di segnaposti da mostrare';
$txt['googleMapsType'] = 'Tipo di mappa da mostrare';
$txt['googleMapsDefaultLat'] = 'Latitudine di default';
$txt['googleMapsDefaultLong'] = 'Longitudine di default';
$txt['googleMapsDefaultZoom'] = 'Zoom di default';
$txt['googleMapsEnableClusterer'] = 'Abilita raggruppamento segnaposti';
$txt['googleMapsMinMarkerCluster'] = 'Segnaposto minimi per gruppo';
$txt['googleMapsMaxVisMarker'] = 'Numero massimo di segnaposto visibili';
$txt['googleMapsMaxNumClusters'] = 'Numero massimo di gruppi';
$txt['googleMapsMaxLinesCluster'] = 'Numero massimo di linee nel Info Box del gruppo';
$txt['googleMapFO'] = 'Mappa Utenti';
And put it in Modifications.[language].php, right before the ?>. See if that fixes the issue.
sorry to be a tit, but were can i find the settings on my board?
hello there , i hope that someone can help me ... it's urgent
i installed the Googlebot and spider mod and i made the theme edits correctly using SMF package parser ...
the mod seems to be installed correctly even before i made the theme edits and i could see google and yahoo search bots on my board index .. the only problem i have is a huge block of text appearing above my board , at the very top of it ... i think it's some how related to the modifications.english.php file , although my custom theme uses the file from the default theme
here is the php text that appear above my page:
// 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 didn't have any errors during/before installation ...
The problem appeared just after installation , even before making the theme edits..
i'm using Outline theme ..
hope someone can help , thanx in advance ...
Make sure in your modifications.english.php file that this:
?>
is the LAST line in the file and that it is on it's OWN line; apart from all the other code.
Every time i click the settings for googlebot mod, it just refresh`s the page. How can i change the setting by editing code (wot/were would i edit the settings)
Many thx
Quote from: tentronik on August 14, 2005, 08:04:30 PM
Open the SSI.php and search for "ssi_whosOnline" then replace the hall function with the new one.
Thank you Tentronik, this fixed my frustrating issues with a BlackRain template!! *cheers*
I get this error when I want to install;
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 failed
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 code.php
I'm using SMF 1.1.4 with TP 0.98What should I do? Please help me. I'm not so good in coding things.. HELP
http://docs.simplemachines.org/index.php?topic=402
That should help you install it...Or you can use a parser (upload the package to it) www.sleepycode.com :)
got this on installation.....any suggestions???
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 code.php
http://docs.simplemachines.org/index.php?topic=402 <this or a parser will help you!
www.sleepycode.com <parser :D
This Mod didn't show as "installed" but it works.
My problem: Can't integrate my flashchat software because the PHP files that I went to correct don't have the line entries they should from Googlebot Mod.
----- Can anyone help me correct the faulty install, so that I can adjust the PHP files to make my chat work too?
SSI.php and BoardIndex.template
LINK TO FLASH INTEGRATION BOARD (http://www.simplemachines.org/community/index.php?topic=139769.680)
(they told me to ask you about googlebot install on the FlashChat Integration board.)
Here's my mods list:
Modification Packages
Mod Name Version
1. XarSmilies-1 1.0 [ Apply Mod ] [ List Files ] [ Delete ]
2. TinyPortal 0.983 [ Uninstall ] [ List Files ] [ Delete ]
3. FontandSizeDropdown_1.2 1.3 [ Apply Mod ] [ List Files ] [ Delete ]
4. Member Awards 1.0.2 [ Apply Mod ] [ List Files ] [ Delete ]
5. Bookmarks 1.1 [ Uninstall ] [ List Files ] [ Delete ]
6. Custom BBCode 2.00 [ Uninstall ] [ List Files ] [ Delete ]
7. Link Thumbnail 1.0 [ Uninstall ] [ List Files ] [ Delete ]
8. Simple Award System 1.3.0 [ Apply Mod ] [ List Files ] [ Delete ]
9. Bible - Books of Law 1.0 [ Uninstall ] [ List Files ] [ Delete ]
10. Bible - Books of History 1.0 [ Uninstall ] [ List Files ] [ Delete ]
11. Bible - Books of Poetry 1.0 [ Uninstall ] [ List Files ] [ Delete ]
12. Bible - Books of Prophets 1.0 [ Uninstall ] [ List Files ] [ Delete ]
13. Bible - New Testament 1.0 [ Uninstall ] [ List Files ] [ Delete ]
14. Bible Tag 1.1 [ Uninstall ] [ List Files ] [ Delete ]
15. ShowTopics 1.1 [ Uninstall ] [ List Files ] [ Delete ]
16. Signature Dropdown Choices 1.0 [ Uninstall ] [ List Files ] [ Delete ]
17. Googlebot & Spiders Mod 2.0.3 [ Apply Mod ] [ List Files ] [ Delete ]
18. FlashChat Integration 1.0 [ Apply Mod ] [ List Files ] [ Delete ]
Installed mods: current version older version
keep getting errors and it doesn't show where the spiders are suppose to be listed. any help I have attached my boardindex.template.php since that is where the error seems to be coming from in my logs.
8: Undefined index: ob_googlebot_spiders
File: /home/xxx/public_html/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 386
<?php
// Version: 1.1; BoardIndex
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
//Display ads on the board index
if (function_exists("show_boardAds"))
{
$ads = show_boardAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
// Show some statistics next to the link tree if SP1 info is off.
echo '
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td valign="bottom">', theme_linktree(), '</td>
<td align="right">';
if (!$settings['show_sp1_info'])
echo '
', $txt[19], ': ', $context['common_stats']['total_members'], ' &#8226; ', $txt[95], ': ', $context['common_stats']['total_posts'], ' &#8226; ', $txt[64], ': ', $context['common_stats']['total_topics'], '
', ($settings['show_latest_member'] ? '<br />' . $txt[201] . ' <b>' . $context['common_stats']['latest_member']['link'] . '</b>' . $txt[581] : '');
echo '
</td>
</tr>
</table>';
// Show the news fader? (assuming there are things to show...)
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
{
echo '
<table border="0" width="100%" class="tborder" cellspacing="' , ($context['browser']['is_ie'] || $context['browser']['is_opera6']) ? '1' : '0' , '" cellpadding="4" style="margin-bottom: 2ex;">
<tr>
<td class="catbg"> ', $txt[102], '</td>
</tr>
<tr>
<td valign="middle" align="center" height="60">';
// Prepare all the javascript settings.
echo '
<div id="smfFadeScroller" style="width: 90%; padding: 2px;"><b>', $context['news_lines'][0], '</b></div>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
// The fading delay (in ms.)
var smfFadeDelay = ', empty($settings['newsfader_time']) ? 5000 : $settings['newsfader_time'], ';
// Fade from... what text color? To which background color?
var smfFadeFrom = {"r": 0, "g": 0, "b": 0}, smfFadeTo = {"r": 255, "g": 255, "b": 255};
// Surround each item with... anything special?
var smfFadeBefore = "<b>", smfFadeAfter = "</b>";
var foreColor, backEl, backColor;
if (typeof(document.getElementById(\'smfFadeScroller\').currentStyle) != "undefined")
{
foreColor = document.getElementById(\'smfFadeScroller\').currentStyle.color.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};
backEl = document.getElementById(\'smfFadeScroller\');
while (backEl.currentStyle.backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined")
backEl = backEl.parentNode;
backColor = backEl.currentStyle.backgroundColor.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
smfFadeTo = {"r": eval("0x" + backColor[1]), "g": eval("0x" + backColor[2]), "b": eval("0x" + backColor[3])};
}
else if (typeof(window.opera) == "undefined" && typeof(document.defaultView) != "undefined")
{
foreColor = document.defaultView.getComputedStyle(document.getElementById(\'smfFadeScroller\'), null).color.match(/rgb\((\d+), (\d+), (\d+)\)/);
smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};
backEl = document.getElementById(\'smfFadeScroller\');
while (document.defaultView.getComputedStyle(backEl, null).backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined" && typeof(backEl.parentNode.tagName) != "undefined")
backEl = backEl.parentNode;
backColor = document.defaultView.getComputedStyle(backEl, null).backgroundColor.match(/rgb\((\d+), (\d+), (\d+)\)/);
smfFadeTo = {"r": parseInt(backColor[1]), "g": parseInt(backColor[2]), "b": parseInt(backColor[3])};
}
// List all the lines of the news for display.
var smfFadeContent = new Array(
"', implode('",
"', $context['fader_news_lines']), '"
);
// ]]></script>
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/fader.js"></script>
</td>
</tr>
</table>';
}
/* Each category in categories is made up of:
id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down image),
and boards. (see below.) */
$first = true;
foreach ($context['categories'] as $category)
{
echo '
<div class="tborder" style="margin-top: ' , $first ? '0;' : '1ex;' , '' , $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'width: 100%;' : '', '">
<div class="catbg', $category['new'] ? '2' : '', '" style="padding: 5px 5px 5px 10px;">';
$first = false;
// If this category even can collapse, show a link to collapse it.
if ($category['can_collapse'])
echo '
<a href="', $category['collapse_href'], '">', $category['collapse_image'], '</a>';
echo '
', $category['link'], '
</div>';
// Assuming the category hasn't been collapsed...
if (!$category['is_collapsed'])
{
echo '
<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor" style="margin-top: 1px;">';
/* Each board in each category's boards has:
new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
children (see below.), link_children (easier to use.), children_new (are they new?),
topics (# of), posts (# of), link, href, and last_post. (see below.) */
foreach ($category['boards'] as $board)
{
echo '
<tr>
<td ' , !empty($board['children']) ? 'rowspan="2"' : '' , ' class="windowbg" width="6%" align="center" valign="top"><a href="', $scripturl, '?action=unread;board=', $board['id'], '.0">';
// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
// This board doesn't have new posts, but its children do.
elseif ($board['children_new'])
echo '<img src="', $settings['images_url'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
// No new posts at all! The agony!!
else
echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" />';
echo '</a>
</td>
<td class="windowbg2">
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
', $board['description'];
// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
if (!empty($board['moderators']))
echo '
<div style="padding-top: 1px;" class="smalltext"><i>', count($board['moderators']) == 1 ? $txt[298] : $txt[299], ': ', implode(', ', $board['link_moderators']), '</i></div>';
// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
', $board['posts'], ' ', $txt[21], ' <br />
', $board['topics'],' ', $txt[330], '
</span></td>
<td class="windowbg2" valign="middle" width="22%">
<span class="smalltext">';
/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<b>', $txt[22], '</b> ', $txt[525], ' ', $board['last_post']['member']['link'] , '<br />
', $txt['smf88'], ' ', $board['last_post']['link'], '<br />
', $txt[30], ' ', $board['last_post']['time'];
echo '
</span>
</td>
</tr>';
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
}
echo '
<tr>
<td colspan="3" class="windowbg', !empty($settings['seperate_sticky_lock']) ? '3' : '', '">
<span class="smalltext"><b>', $txt['parent_boards'], '</b>: ', implode(', ', $children), '</span>
</td>
</tr>';
}
}
echo '
</table>';
}
echo '
</div>';
//Display ads Between cats
if (function_exists("show_category"))
{
$ads = show_category($category['id']);
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
}
if ($context['user']['is_logged'])
{
echo '
<table border="0" width="100%" cellspacing="0" cellpadding="5">
<tr>
<td align="', !$context['right_to_left'] ? 'left' : 'right', '" class="smalltext">
<img src="' . $settings['images_url'] . '/new_some.gif" alt="" align="middle" /> ', $txt[333], '
<img src="' . $settings['images_url'] . '/new_none.gif" alt="" align="middle" style="margin-left: 4ex;" /> ', $txt[334], '
</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '">';
// Mark read button.
$mark_read_button = array('markread' => array('text' => 452, 'image' => 'markread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=all;sesc=' . $context['session_id']));
// Show the mark all as read button?
if ($settings['show_mark_read'] && !empty($context['categories']))
echo '
<table cellpadding="0" cellspacing="0" border="0" style="position: relative; top: -5px;">
<tr>
', template_button_strip($mark_read_button, 'top'), '
</tr>
</table>';
echo '
</td>
</tr>
</table>';
}
// Here's where the "Info Center" starts...
echo '<br />
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' : '', '>
<div class="catbg" style="padding: 6px; vertical-align: middle; text-align: center; ">
<a href="#" onclick="shrinkHeaderIC(!current_header_ic); return false;"><img id="upshrink_ic" src="', $settings['images_url'], '/', empty($options['collapse_header_ic']) ? 'collapse.gif' : 'expand.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin-right: 2ex;" align="right" /></a>
', $txt[685], '
</div>
<div id="upshrinkHeaderIC"', empty($options['collapse_header_ic']) ? '' : ' style="display: none;"', '>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">';
// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']))
{
echo '
<tr>
<td class="titlebg" colspan="2">', $txt[214], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=recent"><img src="', $settings['images_url'], '/post/xx.gif" alt="', $txt[214], '" /></a>
</td>
<td class="windowbg2">';
// Only show one post.
if ($settings['number_recent_posts'] == 1)
{
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
echo '
<b><a href="', $scripturl, '?action=recent">', $txt[214], '</a></b>
<div class="smalltext">
', $txt[234], ' "', $context['latest_post']['link'], '" ', $txt[235], ' (', $context['latest_post']['time'], ')<br />
</div>';
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<table cellpadding="0" cellspacing="0" width="100%" border="0">';
/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
foreach ($context['latest_posts'] as $post)
echo '
<tr>
<td class="middletext" valign="top"><b>', $post['link'], '</b> ', $txt[525], ' ', $post['poster']['link'], ' (', $post['board']['link'], ')</td>
<td class="middletext" align="right" valign="top" nowrap="nowrap">', $post['time'], '</td>
</tr>';
echo '
</table>';
}
echo '
</td>
</tr>';
}
// Show information about events, birthdays, and holidays on the calendar.
if ($context['show_calendar'])
{
echo '
<tr>
<td class="titlebg" colspan="2">', $context['calendar_only_today'] ? $txt['calendar47b'] : $txt['calendar47'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=calendar"><img src="', $settings['images_url'], '/icons/calendar.gif" alt="', $txt['calendar24'], '" /></a>
</td>
<td class="windowbg2" width="100%">
<span class="smalltext">';
// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
if (!empty($context['calendar_holidays']))
echo '
<span style="color: #', $modSettings['cal_holidaycolor'], ';">', $txt['calendar5'], ' ', implode(', ', $context['calendar_holidays']), '</span><br />';
// People's birthdays. Like mine. And yours, I guess. Kidding.
if (!empty($context['calendar_birthdays']))
{
echo '
<span style="color: #', $modSettings['cal_bdaycolor'], ';">', $context['calendar_only_today'] ? $txt['calendar3'] : $txt['calendar3b'], '</span> ';
/* Each member in calendar_birthdays has:
id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */
foreach ($context['calendar_birthdays'] as $member)
echo '
<a href="', $scripturl, '?action=profile;u=', $member['id'], '">', $member['is_today'] ? '<b>' : '', $member['name'], $member['is_today'] ? '</b>' : '', isset($member['age']) ? ' (' . $member['age'] . ')' : '', '</a>', $member['is_last'] ? '<br />' : ', ';
}
// Events like community get-togethers.
if (!empty($context['calendar_events']))
{
echo '
<span style="color: #', $modSettings['cal_eventcolor'], ';">', $context['calendar_only_today'] ? $txt['calendar4'] : $txt['calendar4b'], '</span> ';
/* Each event in calendar_events should have:
title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */
foreach ($context['calendar_events'] as $event)
echo '
', $event['can_edit'] ? '<a href="' . $event['modify_href'] . '" style="color: #FF0000;">*</a> ' : '', $event['href'] == '' ? '' : '<a href="' . $event['href'] . '">', $event['is_today'] ? '<b>' . $event['title'] . '</b>' : $event['title'], $event['href'] == '' ? '' : '</a>', $event['is_last'] ? '<br />' : ', ';
// Show a little help text to help them along ;).
if ($context['calendar_can_edit'])
echo '
(<a href="', $scripturl, '?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">', $txt['calendar_how_edit'], '</a>)';
}
echo '
</span>
</td>
</tr>';
}
// Show YaBB SP1 style information...
if ($settings['show_sp1_info'])
{
echo '
<tr>
<td class="titlebg" colspan="2">', $txt[645], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=stats"><img src="', $settings['images_url'], '/icons/info.gif" alt="', $txt[645], '" /></a>
</td>
<td class="windowbg2" width="100%">
<span class="middletext">
', $context['common_stats']['total_posts'], ' ', $txt[95], ' ', $txt['smf88'], ' ', $context['common_stats']['total_topics'], ' ', $txt[64], ' ', $txt[525], ' ', $context['common_stats']['total_members'], ' ', $txt[19], '. ', $txt[656], ': <b> ', $context['common_stats']['latest_member']['link'], '</b>
<br /> ' . $txt[659] . ': <b>"' . $context['latest_post']['link'] . '"</b> ( ' . $context['latest_post']['time'] . ' )<br />
<a href="', $scripturl, '?action=recent">', $txt[234], '</a>', $context['show_stats'] ? '<br />
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</span>
</td>
</tr>';
}
// "Users online" - in order of activity.
echo '
<tr>
<td class="titlebg" colspan="2">', $txt[158], '</td>
</tr><tr>
<td rowspan="2" class="windowbg" width="20" valign="middle" align="center">
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', '<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], '" />', $context['show_who'] ? '</a>' : '', '
</td>
<td class="windowbg2" width="100%">';
echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];
// Handle hidden users and buddies.
if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies'])))
{
echo ' (';
// Show the number of buddies online?
if ($context['show_buddies'])
echo $context['num_buddies'], ' ', $context['num_buddies'] == 1 ? $txt['buddy'] : $txt['buddies'];
// How about hidden users?
if (!empty($context['num_users_hidden']))
echo $context['show_buddies'] ? ', ' : '', $context['num_users_hidden'] . ' ' . $txt['hidden'];
echo ')';
}
echo $context['show_who'] ? '</a>' : '', '
<div class="smalltext">';
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);
if (!empty($context['spiders']))
{
if ($modSettings['ob_googlebot_display_own_list'])
echo '
<br />
', $txt['ob_googlebot_spiders_last_active'], ':<br />';
else
{
if (empty($context['users_online']))
echo '
', $txt[140], ':<br />';
else
echo ', ';
}
echo implode(', ', $context['spiders']);
}
echo '
<br />
', $context['show_stats'] && !$settings['show_sp1_info'] ? '<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>
<tr>
<td class="windowbg2" width="100%">
<span class="middletext">
', $txt['most_online_today'], ': <b>', $modSettings['mostOnlineToday'], '</b>.
', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')
</span>
</td>
</tr>';
// If they are logged in, but SP1 style information is off... show a personal message bar.
if ($context['user']['is_logged'] && !$settings['show_sp1_info'])
{
echo '
<tr>
<td class="titlebg" colspan="2">', $txt[159], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
', $context['allow_pm'] ? '<a href="' . $scripturl . '?action=pm">' : '', '<img src="', $settings['images_url'], '/message_sm.gif" alt="', $txt[159], '" />', $context['allow_pm'] ? '</a>' : '', '
</td>
<td class="windowbg2" valign="top">
<b><a href="', $scripturl, '?action=pm">', $txt[159], '</a></b>
<div class="smalltext">
', $txt[660], ' ', $context['user']['messages'], ' ', $context['user']['messages'] == 1 ? $txt[471] : $txt[153], '.... ', $txt[661], ' <a href="', $scripturl, '?action=pm">', $txt[662], '</a> ', $txt[663], '
</div>
</td>
</tr>';
}
// Show the login bar. (it's only true if they are logged out anyway.)
if ($context['show_login_bar'])
{
echo '
<tr>
<td class="titlebg" colspan="2">', $txt[34], ' <a href="', $scripturl, '?action=reminder" class="smalltext">(' . $txt[315] . ')</a></td>
</tr>
<tr>
<td class="windowbg" width="20" align="center">
<a href="', $scripturl, '?action=login"><img src="', $settings['images_url'], '/icons/login.gif" alt="', $txt[34], '" /></a>
</td>
<td class="windowbg2" valign="middle">
<form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" style="margin: 0;">
<table border="0" cellpadding="2" cellspacing="0" align="center" width="100%"><tr>
<td valign="middle" align="left">
<label for="user"><b>', $txt[35], ':</b><br />
<input type="text" name="user" id="user" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="passwrd"><b>', $txt[36], ':</b><br />
<input type="password" name="passwrd" id="passwrd" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="cookielength"><b>', $txt[497], ':</b><br />
<input type="text" name="cookielength" id="cookielength" size="4" maxlength="4" value="', $modSettings['cookieTime'], '" /></label>
</td>
<td valign="middle" align="left">
<label for="cookieneverexp"><b>', $txt[508], ':</b><br />
<input type="checkbox" name="cookieneverexp" id="cookieneverexp" checked="checked" class="check" /></label>
</td>
<td valign="middle" align="left">
<input type="submit" value="', $txt[34], '" />
</td>
</tr></table>
</form>
</td>
</tr>';
}
echo '
</table>
</div>
</div>';
}
?>
I have the exact same problem...Should we use the parser to unstall it?
Just installed this on my forum with no faults or errors at all using the package downloader.
I'm running smf 1.1.4 on Gold Night theme.
Seems to be working just great so far.
I've stopped using this mod because I've moved over to SMF 2.0. Thanks for this mod!
Quote from: Iron IC on February 11, 2008, 05:00:20 PM
Just installed this mod manually using package parser. However, I now get this error when testing:
Notice: Undefined index: ob_googlebot_redirect_phpsessid in /usr/home/web/webXXXXX/byggmuskler.no/forum/index.php on line 76
EDIT: PROBLEM SOLVED :)
What did you do to solve this problem?
@ netridge: The "eval" on the end of this error meesage means that the error is in another file other than the one listed:
8: Undefined index: ob_googlebot_spiders
File: /home/xxx/public_html/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 386
You will have to go through the files and see where the error is.
It doesn't tell when google last visited my page in template :(
Also, don't show them @ "logged today" list.
Hmm Got this error
Notice: Undefined index: ob_googlebot_redirect_phpsessid in /index.php on line 76
Here are the index.php
// Load the settings from the settings table, and perform operations like optimizing.
reloadSettings();
//Get rid of ?PHPSESSID in the case is a Googlebot any other Spider. Even if is a user (maybe User-Agent extension), will be redirected. Easier this way.
if ($modSettings['ob_googlebot_redirect_phpsessid'] && ob_googlebot_getAgent($_SERVER['HTTP_USER_AGENT'], $spider_name, $agent))
{
$actualurl = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$correcturl = preg_replace('/([?&]PHPSESSID=[^&]*)/', '', $actualurl);
$correcturl = str_replace('index.php&', 'index.php?', $correcturl);
if ($correcturl != $actualurl) {
header("HTTP/1.1 301 Moved Permanently");
header("Location: " . $correcturl);
exit();
}
}
// Clean the request variables, add slashes, etc.
cleanRequest();
$context = array();
Line 76 is: if ($modSettings['ob_googlebot_redirect_phpsessid'] && ob_googlebot_getAgent($_SERVER['HTTP_USER_AGENT'], $spider_name, $agent))
Any suggestions?
Quote from: gemigene on February 03, 2008, 08:32:22 PM
Quote from: gemigene on January 02, 2008, 10:55:50 PM
According to my previous post, I would like to show Spiders last (1 Guest, 1 User, 4 Spiders) and been playing around with this bit of code in Boardindex.template.php and I just can't get the commas and spaces in the right place.
Can anyone figure this out:
echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];
Thanks,
Gene
So, ideas anyone? I really want to show Spiders in the last position in my "Users online" box. Now I have 3 Spiders, 2 Guests, 3 Users.
Cheers,
Gene
Anybody?
For anyone interested, I've posted manual instructions
http://www.simplemachines.org/community/index.php?topic=233636.0#msg1507179
to use the 'updated' spiders from my More Spiders mod in this Googlebot and Spiders mod.
While this mod works, several of the bots in it are dead, it doesn't detect ALL yahoo/google spiders, and its missing lots of newer ones aswell.
Quote from: prljavi_bluzer on December 09, 2007, 11:12:49 AM
8: Undefined index: ob_googlebot_stats_lastvisit
Datoteka: /home2/autbsorg/public_html/Themes/default/Display.template.php (main_below sub template - eval?)
Linija: 475
8: Undefined index: ob_googlebot_stats_lastvisit
Datoteka: /home2/autbsorg/public_html/Themes/default/BoardIndex.template.php (main_below sub template - eval?)
Linija: 475
8: Undefined index: ob_googlebot_stats_lastvisit
Datoteka: /home2/autbsorg/public_html/Themes/default/TPortal.template.php (main_below sub template - eval?)
Linija: 475
I need urgent help for this because it generates insane amount of errors.
I uninstalled this mod because of this :( Anyone has a solution for this problem?
Ok, I found out.
On the modifications.<language>.php files it was missing the following piece of code:
// Stats
$txt['ob_googlebot_stats_lastvisit'] = 'Google visited last this page ';
8)
will this work with 1.1.5?
If so what one do i download and do i need to manualy install it? /how?
@Kiss
Replace
if ($modSettings['ob_googlebot_redirect_phpsessid']
With
if (!empty($modSettings['ob_googlebot_redirect_phpsessid'])
@mileytv
It should work on 1.1.5.
Quote from: karlbenson on April 22, 2008, 02:16:28 PM
For anyone interested, I've posted manual instructions
http://www.simplemachines.org/community/index.php?topic=233636.0#msg1507179 (http://index.php?topic=233636.0#msg1507179)
to use the 'updated' spiders from my More Spiders mod in this Googlebot and Spiders mod.
While this mod works, several of the bots in it are dead, it doesn't detect ALL yahoo/google spiders, and its missing lots of newer ones aswell.
I installed karlbenson's updated spiders array by replacing the array in Subs.php as the instructions said. Since then when Google visited, the "Google last visited" statement has not been updating.
Here is the fix for anyone else that is experiencing this:
Find this in Subs.php:
'agent' => 'googlebot',
'spidername' => 'Google',
Change to:
'agent' => 'Googlebot',
'spidername' => 'Google',
Thanks for the updated list karlbenson. It is great.
This mod quit working awhile ago. Don't know why.
I was going to try to uninstall, redownload, and reinstall the mod.
The board was updated to 1.1.5 .
When I try to ununstall it it get an error on this file:
1. Execute Modification ./index.php Test failed
My question is: If i uninstall it anyway will everything get screwd up?
Thanx
I've installed this mod yesterday and I have a problem with it:
in my forum log appeared pages and pages of the following error
Quote8: Undefined index: REQUEST_URI
File: ..\forum\Sources\Subs.php
Riga: 3394
Any idea on how to solve it?
Here is the piece of code in my Subs.php near the line 3394...
else // We are somewhere else
{
$key = 'url';
// Remove PHPSESSID, just in case that the user has it in his URL, to avoid duplicates
$value = "$_SERVER[REQUEST_URI]";
$value = preg_replace('/([?&]PHPSESSID=[^&]*)/', '', $value);
$value = str_replace('index.php&', 'index.php?', $value);
}
Thanks in advance,
PS
Don't know if this was already explained here, but i searched and didn't find it.
How can i hide the googlestats message in the bottom of each page except for admins?
Thanks.
Please Help! Helping is not telling me to get a parser and do a manual install...some do not know coding that well.
I am using SMF 1-1-5
Default theme with graphical changes
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 code.php
Quote from: Atheo on June 01, 2008, 07:42:01 PM
Helping is not telling me to get a parser and do a manual install...some do not know coding that well.
Im afraid that that
IS helping, and all you need to do is follow the instructions, exactly as if someone were explaining it here.
There's nothing different to it. If something needs to be manually installed, its in your best interest to try to grasp it. :)
Anyways, here it is.
Install the mod anyway, with that error.
It just means you'll have to modify that file modsettings.php manually.
Go into your modsettings.php located in your Sources folder/dir
Look for this code $context['sub_template'] = 'show_settings';
$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',
then add after it'googlebot' => 'ModifyGooglebotSettings',
then find this require_once($sourcedir . '/ManageServer.php');
$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',
then add after it'googlebot' => 'ModifyGooglebotSettings',
Now find this 'karma' => array(
'title' => $txt['smf293'],
'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
and add after it ),
'googlebot' => array(
'title' => $txt['ob_googlebot_modname'],
'href' => $scripturl . '?action=featuresettings;sa=googlebot;sesc=' . $context['session_id'],
And lastly, find $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=karma';
$context['settings_title'] = $txt['smf293'];
prepareDBSettingContext($config_vars);
}
and add this after it
function ModifyGooglebotSettings()
{
global $txt, $scripturl, $context, $settings, $sc;
$config_vars = array(
// Count all instances of spiders?
array('check', 'ob_googlebot_count_all_instances'),
array('check', 'ob_googlebot_display_all_instances'),
array('check', 'ob_googlebot_display_agent'),
array('check', 'ob_googlebot_display_own_list'),
'',
// Count spiders on most online?
array('check', 'ob_googlebot_count_most_online'),
'',
// Redirect PHPSESSID URLs?
array('check', 'ob_googlebot_redirect_phpsessid'),
);
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=googlebot');
}
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=googlebot';
$context['settings_title'] = $txt['ob_googlebot_modname'];
prepareDBSettingContext($config_vars);
}
All the best :)
Thank you Sabre. I didnt mean to sound so frustrated but I was. Sometimes searches and reading 76 pages is tiring. thank you.
No problems Atheo :) We all know exactly what you mean.
If you still have any problems, just post back and someone will help you work it out. :)
Well, I just made the changes that you suggested. Now I have a dumb question; what exactly should I be looking for to know they took effect?
That probably sounds silly like I dont know what I was trying to accomplish but...yeah...
Thank you again.
Go to the first post of this thread.
It will explain to you whats happening, and have the images to help you see it.
PS.. to see the images properly, right click on them, and select view image
In your forum, the line is
Admin/Features and Options/Googlebot & Spiders
spiders displayed with the users and guests online etc etc
Each member group is given the option to see it, in "permissions"
Admins always see the spiders.
There's little tweaks and things throughout this thread. Maybe something you want to add to your forum.
Yeah the pics were not showing there but I got it. Thanks for helpin a noob.
but now when I go to settings i get this
Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /home/fithubco/public_html/Sources/ModSettings.php on line 419
Im sure I copied all code properly and I am about to recheck.
I guess you need to know whats on my line 419 [/duh]
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=karma';
$context['settings_title'] = $txt['smf293'];
prepareDBSettingContext($config_vars);
}
function ModifyGooglebotSettings() ***********419**********
{
global $txt, $scripturl, $context, $settings, $sc;
$config_vars = array(
// Count all instances of spiders?
array('check', 'ob_googlebot_count_all_instances'),
array('check', 'ob_googlebot_display_all_instances'),
array('check', 'ob_googlebot_display_agent'),
array('check', 'ob_googlebot_display_own_list'),
'',
// Count spiders on most online?
array('check', 'ob_googlebot_count_most_online'),
'',
// Redirect PHPSESSID URLs?
array('check', 'ob_googlebot_redirect_phpsessid'),
);
I cant see why there's an error.
The code youve inserted is correct. Its most probably somewhere else.
Someone will come on and walk this through with you.
Unfortunately Im flying out this avo for 2 weeks!! wOOt!! lol
So Im jumping off now.
Just hang about. Someone will get back to you. Good luck.
Should I post my entire .php code or am I asking beyond people's patience?
change
}
function ModifyGooglebotSettings()
{
to
function ModifyGooglebotSettings()
{
[/s]
scratch that its wrong i looked at the code wrong
Ok, I asked this above and never got an answer so I shall re ask, thanx
This mod quit working awhile ago. Don't know why.
I was going to try to uninstall, redownload, and reinstall the mod.
The board was updated to 1.1.5 .
When I try to ununstall it it get an error on this file:
1. Execute Modification ./index.php Test failed
My question is: If i uninstall it anyway will everything get screwd up?
What do you mean quit working? Did the Google date stop updating? Did all the spiders stop showing? Did this happen when you upgraded to 1.1.5?
Yes, the spiders have quit showing and it happend before the update. Also the text at the users for the spiders has quit showing.
I was just going to uninstall and reinstall but I keep getting that error on the uninstall.
That error normally means that another mod has modified the code that the uninstaller is looking for. If you uninstall it anyway you will need to manually remove the edits in that file.
How do i get this to work on the classic theme?
Thanks
Quote from: crustybum on June 05, 2008, 05:40:09 AM
How do i get this to work on the classic theme?
Thanks
and how can i get this to work on dilbermc theme?
I add this package but it didnt work..
ı cant see anything on my forumadmin panel about this package..
ı use dilbermc theme..
can you help
as has beend said about 50 times in nearly every mod thread...
If you are not running the default theme, you will have to manually install some parts of the mod into your theme's *.template.php files.
Check the mod parser on the mod site for instructions on what code to look for/change...
Thank you for the post, but what edits do i look for?
Apparantly its not compatable with 1.1.5 :( according to the instructions via the download..
@ crustybum It works fine with 1.1.5 and the default theme. You may have to use the parser on the mod site to see what to edit if you have to do it manually.
@jazzgirlzz As Kindred said, use the mod parser on the mod site and it will show you what edits are accomplished if you install the mod. If you are wanting to uninstall it, find the additions; as indicated by the code displayed with the mod parser, and remove them.
Hello!
I've been running this mod on SMF 1.1.4 and went to upgrade the forum to SMF 1.1.5. In turn, I wanted to update this particular mod, so I thought to uninstall it (version 2.0.2) and install the new version (2.0.3). When i tried to do so, I received an error when I tried to uninstall. Should I just reinstall over this current mod, or was I right in trying to uninstall first?
Uninstall Actions "Googlebot & Spiders Mod":
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./SSI.php Test failed
3. Execute Modification ./Sources/BoardIndex.php Test successful
4. Execute Modification ./Sources/ManagePermissions.php Test successful
5. Execute Modification ./Sources/ModSettings.php Test successful
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
An ERROR MESSAGE releted to GoogleBot & Spiders
Any idea?
Regards
Undefined index: ob_googlebot_stats_lastvisit
File: ../public_html/forum/Themes/dilbermc/index.template.php
Line: 1013
From 1009 to 1020
// Show the load time?
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>';
if ($context['show_load_time'])
echo '
<span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';
What version of SMF are you running, c a g a t a y?
I am using 1.1.5
and my problem is solved with this message
http://www.simplemachines.org/community/index.php?topic=245090.msg1582870#msg1582870
Was having an issue with my modsettings.php file apparently it was only able to input half the data but I looked up the manual installation thingy m'bob and it's working a charm now, great mod.
When I try to install this I get Test successful for everything and then I put install now and I get this error
Fatal error: require() [function.require]: Failed opening required '/www/oxyhost.com/o/l/a/olabaz/htdocs/forums/Packages/temp/./code.php' (include_path='.:/usr/share/php') in /www/oxyhost.com/o/l/a/olabaz/htdocs/forums/Sources/Packages.php on line 552
scuse me i want know if this mod it's good with 1.1.5. yes or no???
thanks
Quote from: Mystiquo on August 29, 2008, 08:40:48 PM
scuse me i want know if this mod it's good with 1.1.5. yes or no???
thanks
Yes.
Use it on my forum, works great.
Quote from: wmcintosh on August 29, 2008, 08:45:40 PM
Quote from: Mystiquo on August 29, 2008, 08:40:48 PM
scuse me i want know if this mod it's good with 1.1.5. yes or no???
thanks
Yes.
Use it on my forum, works great.
Can you help me i don't understand how do
Quote from: Mystiquo on August 30, 2008, 08:04:28 AMCan you help me i don't understand how do
Download it (http://custom.simplemachines.org/mods/index.php?action=download;mod=143;id=31743) (if haven't already).
Admin > Packages > click Download Packages tab > go down to where is says "Upload a Package", click browse, find the downloaded file, then upload, then apply.
There is a tab to configure it in Admin > Features and Options
but how do i do to see it' work????
In Default Theme,
120 Spiders, 370 Guests, 16 Users, 0 Users in Chat (9 Buddies)
In Dilbermc Theme,
365 Guests, 17 Users, 0 Users in Chat (9 Buddies)
Does not shows the spiders count and spiders list in dilber mc theme.
Could anyone guide me through the code i have to add in my dilbermc theme to show like in default theme.
Request:
I am using Simple Portal 2.0.4 and would like to use the Spider count instead of "Hidden", in the "Online" block.
I have attached SPortal.php in case you need to look at it or even change it for me. I don't really need to know which spiders, just how many.
thanks for this great mod
trying to install i get an install test failed error in /sources/modsettings.php
any suggestions where to do i go from here??
Hi there,
I am getting the same problem as ellion!
I have just updated 1.1.5 to 1.1.6 and have a small list of other mods, including the improved who.template.php as suggested in this mod's description.
Execute Modification ./Sources/ModSettings.php Test failed
I guess I could back everything up and try anyway, but I'd guess modsettings.php is important to the installation?
Kind regards
G
Quote from: wmcintosh on August 30, 2008, 09:19:23 AM
Quote from: Mystiquo on August 30, 2008, 08:04:28 AMCan you help me i don't understand how do
Download it (http://custom.simplemachines.org/mods/index.php?action=download;mod=143;id=31743) (if haven't already).
Admin > Packages > click Download Packages tab > go down to where is says "Upload a Package", click browse, find the downloaded file, then upload, then apply.
There is a tab to configure it in Admin > Features and Options
Scuse me but i don't see this
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg284.imageshack.us%2Fimg284%2F609%2Fgooglebot2qx0.jpg&hash=a7136124fc3c863c535df7f8c69775c9b6d4cdba)
and i don't see this
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.omarbazavilvazo.com%2Fimagenes%2Fgooglebot08.png&hash=2c0c212753ac7ae4f7488a19999af9d6869301c4)
i see only guest and user, but i don't know if spider visit my home
Thanks
if you are getting any messages, check out the package parser and edit those files manually
Bec,
Thanks for that info.
I haven't had to do this before, so...
I have run the parser and it shows the edits, so do I install the package as is - with the error - and then make the edits to modsettings.php post install? Or do I edit modsettings.php before install, or do the whole thing manually?
Thanks
G
Granular,
No worries, wasn't that long ago I was the same. Install the package with the errors and then make the changes to the file that you received the error on, just double check that the code wasn't inserted before adding anything :)
Sweeeeet!
Thanks for that!
Mod is now installed and appears to be functioning as advertised.
I don't see the "Google last visited this page on...." at the bottom of the page but I'm thinking that is because it hasn't visited since the mod was installed (10 minutes ago!)?
So, credit to creator(s) of the package parser (I'll be using that again in the future!) and thanks Bec for the moral support....anything is possible....with SMF!
Cheers
G
Your welcome, glad you got it sorted :)
Sorry for me but it is normal that some spider me as a user signs with the name of the spider?
You can retain user online today in the names of the spider who visited the page today?
so this is working in 1.1.6?
Works fine on my 1.1.6 forum. It was installed when I was at 1.1.4 and did fine with all the upgrades.
do you know which file you are using from the mod list?
Quote from: Mystiquo on September 15, 2008, 02:08:54 PM
Sorry for me but it is normal that some spider me as a user signs with the name of the spider?
You can retain user online today in the names of the spider who visited the page today?
up
Quote from: Bugpac ™ on September 15, 2008, 10:08:59 PM
do you know which file you are using from the mod list?
Yep, Googlebot_v2_0_3_only_smf1.1.x.zip is the correct one for SMF 1.1.X
Thank ya much
I got the modsettings error as well, and i dont have a clue how to edit it, can someone help?
Is this the error you are getting?
QuoteExecute Modification ./Sources/ModSettings.php Test failed
If so it means the installer could not find the statement it was looking for. In that case you use the parser that is on the modifications page to see what you will need to manually edit.
Select your forum version from the dropdown menu and click Submit.
This normally happens when you have installed another mod that may have changed the file and the package manager can't find the specified insert point.
You lost me on the praser Jim...Is it on this site or my own?
Quote from: Bugpac ™ on September 18, 2008, 06:45:28 PM
You lost me on the praser Jim...Is it on this site or my own?
Probably here:
http://custom.simplemachines.org/mods/index.php?action=parse;mod=143;attach=31743;smf_version=1.1.6
and follow the instructions for ./Sources/ModSettings.php
Got ya, thanks..
I got it installed today, I happen to have a google spider there when i did it, he showed at the bottom, I did not get anything in the admin for configuration, were do i start? I havent edited anything, i just installed it with the error on the modsettings file...
Next dumb question, were do i edit the code from, smf? or using another prog and doing the file edit localy?
Quote from: Bugpac ™ on September 19, 2008, 01:35:10 PM
Next dumb question, were do i edit the code from, smf? or using another prog and doing the file edit localy?
Click on the link that Omar left, scroll down to ./Sources/ModSettings.php edits.
Use a program like Notepad++ or Notepad2 or another php editor. After you complete the edits, FTP the file too your Sources directory.
I figured it out, In my control panel i can edit the files without uploading or downloading etc, I did down load a version of the file before i edited it, I still have a problem tho, the config button is not showing, Says i have an error on line 152 but everything looks like it is written like the previous lines etc...Going back to look now...
Quote from: Bugpac ™ on September 19, 2008, 02:45:21 PM
I figured it out, In my control panel i can edit the files without uploading or downloading etc, I did down load a version of the file before i edited it, I still have a problem tho, the config button is not showing, Says i have an error on line 152 but everything looks like it is written like the previous lines etc...Going back to look now...
u can always apply the mod EVEN with that error, and make the changes by yourself :p
Hi Omar
I had installed google spider successfully in my smf but i am not able to locate the below
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.omarbazavilvazo.com%2Fimagenes%2Fgooglebot01.png&hash=2d68ddcdedee99850087fb833ff615820da6c702)
Where will be available this thing.. I can found as google adsense spider in home page near to current users. But I am not able to locate the above image..
Admin > Features and Options > Googlebot & Spiders
It's on a new tab that is added in the admin control panel.
Hi JimM
There is no option like that...
Pls find attached screenshot for yourref..
I am currently using custom theme 2008 & version is 1.1.6
Awaiting your reply.
Thanks
You will need to do the edits manually if you are using something other than the default theme. Here is a link to the mod parser for this mod and your version:
http://custom.simplemachines.org/mods/index.php?action=parse;mod=143;attach=31743;smf_version=1.1.6 (http://custom.simplemachines.org/mods/index.php?action=parse;mod=143;attach=31743;smf_version=1.1.6)
Make sure that the additions in /Sources/ModSettings.php are there.
hi. how do i hide this bots from my members on the "who;s online list"? on their permission, the google spiders are already disable, but when i tried logging in using a regular member account, i can still see this bots on the online list.
thanks in advance,
Use the parser to edit the mod with theme removal.
http://custom.simplemachines.org/mods/index.php?action=parse;mod=143;attach=31743;smf_version=1.1.6
In your theme, remove the codes on the recent line.
so you could see on the default theme only.
thanks, i am using smf's default theme (or should i say default theme files because i replaced the images of the default theme so i can have one a customized theme look), anyways, will that hide the spiders from my regular member's online list? really appreciate your help. :)
Hi!
I just updated 2.0.4. For existing users no change is needed. Is just a minor fix to make it more friendly when more mods are already installed, and a missing string.
Only for smf 1.1.x 'p
Thanks Omar. I think I messed up these flies (Subs.php, ModSettings.php, ManagePermissions.php and BoardIndex.php) during an earlier installation. Is it possible for you to help fix them. If yes, I will upload them asap. Thanks in advance!
I guess the answer is no then.
Probably...
Everyone needs a little time to reply ;)
Did you backup those files before you edited them?
If so, then delete them off your server and reinstall the backups.
If not..... then a valuable lesson learnt. ALWAYS backup any template before you modify them!
SMF has a little failsafe installed either way.
Go to your Packages folder, and enter the backups directory.
There you will see a file by the name of "before googlebot & spiders". Or something similar.
Download it, and reupload to your root directory. That is your main folder SMF is in, where your SSI.php and packages folder is stored.
Allow it to overwrite the files, and continue.
After that, any edits to your templates after this mod was added will be removed.
Or... lol ;D
You can do the manual edits yourself by using a Package Parser. Either the one on the page where you download this mod, or [HERE] (http://sleepy-arcade.ath.cx/dev/package.php)
Good Luck
Quote from: Sabre™ on October 07, 2008, 08:24:06 PM
Or... lol ;D
You can do the manual edits yourself by using a Package Parser. Either the one on the page where you download this mod, or [HERE] (http://sleepy-arcade.ath.cx/dev/package.php)
Good Luck
I have used the parser to manually do the installation. Everything seemed to go well. However I keep getting this error message
QuoteUndefined variable: total_users
/mnt/web4/21/50/51458650/htdocs/Sources/BoardIndex.php
Did I miss something?
Make sure this edit in ./Sources/BoardIndex.php is correct:
Find:
$total_users = $context['num_guests'] +
Add after:
($modSettings['ob_googlebot_count_most_online'] ? $context['num_spiders'] : 0) +
It's possible that you replaced that line which would possibly report that error.
Was the ./Sources/BoardIndex.php file one that reported the error? When I manually install a mod, I install the mod and then manually edit the files that failed and FTP the edited file to complete the installation.
Quote$total_users = $context['num_guests'] + ($modSettings['ob_googlebot_count_most_online'] ? $context['num_spiders'] : 0) + max($total_users, $modSettings['mostOnlineToday']);
Thanks for your reply. I just checked. I have the above in the /Sources/BoardIndex.php which is the one that is still reporting the error.
Great mod thanks
@Soms
That doesn't match my ./Sources/BoardIndex.php for that line as modified. Here is what mine looks like:
$total_users = $context['num_guests'] + ($modSettings['ob_googlebot_count_most_online'] ? $context['num_spiders'] : 0) + $context['num_users_online'];
This line appears around line 465. The additional statements that you have at the end appear around line 498. It appears that you added the mod to the wrong line of code.
High there. I am getting these errors. Can anyone help please ??
8: Undefined index: ob_googlebot_stats_lastvisit
File: /home/glennk/public_html/forum/Themes/default/Display.template.php (main_below sub template - eval?)
8: Undefined index: ob_googlebot_spiders
File: /home/glennk/public_html/forum/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 399
Hi,
I have a edited Default Theme on my boards, the mod installs successfully, however, I am unable to see it in the "Features and Options" and I am unable to set its permissions for the users in the Admin Panel. It works when I install it on the Default Theme.
The issue is that all my files that are in the default theme are also in the custom theme, they are exactly the same except for some .css (colors, and what not)....
Is there a way to fix this?
Is your forum set to English as the default language?
Yes
Did you install the mod with the package manager? If it was successful, can you see the Googlebots and Spider tab that is added to the Admin area when you have selected the default theme?
Which custom theme are you using?
Quote from: JimM on October 22, 2008, 04:34:06 PM
Did you install the mod with the package manager? If it was successful, can you see the Googlebots and Spider tab that is added to the Admin area when you have selected the default theme?
Which custom theme are you using?
I installed it in the package manager, it installed successfully. I cannot see the Googlebots and Spider tab in the admin area. I am using my own theme that I created by using the Theme Editor.
Were there any errors in you log after the install? If you can't see the Googlebot & Spiders tab in the Admin area, the mod did not install successfully or you have the wrong language selected. Make sure you don't have English UTF-8 selected as your forum language. I noticed the mod supports English or Spanish only.
You will need to get it working in the default theme, then we can work on your custom theme.
Quote from: JimM on October 22, 2008, 07:34:22 PM
Were there any errors in you log after the install? If you can't see the Googlebot & Spiders tab in the Admin area, the mod did not install successfully or you have the wrong language selected. Make sure you don't have English UTF-8 selected as your forum language. I noticed the mod supports English or Spanish only.
You will need to get it working in the default theme, then we can work on your custom theme.
I uninstalled it and tried it again. The same thing, it installs successfully but, I am unable to set the Permissions or view the Googlebots & Spiders in Features and Options. It works on the default theme, however does not work with the custom theme.
Here are some SS's...
Ok, does you custom theme have a custom index.template.php file? Also does it have a custom BoardIndex.template.php?
If the settings and tab shows up in the default then you should be able to get it in the custom theme.
Those files are exactly the same as the default files.
Your custom theme uses the default theme files for index.template.php and BoardIndex.template.php or did you copy those files into your custom theme folder?
The custom theme uses those files, except for me modifying the images and how the banner aligns, and added one or two menu items.
If the custom theme uses those files, make sure that the edits are appearing in the ./Themes/default/languages/Modifications.english.php.
They would pretty much have to be there if it works correctly in the default.
I looked over the Modifications.english.php and found the error, an extra semicolon caused so much havoc lol
Thanks for your help. :)
You are welcome. I wish I had of thought to mention to look there earlier. Glad you got it working.
I have another quick question sorry lol, how would I go about changing the color of the text? For instance have the Googlebot have its own color instead of the default black?
Ok sorry to post this again. Can anyone help with this error please ?
8: Undefined index: ob_googlebot_stats_lastvisit
File: /home/glennk/public_html/forum/Themes/default/languages/Tags.english-utf8.php (main_below sub template - eval?)
Line: 458
Could we have it compactable wiith smf 2.0.4
@glennk to see what is really causing that error, you will need to turn off the error eval. Do that by running this SQL querry.
INSERT INTO smf_settings VALUES ('disableTemplateEval', 1);
Watch for the error, record what is there, then turn the error eval back on with this:
DELETE FROM smf_settings WHERE variable = 'disableTemplateEval';
@asudhakar Isn't tracking information on spiders already built into 2.0?
I have installed mods on my SMF without any problem a few minutes ago. Now I was trying to install the content from Googlebot_v105_smf1.0.6.zip and Googlebot_v2_0_4_only_smf1.1.x.zip to a SMF 1.1.6.
I am getting this error:
QuoteYou cannot download or install new packages because the Packages directory or one of the files in it are not writable!
Anyone knows why? I did not changed anything and it was worked before. I did check the permissions and they are OK, it is 777.
What can I do?
You only need to install v2_0_4 if you are using 1.1.6.
Check to make sure you have a "temp" folder in your Packages directory. If you don't create one and chmod it to 777 and try the install again.
I just recently download the Googlebots i was wondering if there is anything i need to change in the code by chance.So they will show up on my message board
Quote from: DragonKith on November 07, 2008, 10:46:24 AM
I just recently download the Googlebots i was wondering if there is anything i need to change in the code by chance.So they will show up on my message board
If you're using a custom theme it won't show by default. The theme owner or someone who knows the code should be able to help you. There is also a custom Who's Online list you can install as well.
I have an error "test failed" on 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
Just upgraded to 1.1.7 , use to work fine before (1.1.4) I did the large file upgrade via FTP.
Thanks!
Update:
I no longer get the modsettings.php failure, now I'm getting:
Execute Modification ./Sources/ManagePermissions.php Test failed
I have tried the Manual edits listed here (http://custom.simplemachines.org/mods/index.php?action=parse;mod=143;attach=31743;smf_version=1.1.6), but under Manage permission.template.php I cannot find the required text :
'profile_remote_avatar' => false,
)
It is not in the template file. The only line close to this is :
418 <legend><a href="javascript:void(0);" onclick="document.getElementById(\'', $context['current_permission'], '_groups\').style.display = \'none\';document.getElementById(\'', $context['current_permission'], '_groups_link\').style.display = \'block\'; return false;">', $txt['avatar_select_permission'], '</a></legend>';
OR
452 <a href="javascript:void(0);" onclick="document.getElementById(\'', $context['current_permission'], '_groups\').style.display = \'block\'; document.getElementById(\'', $context['current_permission'], '_groups_link\').style.display = \'none\'; return false;" id="', $context['current_permission'], '_groups_link" style="display: none;">[ ', $txt['avatar_select_permission'], ' ]</a>
the word "profile" isn't in the file at all.
Thanks for any help!
Will adding IP Addresses to the Subs source work ?
@ TeaTephi
There should be 3 occurrences of 'profile_remote_avatar' and one of them will be 'profile_remote_avatar' => false,.
It is a few lines below 'profile' => array(
Are you positive you didn't get the templates mixed up?
Can you post your ManagePermissions.php
You were right! I had the wrong file, but now I'm getting all these errors. I have attached them so you can see the edits and maybe where I went wrong. Thanks for help.
2. Execute Modification ./SSI.php Test failed
3. Execute Modification ./Sources/BoardIndex.php Test failed
4. Execute Modification ./Sources/ManagePermissions.php Test failed
5. Execute Modification ./Sources/ModSettings.php Test failed
WHOOOAA!!! lol
That's the first time I've seen a mod have soo many failed templates! lol
I don't have time to look at these today, so hopefully someone else will.
But if not, I'll take a peek within the next couple of days.
My suggestion would be to have a look at them yourself, and remove whatever edits you've added, then try again.
If you don't have many mods altering these templates, then use a fresh copy of them, and reinsert the codes.
Anywho... good luck lol ;)
Anyone to update this mod so that it can work on 1.1.7?
Quote from: pcigre on November 20, 2008, 04:58:17 AM
Anyone to update this mod so that it can work on 1.1.7?
It works, but it has problem with Ignore member mod (in permission file)
and another issue:
http://www.simplemachines.org/community/index.php?topic=263429.msg1718366#msg1718366
anybody have a klue on this?? :P
Subs.php
Find this code: $value = "$_SERVER[REQUEST_URI]";
Change to this:
$value = $_SERVER['REQUEST_URI'];
See if that fixes the error.
i did try that as the suggestion over on the other thread said to check that..
no relief.. server related ICH?? it doenst do it on my local or on my other site but it does for Steveb..
its filling his logs up.. ::)
@ TeaTephiQuote from: TeaTephi on November 19, 2008, 10:48:45 AM
You were right! I had the wrong file, but now I'm getting all these errors. I have attached them so you can see the edits and maybe where I went wrong. Thanks for help.
Hey there bud.
Sorry I forgot about this :-[
Have you worked your way through that mate?
I'm very sorry if this was already answered, but the thread has already 81 pages... :(
Here it goes: how can i had other spiders? Which file should i edit and which list of spiders do you recommend?
To add spiders etc, look in your sources folder/directory, and the changes are made to your subs.php template.
Take a look at [THIS] (http://www.simplemachines.org/community/index.php?topic=233636.msg1507179#msg1507179) for a list of spiders.
You now know where to add and delete spiders, so you can add more when you see them :)
Hope that helped.
Hmmm, my bad :P
I already read that before, but now i made some kind of confusion because it's only for SMF 2.0. I forgot we can edit the subs.php file O:)
Thanks once more ;)
Here comes one more question O:)
How can i hide the "Google visited last this page" string from everyone but the admins?
In your index.template.php, find
if (isset($context['ob_googlebot_stats']))
replace with
if ($context['user']['is_admin'] && isset($context['ob_googlebot_stats']))
Enjoy :)
Awesome! 8)
Thank you!
Hello,
81 pages are to much for me to read so sorry if this question is stil answered.
I Use Version 2.0.3 since 1.5 years. Today I checked my tables and I see the table smf_ob_googlebot_stats takes about 7 MB space. This is to much. How to reduce the space and why are the data is stored so long?
Andreas
Does this require manual edits to custom themes ?
Quote from: Sabre™ on December 28, 2008, 07:17:12 PM
To add spiders etc, look in your sources folder/directory, and the changes are made to your subs.php template.
Take a look at [THIS] (http://www.simplemachines.org/community/index.php?topic=233636.msg1507179#msg1507179) for a list of spiders.
You now know where to add and delete spiders, so you can add more when you see them :)
Hope that helped.
Ok, here i go again...
If i see a spider crawling my forum, how do i add it to the subs.php file? I mean, i believe it's not just a matter of adding the name, is it?
Any chance on updating this mod to support SMF 2.0 RC1?
great mod..thanks so much for this one. I installed it in my forum and it works perfect.
Hi,
this is not at all a great mod!
In 17 Month it creates over 50000 records in table smf_ob_googlebot_stats wich takes over 6MB space.
That's much to much.
Hi, i have just installed Googlebot & Spiders Mod, it works good, only there is small issue when it displays it. I have attached image, when you look at it you can see that under menu Lietotaji Online: There are number of Bots but no name, so it looks kinda ugly.
MY question is , where i can edit it so it actually displays the name i want there ''Boti''
BTW i have noticed that i only can see those bots with IE browser, they won't be shown in Firefox or googlechrome, why would that be ?
Cheers
V.
A list of bots and how to edit is one page back
http://www.simplemachines.org/community/index.php?topic=38003.msg1856425#msg1856425
Quote from: VP on February 11, 2009, 02:58:56 PM
Any chance on updating this mod to support SMF 2.0 RC1?
Sorry to bump this thread but I'd like to ask the same question - I've been using this mod on my main site for ages and love it - but I want to convert to 2.0 RC1 and I'd like to be able to continue using this mod
So any chance at all of it being updated?
Quote from: beemer on February 23, 2009, 04:35:29 PM
A list of bots and how to edit is one page back
http://www.simplemachines.org/community/index.php?topic=38003.msg1856425#msg1856425
My doubt is:
For example, i now see the following bot on my forum
Guest
(220.181.50.207, Baiduspider+(+http://www.baidu.com/search/spider.htm))
How do i edit my subs.php to show it as a bot?
I did like this and didn't work:
array (
'agent' => 'Baiduspider+',
'spidername' => 'Baiduspider+',
),
Edit: It appears in the Users Online tab in the forum's index, but not in the resume of Users Online (when you click on users online tab to see the page "Who's Online Page").
Quote from: FragaCampos on March 22, 2009, 11:03:31 AM
Quote from: beemer on February 23, 2009, 04:35:29 PM
A list of bots and how to edit is one page back
http://www.simplemachines.org/community/index.php?topic=38003.msg1856425#msg1856425
My doubt is:
For example, i now see the following bot on my forum
Guest
(220.181.50.207, Baiduspider+(+http://www.baidu.com/search/spider.htm))
How do i edit my subs.php to show it as a bot?
I did like this and didn't work:
array (
'agent' => 'Baiduspider+',
'spidername' => 'Baiduspider+',
),
Edit: It appears in the Users Online tab in the forum's index, but not in the resume of Users Online (when you click on users online tab to see the page "Who's Online Page").
In Subs.php add:array (
'agent' => 'Baiduspider+',
'spidername' => 'Baiduspider+',
),
Then in Who.template.php add:array (
'agent' => 'Baiduspider+',
'spidername' => 'Baiduspider+',
'spider' => true,
),
Thanks a lot, ivo2296!
It worked! 8)
I have installed this mod, made sure permissions are all set correctly but i still cant seem to see when a bot or spider is online.
I am using 1.1.8 of smf and the newest version of this mod.
Any clue as to why this may be happening?
Thanks.
I went to uninstall this Mod (no real use for it any more and I'm trying to clean up my forum).
I got this error.
Parse error: syntax error, unexpected $end in /home1/coasterc/public_html/smf_forum/Sources/BoardIndex.php on line 732
I've gone through the manual install instructions and tried removing any left over code. What am I missing?
when update dont forget portuguese
<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[
// OB - Googlebot - Begin
// Boardindex Strings translate by candidosa2 suporte smfpt.net
$txt['ob_googlebot_modname'] = 'Googlebot & Spiders';
$txt['ob_googlebot_spider'] = 'Aranhas';
$txt['ob_googlebot_spiders'] = 'Aranhas';
$txt['ob_googlebot_spiders_last_active'] = 'Aranhas activo no ultimos ' . $modSettings['lastActive'] . ' minutos';
// ModSettings
$txt['ob_googlebot_count_all_instances'] = 'Contar todas as instancias da mesma aranha';
$txt['ob_googlebot_display_all_instances'] = 'Mostrar todas as instâncias da mesma aranha <div class="smalltext">("' . $txt['ob_googlebot_count_all_instances'] . '" Deve ser selecionada)</div>';
$txt['ob_googlebot_display_agent'] = 'Mostrar agente, em vez de nome';
$txt['ob_googlebot_display_own_list'] = 'Mostrar aranhas em sua própria lista';
$txt['ob_googlebot_count_most_online'] = 'Contar em "Most Online"';
$txt['ob_googlebot_redirect_phpsessid'] = 'Redirecionar PHPSESSID URLs';
// Stats
$txt['ob_googlebot_stats_lastvisit'] = 'Google últimos que visitaram esta página ';
// Permissions
$txt['permissiongroup_googlebot'] = $txt['ob_googlebot_modname'];
$txt['permissionname_googlebot_view'] = 'Ver Googlebot & Spiders';
// OB - Googlebot - Fim
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese_brazilian.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[
// OB - Googlebot - Begin
// Boardindex Strings
$txt['ob_googlebot_modname'] = 'Googlebot & Spiders';
$txt['ob_googlebot_spider'] = 'Aranhas';
$txt['ob_googlebot_spiders'] = 'Aranhas';
$txt['ob_googlebot_spiders_last_active'] = 'Aranhas activo no ultimos ' . $modSettings['lastActive'] . ' minutos';
// ModSettings
$txt['ob_googlebot_count_all_instances'] = 'Contar todas as instancias da mesma aranha';
$txt['ob_googlebot_display_all_instances'] = 'Mostrar todas as instâncias da mesma aranha <div class="smalltext">("' . $txt['ob_googlebot_count_all_instances'] . '" Deve ser selecionada)</div>';
$txt['ob_googlebot_display_agent'] = 'Mostrar agente, em vez de nome';
$txt['ob_googlebot_display_own_list'] = 'Mostrar aranhas em sua própria lista';
$txt['ob_googlebot_count_most_online'] = 'Contar em "Most Online"';
$txt['ob_googlebot_redirect_phpsessid'] = 'Redirecionar PHPSESSID URLs';
// Stats
$txt['ob_googlebot_stats_lastvisit'] = 'Google últimos que visitaram esta página ';
// Permissions
$txt['permissiongroup_googlebot'] = $txt['ob_googlebot_modname'];
$txt['permissionname_googlebot_view'] = 'Ver Googlebot & Spiders';
// OB - Googlebot - Fim
]]></add>
</operation>
</file>
hello.
installed mod but did not see it in the...
the list of users only, I
done, the problem was in the theme
Hi,
i have a question that i've installed this mod but i guess after installing i'm having loading problem. it's taking much time to load the main page of my forum, may be it's not creating this problem may be other one doing this, moreover i want to know that "Redirect PHPSESSID URLs" should be enable or not?
i'm using SMF 1.7 can't upgrade. all i want google to index my forum and i'm using following mods.
Mod Name Version
1. Googlebot & Spiders Mod 2.0.4 [ Uninstall ] [ List Files ] [ Delete ]
2. Global Headers Footers 1.4.1 [ Uninstall ] [ List Files ] [ Delete ]
3. SMF Media Gallery 1.5.6 [ Uninstall ] [ List Files ] [ Delete ]
4. Pretty URLs 0.9 [ Uninstall ] [ List Files ] [ Delete ]
5. Ad Managment 2.3 [ Uninstall ] [ List Files ] [ Delete ]
6. Aligned and Bilateral Child Boards 1.4 [ Uninstall ] [ List Files ] [ Delete ]
7. SMF Sitemap 1.2.2 [ Uninstall ] [ List Files ] [ Delete ]
8. Ip to Country 1.2 [ Uninstall ] [ List Files ] [ Delete ]
Thanks in advance
Quote from: yura_mdj on April 24, 2009, 04:16:29 AM
hello.
installed mod but did not see it in the...
the list of users only, I
done, the problem was in the theme
how do you fix that ?
Any chance this could be enabled to work for SMF 2.0 RC1?
Thanks for this great mod, but I want to disable "Google Last visited this page" logs. (DataBase is growing very very fast!) what should i do?
Disable Inserting "Google Last visited this page" logs to DB and remove that line from bottom of pages.
thanks.
2 blanix - part of the code intended for the pages ./Themes/default/index.template.php &
./Themes/default/BoardIndex.template.php Append to ./Themes/babilon/index.template.php &
./Themes/babilon/BoardIndex.template.php
./Themes/babilon/index.template.php
if ($context['show_load_time'])
echo '
<span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';
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>';
./Themes/babilon/BoardIndex.template.php
$context['num_guests'], ' ', $context['num_guests'] == 1
(empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '),
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);
if (!empty($context['spiders']))
{
if ($modSettings['ob_googlebot_display_own_list'])
echo '
<br />
', $txt['ob_googlebot_spiders_last_active'], ':<br />';
else
{
if (empty($context['users_online']))
echo '
', $txt[140], ':<br />';
else
echo ', ';
}
echo implode(', ', $context['spiders']);
}
+ savvy)
Quote from: Chit-Chat ChatterBox Boss on May 03, 2009, 01:10:53 PM
Any chance this could be enabled to work for SMF 2.0 RC1?
Anyone maybe?
I have default core vers. 1.1.8 with the googlebot vers. 2.0.4 I also installed the custom who.template. The problem I'm having is I have permissions set so regular members can not see googlebot& spiders but when they click on users online they can see the bots and spiders. Any idea why that's happening? Do I also need to change the permission that states "view who's online"? I have that one checked.
TD
Yep, the permissions are for the GoogleBots and Spiders mod. When someone clicks on users online, the who.template.php is called and because you have the modified one, they see the bots and spiders. Even though these work together, they are two separate things. One being a mod and the other being a file replacement.
Quote from: JimM on May 14, 2009, 12:07:13 AM
Yep, the permissions are for the GoogleBots and Spiders mod. When someone clicks on users online, the who.template.php is called and because you have the modified one, they see the bots and spiders. Even though these work together, they are two separate things. One being a mod and the other being a file replacement.
Thanks for the reply JimM, do most folks block the members from viewing the Who's online if they have this mod and the custom who template?
TD
I can't speak for others but I don't. It creates conversation when they see a spider that they don't recognize. I only block the Who's Online for Guest. All other members can see it.
will this mod be updated for smf boards 1.1.9 not everyone has smf 2.x.x
its work fine on 1.1.9!
Quote from: darklord2 on May 25, 2009, 11:38:32 AM
its work fine on 1.1.9!
Not here, I'm usig the dutch language. Is this a problem? I can't find the settings.
It's easy,
Add code below to the end of "Modifications.dutch.php" file in "YourThemeDir/Languages" (right befor ?>)
// 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 <div class="smalltext">("' . $txt['ob_googlebot_count_all_instances'] . '" must be selected)</div>';
$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
You may Translate right side of each equation to Dutch.
Modifications.dutch.php :D
// 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 actief in laatste ' . $modSettings['lastActive'] . ' minuten';
// ModSettings
$txt['ob_googlebot_count_all_instances'] = 'Tel alle bezoek van dezelfde spider';
$txt['ob_googlebot_display_all_instances'] = 'Toon alle bezoek van dezelfde spider <div class="smalltext">("' . $txt['ob_googlebot_count_all_instances'] . '" moet aangevinkt zijn)</div>';
$txt['ob_googlebot_display_agent'] = 'Toon agent in plaats van naam';
$txt['ob_googlebot_display_own_list'] = 'Toon spiders in eigen lijst';
$txt['ob_googlebot_count_most_online'] = 'Tel in "Meest online"';
$txt['ob_googlebot_redirect_phpsessid'] = 'Redirect PHPSESSID URLs';
// Stats
$txt['ob_googlebot_stats_lastvisit'] = 'Google bezocht deze pagina ';
// Permissions
$txt['permissiongroup_googlebot'] = $txt['ob_googlebot_modname'];
$txt['permissionname_googlebot_view'] = 'Bekijk Googlebot & spiders';
// OB - Googlebot - End
usa4all, Soms made your work easy! ;)
simple copy Soms's post at the end of "Modifications.dutch.php" in "YourThemeDir/Languages" (right befor ?>)
Thanks Soms.
Ive tried adding this mod to a 1.1.5 board, it installed without error but does not alter anything and does not appear in the admin centre. Having looked through here I checked for a modifications.english.php but that does not exist. Where am I going wrong?
Great Mod
Quote from: coyoteboy on May 30, 2009, 11:00:20 AM
Ive tried adding this mod to a 1.1.5 board, it installed without error but does not alter anything and does not appear in the admin centre. Having looked through here I checked for a modifications.english.php but that does not exist. Where am I going wrong?
If you are not using Default Theme, then you must make changes on your 3rdParty theme manualy.
but if you are using Default Theme and Mod didn't work:
Try to UnInstall the mod. if it returns any error in uninstalling process it means you must change directory permissions. for this go to Packages and mods > Settings and choose Make Anything Wriable (or something like that) and click on button below.
Page will refresh but no notification will shown, then Install Mod again. it will work fine.
Do not forget to change permisions to "NORMAL" after installation, as told before.
hm ok it works but with different lastvisits ?!
on the index/bordindex shows lastvisit yesterday .. and on messageindex/board shows today .. oO
any ideas ?
Thats normal!
googlebot crawls deferent pages of your site in deferent times... so it's normal to see deferent LastVisit on deferent pages.
am i wrong?
For some reason i cant get google spider bots to show up on my board in the admin panel if anyone knows why could someone please tell me what i did wrong.I install the mod etc i was told there was supposedly created a tab in Features Options tab i didnt see no tab at all.
DragonKith,
Start from Reply #1648 and go on...
Hello,
I am attempting to install 2.0.4 on SMF 1.1.9, as the ONLY mod installed. When I do so, the files all apply and pass the test OK, but I get an error when executing code.php:
Incorrect table name ''
File: /home/kradmin/public_html/Components/Forums/Packages/temp/code.php
Line: 3
Everything works fine EXCEPT the code.php part, and I can't seem to get around it - any idea how I can fix this?
Did you change your table Prefix? (smf_ as usual)
I did, but it still doesn't take.
I tried to do a search on this thread about it's compatibility with version 2.0 rc1-1.
I see people's smf boards with version 2.0 and having spiders listed with whosonline but this mod specifies strictly for 1.x
I try manual instructions, but it says that it is NOT TESTED for my version...
is there a different mod that does what this one does???
8: Undefined index: ob_googlebot_stats
File: X:\....\....\....\xxxx.template.php (main_below sub template - eval?)
Line: 674
This error is filling the error log after install
(file directory changed for security reasons)
The problem seems to be with "ob_googlebot_stats" in index.template.php.
Does anyone know where "ob_googlebot_stats" is defined so I can fix this.
hai sir first thanks for making these code sir,the code work perfect for me in default theme sir, as i aim using dsv4 theme,in that i could not add this line in index.template.php,show i add my indextemplate.php here pls help as soon as possible.
if ($context['show_load_time'])
echo '
<span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';
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>';
indextemplate .php
How do you get to the spiders pages in SMF2 admin?
ok sorry if this is a repost .. however I dont have all day to go threw 80 pages of posts .. ahhahaha
I have a issue with this mod ..
ok .. looks like I have had this issue for a while .. while troubleshooting another problem this keeps showing up in my error logs .. I would guess it has to do with the Googlebot & Spiders Mod
Quote
Guest Today at 12:53:51 pm
66.249.67.27 c9a181dc7667eedf6a5025564803f20b
http://thesalttank.com/forum/index.php?topic=875.msg8548;topicseen
8: Undefined index: ob_googlebot_stats_lastvisit
File: C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\forum\Themes\default\Display.template.php (main_below sub template - eval?)
Line: 417
anyone else have this issue at all? and is there a fix for it?
I have looked in the PHP files but I cant seem to find anything at all .. perhaps I am looking in the wrong place ...
Hi, it gives me this error:
source/boardindex.php failed
I have download the last file about this mod, I used smf 1.1.10 maybe it isn't the right file for this version?
I tried also with version 2.3, it's a proble on boardindex.
I send you a copy of my boardindex.php
Works fine for me in SMF 1.1.10!, it shows me the actual spiders but where I can change the options of the mod??? It doesnt appear in the admin panel...¿?
Thanks.
I manually upgraded to the newer spider list for 1.1.10 and it shows Google and Yahoo correctly but not Baiduspider which has up to 15 agents at a time on my website. How do I ad Baiduspider manually?
Quote from: Lautermilch on August 24, 2009, 01:55:47 PM
I manually upgraded to the newer spider list for 1.1.10
How did you do that ?
Getting this error after install .. had to restore backup
QuoteFatal error: Cannot redeclare ob_googlebot_getagent() (previously declared in /home/xxxxxx/public_html/forum/Sources/Subs.php:3839) in /home/xxxxx/public_html/forum/Sources/Subs.php on line 3954
Any Ideas?
Quote from: aw06 on September 02, 2009, 09:18:53 AM
Getting this error after install .. had to restore backup
QuoteFatal error: Cannot redeclare ob_googlebot_getagent() (previously declared in /home/xxxxxx/public_html/forum/Sources/Subs.php:3839) in /home/xxxxx/public_html/forum/Sources/Subs.php on line 3954
Any Ideas?
This usually means you have a double code in your subs.php file. In your case, look for "
ob_googlebot_getagent()" on line 3839 of subs.php. That same code is probably on line 3954. You have to delete one. Always make a backup just in case.
what would cause double code ?
I can't help you there.
Quote from: aw06 on September 02, 2009, 02:08:01 PM
what would cause double code ?
Installing twice...uninstalling and the code wasn't removed and then installing again.
Quote from: JimM on September 03, 2009, 03:35:44 PM
Quote from: aw06 on September 02, 2009, 02:08:01 PM
what would cause double code ?
Installing twice...uninstalling and the code wasn't removed and then installing again.
i installed once..... when i went to check i saw the double code ...
i restore backups ... now when i try to re-install, getting a an error on ssi
It could also happen when youve pressed the install button twice, or your connection to the server was interrupted...
Whats the error?
It'd be best to go over the altered templates, and make sure every bit of code is removed regarding this modification.
Although it should have been after your backup restore.
In your Packages folder, look in the backups folder within, and select the package that says something similar to "before googlebot and spiders", and use the templates from there.
If you have installed mods after this one, then uninstall only those mods, use your backup templates, then reinstall the mods.
Hopefully that helps :)
Is this mod Compatible with PSMF 2.0 RC1.2 ?
If not, will it be? Or is there something similar I can use?
Thank you.
Im not sure about PSMF 2.0 RC1.2 :P , but for SMF 2.0 RC1.2 try looking [HERE] (http://custom.simplemachines.org/mods/index.php?mod=1157) :)
Quote from: Sabre™ on September 17, 2009, 01:35:49 AM
Im not sure about PSMF 2.0 RC1.2 :P , but for SMF 2.0 RC1.2 try looking [HERE] (http://custom.simplemachines.org/mods/index.php?mod=1157) :)
Lol, damned typo.
Thanks.
The SMF 2.0 grouping of who's online mod is [HERE] (http://custom.simplemachines.org/mods/index.php?mod=1148), too. Between the two, you get the same effect as this Mod and it's sister.
Hello,
I'm getting this error in the forum logs:
Undefined index: ob_googlebot_stats
File: /usr/home/.../domains/.../public_html/Sources/Subs.php
Line: 3456
Here is the corresponding line:
3455 //Googlebot stats - Get info for this page
3456 if ($modSettings['ob_googlebot_stats'])
3457 {
3458 $ob_googlebot_start = isset($context['start'])?$context['start']:'0';
3459 if (isset($context['current_topic'])) // We are on a topic
3460 {
...
Please help me to fix this error. Thanks.
Is it possible to modify the default time of 15 minutes, apart from the members? For example, i want to have something like this:
- members in the last 15 minutes: ...
- spiders in the last 60 minutes: ...
Is there going to be upgrade done to this module soon i download this module the other day and it wont work on my board it told me its out of date.Can someone tell me if there is going to be a upgrade done soon
Sorry, originally I speak Spanish (Argentina)
Hello, I have a problem with this plugin. for some time to get started throwing this error on index.php
Fatal error: Call to undefined function ob_googlebot_getagent() in /home/a4743383/public_html/foro/Sources/BoardIndex.php on line 301
in this line have
$is_spider = ob_googlebot_getAgent($actions['USER_AGENT'], $spider_name, $agent);
It defines where the function
----
Disculpe, originalmente hablo español (Argentino)
Hola, tengo un problema con este complemento. desde hace un momento empeso a tirar este error el index.php
Fatal error: Call to undefined function ob_googlebot_getagent() in /home/a4743383/public_html/foro/Sources/BoardIndex.php on line 301
en esa linea tengo
$is_spider = ob_googlebot_getAgent($actions['USER_AGENT'], $spider_name, $agent);
En donde ahi que definir esa funcion
Got the below error after installing the mod:-
Fatal error: Cannot redeclare ob_googlebot_getagent() (previously declared in /home/ppmblog1/public_html/primavera/Sources/Subs.php:3924) in /home/ppmblog1/public_html/primavera/Sources/Subs.php on line 4151
Quote from: neo007 on November 04, 2009, 09:21:19 PM
Got the below error after installing the mod:-
Fatal error: Cannot redeclare ob_googlebot_getagent() (previously declared in /home/ppmblog1/public_html/primavera/Sources/Subs.php:3924) in /home/ppmblog1/public_html/primavera/Sources/Subs.php on line 4151
That normally means you have installed a portion of the code twice. With a good text editor like Notepad++ open /Sources/Subs.php and remove one occurrence of the duplicate code.
Thanks Jim It solved the error.
Quote from: miranon on October 03, 2009, 11:45:14 AM
Hello,
I'm getting this error in the forum logs:
Undefined index: ob_googlebot_stats
File: /usr/home/.../domains/.../public_html/Sources/Subs.php
Line: 3456
Here is the corresponding line:
3455 //Googlebot stats - Get info for this page
3456 if ($modSettings['ob_googlebot_stats'])
3457 {
3458 $ob_googlebot_start = isset($context['start'])?$context['start']:'0';
3459 if (isset($context['current_topic'])) // We are on a topic
3460 {
...
Please help me to fix this error. Thanks.
Please, can somebody help me to fix the errors above?
i may just be totally lost , but hey i am a newb. ;)
i installed the mod and uploaded this file to the theme folder.
I do not see any change, or understand what it is suppossed to do or how to get it to do it.
I thought i could use it to let me know if any bots at leats crawled my site so that i can tell if its in the search engine.
liek i said , im new. but where are you guys seeing results at?
(I tried on my current theme & on default core)
Will this be updated for SMF 2.0 RC2?
Regards
Eddy
Hi guys, I've installed mod successfully, mod menu appeared(googlebot & spiders) in admin panel, but seems that no function works. I try to flag/unflag every option but I cannot display "spiders" in the list but only "guests" and "users".
I have replaced Who.template and it works in "..forum/index.php?action=who"
I have no errors in "Forum errors log".... what have to do to work this mod? :/
Please help me..thanks.
Does anyone have a modified version of this mod that will work on RC3?
curious if i can get something like this for 1.1.11
Please, could you update to SMF 2.0 RC3? Thanks
Quote from: Kat9119 on August 16, 2010, 10:09:41 PM
curious if i can get something like this for 1.1.11
This works fine on 1.1.11.
Quote from: shakaran on August 20, 2010, 02:57:02 PM
Please, could you update to SMF 2.0 RC3? Thanks
2.0 has built in support to track spiders.
Quote from: JimM on August 21, 2010, 12:50:16 PM
Quote from: Kat9119 on August 16, 2010, 10:09:41 PM
curious if i can get something like this for 1.1.11
This works fine on 1.1.11.
Great, thanks I'll give it a shot :)
Quote from: Kat9119 on August 24, 2010, 05:46:50 PM
Ok, I've installed this. I've turned it on in the Admin panel.
I don't see it working. I looked at who's online, lots of guests, I went to look at their IPs and Google Inc is on. But its not listed anywhere in the who's online block or who's online page. I'm assuming for it to show on the who's online page I need to upload the file here : http://www.simplemachines.org/community/index.php?topic=19243.0
But I'm curious as to why I don't see bots on the bottom. Any ideas?
You need to replace the default SMF who.template.php with that custom one (make sure you backup your current one before you overwrite).
Ok, got this working on 1.1.11, but I'm curious if I can get the different bots names in different colors. I've seen this asked around here, but not answered.
Thanks!
Any chance of a 2.0 RC3 port ?
Quote from: MoreBloodWine on August 28, 2010, 02:59:12 AM
Any chance of a 2.0 RC3 port ?
You answer is here
Quote from: JimM on August 21, 2010, 12:50:16 PM
Quote from: Kat9119 on August 16, 2010, 10:09:41 PM
curious if i can get something like this for 1.1.11
This works fine on 1.1.11.
Quote from: shakaran on August 20, 2010, 02:57:02 PM
Please, could you update to SMF 2.0 RC3? Thanks
2.0 has built in support to track spiders.
Quote from: Spoogs on August 28, 2010, 02:36:50 PM
Quote from: MoreBloodWine on August 28, 2010, 02:59:12 AM
Any chance of a 2.0 RC3 port ?
You answer is here
Quote from: JimM on August 21, 2010, 12:50:16 PM
Quote from: Kat9119 on August 16, 2010, 10:09:41 PM
curious if i can get something like this for 1.1.11
This works fine on 1.1.11.
Quote from: shakaran on August 20, 2010, 02:57:02 PM
Please, could you update to SMF 2.0 RC3? Thanks
2.0 has built in support to track spiders.
This "built in" support would be anabled how ? Also, I would only find the built in support useful it it had the exact same options as this mod. So lets for arguments sake assume that it doesnt then this mod would still be useful to many people like me ;-)
Features and options > members > search engines
1st
Admin -> Configuration -> Core Features -> Search Engine Tracking (turn in on and click save)
2. - Brack1 said
yoursite/index.php?action=admin;area=sengines
Quote from: Spoogs on August 28, 2010, 06:45:17 PM
1st
Admin -> Configuration -> Core Features -> Search Engine Tracking (turn in on and click save)
2. - Brack1 said
yoursite/index.php?action=admin;area=sengines
Found it thx, but I really prefer the way this mod shows them compared to
6 Guests, 1 User (1 Spider)
Users active in past 30 minutes:
MoreBloodWine, Yahoo!
With this mod spiders were in their own list and removed from the guest count so instead of the above we'd expect to see something like this...
5 Guests, 1 User, 1 Spider
Users active in past 30 minutes:
MoreBloodWine
Spiders active in past 30 minutes:
Yahoo!
Although most people could cae less about this I prefer this formatting better.
Edit: As far as this mod goes, how does it know what a spider is. I assume there's some sort of array that constantly needs updating like the grouped who file. The same goes for the SMF 2.0 thing, asuming there's a spider array how in the heck would you even update that since AFAIK there's no mod or editable array for it so when new spiders are found it looses effectiveness.
See, I love being able to track spiders and such but not being able to track them all due to non editable arrays when new spiders are found makes any spider system useless after a while. Even so, adding spider after spider when they're found would become an annoying task after a while. What I would LOVE to see is a mod like Stop Spammer but for spiders, so instead of checking a DB for spammer IP's and whatnot it checks a DB of spiders and then lists them accordingly on your site.
The standard way to detect spiders are by their agent string. Usually an internet device will send an id, for example iPhone's Safari will say "Mozilla/5.0 (iPhone ... Safari/419.3" and Firefox will say "Mozilla/5.0 (Windows ... Firefox/3.6.8".
Spiders are the same. If you see "Googlebot/2.1 ..." you know it's google. If you see "YahooSeeker/1.0 ..." you know it's Yahoo.
Before you ask, yes, this id can be faked. And yes they will change, but there is usually a pretty stable part that you can use to identify them. Like "googlebot" or "yahooseeker".
SMF 2.0 allows you to update your spider list. But I'm not aware of a centralised spider agent database...
Wow nice mod, will try to figure out this.
Quote from: Kat9119 on August 24, 2010, 06:33:52 PM
Ok, got this working on 1.1.11, but I'm curious if I can get the different bots names in different colors. I've seen this asked around here, but not answered.
Thanks!
Anyone? I think it would look better then being the same color as other people....
hmm... i find interesting ppl still like this mod :P
Any open issues? requests? recommendations?
One request yes and some people wouldnt agree with me but 2.0 support.
YES, I know 2.0 has spider support but this mod manages and displays them so much better which is why I feel this mod should be updated to 2.0 standards.
Quote from: MoreBloodWine on September 23, 2010, 09:40:53 PM
One request yes and some people wouldnt agree with me but 2.0 support.
YES, I know 2.0 has spider support but this mod manages and displays them so much better which is why I feel this mod should be updated to 2.0 standards.
Sorry if this sounds dumb but aside from the above quote of mine, how can I edit the aray of spiders to use the same aray that I use in my custom Who.template.php which you actually link to fro mthe mod page which BTW, Ty for that.
I ask because I noticed YandexBot/3.0 comes up in my seperated who list but not labeled as a spider in this mod... it shows as a guest. I figure I can just copy my entire Spider aray from my custom Who.template.php and overwrite the spider aray currently in this mod this way what the file labels as a spider then this mod will as well.
All that aside, I just wanted to restate that I really would love to see a copy of this mod made for 2.0. Wether or not you do it is up to you but I honestly like the way this mod handles and labels them compared to the SMF 2.0 settings for that. I would also assume it a safe bet that I'm not the only one who feels this way either.
Awesome mod. 8) Thanks!
Sorry, which one works for RC3?
Please, kindly update it to work for 2.0 RC4
Another vote for upgrading to 2.0. I can see spiders in my logs but I liked seeing that Bing wasn't able to follow robots.txt instructions :) I did just install 2.0 rc4 so I don't know yet if spiders and guests count towards the daily total. Last year we had a severe spike of guests and it turned out that it was Microsoft hammering the site to the point of making access slow for my regular members.
Thanks.
Carl
Will this mod work on version 2.0 RC4?
Unless it's posted in this topic somewhere, it is not working for SMF2 at all.
No,, and it is enable.
Hi,
Tried installing this mod on SMF 1.1.13 using blackbox theme and didn't work.
So I installed the who.template.php file to my server, still didn't work.
But it IS working if I revert back to the SMF core default theme.
And when I went back to blackbox it had disappeared again.
If I have to install manually, I noticed that there's a bit at the bottom entitled 'CODE' - I can handle the files edits no problem, but what do I do with the 'CODE' snippets?
I copied a template from another forum I run with this mod installed and then installed this mod on my new forum and now I have double of everything... double listing of the bots in the online list and the "Google visited last this page March 13, 2011, 12:15:11 PM " at the bottom of the page is listed twice. Anyone know how to fix this?
(Also, any way to change that line to say "Google last visited..." instead of "Google visited last...")
Thanks!
Shame he is not SMF 2.0 RC5.
Quote from: MoreBloodWine on August 28, 2010, 06:55:45 PM
Found it thx, but I really prefer the way this mod shows them compared to
6 Guests, 1 User (1 Spider)
With this mod spiders were in their own list and removed from the guest count so instead of the above we'd expect to see something like this...
5 Guests, 1 User, 1 Spider
I've just modded this myself. No separate lists, but a different way of counting and showing.
In BoardIndex.php
// "Users online" - in order of activity.
echo '
<div class="infocenter_section">
<h4 class="titlebg">', $txt['online_users'], '</h4>
<div class="windowbg">
<p class="section">
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who' . '">' : '', '<img src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['online_users'], '" />', $context['show_who'] ? '</a>' : '', '
</p>
<div class="windowbg2 sectionbody">
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', comma_format($context['num_guests']), ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . comma_format($context['num_users_online']), ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];
// Handle hidden users and buddies.
$bracketList = array();
if ($context['show_buddies'])
$bracketList[] = comma_format($context['num_buddies']) . ' ' . ($context['num_buddies'] == 1 ? $txt['buddy'] : $txt['buddies']);
if (!empty($context['num_spiders']))
$bracketList[] = comma_format($context['num_spiders']) . ' ' . ($context['num_spiders'] == 1 ? $txt['spider'] : $txt['spiders']);
if (!empty($context['num_users_hidden']))
$bracketList[] = comma_format($context['num_users_hidden']) . ' ' . $txt['hidden'];
if (!empty($bracketList))
echo ' (' . implode(', ', $bracketList) . ')';
// "Users online" - in order of activity.
echo '
<div class="infocenter_section">
<h4 class="titlebg">', $txt['online_users'], '</h4>
<div class="windowbg">
<p class="section">
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who' . '">' : '', '<img src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['online_users'], '" />', $context['show_who'] ? '</a>' : '', '
</p>
<div class="windowbg2 sectionbody">
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', comma_format($context['num_users_online']), ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];
// Handle hidden users and buddies.
$bracketList = array();
if ($context['show_buddies'])
$bracketList[] = comma_format($context['num_buddies']) . ' ' . ($context['num_buddies'] == 1 ? $txt['buddy'] : $txt['buddies']);
if (!empty($context['num_users_hidden']))
$bracketList[] = comma_format($context['num_users_hidden']) . ' ' . $txt['hidden'];
if (!empty($bracketList))
echo ' (' . implode(', ', $bracketList) . ')';
echo ' - ', comma_format($context['num_guests']), ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'];
// Handle spiders
if (!empty($context['num_spiders']))
echo ' - ', comma_format($context['num_spiders']) . ' ' . ($context['num_spiders'] == 1 ? $txt['spider'] : $txt['spiders']);
6 Guests, 3 Users (1 Buddy, 1 Spider, 1 Hidden)
will be shown as
3 Users (1 Buddy, 1 Hidden) - 5 Guests - 1 Spider
Hello, I am trying to install Googlebot on my forum but there seems to be a problem with the BoardIndex.template.php file. Others shows Test successful but only that one says Test failed
Running SMF 1.1.13
Has anyone else gotten this? Is there a way getting around? I'm scared to click Install cause it may ruin the forum.
You must do the changes manually.
Consult the parser on the download page to see what you have to do.
Don't forget: always make backups before installing new mods.
when update for smf 2?
smf 2.0 has spider detection build in.
ah ok thx ;)
This hasn't been updated in awhile..and I've had it installed for a long long time....but am now having a little issue, and I don't know who's fault it is lol. Let me explain.
I installed this, and also installed the custom Who.template.php (http://www.simplemachines.org/community/index.php?topic=19243.320 which has since been closed, and I'm guessing my problem is with that, but could be this I'm not sure. Getting to that).
So lately I've been noticing like 30+ guests on my forum, took a look at who was online, and noticed most of them were bots, like Bing Bots and whatnot. So, I added the "agent" to the custom who.template.php and when you then go to the /forum/index.php?action=who on my site, I see BingBot listed as a spider, but on the main index of the board, it won't show that those new spiders are on. . . and they'll still be in the guest count on board index...
Any suggestions on how to fix this?
^^^^
I'm seeing a similar issue.
I'm using 1.1.16 and I'm seeing this:
1 Spider, 48 Guests, 3 Users
Users active in past 30 minutes:
Adi, Knnthh, Karcio, Google spider
When I click on more info, I see tons of bots in there with IP 180.XXX.
It seems a lot of bots are getting past the detection system. What do I need to do to pickup more of the spiders so they don't fall under the Guest count?
You have to add them manually to your Subs.php, Display.php and Who.template.php files.
If you're on 2.0 there's an admin interface. Just add the useragent to the list of spiders.
Mmm... hey Guys, someone can UpGrade the MOD for SMF 2.0.7?... is a great MOD, Please... considered..., Thanks & Regards 8).-
MOD Googlebot & Spiders (http://custom.simplemachines.org/mods/index.php?mod=143)
something similar is already a standard feature in SMF 2.0.x
Hi:
A question for developer:
I need to clear my db ... ob_googlebot_stats table is too big now ... ( 8 years working = 2,755,858 rows ) ...
Any way to clear the google bot activity log ?
Can I clear that table ?
Thanks !!