Forums / All Other Contributions/Addons / Improved SiteMap Display

Improved SiteMap Display

Views: 8,705

Results 1 to 20 of 45
5 Jul 2008, 2:39 AM
#1
miles avatar

miles

Zen Follower

Join Date:
Oct 2006
Location:
At Home
Posts:
357
Plugin Contributions:
0

Improved SiteMap Display

I just installed 'improved sitemap display' mod and I have noticed some problem with my sitemap.

1. None of my EZ pages are listed in the site map.

  1. As you can see at the image below, there's a bullet & an arrow (mark in red) at the bottom of the site map page.

Did anyone ever experienced with such bug? How to fix it? :blink:

- Nothing is impossible. Some things are just less likely than others. -

5 Jul 2008, 1:08 PM
#2
bigbadboy avatar

bigbadboy

Totally Zenned

Join Date:
Apr 2008
Location:
London
Posts:
557
Plugin Contributions:
0

Re: Improved SiteMap Display

It just so happens I installed the same mod last night, and found the same -->
I just edited the tpl_site_map_default.php file and cleared out all that I didn't need.

And I think you need to make sure that the EZ pages are activated for them to be listed.

5 Jul 2008, 2:53 PM
#3
miles avatar

miles

Zen Follower

Join Date:
Oct 2006
Location:
At Home
Posts:
357
Plugin Contributions:
0

Re: Improved SiteMap Display

I just edited the tpl_site_map_default.php file and cleared out all that I didn't need.
How to clear out the bullet and the arrow in tpl_site_map_default.php?

> And I think you need to make sure that the EZ pages are activated for them to be listed.
How to activate EZ pages to be listed?

Sorry I just can't figure out. :frusty:

- Nothing is impossible. Some things are just less likely than others. -

8 Jul 2008, 12:24 PM
#4
miles avatar

miles

Zen Follower

Join Date:
Oct 2006
Location:
At Home
Posts:
357
Plugin Contributions:
0

Re: Improved SiteMap Display

OK, since no one has responded to my questions, I'm glad to say that I have solved those issues.

How to clear out the bullet and the arrow in tpl_site_map_default.php?I know this is probably out from the original topic. But, if you have installed improved site map display mod, find this directory

\includes\templates*yourtemplate\templates*

and look for tpl_site_map_default.php file. Scroll down to line 87 (mine), just clear out the arrow -->. That's for the arrow. As for the bullet, scroll up to line 51 and clear out this line

<li class="first"><?php // echo BOX_HEADING_INFORMATION; ?>
``` That's all.

Now you won't see the bullet in Firefox and no space in IE anymore.

The next one,

> How to activate EZ pages to be listed?Go to **Admin -> Tools -> EZ-Pages**. Then enable the sidebox for your page and don't forget the number for the sort order.

Hope this helps.

- Nothing is impossible. Some things are just less likely than others. -

7 Sep 2008, 1:33 PM
#5
evan70 avatar

evan70

New Zenner

Join Date:
Aug 2008
Posts:
13
Plugin Contributions:
0

Re: Improved SiteMap Display

Thnkz for this nice module > Improved SiteMap Display, but i cannot validate site > results >
Validation Output: 3 Errors
Line 176, Column 3: document type does not allow element "ul" here; assuming missing "li" start-tag.

<ul>

Line 183, Column 20: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag.
<li class="first">Informace <ul>

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Line 204, Column 13: end tag for "li" omitted, but OMITTAG NO was specified.
</ul>

You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
Line 176, Column 0: start tag was here.

<ul>

What can I do with it??? PLZZZZ help me :cry:

16 Jun 2009, 1:51 AM
#6
shoesbuyonline avatar

shoesbuyonline

New Zenner

Join Date:
May 2009
Posts:
78
Plugin Contributions:
0

Re: Improved SiteMap Display

Hi, clyde

Thanks for another nice add-on. I have a question here: I still couldn't find my newly added items in my information sidebox, such as faq and about us, etc.

Who could help me to deal with?

Thanks in advanced, :smile:

16 Jun 2009, 1:57 AM
#7
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Improved SiteMap Display

ShoesBuyOnline:

Hi, clyde

Thanks for another nice add-on. I have a question here: I still couldn't find my newly added items in my information sidebox, such as faq and about us, etc.

Who could help me to deal with?

Thanks in advanced, :smile:

Do you have a URL for your site.

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

16 Jun 2009, 2:10 AM
#8
shoesbuyonline avatar

shoesbuyonline

New Zenner

Join Date:
May 2009
Posts:
78
Plugin Contributions:
0

Re: Improved SiteMap Display

Hi, clyde

Thanks for your PROMPTEST reply! But now I'm test my new site locally on my PC. Does this situation has any effects on this add-on? Below I attached 2 screen shoots.

Thanks for your help,

file:///D:/PROGRA%7E1/SysTemp/Adm/moz-screenshot.jpgfile:///D:/PROGRA%7E1/SysTemp/Adm/moz-screenshot-1.jpg

16 Jun 2009, 3:48 AM
#9
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Improved SiteMap Display

ShoesBuyOnline:

Hi, clyde

Thanks for your PROMPTEST reply! But now I'm test my new site locally on my PC. Does this situation has any effects on this add-on? Below I attached 2 screen shoots.

Thanks for your help,

file:///D:/PROGRA%7E1/SysTemp/Adm/moz-screenshot.jpgfile:///D:/PROGRA%7E1/SysTemp/Adm/moz-screenshot-1.jpg

You may have to add them manually into tpl_site_map_default.php

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

16 Jun 2009, 11:34 PM
#10
shoesbuyonline avatar

shoesbuyonline

New Zenner

Join Date:
May 2009
Posts:
78
Plugin Contributions:
0

Re: Improved SiteMap Display

clydejones:

You may have to add them manually into tpl_site_map_default.php

Hey, Clyde

Thank you for your instructions. I copied and modified the code( below) from information.php then added them to tpl_site_map_default.php. Now, the site map looks just as I want.

<?php if (DEFINE_ABOUT_US_STATUS <= 1) {?>
        <li><?php echo '<a href="' . zen_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a>'; ?></li>
        <?php } ?>

Thanks again,

17 Jun 2009, 1:26 AM
#11
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Improved SiteMap Display

ShoesBuyOnline:

Hey, Clyde

Thank you for your instructions. I copied and modified the code( below) from information.php then added them to tpl_site_map_default.php. Now, the site map looks just as I want.

<?php if (DEFINE_ABOUT_US_STATUS <= 1) {?>
        <li><?php echo '<a href="' . zen_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a>'; ?></li>
        <?php } ?>

Thanks again,

glad you got it working

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

10 Jul 2009, 9:34 PM
#12
g_force avatar

g_force

Zen Follower

Join Date:
Feb 2009
Posts:
354
Plugin Contributions:
0

Re: Improved SiteMap Display

I haven't downloaded this mod yet but it sounds interesting..

I first wanted to ask if it can segment categories into columns of their own..

_thanks

10 Jul 2009, 10:03 PM
#13
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Improved SiteMap Display

g_force:

I haven't downloaded this mod yet but it sounds interesting..

I first wanted to ask if it can segment categories into columns of their own..

_thanks

no

You can style the page any way you want

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

10 Jul 2009, 10:06 PM
#14
g_force avatar

g_force

Zen Follower

Join Date:
Feb 2009
Posts:
354
Plugin Contributions:
0

Re: Improved SiteMap Display

oh thanks.. I'm just trying to find out how right now..

12 Jul 2009, 10:43 AM
#15
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Improved SiteMap Display

I hope someone can help.. I'm using the Hidden Categories add-on, and my hidden categories and products are showing up on the Improved SiteMap.. I was trying to figure out how to add code from the Hidden Categories add-on code to the "classes/site_map.php" and BOY am I really confused..:wacko:

I think this is the code I need to add to the site map.. I just haven't a clue how to integrate it into the site map file. I thought (hoped) that this would be something I could figure out on my own, but alas I'm stuck..:huh:

//  Begin hideCategories code
    list($nada, $mycpath)= split('=', $box_categories_array[$i]['path']);
    $mycid = split('_', $mycpath);
    $categories_id = array_pop($mycid);
    $hide_status = $db->Execute("select visibility_status 
                    FROM " . TABLE_HIDE_CATEGORIES . "
                    WHERE categories_id = " . $categories_id . "
                    LIMIT 1");
    if ($hide_status->fields['visibility_status'] < 1) {
//  End hideCategories code
```So here's my question/plea for help.. I'm hoping that I could get some assistance in how to add the right code to hide the hidden categories from the site. (That would make me a very a happy camper..) 

