Jump to content
Jack_mcs

Dynamic SiteMap

Recommended Posts

Well all I did to take care of my problem was copy over my v1.5 with v2.0 of the dynamic sitemap file in the catalog and all is working 100% now. :) I also re-enabled the right side boxes, for some reason they were //ed out.

 

?

 

I don't know if it was the right way, but not it works. ;)


I find the fun in everything.

Share this post


Link to post
Share on other sites

Hi, the problem is in html_output.php i cant find how to solve it right now but is the HTML href link wrapper function

 

 

I have installed Dynamic Sitemap V 4.0.1 and my categories and manufactuer sitemaps look like this: (www.eddies-place.com is the website)

 

Creating categories sitemap.

Category ID --> URL

994 --> http://localhost/optics-spotting-telescopes-c-993_994.html

994 --> http://localhost/optics-spotting-telescopes-c-993_994.html

994 --> http://localhost/optics-spotting-telescopes-c-993_994.html

994 --> http://localhost/optics-spotting-telescopes-c-993_994.html

995 --> http://localhost/optics-scopes-c-993_995.html

995 --> http://localhost/optics-scopes-c-993_995.html

995 --> http://localhost/optics-scopes-c-993_995.html

995 --> http://localhost/optics-scopes-c-993_995.html

995 --> http://localhost/optics-scopes-c-993_995.html

995 --> http://localhost/optics-scopes-c-993_995.html

995 --> http://localhost/optics-scopes-c-993_995.html

995 --> http://localhost/optics-scopes-c-993_995.html

995 --> http://localhost/optics-scopes-c-993_995.html

995 --> http://localhost/optics-scopes-c-993_995.html

995 --> http://localhost/optics-scopes-c-993_995.html

995 --> http://localhost/optics-scopes-c-993_995.html

995 --> http://localhost/optics-scopes-c-993_995.html

 

 

Creating manufacturers sitemap.

Manufacturer --> URL

Uncle Mikes --> http://localhost/uncle-mikes-m-11.html

Uncle Mikes --> http://localhost/uncle-mikes-m-11.html

Uncle Mikes --> http://localhost/uncle-mikes-m-11.html

Uncle Mikes --> http://localhost/uncle-mikes-m-11.html

Uncle Mikes --> http://localhost/uncle-mikes-m-11.html

Uncle Mikes --> http://localhost/uncle-mikes-m-11.html

Uncle Mikes --> http://localhost/uncle-mikes-m-11.html

Uncle Mikes --> http://localhost/uncle-mikes-m-11.html

Uncle Mikes --> http://localhost/uncle-mikes-m-11.html

Uncle Mikes --> http://localhost/uncle-mikes-m-11.html

Uncle Mikes --> http://localhost/uncle-mikes-m-11.html

Uncle Mikes --> http://localhost/uncle-mikes-m-11.html

Uncle Mikes --> http://localhost/uncle-mikes-m-11.html

Uncle Mikes --> http://localhost/uncle-mikes-m-11.html

Uncle Mikes --> http://localhost/uncle-mikes-m-11.html

Uncle Mikes --> http://localhost/uncle-mikes-m-11.html

Uncle Mikes --> http://localhost/uncle-mikes-m-11.html

Smith & Wesson --> http://localhost/smith-wesson-m-12.html

MagLite --> http://localhost/maglite-m-14.html

MagLite --> http://localhost/maglite-m-14.html

MagLite --> http://localhost/maglite-m-14.html

MagLite --> http://localhost/maglite-m-14.html

MagLite --> http://localhost/maglite-m-14.html

MagLite --> http://localhost/maglite-m-14.html

MagLite --> http://localhost/maglite-m-14.html

Cold Steel --> http://localhost/cold-steel-m-15.html

Cold Steel --> http://localhost/cold-steel-m-15.html

Cold Steel --> http://localhost/cold-steel-m-15.html

Cold Steel --> http://localhost/cold-steel-m-15.html

 

I cannot determine why I am getting all the duplicates. Any suggestion will be greatly appreciated.

 

The products sitemap looks fine.

 

Any ideas?

 

Eddie

Share this post


Link to post
Share on other sites

Hello,

thanks for your contrib !!!!

However, I have some troubles :

 

Just one :

 

I can't include php file!

