News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Googlebot & Spiders

Started by MarkoWeb, July 14, 2006, 06:27:53 PM

Previous topic - Next topic

MarkoWeb

http://mods.simplemachines.org/index.php?mod=143

Is possible to insert this mod in smf 1.0.7

vbgamer45

1.0.6 mods and 1.05 mods will work with SMF 1.0.7
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

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

MarkoWeb

when I try to install this mod it reports error
Fatal error: Call to undefined function: db_query() in /home/*****/*****/install.php on line 9

here is code
<?php
/******************************************************************
* install.php                                                     *
*******************************************************************
* By:            Omar Bazavilvazo (http://www.OmarBazavilvazo.com)*
* Copyright:     Omar Bazavilvazo ([email protected])          *
******************************************************************/

db_query("DELETE FROM `{$db_prefix}settings` WHERE `variable` in ('ob_googlebot_count_all_instances', 'ob_googlebot_display_all_instances', 'ob_googlebot_display_agent', 'ob_googlebot_display_own_list', 'ob_googlebot_count_most_online');"__FILE____LINE__);

db_query("REPLACE INTO `{$db_prefix}settings` (`variable`, `value`) VALUES ('ob_googlebot_count_all_instances', '1');"__FILE____LINE__);
db_query("REPLACE INTO `{$db_prefix}settings` (`variable`, `value`) VALUES ('ob_googlebot_display_all_instances', '1');"__FILE____LINE__);
db_query("REPLACE INTO `{$db_prefix}settings` (`variable`, `value`) VALUES ('ob_googlebot_display_agent', '0');"__FILE____LINE__);
db_query("REPLACE INTO `{$db_prefix}settings` (`variable`, `value`) VALUES ('ob_googlebot_display_own_list', '0');"__FILE____LINE__);
db_query("REPLACE INTO `{$db_prefix}settings` (`variable`, `value`) VALUES ('ob_googlebot_count_most_online', '0');"__FILE____LINE__);

?>


vbgamer45

Strange but you are not out of luck yet.
Open up install.php and remove all the db_query lines.

Next if you have phpMyAdmin on your host or can run sql commands run the following on the database for your forum where smf_ is the db prefix you are using.

DELETE FROM `smf_settings` WHERE `variable` in ('ob_googlebot_count_all_instances', 'ob_googlebot_display_all_instances', 'ob_googlebot_display_agent', 'ob_googlebot_display_own_list', 'ob_googlebot_count_most_online');", __FILE__, __LINE__);

REPLACE INTO `smf_settings` (`variable`, `value`) VALUES ('ob_googlebot_count_all_instances', '1');

REPLACE INTO `smf_ettings` (`variable`, `value`) VALUES ('ob_googlebot_display_all_instances', '1');

REPLACE INTO `smf_settings` (`variable`, `value`) VALUES ('ob_googlebot_display_agent', '0');

REPLACE INTO `smf_settings` (`variable`, `value`) VALUES ('ob_googlebot_display_own_list', '0');", __FILE__, __LINE__);

REPLACE INTO `smf_settings` (`variable`, `value`) VALUES ('ob_googlebot_count_most_online', '0');

You should then be able to install the package using the modified install.php
You just need to rezip the mod and all its files and upload it to your package directory.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

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

Advertisement: