Welcome to Geeklog Wednesday, June 19 2013 @ 03:35 AM EDT
|
||||||||
![]() |
Forum Index > Support > General Geeklog Support |
New Topic
|
Post Reply
|
Google sitemaps for Geeklog? |
|||
| Dirk |
|
||||||
![]() ![]() ![]() ![]() ![]() Admin ![]() Status: offline ![]() Registered: 01/12/02 Posts: 13035 |
Quote by: mystral_kk Oops, I quite forgot the draft flag. You should also check for stories that have their date and time in the future, i.e. have not been published yet. bye, Dirk |
||||||
|
|||||||
| mystral-kk |
|
||||||
![]() ![]() ![]() ![]() ![]() Regular Poster ![]() Status: offline ![]() Registered: 03/19/06 Posts: 89 |
Quote by: Dirk Quote by: mystral_kk Oops, I quite forgot the draft flag. You should also check for stories that have their date and time in the future, i.e. have not been published yet. bye, Dirk Thanks for the reply, Dirk. I totally forgot this feature as well. -- mystral-kk, "Every cloud has a silver lining." |
||||||
|
|||||||
| mystral-kk |
|
||||||
![]() ![]() ![]() ![]() ![]() Regular Poster ![]() Status: offline ![]() Registered: 03/19/06 Posts: 89 |
I have released a bug-fixed version 0.1.3 of Google Sitemap Generator. You can download it from HERE.
-- mystral-kk, "Every cloud has a silver lining." |
||||||
|
|||||||
| Anonymous: mishki |
|
||||||
![]() |
I don't really understand how to use this google sitemap generator. I've downloaded it, uncompressed it, and followed the instructions. What I don't understand is a couple things:
1. I've changed the phpblock_gsmaps file configurations for my site. Then I added the code to the lib_customs file for geeklog 1.4.0. Now what? how can i put this into effect? Also, when I added the code to the lib_customs file, here's how I added it: /* require_once "/system/custom/phpblock_gsmap.php"; // In case of Geeklog-1.4.0 function CUSTOM_runSheduledTask() { global $_TABLES; $sql = "SELECT COUNT(*) AS cnt FROM {$_TABLES['vars']}" . " WHERE (name = 'last_scheduled_run' $result = DB_query( $sql ); $A = DB_fetchArray( $result ); if ( $A['cnt'] == 0 ) { $sql = "INSERT INTO {$_TABLES['vars']} VALUES ('last_scheduled_run', '0' DB_query( $sql ); } if ( function_exists( 'phpblock_gsmap' ) ) { phpblock_gsmap(); } } */ 2. There was no folder for /system/custom/directory, so I created a "custom" folder under the "system" folder. Then I put the phpblock_gsmaps file into that folder. Then I changed the "require_once custom/phpblock_gsmaps.php" into "require_once system/custom/phpblock_gsmaps.php" Did I do that correctly? |
||||||
|
|||||||
| mystral-kk |
|
||||||
![]() ![]() ![]() ![]() ![]() Regular Poster ![]() Status: offline ![]() Registered: 03/19/06 Posts: 89 |
Quote by: mishki I don't really understand how to use this google sitemap generator. I've downloaded it, uncompressed it, and followed the instructions. What I don't understand is a couple things: You did almost all right but one thing. You should write PHP Formatted Code require_once "custom/phpblock_gsmap.php"; instead of PHP Formatted Code require_once "/system/custom/phpblock_gsmap.php"; Then, the phpblock_gsmap() function will be called within a day (depending on your setting of $_CONF['cron_schedule_interval'] in the system's config.php). -- mystral-kk, "Every cloud has a silver lining." |
||||||
|
|||||||
| kemal |
|
||||||
![]() ![]() ![]() ![]() ![]() Regular Poster Status: offline ![]() Registered: 04/05/05 Posts: 103 |
giving this error on my site
_KEMAL_ |
||||||
|
|||||||
| mystral-kk |
|
||||||
![]() ![]() ![]() ![]() ![]() Regular Poster ![]() Status: offline ![]() Registered: 03/19/06 Posts: 89 |
Quote by: kemal giving this error on my site Just as the error message says, you have already defined CUSTOM_runScheduledTask() function in line 92. You should add the following code to the existing CUSTOM_runScheduledTask(), instead of defining the function anew: PHP Formatted Code global $_TABLES; $sql = "SELECT COUNT(*) AS cnt FROM {$_TABLES['vars']}" . " WHERE (name = 'last_scheduled_run')"; $result = DB_query( $sql ); $A = DB_fetchArray( $result ); if ( $A['cnt'] == 0 ) { $sql = "INSERT INTO {$_TABLES['vars']} VALUES ('last_scheduled_run', '0')"; DB_query( $sql ); } if ( function_exists( 'phpblock_gsmap' ) ) { phpblock_gsmap(); } -- mystral-kk, "Every cloud has a silver lining." |
||||||
|
|||||||
| Anonymous: mishki |
|
||||||
![]() |
What do I do after I do this? Do I just sit back and wait for something to happen? Where can I put in the key words I want google search to pick up on a google search?
|
||||||
|
|||||||
| mystral-kk |
|
||||||
![]() ![]() ![]() ![]() ![]() Regular Poster ![]() Status: offline ![]() Registered: 03/19/06 Posts: 89 |
Quote by: mishki What do I do after I do this? Do I just sit back and wait for something to happen? Where can I put in the key words I want google search to pick up on a google search? As for the sitemap, you will have to submit it to Google Webmaster's Tool. http://www.sitemaps.org/faq.html#faq_after_submission Although a sitemap helps search engines crawl your web site better, it has nothing to do with the key words. You should place the key words in the pages you think would be best for them *** on your own *** . See, for instance, http://websitehelpers.com/seo/rankingfactors.html. -- mystral-kk, "Every cloud has a silver lining." |
||||||
|
|||||||
| dlrowolleh |
|
||||||
![]() ![]() ![]() ![]() ![]() Newbie Status: offline ![]() Registered: 02/24/07 Posts: 2 |
As for the sitemap, you will have to submit it to Google Webmaster's Tool. Ok, I do it and I have a functional sitemap.xml and google visit it. But if I want include mediagallery directory in sitemap How can I do? |
||||||
|
|||||||
| Content generated in: 2.04 seconds |
|
|
|