Yes. It seems to work fine.
I've submitted my XML sitemaps to all 4 of the search engines (that this contribution will ping) and am now waiting to see what the result are.
Printable View
Hi,
I have installed this mod all all seemed ok, I can generate the sitemaps and I went to google webmaster tools and submitted the product sitemap, again all ok. However, when I use the Ping service in admin, ni th epopup window it says:
Warning: file() [function.file]: URL file-access is disabled in the server configuration in /home/********/public_html/googlesitemap.php on line 124
Warning: implode() [function.implode]: Bad arguments. in /home/*********/public_html/googlesitemap.php on line 124
Another error also references line 130
Any ideas??
Thanks
Pete
Hi Everyone,
I've just installed this mod on a new store 1.3.7. I had to ammend the install.sql file because the tables have the prefix zen_.
I am able to configure google xml sitemap through configuration, but when I click google xml sitemap under TOOLS I get an Internal Server error. Any ideas what could be the problem?
Thanks
Matt
Should I worry about this remark, that appeared after running the sql:
ERROR: cannot insert configuration_key "" because it already exists
Note: 1 statements ingrored. See "upgrade exceptions" table for additional details.
It seems to work properly?
I have been looking at the code for this mod and see that external links are skipped.:yuck: On MY site I have zencart at the front. I also have a section of the site I call a reference site which is placed inside a folder inside htdocs. The pages there are all html pages and it is a large section of my website. Now the only way I can reference to this area is with ezpages creating a link in the IMPORTANT LINKS section. The reference area has its own index.html page which get people to all the other pages in that area. The problem is that I have to use an external link to get to it even though it is on the same server and in the same domain.:frusty: Converting these pages to ZC style pages would be a MAJOR job taking too much time. I can see in the code to this mod that it is probably not too large an undertaking to modify it to allow external links to be indexed in the ezpages.xml file so that search engines can find it. Already I have installed the ezpages_on_sitemap V1.01 mod which has put the external linked pages on the ZenCart sitemap. This shows that it CAN be done.:smartalec: Does anyone know what code to change to allow the external linked ezpages to be listed and what code to put in to do it? Many of us do not JUST have ZC on our sites and I am sure many are interested in this option.
Site maps are not that hard to make... would take longer to modify the code.
If your not using a 'robot.txt' file, then your losing the full effect of a site map. Of course not all bots follow what's in the file. You can tell the bots where your other folder is with in the robot text file. As for coding it into the mod, it wouldn't be to hard.
If your not sure how to use a robot text file, Google it.
This site below has a nice online tool for making one as well.
http://www.mcanerin.com/EN/search-engine/robots-txt.asp
My host GoDaddy no longer supports
file('http://www.google.com/webmasters/sitemaps/ping?sitemap=' . $google->submit_url));
This is a solution that works for me... for now at least... until I find a better solution... and some more dotdotdots... :smile:
I have this above "if ($submit){"
And this between the "Start Pinging..." and "End Pinging..."PHP Code:
function ExtractString($str, $start, $end) {
$str_low = strtolower($str);
$pos_start = strpos($str_low, $start);
$pos_end = strpos($str_low, $end, ($pos_start + strlen($start)));
if ( ($pos_start !== false) && ($pos_end !== false) ) {
$pos1 = $pos_start + strlen($start);
$pos2 = $pos_end - $pos1;
return substr($str, $pos1, $pos2);
}
}
use at your own risk... I take no responsibility nor support any of the above code... blah blah blah... legaleze mumbo jumbo...PHP Code:
echo '<br />Start Pinging ----------------------------------------------------------------------------------------';
if(isset($_GET['pinggoogle']) && $_GET['pinggoogle'] == 'yes') {
echo '<br />Google Ping...<br />';
echo '<div style="background-color: #FFFFCC; border: 1px solid #000000; padding: 5px">';
/***************/
$ch = curl_init("http://www.google.com/webmasters/sitemaps/ping?sitemap=". $google->submit_url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$curl_results = curl_exec($ch);
curl_close($ch);
$bodytxt = ExtractString($curl_results, "<h2>", "</h2>");
echo $bodytxt;
/***************/
echo '</div>';
}
if(isset($_GET['pingyahoo']) && $_GET['pingyahoo'] == 'yes') {
echo '<br />Yahoo! Ping...<br />';
echo '<div style="background-color: #FFFFCC; border: 1px solid #000000;">';
/***************/
$ch = curl_init("http://search.yahooapis.com/SiteExplorerService/V1/ping?sitemap=". $google->submit_url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$curl_results = curl_exec($ch);
curl_close($ch);
$bodytxt = $curl_results;
//$bodytxt = ExtractString($curl_results, "<Message>", "</Message>");
echo $bodytxt;
/***************/
echo '</div>';
}
if(isset($_GET['pingask']) && $_GET['pingask'] == 'yes') {
echo '<br />Ask.com Ping...<br />';
echo '<div style="background-color: #FFFFCC; border: 1px solid #000000;">';
/***************/
$ch = curl_init("http://submissions.ask.com/ping?sitemap=". $google->submit_url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$curl_results = curl_exec($ch);
curl_close($ch);
$bodytxt = ExtractString($curl_results, "<h1>", "</h1>");
echo $bodytxt;
/***************/
echo '</div>';
}
if(isset($_GET['pingms']) && $_GET['pingms'] == 'yes') {
echo '<br />Microsoft Ping...<br />';
echo '<div style="background-color: #FFFFCC; border: 1px solid #000000;">';
/***************/
$ch = curl_init("http://www.moreover.com/ping?u=". $google->submit_url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$curl_results = curl_exec($ch);
curl_close($ch);
$bodytxt = $curl_results;
echo $bodytxt;
/***************/
echo '</div>';
}
echo '<br />End Pinging ----------------------------------------------------------------------------------------<br />';
The mod worked fine until last week. I now receive the following error when I try to update the sitemap. I would sincerely appreciate any advice on how to fix this problem. I am not "code-savvy" so I do not know what the following error message means.
fopen(DIR_FS_CATALOG/sitemapcategories.xml) [function.fopen]: failed to open stream: No such file or directory in /home/wscheil/public_html/googlesitemap.php on line 240
Check that the sitemap files exist in the correct area and that the proper permissions are applied to them.
Per the readme.txt file included with the mod "If error messages occur, change permissions on the XML files to 777" --> this can be done using an FTP program like FileZilla.