Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks


Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

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?
First | Previous | 1 2 3 | Next | Last
   
Dirk
 12/06/06 01:49PM  
AAAAA
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

 
Profile Email Website
 Quote
mystral-kk
 12/06/06 05:52PM  
++++-
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."
 
Profile Email Website
 Quote
mystral-kk
 12/07/06 08:04AM  
++++-
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."
 
Profile Email Website
 Quote
Anonymous: mishki
 12/22/06 11:31AM  

confused


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'Wink";
$result = DB_query( $sql );
$A = DB_fetchArray( $result );
if ( $A['cnt'] == 0 )
{
$sql = "INSERT INTO {$_TABLES['vars']} VALUES ('last_scheduled_run', '0'Wink";
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?


 
 Quote
mystral-kk
 12/22/06 05:08PM  
++++-
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:

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?


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."
 
Profile Email Website
 Quote
kemal
 12/22/06 08:29PM  
++++-
Regular Poster

Status: offline


Registered: 04/05/05
Posts: 103
giving this error on my site


PHP Formatted Code
Fatal error: Cannot redeclare custom_runscheduledtask() (previously declared in /home/.crusader/kcellat/moderntalking.biz/system/lib-custom.php:92) in /home/.crusader/kcellat/moderntalking.biz/system/lib-custom.php on line 602

_KEMAL_
 
Profile Email Website
 Quote
mystral-kk
 12/23/06 08:15AM  
++++-
Regular Poster

Status: offline


Registered: 03/19/06
Posts: 89
Quote by: kemal

giving this error on my site

PHP Formatted Code
Fatal error: Cannot redeclare custom_runscheduledtask() (previously declared in /home/.crusader/kcellat/moderntalking.biz/system/lib-custom.php:92) in /home/.crusader/kcellat/moderntalking.biz/system/lib-custom.php on line 602


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."
 
Profile Email Website
 Quote
Anonymous: mishki
 12/24/06 02:55PM  

confused


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?

 
 Quote
mystral-kk
 12/24/06 04:35PM  
++++-
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."
 
Profile Email Website
 Quote
dlrowolleh
 03/03/07 03:01AM  
+----
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?


 
Profile Email
 Quote
First | Previous | 1 2 3 | Next | Last
Content generated in: 2.04 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to post 
Filtered HTML Allowed 
Censored Content