Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks

No new comments

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 Sunday, May 19 2013 @ 09:44 AM EDT


 Forum Index > Support > General Geeklog Support New Topic Post Reply
 Google sitemaps for Geeklog?
First | Previous | 1 2 3 | Next | Last
   
ronack
 07/18/05 09:45AM  
+++++
Full Member

Status: offline


Registered: 05/27/03
Posts: 602
Okay I remembered the url_rewrite feature in config..php. I turned that on and now know that I don't have that capability.

 
Profile Email
 Quote
Anonymous: realpanama
 07/23/05 01:11AM  



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


 
 Quote
Anonymous: tagstar
 07/30/05 12:05AM  



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.


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

 
 Quote
Chrispcritters
 12/12/05 01:15PM  
+++--
Chatty

Status: offline


Registered: 05/11/05
Posts: 49
Any updates on this thread?

 
Profile Email Website
 Quote
beewee
 12/14/05 03:19PM  
+++++
Full Member

Status: offline


Registered: 08/05/03
Posts: 969
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.

Dutch Geeklog sites about camping/hiking: www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 
Profile Email Website
 Quote
beewee
 12/15/05 08:04AM  
+++++
Full Member

Status: offline


Registered: 08/05/03
Posts: 969
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!

Dutch Geeklog sites about camping/hiking: www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 
Profile Email Website
 Quote
kemal
 05/19/06 09:46PM  
++++-
Regular Poster

Status: offline


Registered: 04/05/05
Posts: 103
good but only for "stories".. Static pages not indexing on map!!

_KEMAL_
 
Profile Email Website
 Quote
lokki
 05/20/06 07:51AM  
+++--
Chatty

Status: offline


Registered: 03/19/05
Posts: 59
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

 
Profile Email
 Quote
Anonymous: Yeraze
 10/24/06 01:32PM  

excited


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

 
 Quote
mystral-kk
 11/30/06 07:23PM  
++++-
Regular Poster

Status: offline


Registered: 03/19/06
Posts: 89
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.

-- mystral-kk, "Every cloud has a silver lining."
 
Profile Email Website
 Quote
Dazzy
 12/01/06 05:16AM  
+++++
Full Member

Status: offline


Registered: 07/19/03
Posts: 200
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

Dazzy
 
Profile Email
 Quote
Dazzy
 12/01/06 06:14AM  
+++++
Full Member

Status: offline


Registered: 07/19/03
Posts: 200
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.

Dazzy
 
Profile Email
 Quote
mystral-kk
 12/01/06 08:22AM  
++++-
Regular Poster

Status: offline


Registered: 03/19/06
Posts: 89
Please check the error log (<geeklog>/logs/error.log). Is there any line beginning with "GSMAP: "?

-- mystral-kk, "Every cloud has a silver lining."
 
Profile Email Website
 Quote
Dazzy
 12/01/06 08:24AM  
+++++
Full Member

Status: offline


Registered: 07/19/03
Posts: 200
Thats the first thing I checked, and there was nothing.


Dazzy
 
Profile Email
 Quote
mystral-kk
 12/01/06 09:53AM  
++++-
Regular Poster

Status: offline


Registered: 03/19/06
Posts: 89
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.

-- mystral-kk, "Every cloud has a silver lining."
 
Profile Email Website
 Quote
Dazzy
 12/01/06 10:48AM  
+++++
Full Member

Status: offline


Registered: 07/19/03
Posts: 200
after a bit of fiddling i got it to work many thanks this works great.

Dazzy
 
Profile Email
 Quote
mystral-kk
 12/02/06 03:44AM  
++++-
Regular Poster

Status: offline


Registered: 03/19/06
Posts: 89
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.

-- mystral-kk, "Every cloud has a silver lining."
 
Profile Email Website
 Quote
mystral-kk
 12/04/06 08:32AM  
++++-
Regular Poster

Status: offline


Registered: 03/19/06
Posts: 89
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.

-- mystral-kk, "Every cloud has a silver lining."
 
Profile Email Website
 Quote
oskay
 12/05/06 03:35PM  
+----
Newbie

Status: offline


Registered: 09/14/06
Posts: 13
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!

 
Profile Email
 Quote
mystral-kk
 12/06/06 07:30AM  
++++-
Regular Poster

Status: offline


Registered: 03/19/06
Posts: 89
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";
 

-- mystral-kk, "Every cloud has a silver lining."
 
Profile Email Website
 Quote
First | Previous | 1 2 3 | Next | Last
Content generated in: 2.06 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