Forums / Basic Configuration / Ajax Yahoo menu does not seem to work

Ajax Yahoo menu does not seem to work

Locked

Views: 2,371

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
24 Sep 2006, 9:44 AM
#1
bradlawson avatar

bradlawson

New Zenner

Join Date:
Oct 2005
Posts:
71
Plugin Contributions:
0

Ajax Yahoo menu does not seem to work

I am running 1.3.2 and just installed the yahoo menu by ajax for my categories sidebox. First of all there is a categories.php file have i am confused where it goes, does it replace the file in the modules/sideboxes or does it replace the file in admin folder? Regardless to say i have tried both with no success. The problem is when i click on a category with sub-categories. It brings up a box saying "There was a problem with the request", it works fine when i don't have any sub-cats, but if i do it just stalls. So i don't know if i was suppose to edit some more files or what, but the install.txt didn't say to do anything. I appreciate all the help from community.

Thanks,

Brad

24 Sep 2006, 10:28 AM
#2
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: Ajax Yahoo menu does not seem to work

There is a thread related to this module, please refer to it for more info.
Yahootreemenu with ajax.

For the categories.php, put in the root directory of your Zen Cart install.

.

A New Starter again

24 Sep 2006, 1:19 PM
#3
bradlawson avatar

bradlawson

New Zenner

Join Date:
Oct 2005
Posts:
71
Plugin Contributions:
0

Re: Ajax Yahoo menu does not seem to work

i appreciate the suggestion but i have read that post twice before i ever posted. After about hour of debugging i realized the directory is not openning because one of my categories name uses a "&" symbol. So some where in the help file it should say DON"T USE "&" with this module.

Thanks

Brad

24 Sep 2006, 1:34 PM
#4
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: Ajax Yahoo menu does not seem to work

Some reference.

unescaped & which should be written as &
Cause:

"&" in HTML is a special character to note the beginning of a entity, like "&nbsp".
In XHTML, a entity must also end by a ";", for example " "
Solution:

Please replace "&" by "&"

BAD Smith & son
And this also related to some other codes, please refer to related docs.

.

A New Starter again

24 Sep 2006, 1:42 PM
#5
bradlawson avatar

bradlawson

New Zenner

Join Date:
Oct 2005
Posts:
71
Plugin Contributions:
0

Re: Ajax Yahoo menu does not seem to work

Your a smarter better person then me seethrou, i appreciate the help. I will make sure i watch out for that in the future.

25 Sep 2006, 5:06 AM
#6
andrew_yer avatar

andrew_yer

New Zenner

Join Date:
Feb 2006
Posts:
59
Plugin Contributions:
0

Re: Ajax Yahoo menu does not seem to work

bradlawson:

i appreciate the suggestion but i have read that post twice before i ever posted. After about hour of debugging i realized the directory is not openning because one of my categories name uses a "&" symbol. So some where in the help file it should say DON"T USE "&" with this module.
Hi!
This is my mistake.

To fix it:
in the file /categories.php (in the root, not in the /includes/modules/sideboxes), line ~36

Replace

$categories[$groups_cat->fields['categories_id']]['categories_name'] = $groups_cat->fields['categories_name'];

With

$categories[$groups_cat->fields['categories_id']]['categories_name'] = htmlentities($groups_cat->fields['categories_name']);

Good luck!
Andrew.