Subject: Google sitemaps for Geeklog?

Posted on: 03/06/05 01:27pm
By: jlhughes

Google has announced a new service direct its crawlers in indexing sites. You can read more about it at
https://www.google.com/webmasters/sitemaps/docs/en/about.html
.

Would it be possible to adapt the Site Map plugin to work with Google's sitemap feature?

Google sitemaps for Geeklog?

Posted on: 03/06/05 01:35pm
By: Anonymous

You beat me to the post. Yes, absolutely need this feature. Google crappily indexes my site!

Google sitemaps for Geeklog?

Posted on: 03/06/05 02:18pm
By: ScurvyDawg

Well Google indexes my site perfectly but anything that would assist them in doing so better would be a good thing.

btw: If you have trouble with Google indexing your GL you may need to make changes to your theme. There are many good tips on this in these forums.

I look forward to hearing how other peoples tests with this new google tool go. I unfortunately will not be able to test it for at least a week or more.

By then I expect others will have had their say about it already.


Google sitemaps for Geeklog?

Posted on: 03/06/05 05:30pm
By: Anonymous

Wow -- I had just come here to write about this topic, and everybody beat me to it.

I will be one of those working on some cheap implementation. I am sure somebody will do it better, but it will be a fun weekend project.

Google sitemaps for Geeklog?

Posted on: 04/06/05 03:34am
By: THEMike

I've been looking at the possibility of using the 1.3.12 (CVS) syndication system to generate the sitemaps. Not sure if it's going to work, or whether it could be done via a plugin. I suspect it needs to be part of core if it's included.

Google sitemaps for Geeklog?

Posted on: 03/07/05 12:12am
By: Anonymous

google sucks at iindexing, so the sooner this can be added to geeklog the better.

Google sitemaps for Geeklog?

Posted on: 11/07/05 12:32am
By: Anonymous

My, admittedly, temporary solution to generating google sitemaps. It only works for articles, nothing else yet... read on for my fix to that.

Because I am very new at geeklog, and hardly know any PHP, I cobbled together this procedure.

I tried using the automated sitemap creator tools... they don't seem to like GL and do not index. Using the google-supplied script is useless too, so...

My solution has a hundred ugly things about it, but it provides a starting point for the creation of a true sitemap solution by a real programmer...