Exclude file works correctly, but when I choose "include", nothing changes....

(version dynamic_sitemap v 3.5.5.zip)

Edited by zaini

Share this post


Link to post
Share on other sites

I followed the instructions and getting the following error:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

 

any thoughts?

Share this post


Link to post
Share on other sites

This is what i get when run the site maintenance:

1 total manufacturers 35 total pages

Creating Specials sitemap.

Page --> URL

0 total pages of specials

XML Site Map Creation Completed Successfully!

 

 

Click here to return to Site Map Maintenance.

 

Seems like all works out, but it cannot load the page? is there something i am missing? i was reading about the error that i am getting and its related to mod_rewrite has top be configured and enabled? if thats the case mine is not congiured and enabled. does anyone know how to do that?

Please help!

thanks.

Share this post


Link to post
Share on other sites

I did a fresh install of Dynamic Sitemap v 3.5.6, everything looks good. Site submits successfully! Only problem I am getting is lastmod not writing to http://castbakery.com/catalog/smmain.xml.

 

In Webmaster tools, Google is returning Status

Warnings:

Total URLs in Sitemap: 31 for that file.

Invalid date: An invalid date was found. Please fix the date or formatting before resubmitting.

 

I've double checked the install, but I can't find anything I did wrong with it. I'm not sure if its a coding issue with the latest version.

Edited by azbrat3

Share this post


Link to post
Share on other sites
I did a fresh install of Dynamic Sitemap v 3.5.6, everything looks good. Site submits successfully! Only problem I am getting is lastmod not writing to http://castbakery.com/catalog/smmain.xml.

 

In Webmaster tools, Google is returning Status

Warnings:

Total URLs in Sitemap: 31 for that file.

Invalid date: An invalid date was found. Please fix the date or formatting before resubmitting.

 

I've double checked the install, but I can't find anything I did wrong with it. I'm not sure if its a coding issue with the latest version.

 

 

Never mind, I fixed it. In catalog/admin/create_xml_sitemaps.php

 

The line of code:

fwrite($fh, utf8_encode('<url><loc>' . smspecialchars($fPath . $files[$b]['path']) . '</loc><lastmod>' . $files[$b]['modified'] . '</lastmod></url>'."\n"));

 

changed it to

 

fwrite($fh, utf8_encode('<url><loc>' . tep_href_link($files[$b]['path'],'','NONSSL',false) . '</loc><lastmod>' . $files[$b]['modified'] . '</lastmod></url>'."\n"));

Share this post


Link to post
Share on other sites

HI help please!!!!…if anyone could point me in the right direction it would be much appreciated as I have gooled to I’am blue in the face and cant seem to find an answer to my problem.

 

I have install dynamic sitemap 3.5.2 and seo url by chemo.

 

The problem I’am having is with the urls are now SEO friendly but the site map still shows the OSC path..

 

Ie SEO URL .. /sliding-sash-hardware-turbo-balances-c-22_38.html

Dynamic site map path /index.php?cPath=22_38

 

This is causing problems with my submitted site maps in Google as its picking it up as lots of 301 redirects and therefore not spidering the map.

 

If anyone can give me a pointer on how to solve this I would be very grateful.

 

Mike

Edited by No1Son

Share this post


Link to post
Share on other sites

Hi,

 

the contribution is working perfectly with my shop. I just have got a problem with sorting the dynamic sitemap in an alphabetical order. At the moment all sites are listed, but by heading_title and date of first publishing. How do I have to change the code to make sure, that the listed sites are only sorted in an alphabetical order?

 

Thank you for support.

Greetings from Germany

Edited by SmartHome

Share this post


Link to post
Share on other sites
Hi MNK!

Sorry for my english.

I install your new version sitemap V4.0 it,is working great.I can acces the google,y..only in browser Mozila_it is ok but i have a small,but for me BIG problem: All it is ok and work ok in Mozzila when i clik on the sitemap link,but in IE the link apear so:

Mon mot de passeInformer une connaissance sur J'ai oublié mon mot de passe !Qu'y-a-t-il dans mon panier ?Creating XML Site MapsLivraison & retourPlan du SiteVoyons ce que nous avons-làInscriptions newslettersRecherche avancéeAchetez-les tant quils sont en promo !Historique de mes commandesCritiquesPanier visiteur/Panier membreTous nos produitsMon carnet d'adresses personnelInformation commandeNotifications de produitsAjouter une entrée du carnet d'adresses

In Mozilla it is ok.

I try changed the cod from: catalog/dynamic_sitemap.php And also i try put the dynamic_sitemap.php from contribution 3 but it is same error.It,s work great in Mozilla ,but in IE are not ok.

Any advice pls?

Th a lots_Octav.

 

Hi! :rolleyes:

I resolve the problem.It,i posible somebody have same problem.I hope use...

 

In catalog/dynamic_sitemap.php

 

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

 

reply with:

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

 

and it,s work great in all the browser: IE,Mozilla,Opera,Netscape_and SEO.

Share this post


Link to post
Share on other sites
I did changes for STS users as it was suggested, when I run "submit" I got the page with links, but still file sitemaps.xml is old.

 

 

What kind of changes STS users should do?

 

I just installed version v3.5.6 and everything looks fine, no problem at all, .xml files are getting updated

Share this post


Link to post
Share on other sites

I have trouble which I am unable to resolve:

 

...
http://www.edn.czindex.php --> 2008-11-12T16:07:48-08:00
http://www.edn.czproducts_new.php --> 2007-06-14T00:52:00-08:00
http://www.edn.czprivacy.php --> 2006-03-27T19:49:00-08:00
...

 

 

As you see, there is a "/" missing in the path. I have tried to change the settings in configure.php, but without any success.

Any advice?

 

 

 

 

SOLVED. THANKS!

Edited by qwasha

Share this post


Link to post
Share on other sites

OK, so here is another one.

 

Upon installation of the header tags for novices contribution, the main stitemap does not show the name of php files, neither the time of the last update ...

 

...
http://www.edn.cz/ -->
http://www.edn.cz/ -->
http://www.edn.cz/ --> 
...

 

Any ideas?

Edited by qwasha

Share this post


Link to post
Share on other sites

Hello i am having couple of issues, most probably they are becouse i am using a custom , oscommerce.

I have 3 questions.

 

1º-I have added SEO URL , is there any way to show them at the XML files?

 

2º-

<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap><loc>smmain.xml</loc><lastmod>2008-11-14T18:36:25+00:00</lastmod></sitemap>
<sitemap><loc>smcats.xml</loc><lastmod>2008-11-14T18:36:25+00:00</lastmod></sitemap>
<sitemap><loc>smproducts.xml</loc><lastmod>2008-11-14T18:36:25+00:00</lastmod></sitemap>
<sitemap><loc>smmfg.xml</loc><lastmod>2008-11-14T18:36:25+00:00</lastmod></sitemap>
<sitemap><loc>smspecials.xml</loc><lastmod>2008-11-14T18:36:25+00:00</lastmod></sitemap>
</sitemapindex>

For some weird reason my xml files come out like this without path....

 

 

3º-Another questions refers to the sitemap at the web when i display it , the column at the right hand side gets two empty categories that have no link nor text, any idea why this happens ?

 

Thanks in advance to anyone that helps me with this matters.


If you are not part of the solution, you are part of the problem

Share this post


Link to post
Share on other sites

Hi Jack

 

Now that I have successfully got your Header Tags SEO contribution up and running, I then installed your Dynamic Sitemap contribution.

 

At this stage evrything appears to be OK but I have the following error message on my Site Map Maintenance page:

 

Catchable fatal error: Object of class box could not be converted to string in /home/arrowmod/public_html/admin/includes/functions/html_output.php on line 281

 

Any ideas please?

 

Best Regards

Peter

P.S. I think I owe you something for all your excellent contributions and the support. Please advise me of your Paypal account.

Share this post


Link to post
Share on other sites
Hi Jack

 

Now that I have successfully got your Header Tags SEO contribution up and running, I then installed your Dynamic Sitemap contribution.

 

At this stage evrything appears to be OK but I have the following error message on my Site Map Maintenance page:

 

Catchable fatal error: Object of class box could not be converted to string in /home/arrowmod/public_html/admin/includes/functions/html_output.php on line 281

 

Any ideas please?

 

Best Regards

Peter

P.S. I think I owe you something for all your excellent contributions and the support. Please advise me of your Paypal account.

 

