Category TreeMenu - not working

Creating and modifying plugins.
Post Reply
jocelynaz
Regular
Posts: 27
Joined: Thu Mar 29, 2007 9:29 pm

Category TreeMenu - not working

Post by jocelynaz »

Hello yet again! :D

I just installed the Category TreeMenu plug-in (version 1.9) and when I view it on my site, I get a message that says "Please install PEAR package HTML_TreeMenu to enable this plugin." I've looked in my files and I see that I already have PEAR.php in my bundled-libs directory. Is there something else I'm supposed to install? In my search on other posts here, I didn't read anything about having to install another file.


Thank you!
Jocelyn
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Category TreeMenu - not working

Post by garvinhicking »

Hi!

Please search this forum for "pear treemenu" and you should find yourself the answer - nearly all of those postings tell you that you need to install the TreeMenu from PEAR (through pear.php.net) . :-)

What words did you search for? Maybe that could help in documenting the threads you found properly.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
jocelynaz
Regular
Posts: 27
Joined: Thu Mar 29, 2007 9:29 pm

Post by jocelynaz »

Hi Garvin -- Thanks for pointing me in the right direction with the search. I did a search on "pear treemenu" and was able to find some posts and find the link to download the HTML_TreeMenu-1.2.0 file. I have downloaded this file into my "bundled-libs/HTML" directory. (I actually had to create a HTML directory)

From there, I am not sure what to do. I have followed the directions from the other posts, but I still get a message saying to "Please install PEAR package..."

In following one of the posts I found (http://board.s9y.org/viewtopic.php?t=82 ... egory+tree), I have set the current Path to HTMLTree.js to: blog/bundled-libs/HTML/ . I kept the Path to images to default path. Does the Path to images need to be redirected as well? If so, to where? I actually tried to give it the same path as the HTMLTree.js, but that didn't work either.

Quick question: where is the HTMLTree.js file? I don't see it anywhere. The post I mentioned about mentions this also, but no comment was made about it. Can you help me to understand where this file is?

Just an FYI (not sure if this helps to mention), my PEAR.php file is located in the main bundled-libs directory.

Please forgive my lack of understanding on this! Oh, one more thing...do I need to keep the Categories plug-in installed if I've installed the Category Treemenu plug-in? I'm not totally sure.


THANKS SO MUCH for your help! I don't know what I've missed with all of this. Seems like for everyone else, it worked pretty easily. Hmmm....that's usually the way it goes for me. LOL! :D
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!
jocelynaz wrote:Hi Garvin -- Thanks for pointing me in the right direction with the search. I did a search on "pear treemenu" and was able to find some posts and find the link to download the HTML_TreeMenu-1.2.0 file. I have downloaded this file into my "bundled-libs/HTML" directory. (I actually had to create a HTML directory)
What is the full path structure there, how are your files called there?

You either need to have a

/blog/bundled-libs/HTML/TreeMenu.php

or

/blog/bundled-libs/HTML_TreeMenu/TreeMenu.php

structure.

Then you must put the "img" subdirectory of the TreeMenu and the TreeMenu.js file into

/blog/plugins/serendipity_plugin_category_dhtml_menu/img/*
/blog/plugins/serendipity_plugin_category_dhtml_menu/TreeMenu.js

and configure the plugin to use this script path:

/blog/plugins/serendipity_plugin_category_dhtml_menu/TreeMenu.js

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
jocelynaz
Regular
Posts: 27
Joined: Thu Mar 29, 2007 9:29 pm

Post by jocelynaz »

Thanks Garvin! Just an FYI....

I was still not seeing the TreeMenu.js file and the img subdirectory and it was frustrating me. So I turned to my hubby for assistance. And he helped me to figure it out! When I went to the Pear.php.net site to download, my hubby noticed that (for whatever reason), the file extension was being renamed from .tgz to .tar! So, yesterday...this is why I wasn't seeing the TreeMenu.js file or the img subdirectory! Nothing was being extracted from the incorrect .tar file. So, this evening we downloaded PEAR again and just manually changed the file extension to .tgz (the proper extension) on the download. And this worked! I was able to see all the files!

Now all is working!!! THank you again for everything, Garvin!! :D
jocelynaz
Regular
Posts: 27
Joined: Thu Mar 29, 2007 9:29 pm

Post by jocelynaz »

One last question....

I LOVE LOVE LOVE the TreeMenu! Is there any way to show the number of posts per category though? I was able to do this with the other Categories plug-in and can't see where I could do this with the TreeMenu.


:) Thx!!!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Glad you got it to work! Sadly the plugin does not allow counting posts in categories yet, that is a bit harder to achieve. Only the "default" categories sidebar plugin currently does it. Someone with basic PHP skills could try to migrate that portion to the DHTML TreeMenu plugin though....? :-)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply