Welcome to Geeklog, Anonymous Friday, November 29 2024 @ 05:51 pm EST
Geeklog Forums
Google sitemaps for Geeklog?
Page navigation
mystral-kk
Oops, I quite forgot the draft flag.
-- mystral-kk, "Every cloud has a silver lining."
mystral-kk
mishki
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
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?
require_once "custom/phpblock_gsmap.php";
require_once "/system/custom/phpblock_gsmap.php";
-- mystral-kk, "Every cloud has a silver lining."
kemal
_KEMAL_
mystral-kk
giving this error on my site
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."
mishki
mystral-kk
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, "Every cloud has a silver lining."
dlrowolleh
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?
Page navigation
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content