Hi Jack

 

Slowly worked my way through the support thread and found the answer to the problem.

 

Best Regards

Peter

Share this post


Link to post
Share on other sites

3º-Another questions refers to the sitemap at the web when i display it , the column at the right hand side gets two empty categories that have no link nor text, any idea why this happens ?

 

SOLVED HERE PAGE 37 more or less

 

a quick little bug fix, to the orphaned li tag (which shows as an extra bullet point) at the bottom of the pages list on the sitemap, if you have chosen to exclude all info boxes from the sitemap list

in dynamic_sitemap.php about line 273 change the box files section from

               // Box Files
               for ($b = 0; $b < count($boxHeading); ++$B)
               {
                   echo '<li>'.$boxHeading[$b]['heading'][$b];
                   $nb_elements = count($boxHeading[$b]['filename']);
                   if($nb_elements > 0)
                   {
                       if (tep_not_null($boxHeading[$b]['filename'][0]))
                       {
                       echo '<ul>';
                       for ($f = 0; $f < $nb_elements ; ++$f)
                           if (tep_not_null($boxHeading[$b]['filename'][$f]))
                               echo '<li><a title="'. $boxHeading[$b]['boxtext'][$f] .'" href="' . tep_href_link($boxHeading[$b]['filename'][$f]) . '">' . $boxHeading[$b]['boxtext'][$f] . '</a></li>';
                       echo '</ul>';
                       }
                   }
                   echo '</li>';
               }

 

to

 

               // Box Files
              for ($b = 0; $b < count($files['name']); ++$B)
               {
                   echo '<li><a title="'. $files['name'][$b] .'" href="' . tep_href_link($files['path'][$b]) . '">' . $files['name'][$b] . '</a></li>';
               }
               // Box Files
               for ($b = 0; $b < count($boxHeading); ++$B)
               {
                   $nb_elements = count($boxHeading[$b]['filename']);
                   if($nb_elements > 0)
                   {
                    echo '<li>'.$boxHeading[$b]['heading'][$b];
                       if (tep_not_null($boxHeading[$b]['filename'][0]))
                       {
                       echo '<ul>';
                       for ($f = 0; $f < $nb_elements ; ++$f)
                           if (tep_not_null($boxHeading[$b]['filename'][$f]))
                               echo '<li><a title="'. $boxHeading[$b]['boxtext'][$f] .'" href="' . tep_href_link($boxHeading[$b]['filename'][$f]) . '">' . $boxHeading[$b]['boxtext'][$f] . '</a></li>';
                       echo '</ul>';
                       }
                   echo '</li>';
                   }
               }


If you are not part of the solution, you are part of the problem

Share this post


Link to post
Share on other sites

Hi

 

Can anyone advise me on this problem?

 

I inadvertently "included" tell_a_friend.php in "catalog boxes" in site map maintenance.

 

The button appeared on the shop's dynamic sitemap but no description along side it.

 

When I tried to exclude it from the list in catalog boxes I found that the name does not appear but there is a blank entry.

 

It is impossible to exclude this blank entry.

 

Anyone got any ideas as to how to fix?

 

Best Regards

Peter

Share this post


Link to post
Share on other sites
Hi

 

Can anyone advise me on this problem?

 

I inadvertently "included" tell_a_friend.php in "catalog boxes" in site map maintenance.

 

The button appeared on the shop's dynamic sitemap but no description along side it.

 

When I tried to exclude it from the list in catalog boxes I found that the name does not appear but there is a blank entry.

 

It is impossible to exclude this blank entry.

 

Anyone got any ideas as to how to fix?

 

Best Regards

Peter

A quick-n-dirty fix would be to modify the database entry.

Share this post


Link to post
Share on other sites

Hi Dave

 

Many thanks for reply.

 

I'm a newbie to all this but I managed to work out the database entry and inserted tell_a_friend.php and it worked.

 

Best Regards

Peter

Share this post


Link to post
Share on other sites
Never mind, I fixed it. In catalog/admin/create_xml_sitemaps.php

 

The line of code:

fwrite($fh, utf8_encode('<url><loc>' . smspecialchars($fPath . $files[$b]['path']) . '</loc><lastmod>' . $files[$b]['modified'] . '</lastmod></url>'."\n"));

 

changed it to

 

fwrite($fh, utf8_encode('<url><loc>' . tep_href_link($files[$b]['path'],'','NONSSL',false) . '</loc><lastmod>' . $files[$b]['modified'] . '</lastmod></url>'."\n"));

 

Hi Tony

 

I got the same errors as you and tried your mod but got errors when I tried to create the sitemap. It didn't like the NONSSL part of the mod.

 

Any ideas? Unfortunately I am not a programmer.

 

Best Regards

Peter

Share this post


Link to post
Share on other sites

Just installed this and it works OK, but I've got "All Products" Contribution also installed and when attempting to apply the All Products fix, I have encountered an issue with finding the file to edit?

 

To quote from the Readme:

 

To make all products work with Dynamic sitemap:

[b]in customer service:[/b]

***FIND:
									 //BOF allprods modification
									 $info_box_contents[] = array('align' => 'center',
																  'text'  => '<font size=-2><a href="' . tep_href_link(FILENAME_ALLPRODS, '', 'NONSSL') . '">' . BOX_INFORMATION_ALLPRODS . '</a></font>');
									 //EOF allprods modification	 

***REPLACE WITH:
									 //BOF allprods modification
									 '<a href="' . tep_href_link(FILENAME_ALLPRODS, '', 'NONSSL') . '">' . BOX_INFORMATION_ALLPRODS . '</a>');
									 //EOF allprods modification

 

What the hell sort of file is "customer service" and where do I find it to apply the edit?

 

Your help is appreciated on this.

Share this post


Link to post
Share on other sites

Hi,

I have installed dynamic sitemap v2.0. I am looking for the fix to eliminate the extra bullet that shows up. I don't have the same code as posted by a member a few posts up. My code has this part

Any help is greatly appreciated

Thanks

 

<ul class="sitemap">

<?php if (count($files['name']) > 0) {

for ($b = 0; $b < count($files['name']); ++$B) {

?>

<li><?php echo '<a title="'. $files['name'][$b] .'" href="' . tep_href_link($files['path'][$b]) . '">' . $files['name'][$b] . '</a>'; ?></li>

<?php

}

}

if (count($boxHeading) > 0) {

for ($b = 0; $b < count($boxHeading); ++$B) {

echo '<li>'.$boxHeading[$b]['heading'][$b].'</li>'; ?>

 

<ul><?php

for ($f = 0; $f < count($boxHeading[$b]['filename']); ++$f)

if (tep_not_null($boxHeading[$b]['filename'][$f]))

echo '<li><a title="'. $boxHeading[$b]['boxtext'][$f] .'" href="' . tep_href_link($boxHeading[$b]['filename'][$f]) . '">' . $boxHeading[$b]['boxtext'][$f] . '</a></li>';

?>

</ul>

<?php

}

}

?>

</ul>

Share this post


Link to post
Share on other sites

oops....that is a custom box I have. The edit needs to be applies to:catalog/includes/boxes/information.php.

 

AND DON'T FORGET:

 

This same basic step needs to be performed for any boxes where you want the all products link

to show in the sitemap.(note this only works on certain boxes, hopefully this will get more attention in the future)

 

 

lildog

 

Just installed this and it works OK, but I've got "All Products" Contribution also installed and when attempting to apply the All Products fix, I have encountered an issue with finding the file to edit?

 

To quote from the Readme:

 

To make all products work with Dynamic sitemap:

[b]in customer service:[/b]

***FIND:
									 //BOF allprods modification
									 $info_box_contents[] = array('align' => 'center',
																  'text'  => '<font size=-2><a href="' . tep_href_link(FILENAME_ALLPRODS, '', 'NONSSL') . '">' . BOX_INFORMATION_ALLPRODS . '</a></font>');
									 //EOF allprods modification	 

***REPLACE WITH:
									 //BOF allprods modification
									 '<a href="' . tep_href_link(FILENAME_ALLPRODS, '', 'NONSSL') . '">' . BOX_INFORMATION_ALLPRODS . '</a>');
									 //EOF allprods modification

 

What the hell sort of file is "customer service" and where do I find it to apply the edit?

 

Your help is appreciated on this.

Share this post


Link to post
Share on other sites

I have posted a new version that includes the extra bullet fix above.

 

lildog

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×