Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 05:42:06 AM

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.
155533 Posts in 21713 Topics by 7739 Members
Latest Member: audillino
* Home Help Search Login Register
Pages: 1 ... 6 7 [8]   Go Down
Print
Author Topic: [module] Google sitemap.xml Generator  (Read 61865 times)
Sgt.Nops

Offline Offline

Posts: 196


« Reply #175 on: October 02, 2010, 10:36:28 PM »

Strange using version 1.5.4 from AMASP  everything is ok.
Using 1.6 the one thats postted a few posts above i simply get an empty screen ??

Btw. still using topics 0.4.
Logged

Es gibt keine dummen Fragen, nur dumme Antworten.
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2296



WWW
« Reply #176 on: October 02, 2010, 10:53:20 PM »

A lot of changes were made between topics 0.4 and 0.6.
The sitemap will not work for v0.4.

If you want to modify your own version, look at the two required files in the topics part of the sitemap script. (lines 158 and 159)
These files were named different in older versions.
Locate the same files in your version, and it might work.
Logged

Professional WebsiteBaker Solutions
Sgt.Nops

Offline Offline

Posts: 196


« Reply #177 on: October 02, 2010, 10:56:50 PM »

Nah, thats ok.
I just need to find the time to do full backups before upgrading to topic 0.6.
Thx for quick answer.
Logged

Es gibt keine dummen Fragen, nur dumme Antworten.
Sgt.Nops

Offline Offline

Posts: 196


« Reply #178 on: October 02, 2010, 11:51:10 PM »

Ok , just updated to topics 0.6 and everything is ok smiley
Logged

Es gibt keine dummen Fragen, nur dumme Antworten.
Sgt.Nops

Offline Offline

Posts: 196


« Reply #179 on: October 03, 2010, 09:17:02 AM »

Asking myself if it does make sense to add a ping function like the one in the this sitemap function i attached.

Here is the function so you dont have to search for it:
Code:
//notifies services like google, bing, yahoo, ask and moreover about your site map update
public function ping($sitemap_url, $title ="", $siteurl = ""){
// for curl handlers
$curl_handlers = array();

$sitemap_url = trim($sitemap_url);
if(strpos($sitemap_url, "http") !== 0)
{
$sitemap_url = "http://".$sitemap_url;
}
$site = explode("//", $sitemap_url);
$start = $site[0];
$site = explode("/", $site[1]);
$middle = $site[0];
if(trim($title) == "")
{
$title = $middle;
}
if(trim($siteurl) == "")
{
$siteurl = $start."//".$middle;
}
//urls to ping
$urls[0] = "http://www.google.com/webmasters/tools/ping?sitemap=".urlencode($sitemap_url);
$urls[1] = "http://www.bing.com/webmaster/ping.aspx?siteMap=".urlencode($sitemap_url);
$urls[2] = "http://search.yahooapis.com/SiteExplorerService/V1/updateNotification".
"?appid=YahooDemo&url=".urlencode($sitemap_url);
$urls[3] = "http://submissions.ask.com/ping?sitemap=".urlencode($sitemap_url);
$urls[4] = "http://rpc.weblogs.com/pingSiteForm?name=".urlencode($title).
"&url=".urlencode($siteurl)."&changesURL=".urlencode($sitemap_url);

//setting curl handlers
foreach ($urls as $url)
{
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURL_HTTP_VERSION_1_1, 1);
$curl_handlers[] = $curl;
}
//initiating multi handler
$multi_curl_handler = curl_multi_init();

// adding all the single handler to a multi handler
foreach($curl_handlers as $key => $curl)
{
curl_multi_add_handle($multi_curl_handler,$curl);
}

// executing the multi handler
do
{
$multi_curl = curl_multi_exec($multi_curl_handler, $active);
}
while ($multi_curl == CURLM_CALL_MULTI_PERFORM  || $active);

// check if there any error
$submitted = true;
foreach($curl_handlers as $key => $curl)
{
//you may use curl_multi_getcontent($curl); for getting content
//and curl_error($curl); for getting errors
if(curl_errno($curl) != CURLE_OK)
{
$submitted = false;
}
}
curl_multi_close($multi_curl_handler);
return $submitted;
}

So maybe if you call the sitemap whith
www.yourdomain.com/google_sitemap.php?ping=1

You can Ping that services Manually.
I guess thats usefull if you site is not listed in those services or if you have done some updates.

It may be even more usefull if you use your page like a blog, as there are lots of services you can ping.
« Last Edit: October 03, 2010, 09:22:31 AM by Sgt.Nops » Logged

Es gibt keine dummen Fragen, nur dumme Antworten.
daydreamer

Offline Offline

Posts: 252


« Reply #180 on: October 11, 2010, 10:28:33 AM »

Hi,

Do you install this as a normal module or just upload to public_html and submit to google ?

Thanks
Logged
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2296



WWW
« Reply #181 on: October 11, 2010, 10:58:22 AM »

Just put is in the same location as your config.php, name it as you like (with the extension .php) and submit it to google.
Logged

Professional WebsiteBaker Solutions
daydreamer

Offline Offline

Posts: 252


« Reply #182 on: October 11, 2010, 11:11:35 AM »

Thanks sorted, just was not sure if it was an actual module.
Logged
comfort

Offline Offline

Posts: 48


« Reply #183 on: November 24, 2010, 12:39:51 PM »

Sorry, changed the copyright.
Can you help me now?
I still get http://www.site.com/.php
I downloaded the latest version for the sitemap ( version 1.6.0.20100917 (Ruud) )


This happends on a WB Version 2.8.1 Revision 1287
with Bakery v1.5.6 PHP5 en MySQL5

Please confirm your websites to the license you agreed on when you downloaded WebsiteBaker.
http://www.websitebaker2.org/en/download/license.php

Quote
* keeping copyright notices in the source code of all files distributed with WebsiteBaker unchanged
* keeping the link: "WebsiteBaker is released under the GNU General Public License" in the footer of the backend unchanged and visible
Quote
Any violation of the license terms is expressly prohibited by law, and may result in severe civil and criminal penalties.

This means you cannot put your own copyright on the backend of your website and the websites you are selling!
Logged
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2296



WWW
« Reply #184 on: December 01, 2010, 10:16:07 AM »

My guess is that it is caused by not having a PAGES_DIRECTORY set in your website.

The script tries to remove any /pages from the bakery-link to allow the WB framework to generate the correct link.
Without the /pages (or any other directory) this stripping will probably fail (with an error).

Try removing this line:
Code:
$bakery['link'] = preg_replace('/^\\'.PAGES_DIRECTORY.'/', '', $bakery['link'], 1);
Logged

Professional WebsiteBaker Solutions
sky writer

Offline Offline

Posts: 285



« Reply #185 on: February 23, 2012, 05:52:59 PM »

I use the google sitemap module, and it works great.  But I just noticed a BUG.
I have a private page containing News Module posts.  This page is not listed, but the posts are all listed in the google sitemap, which is not desired.  If you go to the listed link, it redirects to the home page, but still, it is not desired to list "hidden" pages with GOOGLE.

Any idea of why, and how to prevent this?
Logged
Pages: 1 ... 6 7 [8]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!