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? |
|||
| ronack |
|
||||||
![]() ![]() ![]() ![]() ![]() 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.
|
||||||
|
|||||||
| Anonymous: realpanama |
|
||||||
|
|
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 |
||||||
|
|||||||
| Anonymous: tagstar |
|
||||||
|
|
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 |
||||||
|
|||||||
| Chrispcritters |
|
||||||
![]() ![]() ![]() ![]() ![]() Chatty ![]() Status: offline ![]() Registered: 05/11/05 Posts: 49 |
Any updates on this thread?
|
||||||
|
|||||||
| beewee |
|
||||||
![]() ![]() ![]() ![]() ![]() 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 |
||||||
|
|||||||
| beewee |
|
||||||
![]() ![]() ![]() ![]() ![]() 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 |
||||||
|
|||||||
| kemal |
|
||||||
![]() ![]() ![]() ![]() ![]() Regular Poster Status: offline ![]() Registered: 04/05/05 Posts: 103 |
good but only for "stories".. Static pages not indexing on map!!
_KEMAL_ |
||||||
|
|||||||
| lokki |
|
||||||
![]() ![]() ![]() ![]() ![]() 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 |
||||||
|
|||||||
| Anonymous: Yeraze |
|
||||||
![]() |
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 |
||||||
|
|||||||
| mystral-kk |
|
||||||
![]() ![]() ![]() ![]() ![]() 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." |
||||||
|
|||||||
| Dazzy |
|
||||||
![]() ![]() ![]() ![]() ![]() 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 |
||||||
|
|||||||
| Dazzy |
|
||||||
![]() ![]() ![]() ![]() ![]() 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 |
||||||
|
|||||||
| mystral-kk |
|
||||||
![]() ![]() ![]() ![]() ![]() 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." |
||||||
|
|||||||
| Dazzy |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member Status: offline ![]() Registered: 07/19/03 Posts: 200 |
Thats the first thing I checked, and there was nothing.
Dazzy |
||||||
|
|||||||
| mystral-kk |
|
||||||
![]() ![]() ![]() ![]() ![]() 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." |
||||||
|
|||||||
| Dazzy |
|
||||||
![]() ![]() ![]() ![]() ![]() 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 |
||||||
|
|||||||
| mystral-kk |
|
||||||
![]() ![]() ![]() ![]() ![]() 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." |
||||||
|
|||||||
| mystral-kk |
|
||||||
![]() ![]() ![]() ![]() ![]() 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." |
||||||
|
|||||||
| oskay |
|
||||||
![]() ![]() ![]() ![]() ![]() 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! |
||||||
|
|||||||
| mystral-kk |
|
||||||
![]() ![]() ![]() ![]() ![]() 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. 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." |
||||||
|
|||||||
| Content generated in: 2.06 seconds |
|
|
|