First, create a static page:
Title: whatever you want, I named mine xmlsitemap
Add to Menu: leave unchecked
Label: whatever you want - it won't be used.
Page format: BLANK PAGE
ID: sitemap.xml
(I use the rewrite URL option... I thought this would be good, then I learned Google Sitemap wants the file on the ROOT of the website... we'll get to that later.)

This code refers to my website, www.realpanama.org, make the appropriate changes using your site name and table names. For some reason, if I use variables for site URL, etc., I get SQL errors so I resorted to using the actual table names. Somebody care to enlighten me?

The original code I "stole" from pigstye.net. Thanks to TomW who created it... Pigstye.net My original intention was to create an HTML page as the first page (www.realpanama.org/index.html), because it is totally different from the rest of the site... but I still wanted to get a listing of stories and to feature the top 4 stories on the site. And because I had trouble getting a static page to do it... this came about.

    $result = DB_query("Select sid, title, unix_timestamp(date) AS day FROM gl_stories WHERE (date <= NOW()) AND (draft_flag = 0) ORDER BY date DESC");
    $nrows = DB_numRows($result);
    $retval .= '<?xml version="1.0" encoding="UTF-8"?>'. chr(13) . chr(10);
    $retval .= '<urlset xmlns="http://www.google.com/schemas/sitemap/0.84"'. chr(13) . chr(10);
    $retval .= 'xmlnsAngrysi="http://www.w3.org/2001/XMLSchema-instance"' . chr(13) . chr(10);
    $retval .= 'xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84'. chr(13) . chr(10);
    $retval .= 'http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">' . chr(13) . chr(10);
        $retval .= '<url>'. chr(13) . chr(10);
        $retval .= '<loc>' . 'http://www.realpanama.org</loc>'. chr(13) . chr(10);
        $retval .= '<lastmod>' . date('Y-m-d') . '</lastmod>'. chr(13) . chr(10);
        $retval .= '<changefreq>daily</changefreq>'. chr(13) . chr(10);
        $retval .= '<priority>1.0</priority>'. chr(13) . chr(10);
        $retval .= '</url>'. chr(13) . chr(10);


    for ($i = 1; $i <= $nrows; $i++) {
        $A = DB_fetchArray($result);
        $retval .= '<url>'. chr(13) . chr(10);
        $retval .= '<loc>' . 'http://www.realpanama.org/article.php/' . $A['sid'] . '</loc>'. chr(13) . chr(10);
        $retval .= '<lastmod>' . date('Y-m-d',$A['day']) . '</lastmod>'. chr(13) . chr(10);
        $retval .= '<changefreq>weekly</changefreq>'. chr(13) . chr(10);
        $retval .= '<priority>0.5</priority>'. chr(13) . chr(10);
        $retval .= '</url>'. chr(13) . chr(10);

}
        $retval .= '</urlset>'. chr(13) . chr(10);

    return $retval;


Centerblock: leave unchecked.
In a block: leave unchecked.
Set to: EXECUTE PHP
Exit type: leave unchecked.

Save your static page.

Now, in my site I get the following static page:

sitemap.xml

I thought I was done, and was ready to submit to Google, when I realized Google requires that pages listed in the index are in the same folder or below to where the sitemap resides. Not good!

I lack the ability to change the URL, so I had to do a Server Side Include trick.

Create a blank file named "sitemap.shtml", and put in the following content (should work on most servers).


<!--#include virtual="/staticpages/index.php/sitemap.xml" -->
(On firefox it looks ugly, but it looks OK on IE... go figure... probably something that I did wrong, but I am sure someone will point it out).

Google doesn't seem to care if you offer a file named "sitemap.shtml", and it accepted my offering.

BUT... if you really want it to be named something like "sitemap.xml", then you must modify your .htaccess file on your root directory and make it look like this:

ErrorDocument 404 /siteindex.php
 AddType text/x-server-parsed-html .html .htm .shtml .xml


(btw, the first line has nothing to do with this, it is my way of sending people that might type a wrong or dead address to the GL sitemap page)

That modified .htaccess file now allows for server parsing of html, htm, shtml and XML files... you see where I am going with this?

Rename your siteindex.shtml file to siteindex.xml and you are done.

Submit it to google sitemaps.

There, that should do it.

I have checked MY xml file with xml checkers and they all say the file checks out.

I am sorry I need to do this in such a roundabout way... I just don't know a way to get it to do this *cleanly*... perhaps some more knowledgeable people in this forum will review this and update it.

If I was to add other things, I would fool around with the SQL query that gives life to this thing, but for now, all I wanted or need indexed is the articles themselves and the main page.

You will notice the main page, www.realpanama.org itself would not be generated by the code. I hacked that by simply adding it manually. It is the first section of the code. I use the php date function to make sure it always says the day's date and gave it a priority of 1.0 because it is the most important page. Everything else is set to 0.5, but you make the call and change it to whatever suits you.

If it works for you, I'd appreciate you post about it on this thread. It is very much a work in progress. It needs several things like making sure bad characters don't get through, etc. I will add them, and when I have them working, I will update this thread.

If I wanted to do it cleanly I would:

1. make it a real php script.
2. use php to write out a file from the return value and put it wherever I wanted.

Someday...

Finally, this code is working on a GL 1.3.11. Have to add that "sr1" soon...

Thanks.

realpanama.org


Google sitemaps for Geeklog?

Posted on: 11/07/05 12:34am
By: Anonymous

Forgot to add/meant to say.

That file, sitemap.shtml or sitemap.xml must be saved at the root of your site.

That way, google can index all pages. If you put it somewhere else, Google won't like it.

Thanks

www.realpanama.org

Google sitemaps for Geeklog?

Posted on: 11/07/05 11:32am
By: ronack

I found this 3rd party PHP Google Sitemap Generator which seems to work pretty well. I first tried the RC1 version which didn't work too well so I then tried the stable vers which worked too well. But at least it works and here are my suggestions.

First, Follow the directions for installation. Basically unzip it and put the directory in your Admin directory, then copy sitemap.xml to your root. That's all there is to installation.

Next, navigate to the new directory http://Your_domain.com/admin/phpSitemapNG/index.php.

Make sure the paths are correct.

It has directories and files to disallow and here is my suggestion, start out by disallowing everything and run it and take a look at sitemap.xml in your root. Then go back and allow files and directories you think you want and run it again until you have what you want in the listed. I ran it with most everytihing allowed and max'd it out. It will capture everything. That is why I suggest to disallow everything first.

Once you have what you want in the site map, you then will have to submit it to Google.

Google sitemaps for Geeklog?

Posted on: 12/07/05 12:24am
By: Anonymous

Update -- My google xml feed was successfully picked up.

At least we know it works.

If you don't want to go through all my steps, here is another solution that you do not have to install at all on your server or change files or... do a lot of stuff.

http://www.auditmypc.com/free-sitemap-generator.asp

This will run a Java applet on your machine and index your entire site. Very neat, and it worked for both a Miva Merchant site with 220 product pages that I am working on and an old-fashioned html website with 1200+ pages that I can only access through FrontPage and FTP, but not telnet.

The html site runs on an NT server that I don't have much control over, and I could not get the php scripts to execute, so this one did a bang up job of indexing.

It did it over my adsl connection of 256K in just a few minutes for the small site and a little longer for the 1200 page site.

It generates both a XML and a TXT file for you.

Google took my submission and 12 hours later had accepted it (OK).

My first submission had an "error"... The code was good, but when I went to the google siteindex page, I put my site as "http://realpanama.org" instead of "http://www.realpanama.org". It rejected the site because all the pages listed in the xml file had the www prefix. Important to know!!!

Take care.

Google sitemaps for Geeklog?

Posted on: 13/07/05 11:47pm
By: Anonymous

I was hoping for an easy generator like the RSS feed generator, altered slightly to make sitemaps. Is that a better way to go?

Google sitemaps for Geeklog?

Posted on: 13/07/05 11:48pm
By: Anonymous

Noticed that whatever google site maps does, it didn't index your images.

Google sitemaps for Geeklog?

Posted on: 14/07/05 07:56am
By: ronack

All my images were indexed when I used the phpsitemap generator.

Google sitemaps for Geeklog?

Posted on: 14/07/05 08:47am
By: Anonymous

Why bother putting images in the sitemap? If your site is graphics oriented perhaps this makes sense. People looking for images in search engines normally do so because they want to use/steal them.

I created a sitemap nine days ago. Google checks this file regularly. I don't see where it has improved the search engine's indexing on my site. Their bot takes pages assigned lower priorities before those with higher ones and pages marked as changing yearly over those which change daily. It also continues to request pages I purposely left out of the sitemap before finishing those which are in it.

Maybe eventually this feature will be prove useful. From what I've watched so far,, I don't think it matters if a site has one of these sitemaps or not.

Google sitemaps for Geeklog?

Posted on: 14/07/05 10:03am
By: ronack

I should qualify what I said, the PHP Sitemap Generator initially indexed my images. I have since included the Image Directory in the disallowed list.

I don't see the need to index images either. Unless you are offering up those images for download. I have one person who creates graphic pictures and he allowes folks to download them. So I could understand his site being indexed for images.

Google sitemaps for Geeklog?

Posted on: 14/07/05 03:06pm
By: frisco3

I must be missing something. I tried using the phpsitemapNG and it created a sitemap of all my geeklog files, NOT my articles. Clearly, I want it to do the opposite.

Since the articles live on a dB, not as files in my directory, does this tool even work for articles?

Google sitemaps for Geeklog?

Posted on: 14/07/05 03:39pm
By: ronack

Yeah that's a problem with many search engines especially Google. Although Google will spider some articles, it has a hard time of it. Has a lot to do with the "?", "=". and also Google doesn't like more than 3 arguments.

What I found was that Google would hit my site, index one page then leave only to return a few minutes later do another one then leave. Google and other SE's spent HOURS on my site.

One way around it is the Apache rewrite, but I didn't have that available because I'm not using Apache so I couldn't begin to tell you how to set that up.

Now what I did which seems to be working at least for now is the php page redirect. I have a directory with about 400 redirects which I include in the sitemap of cousre all of those are for the shopping cart but it would work stories too. I use it as a shortURL or like the tinyurl site.

This is what it looks like.

<?php
$shorturl = 'http://www.nc-firefighter.com/staticpages/index.php?page=photogallery';
header("Location: $shorturl");
?>
So far it seems that Google doesn't mind this type of redirect of course the Google folks change things daily and what works today may not work tomorrow.

And you could probably develope some code to automagically create the file.

Google sitemaps for Geeklog?

Posted on: 18/07/05 02:10am
By: Anonymous

Frisco et al,

[QUOTE BY= frisco3] I must be missing something. I tried using the phpsitemapNG and it created a sitemap of all my geeklog files, NOT my articles. Clearly, I want it to do the opposite.

Since the articles live on a dB, not as files in my directory, does this tool even work for articles?[/QUOTE]

That's specifically why I "wrote" (hacked, stole code to make it work) my solution. I never even thought phpsitemapNG or a tool like it would actually do it, unless it queries the server by "connecting to it from outside".

By the way... My Google PR was 0 a few days ago. Now it is reporting "3", and this tool, Future PageRank (http://www.seochat.com/seo-tools/future-pagerank/) from www.seochat.com says it is going to be 5 very soon.

But then again, I have talked important websites with high rankings into listing me in exchange for a link. We are very specialized in our subject area (prisoners in Panama), so that also has something to do with it, IMHO.


Google sitemaps for Geeklog?

Posted on: 18/07/05 08:47am
By: Anonymous

The sitemap does not help PR. Links from other sites, especially high ranking ones, definitely do. Thanks for the SEO tool link.

I didn't use phpsitemapNG. Although it's a nice tool, as you pointed out it doesn't create urls for dynamically generated content. What I did was write my own script which queries the database then creates urls to such content. I've made so many changes to Geeklog this version wouldn't work on a regular setup.

Google sitemaps for Geeklog?

Posted on: 18/07/05 08:49am
By: ronack

I went ahead and tried your solution and it didn't work. I don't know if I have something set wrong or it's my server.

First my static page looks like this.

http://www.miplanet.com/staticpages/index.php?page=sitemap.xml

Not this

http://www.miplanet.com/staticpages/index.php/sitemap.xml

When I go to the page all I get is this

http://www.miplanet.com 2005-07-18 daily 1.0 http://www.miplanet.com/article.php/200501252251582 2005-01-25 weekly 0.5

It doesn't look like the XML needed for Google. It doesn't look like it's picking up the formatting.

Google sitemaps for Geeklog?

Posted on: 18/07/05 09:45am
By: ronack

Okay I remembered the url_rewrite feature in config..php. I turned that on and now know that I don't have that capability.

Google sitemaps for Geeklog?

Posted on: 23/07/05 01:11am
By: Anonymous

I am sorry to hear that....

If anything, you can take the output and save it as a .xml file and put it where it belongs. At least you know it generates the needed file.

I will, at some point, attempt to create a proper plugin... I was hoping somebody with far more experience would take it from here, but there doesn't seem to be enough interest.

Admin
www.realpanama.org


Google sitemaps for Geeklog?

Posted on: 30/07/05 12:05am
By: Anonymous

[QUOTE BY= ronack]I don't see the need to index images either. Unless you are offering up those images for download. I have one person who creates graphic pictures and he allowes folks to download them. So I could understand his site being indexed for images. [/QUOTE]

Exactly, I just post images not worth stealing. So if someone does an image search, gets context related image, and that draws them to my site. All the better

Google sitemaps for Geeklog?

Posted on: 12/12/05 01:15pm
By: Chrispcritters

Any updates on this thread?

Google sitemaps for Geeklog?

Posted on: 14/12/05 03:19pm
By: beewee

I've just installed the dynamic sitemap generator from Softswot.

Is just a single file, and a few config lines to edit. And Google accepted the sitemap, and the sitemaps seems to index the articles quite well (but I do use quite some url_rewrite tricks). I'll keep you posted.

Google sitemaps for Geeklog?

Posted on: 15/12/05 08:04am
By: beewee

Well, Google says the sitemap is OK, and if I have a look at the sitemap also the older articles etc are indexed, 5 levels deep, so I'm quite happy!

Google sitemaps for Geeklog?

Posted on: 19/05/06 09:46pm
By: kemal

good but only for "stories".. Static pages not indexing on map!!

Google sitemaps for Geeklog?

Posted on: 20/05/06 07:51am
By: lokki

I'm currently using SOFTplus GSiteCrawler
It is a standalone crawler engine, which has a capability of exporting crawled urls' list to Google sitemaps. I indexed all and every page of my site with it, even the forums. It works ok with google, as for me
It's for Windows only, though
Here's the link

Google sitemaps for Geeklog?

Posted on: 24/10/06 01:32pm
By: Anonymous

I just took RealPanama's code and tweaked it into a standalone PHP script that you can drop in your Geeklog's Root directory. This way you don't have to eanble PHP on your static pages.

Find the details at http://www.yeraze.com/article.php/20061024103250340

Re: Google sitemaps for Geeklog?

Posted on: 30/11/06 07:23pm
By: mystral-kk

I've created a Google Sitemap Generator as a Geeklog custom function. You can download it from HERE. Give it a try and tell me how it goes.

Re: Google sitemaps for Geeklog?

Posted on: 01/12/06 05:16am
By: Dazzy

Quote by: mystral_kk

I've created a Google Sitemap Generator as a Geeklog custom function. You can download it from <a href="http://www.geeklog.net/filemgmt/index.php?id=783">HERE</a>. Give it a try and tell me how it goes.



I will try this now and let you know

Re: Google sitemaps for Geeklog?

Posted on: 01/12/06 06:14am
By: Dazzy

Ok, never really understood cron so I went the other route and added it to lib_custom, followed the usage instructions.

I'm probably doing something worng but nowt happens when i call the function.

Re: Google sitemaps for Geeklog?

Posted on: 01/12/06 08:22am
By: mystral-kk

Please check the error log (<geeklog>/logs/error.log). Is there any line beginning with "GSMAP: "?

Re: Google sitemaps for Geeklog?

Posted on: 01/12/06 08:24am
By: Dazzy

Thats the first thing I checked, and there was nothing.


Re: Google sitemaps for Geeklog?

Posted on: 01/12/06 09:53am
By: mystral-kk

Quote by: Dazzy

Thats the first thing I checked, and there was nothing.


Well, then, maybe CUSTOM_runSheduledTask() hasn't been called yet. You can call phpblock_gsmap() directly as follows:

1. Create a static page. Enter the following code into the content:
PHP Formatted Code

phpblock_gsmap();
 

2. Check "Centerblock" and choose "execute PHP" from the "PHP" dropdown list.
3. Display your site and a sitemap will be created.

Re: Google sitemaps for Geeklog?

Posted on: 01/12/06 10:48am
By: Dazzy

after a bit of fiddling i got it to work many thanks this works great.

Re: Google sitemaps for Geeklog?

Posted on: 02/12/06 03:44am
By: mystral-kk

Hi, everybody, I forgot to add the following: as for Geeklog-1.4.1, if you call phpblock_gsmap() from within lib-custom.php, be sure to do so from function CUSTOM_runScheduledTask not CUSTOM_runSheduledTask. The latter is valid only with Geeklog-1.4.0.

Re: Google sitemaps for Geeklog?

Posted on: 04/12/06 08:32am
By: mystral-kk

I'm sorry to say that phpblock_gsmap.php doesn't deal with static pages properly. 1. The function judges Geeklog's url rewrite flag wrong. To fix this, exchange line 154
PHP Formatted Code

$url .= '?page=';
 
for line 158
PHP Formatted Code

$url .= '/';
 
2. The function picks up all static pages. If you would like to choose only the pages which are meant to be displayed in the center block, change line 146
PHP Formatted Code

$sql = "SELECT sp_id, sp_date FROM {$_TABLES['staticpage']} WHERE (perm_anon IN (2, 3)) ORDER BY sp_date DESC";
 
into
PHP Formatted Code

$sql = "SELECT sp_id, sp_date FROM {$_TABLES['staticpage']} WHERE (sp_centerblock <> 0) AND (perm_anon IN (2, 3)) ORDER BY sp_date DESC";
 
Thanks for using phpblock_gsmap.php.

Re: Google sitemaps for Geeklog?

Posted on: 05/12/06 03:35pm
By: oskay

I tried it out and it seems to map the site-- a little too well.

All of my "draft" flagged stories show up in the site map along with the stuff that's actuall up-- Yikes!

Re: Google sitemaps for Geeklog?

Posted on: 06/12/06 07:30am
By: mystral-kk

Quote by: oskay

I tried it out and it seems to map the site-- a little too well. All of my "draft" flagged stories show up in the site map along with the stuff that's actuall up-- Yikes!

Oops, I quite forgot the draft flag. Please change line 111 from
PHP Formatted Code

$sql = "SELECT sid, date FROM {$_TABLES['stories']} WHERE (perm_anon IN (2, 3)) ORDER BY date DESC";
 
to
PHP Formatted Code

$sql = "SELECT sid, date FROM {$_TABLES['stories']} WHERE (draft_flag = 0) AND (perm_anon IN (2, 3)) ORDER BY date DESC";
 

Re: Google sitemaps for Geeklog?

Posted on: 06/12/06 01:49pm
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

Re: Google sitemaps for Geeklog?

Posted on: 06/12/06 05:52pm
By: mystral-kk

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.

Re: Google sitemaps for Geeklog?

Posted on: 07/12/06 08:04am
By: mystral-kk

I have released a bug-fixed version 0.1.3 of Google Sitemap Generator. You can download it from HERE.

Re: Google sitemaps for Geeklog?

Posted on: 22/12/06 11:31am
By: Anonymous

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?


Re: Re: Google sitemaps for Geeklog?

Posted on: 22/12/06 05:08pm
By: mystral-kk

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

require_once "custom/phpblock_gsmap.php";
instead of

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).

Re: Google sitemaps for Geeklog?

Posted on: 22/12/06 08:29pm
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

Re: Google sitemaps for Geeklog?

Posted on: 23/12/06 08:15am
By: mystral-kk

Quote by: kemal

giving this error on my site

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:

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();
}

Re: Google sitemaps for Geeklog?

Posted on: 24/12/06 02:55pm
By: Anonymous

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?

Re: Google sitemaps for Geeklog?

Posted on: 24/12/06 04:35pm
By: mystral-kk

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.

Re: Google sitemaps for Geeklog?

Posted on: 03/03/07 03:01am
By: Anonymous

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?


Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=53850