installing the [Category Tree Menu] plugin ?

Creating and modifying plugins.
dymezac
Regular
Posts: 19
Joined: Mon May 01, 2006 5:23 pm
Contact:

installing the [Category Tree Menu] plugin ?

Post by dymezac »

Hello Garvin :wink:

I am actually trying to install the Category Tree Menu, but it seems that I need to install a package wihch I don't know how to install.
It is the PEAR HTML_TreeMenu. So I went on this site, but I still don't know how to install this package.
I have downloaded the package then I copied it on my root serenditpity path, and told the Category Tree Menu were I copied the PEAR package, but nothing works..

Do you know how I could install the PEAR package, in order to make the Category Tree Menu plugin working ?

Thanks a lot again
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: installing the [Category Tree Menu] plugin ?

Post by garvinhicking »

Hi!

You should put the TreeMenu thin into your bundled-libs/ directory, so that it forms a directory like bundled-libs/HTML/TreeMenu.php

Usually you install PEAR packages from the server just with "pear install HTML_TreeMenu" :)

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/
dymezac
Regular
Posts: 19
Joined: Mon May 01, 2006 5:23 pm
Contact:

Post by dymezac »

Hey ! It worked perfectly !

You were right. But instead of copying the pear HTML_Menu folder in the bundled-libs, i put it in the root of my web space (->> french provider free.fr).

Because I saw this in the source code of the DHTML_TreeMenu plugin :

Lines 100 to 107 of serendipity_plugin_category_dhtml_menu.php :
// may want to put this in bundled_libs or a sub directory of this directory
$pear = false;
if (@include_once('HTML/TreeMenu.php')) {
$pear = true;
}
if (@include_once('HTML_TreeMenu/TreeMenu.php')) {
$pear = true;
}
So I saw that I had to put a HTML_TreeMenu folder containing all the pear package i needed.
I could also change the plugin source code, but i prefer not, and have a HTML_TreeMenu on my root serendipity path.

So now all works : see it on the top right of http://dymezac.free.fr :wink:

Thanks again Garvin.. :wink:

I will still have one more question for you, I think the last one for a moment .. I'll put a new post for this new question
chrisT33
Regular
Posts: 43
Joined: Wed Sep 20, 2006 9:36 am

Post by chrisT33 »

i tried installing this too...

first i saw the error, i went on http://pear.php.net/package/HTML_TreeMenu/download , i downloaded the package, i put it on my bundled-libs folder, but now i don't see anything where it shoul be the tree menu - not even an error or something :(



what did i do wrong ? :roll:
chrisT33
Regular
Posts: 43
Joined: Wed Sep 20, 2006 9:36 am

Post by chrisT33 »

it seems noone knows how to solve my problem, but... can i make an alternative ? [something else than a HTML Nugget]
stm999999999
Regular
Posts: 1531
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

Post by stm999999999 »

the following works here:

1) copy the pear-treemenu-files to /bundled-libs/HTML_TreeMenu/

2) install the plugin category tree menu

3) config

/bundled-libs/HTML_TreeMenu/images or
/bundled-libs/HTML_TreeMenu/imagesAlt2 or
/bundled-libs/HTML_TreeMenu/imagesAlt2

and

/bundled-libs/HTML_TreeMenu/TreeMenu.js
Ciao, Stephan
chrisT33
Regular
Posts: 43
Joined: Wed Sep 20, 2006 9:36 am

Post by chrisT33 »

stm999999999 - steps 1 & 2 i have made them

step 3 - i really don't get it :-/
stm999999999
Regular
Posts: 1531
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

Post by stm999999999 »

chrisT33 wrote: step 3 - i really don't get it :-/
I don't understand your problem! :-(

Go to the plugin-page in the admin backend. Click on the plugin. and the enter the data in

Path to images
The absolute (URL) path to your images directory

and

Path to HTMLTree.js
the absolute (url) path to your HTMLTree.js (provided with PEAR::HTML_TreeMenu).

If it did not work, please give me a detailed information what you have done and at which place your problem occurs.
Ciao, Stephan
chrisT33
Regular
Posts: 43
Joined: Wed Sep 20, 2006 9:36 am

Post by chrisT33 »

stm999999999 - NOW i see your point... thanks... it worked :oops:
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Ah, so that's what "config" meant!

I was confused before. Totally understand now.
Judebert
---
Website | Wishlist | PayPal
chrisT33
Regular
Posts: 43
Joined: Wed Sep 20, 2006 9:36 am

Post by chrisT33 »

oh God


now i have another problem :(


Image

what should i edit so the menu have the same template? [i mean where is the HTML code generated?]

i saw something on serendipity_plugin_category_dhtml_menu.php, but i only can see there one <span> tag...

i tried inserting some <br />, but nothing... i also searched on index.tpl from template... :(
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Chris,

Does it work properly in the default theme? Perhaps the theme CSS needs to be changed? I thought it should all work off the bat, since each plugin gets stuck in a container, and that's what usually gets styled. But maybe the tree JS is breaking out or something.

Try moving it up or down the sidebar; that may expose an HTML problem. You can also try running your site through the W3C validator to expose HTML problems.

I'm sorry you've had so much trouble getting this to work. I hope we figure it out quickly.
Judebert
---
Website | Wishlist | PayPal
chrisT33
Regular
Posts: 43
Joined: Wed Sep 20, 2006 9:36 am

Post by chrisT33 »

for the moment i've let the original categories...


maybe i'll use this when it will be fixed [and also implemented number of items per category - this would be a great thing :P]
stm999999999
Regular
Posts: 1531
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

Post by stm999999999 »

1) Did you type something in "title"?

2) the html should be generated in the bundled-libs/HTML_TreeMenu/TreeMenu.js

3) the css for the sidebar-titles should work:

Code: Select all

 newNode = objTreeMenu_1.addItem(new TreeNode('<span class="serendipitySideBarTitle">test</span>', null, null, false, true, '', '', null));
Ciao, Stephan
chrisT33
Regular
Posts: 43
Joined: Wed Sep 20, 2006 9:36 am

Post by chrisT33 »

yes - i put a TITLE :|
Post Reply