Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
February 12, 2012, 11:10:46 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Interested in joining the WebsiteBaker team?
For more Information read
here
or on our
new website
.
149634
Posts in
21099
Topics by
7537
Members
Latest Member:
lotte2
WebsiteBaker Community Forum
English
Modules
(Moderator:
Argos
)
[module] Google sitemap.xml Generator
Pages:
1
...
4
5
[
6
]
7
8
Go Down
Author
Topic: [module] Google sitemap.xml Generator (Read 59704 times)
freeSbee
Offline
Posts: 729
Re: [module] Google sitemap.xml Generator
«
Reply #125 on:
July 14, 2008, 08:54:06 PM »
Hi
Google reports an ERROR running WB on ISO-8859-1 (or others than utf-8) within the html commented page title lines. If the title contains an eg. umlaut the XML sitemap will not validate.
So I decided to remove the feature as it is not really needed.
Second I added a module auto dedection. This way users can add or delete modules without bothering about google_sitemap configuration.
I attached a new version v1.3 of the google_sitemap.
Christoph
Logged
freeSbee
Offline
Posts: 729
Re: [module] Google sitemap.xml Generator
«
Reply #126 on:
July 20, 2008, 08:41:42 PM »
Hi
New Version of Google Sitemap:
- Replaced the hardcoded page directory name /pages by the wb constant PAGES_DIRECTORY
- Added feature to hide page urls which contain unwanted words (eg. for web pages which are blocked by robots.txt)
Find google_sitemap v1.4 attached to this post.
Christoph
Logged
alexander1951
Offline
Posts: 17
Re: [module] Google sitemap.xml Generator
«
Reply #127 on:
July 29, 2008, 05:01:37 PM »
Hi to all,
thanks to all the modul authors for this fine sitemap modul. I copied the google_sitemap.php to my wb-root and it works sufficiently.
Now I do not only want to submit it to GOOGLE, but i also want to present the output on my website as a "Sitemap"-page. Has anybody an idea, how to customize the output of the google_sitemap.php, so that I can use it on my site as a navigation page? Do I need to use another script, that can work with the output or can I customize it with CSS-styles? Has anybody an example for that?
I hope my questions fit this thread and look forward for an idea-giving answer. Thanks.
Alexander
Logged
freeSbee
Offline
Posts: 729
Re: [module] Google sitemap.xml Generator
«
Reply #128 on:
July 29, 2008, 09:21:08 PM »
Hi Alexander
Please have a look at the
WB module page
where you find all completed modules as well as a listing not being exhaustive with unofficial and unsupported modules.
Try the
sitemap module
or read about the
ShowMenu2
.
Regards Christoph
Logged
alexander1951
Offline
Posts: 17
Re: [module] Google sitemap.xml Generator
«
Reply #129 on:
July 30, 2008, 07:54:27 PM »
Hello Christoph [freeSbee],
thanks a lot for that hint! Of course I know the repository, but obviously I failed in recognizing the >sitemap modul<. My mistake. I loaded it now and will try it out asap. Additionally I was not aware of the fact that I can realize a sitemap with the show_menu2 modul. Thanks again!
Alexander
Logged
Vincent
Offline
Posts: 360
Re: [module] Google sitemap.xml Generator
«
Reply #130 on:
August 11, 2008, 05:38:02 PM »
Hi all,
do I understand correctly that the name of this thread doesn't reflect the output (a sitemap.xml file)anymore? That the root of this thread is actually the post by vuilian on the second page? That we don't need to install any module anymore, and just upload the latest version of google_sitemap.php? I was a little confused, since I had Google look for the sitemap.xml file, which was also on the server (output of the original module).
Anyway, I now changed it, but maybe one of the moderators could clean the thread a little in order to avoid confusion (I guess I'm not the only one...)
Regards,
Vincent
Logged
viulian
Offline
Posts: 53
Re: [module] Google sitemap.xml Generator
«
Reply #131 on:
August 11, 2008, 09:46:13 PM »
Well, it used to be on the first page, and it started a long time ago
Things have evolved, but back then, a module was needed to be able to run from a view. And it was a convenient way to 'view' the module page, which just triggered the writing the sitemap.xml file.
Probably now you can call it directly - I have yet to upgrade to the latest version of wb and try out the new module.
Logged
Ruud
Board member
WebsiteBaker Org e.V.
Offline
Posts: 2093
Re: [module] Google sitemap.xml Generator
«
Reply #132 on:
August 11, 2008, 10:05:54 PM »
Quote from: viulian on August 11, 2008, 09:46:13 PM
Probably now you can call it directly - I have yet to upgrade to the latest version of wb and try out the new module.
Thats right, you can just add the "google_sitemap.php" in the webmaster tools page on Google (or any other searchengine that supports the format).
There is no installation, just ftp the google_sitemap.php file found in the .zip archive to the root of your website (where config.php is found).
Call the page with your browser once to see if it is working and you're done.
Ruud
Logged
Professional WebsiteBaker Developer
Vincent
Offline
Posts: 360
Re: [module] Google sitemap.xml Generator
«
Reply #133 on:
August 12, 2008, 05:37:43 PM »
Thanks for your reply, Ruud.
Vincent
Logged
nuke
Offline
Posts: 27
Re: [module] Google sitemap.xml Generator
«
Reply #134 on:
August 13, 2008, 03:42:35 PM »
The google_sitemap_v1.4 has worked great for me - but since upgrading to V2.7 I've noticed in my google webmaster tools sitemap section I now have warnings:
URLs not followed
When we tested a sample of the URLs from your Sitemap, we found that some URLs were not accessible to Googlebot because they contained too many redirects. Please change the URLs in your Sitemap that redirect and replace them with the destination URL (the redirect target). All valid URLs will still be submitted.
And the warning are for Menu Links, that link to other pages on my site... is this something other people are experiencing? Would it be possible to not include menu links (no content) in the sitemap?
Thanks for any help.
-Mike
Logged
zarathustra.at
Offline
Posts: 56
Re: [module] Google sitemap.xml Generator
«
Reply #135 on:
September 01, 2008, 06:36:13 PM »
I've had this warning once and checked back a few days laters Google - now the warning is gone.
Can anyone explain this behaviour?
Logged
crnogorac081
AddOn Development
Offline
Posts: 1680
Re: [module] Google sitemap.xml Generator
«
Reply #136 on:
November 27, 2008, 12:40:43 AM »
I uploaded this php file and when i opent this file it shows me sitemap as xml file... Do I have to save that output as xml file and then to upload it to google, or I can just point google to this sitemap.php file ?
Logged
Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7661
Re: [module] Google sitemap.xml Generator
«
Reply #137 on:
November 27, 2008, 06:45:07 AM »
Hello,
Quote
or I can just point google to this sitemap.php file
Yes, this is all you need to do. Simply tell google to use google_sitemap.php as sitemap.xml.
Matthias
Logged
mike
Offline
Posts: 17
Re: [module] Google sitemap.xml Generator
«
Reply #138 on:
January 04, 2009, 12:08:34 PM »
Hello,
first another answer to
Quote from: crnogorac081 on November 27, 2008, 12:40:43 AM
or I can just point google to this sitemap.php file ?
You can point every searchengine to the sitemap.php.
http://www.sitemaps.org/protocol.php#informing
Quote from: sitemaps.org
Specifying the Sitemap location in your robots.txt file
You can specify the location of the Sitemap using a robots.txt file. To do this, simply add the following line:
Sitemap: <sitemap_location>
The <sitemap_location> should be the complete URL to the Sitemap, such as:
http://www.example.com/sitemap.xml
And a "bugfix" to the script himself:
The "first page", which is displayed as the home or root page ("/") is not included with this URL. It is included with /pages/...php
This produce internal duplicate content.
I change the line for the <loc> into the following:
Code:
<loc>
<?php
if ((
$page
[
'parent'
] ==
0
) AND (
$page
[
'position'
] ==
1
)) {
echo
WB_URL
.
'/'
;
} else {
echo
htmlspecialchars
(
$wb
->
page_link
(
$page
[
'link'
]));
}
?>
</loc>
Maybe you can implement this in the next version of your script?
Ciao,
Mike
(from Germany, so sorry for my English)
Logged
Ruud
Board member
WebsiteBaker Org e.V.
Offline
Posts: 2093
Re: [module] Google sitemap.xml Generator
«
Reply #139 on:
January 05, 2009, 11:04:40 AM »
Mike,
This makes sence (homepage url).
I added it to the google_sitemap.php (coded a little bit different).
Attached to this post (version 1.5) and updated in
the AMASP site
.
Thanks,
Ruud
Logged
Professional WebsiteBaker Developer
albatros
Offline
Posts: 673
Re: [module] Google sitemap.xml Generator
«
Reply #140 on:
January 05, 2009, 03:41:32 PM »
Hi,
thanks a lot to mike an Ruud!!!
Best Regards
Uwe
Logged
tiesy
Offline
Posts: 123
Re: [module] Google sitemap.xml Generator
«
Reply #141 on:
January 13, 2009, 12:24:11 AM »
Hi,
the Google sitemap.xml Generator is a great tool, very helpful. What I need is an extra Google-News-Sitemap for my News-Pages, because they are listed on Google-News. Width a News-Sitemap, all the News could by found much better and faster by Google-News.
My question: Is it possible to modify the sitemap-generator to automatically generate an special Google News-Sitemap? I´m not a coder and not shure, what to do.
For more information about Google-News-Sitemaps have a look here:
http://www.google.com/support/news_pub/bin/answer.py?hl=en&answer=74288
Thanks
Logged
Xagone
AddOn Development
Offline
Posts: 453
Re: [module] Google sitemap.xml Generator
«
Reply #142 on:
February 24, 2009, 09:56:00 PM »
The sitemap is realy great! love it, found a little bug
google tools (
https://www.google.com/webmasters/tools/
) warm me :
- URLs not followed
the link he warned was a "Menu Link" that linked outside the domain name. so i'll check the code so an outside link (redirect) will not show...
Logged
Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
Xagone
AddOn Development
Offline
Posts: 453
Re: [module] Google sitemap.xml Generator
«
Reply #143 on:
February 24, 2009, 10:23:00 PM »
found it...
line 92 call to // Pages
Code:
// Pages
$sql = "SELECT link,modified_when,parent,position FROM " . TABLE_PREFIX . "pages WHERE visibility = 'public' ORDER BY position ASC";
$rs = $database->query($sql);
switch to :
Code:
// Pages
if (mysql_query("SELECT 1 FROM `" . TABLE_PREFIX . "mod_menu_link` LIMIT 0")) {
$sql = "SELECT `link`, `modified_when`, `parent`, `position` FROM `" . TABLE_PREFIX . "pages` WHERE `visibility` = 'public' AND `page_id` != (SELECT `page_id` FROM `" . TABLE_PREFIX . "mod_menu_link` WHERE `target_page_id` = '-1') ORDER BY `position` ASC";
} else {
$sql = "SELECT `link`, `modified_when`, `parent`, `position` FROM `" . TABLE_PREFIX . "pages` WHERE `visibility` = 'public' ORDER BY `position` ASC";
}
$rs = $database->query($sql);
Logged
Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
Mte90
Forum Team
Offline
Posts: 93
Re: [module] Google sitemap.xml Generator
«
Reply #144 on:
July 25, 2009, 06:50:44 PM »
it's possible to update this script with this bugfix?
Logged
www.mte90.net
- Debian, Kde e programmazione!
Mp per richieste personali verranno cestinate!
Xagone
AddOn Development
Offline
Posts: 453
Re: [module] Google sitemap.xml Generator
«
Reply #145 on:
July 25, 2009, 08:59:46 PM »
I thought they had.. so here 1.5.1 (i added .1 to be sure, it's the code from websitebakers.com)
Logged
Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
Xagone
AddOn Development
Offline
Posts: 453
Re: [module] Google sitemap.xml Generator
«
Reply #146 on:
September 18, 2009, 01:58:42 PM »
added portfolio module application, so i've saved it as 1.5.2...
Logged
Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
gioweb
Offline
Posts: 19
Re: [module] Google sitemap.xml Generator
«
Reply #147 on:
October 23, 2009, 10:12:15 AM »
Hello, the pages of the gocart mod, are not detected by the google_sitemap mod.
How can I detect pages gocart?
Logged
gila
Offline
Posts: 47
Re: [module] Google sitemap.xml Generator
«
Reply #148 on:
November 25, 2009, 04:57:08 PM »
hi im using thi module but i have some problems, using the 1.5 version google webmaster tool gave me an error sitemap
usinge the 1.5.2 version the maps is empty so i add some comment:
Code:
/*if (mysql_query("SELECT 1 FROM `" . TABLE_PREFIX . "mod_menu_link` LIMIT 0")) {
$sql = "SELECT `link`, `modified_when`, `parent`, `position` FROM `" . TABLE_PREFIX . "pages` WHERE `visibility` = 'public' AND `page_id` != (SELECT `page_id` FROM `" . TABLE_PREFIX . "mod_menu_link` WHERE `target_page_id` = '-1') ORDER BY `position` ASC";
} else {
*/ $sql = "SELECT `link`, `modified_when`, `parent`, `position` FROM `" . TABLE_PREFIX . "pages` WHERE `visibility` = 'public' ORDER BY `position` ASC";
//}
$rs = $database->query($sql);
and now the maps works but google tell me that the site map is not well formatted...
i have a site with an intro page
http://www.xxx.com/pages/intro.php
and also two language, so there is for example the page
http://http://www.xxx.com/pages/english/home.php
that redirect to
http://www.xxx.com/pages/english/home.php
may be this is the problem?
thanks
Logged
SickBoy75
Offline
Posts: 16
Re: [module] Google sitemap.xml Generator
«
Reply #149 on:
February 28, 2010, 03:56:33 PM »
I simply don't know how to use this php.
I put the file google_sitemap.php in my root dir.
Then, I can see the output by going to the url
www.myweb/google_sitemap.php
So, now what should I do??
This script don't generate the file sitemap.xml. does it??
It won't send the file to google neither
If I'm wrong, please show mo how to do it, thanks
Also, i have to coment this line
Code:
//
$bakery['link'] = preg_replace('/^\\'.PAGES_DIRECTORY.'/', '', $bakery['link'], 1);
without commenting, all my bakery items url are
www.myweb.com.php
It's maybe because i change a few things in bakery (like the dir for the items), i'm not sure if thats the problem
Logged
Pages:
1
...
4
5
[
6
]
7
8
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
-----------------------------
English
-----------------------------
=> Help & Support
-----------------------------
General
-----------------------------
=> WebsiteBaker Website Showcase
-----------------------------
English
-----------------------------
=> Modules
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
-----------------------------
General
-----------------------------
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
-----------------------------
General
-----------------------------
=> Security Announcements
-----------------------------
Deutsch (German)
-----------------------------
=> Hilfe/Support
-----------------------------
General
-----------------------------
=> Documentation
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
=> Module & Snippets
-----------------------------
English
-----------------------------
=> Archive (posts up to 2007)
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Deutsch (German)
-----------------------------
=> jQuery
=> Tutorials
=> Templates & Design
-----------------------------
English
-----------------------------
=> jQuery
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
===> Suggestions
-----------------------------
Deutsch (German)
-----------------------------
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
===> Vorschläge
-----------------------------
English
-----------------------------
===> Software bugs
-----------------------------
Deutsch (German)
-----------------------------
===> Softwarefehler
=====> Module / Extensions
-----------------------------
English
-----------------------------
=====> Modules / Extensions
-----------------------------
Deutsch (German)
-----------------------------
===> Erfahrungs und Testberichte
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...