However, the alternate is finding out how to hide a specific list of categories from the site map. Either one would get me what I want.. (Obviously the first is the better solution because it will work with the **Hidden Categories** add-on.. but I'll settle for some assistance and a working solution:smile: )

Can anybody offer a helping hand??

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

12 Jul 2009, 4:27 PM
#16
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Improved SiteMap Display

Found my answer BURIED in the Hidden Categories support thread (1.5 year old post too!).. Thought I'd post it here for anyone using both of these add-ons..

http://www.zen-cart.com/forum/showpost.php?p=466332&postcount=94

So far this solution seems to be working just fine.. I've only done some VERY quick testing. This particular store only has one hidden product, so I still have to test if it works with more than one hidden product (looking at the query in the code it should work just fine with any number of hidden categories) I still suggest anyone doing this should do their own testing..

DivaVocals:

I hope someone can help.. I'm using the Hidden Categories add-on, and my hidden categories and products are showing up on the Improved SiteMap.. I was trying to figure out how to add code from the Hidden Categories add-on code to the "classes/site_map.php" and BOY am I really confused..:wacko:

I think this is the code I need to add to the site map.. I just haven't a clue how to integrate it into the site map file. I thought (hoped) that this would be something I could figure out on my own, but alas I'm stuck..:huh:

// Begin hideCategories code
list($nada, $mycpath)= split('=', $box_categories_array[$i]['path']);
$mycid = split('_', $mycpath);
$categories_id = array_pop($mycid);
$hide_status = $db->Execute("select visibility_status
FROM " . TABLE_HIDE_CATEGORIES . "
WHERE categories_id = " . $categories_id . "
LIMIT 1");
if ($hide_status->fields['visibility_status'] < 1) {
// End hideCategories code

> 
> However, the alternate is finding out how to hide a specific list of categories from the site map. Either one would get me what I want.. (Obviously the first is the better solution because it will work with the **Hidden Categories** add-on.. but I'll settle for some assistance and a working solution:smile: )
> 
> Can anybody offer a helping hand??

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

13 Jul 2009, 10:28 PM
#17
g_force avatar

g_force

Zen Follower

Join Date:
Feb 2009
Posts:
354
Plugin Contributions:
0

Re: Improved SiteMap Display

OK - I give up how do I style the sitemap?? - I'm trying to put each category (with sub-categories) into separate columns with three columns on the page (6 categories in all).. I've looked at sitemap.php and category_tree.php and had an extensive play around but I'm still not sure the exact way of doing it...

Help here would be hugely appreciated!

_thanks to anyone heading the call!!

17 Sep 2009, 7:44 AM
#18
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Improved SiteMap Display

Another question.. My inactive products are showing up on my sitemap.. Anyone have a clue what I need to do to make sure these don't display??

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

18 Sep 2009, 3:59 AM
#19
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Improved SiteMap Display

DivaVocals:

Another question.. My inactive products are showing up on my sitemap.. Anyone have a clue what I need to do to make sure these don't display??
Okay.. so I know this is the query I need to modify.. I am just not entirely sure how to make the correct edits.. Can anyone help??

$categories_query = "select c.categories_id, cd.categories_name, c.parent_id
    from " . TABLE_CATEGORIES . " c LEFT JOIN "
    . TABLE_HIDE_CATEGORIES . " h ON (c.categories_id = h.categories_id), "
    . TABLE_CATEGORIES_DESCRIPTION . " cd
    where (h.visibility_status < 2 OR h.visibility_status IS NULL)
    and c.categories_id = cd.categories_id
    and cd.language_id = '" . (int)$_SESSION['languages_id'] . "'
    and c.categories_status != '0'
    order by c.parent_id, c.sort_order, cd.categories_name";

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

18 Sep 2009, 4:25 AM
#20
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Improved SiteMap Display

So I tried this, and still no dice.. All of my inactive products still show up on the site map.. sigh I am stumped..:frusty:

$categories_query = "select c.categories_id, cd.categories_name, c.parent_id, p.products_status 
    from " . TABLE_CATEGORIES . " c LEFT JOIN "
    . TABLE_HIDE_CATEGORIES . " h ON (c.categories_id = h.categories_id), "
    . TABLE_CATEGORIES_DESCRIPTION . " cd, "
    . TABLE_PRODUCTS . " p
    where (h.visibility_status < 2 OR h.visibility_status IS NULL)
    and c.categories_id = cd.categories_id
    and cd.language_id = '" . (int)$_SESSION['languages_id'] . "'
    and c.categories_status != '0'
    and p.products_status != '0'
    order by c.parent_id, c.sort_order, cd.categories_name, p.products_status";

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.