Extension talk:TreeAndMenu

error messages
I've tried to install it on my wiki but i get a lot of errors when i make a tree-entry on a page. (the tree is properly displayed!) The error messages are similar to this:
 * Notice: Use of undefined constant wgUser - assumed 'wgUser' in /var/www/html/wikidelfia/extensions/Treeview3.php on line 59

In the localsettings I put : include_once('extensions/treeview3.php') and the $wgTreeViewImages = array( with the proper links to the images. What is going wrong? --BB70 11:28, 14 March 2007 (UTC)
 * I know what that is - that's a setting in your php.ini that doesn't allow the array indexes to have their quotes missing - just put quotes around all the arrays, or download again - I've change the code to not depend on that setting now (I think I got them all, here's the diff). --Nad 23:19, 14 March 2007 (UTC)
 * It helps a little.. but i still get errors like: Notice: Undefined index: doc in /var/www/html/wikidelfia/extensions/Treeview3.php on line 84 (same for line 79 till 83) and these two: Notice: Undefined index: openlevels in /var/www/html/wikidelfia/extensions/Treeview3.php on line 85 ; Notice: Undefined offset: 5 in /var/www/html/wikidelfia/extensions/Treeview3.php on line 93. And there is a pop-up box with the message [object error] --BB70 07:42, 16 March 2007 (UTC)
 * You have your settings set extrememly strictly for it not to allow reading uninitialised variables and indexes! Check if it works now, I've made it only read them if they exist. --Nad 09:43, 16 March 2007 (UTC)
 * This works! Thank you for the quick response... --BB70 12:02, 18 March 2007 (UTC)

parameter openlevel
When I use the paramater openlevel=1 (I also tried id=1) the tree stays closed. I tried the example in the article-text with the same result. Is there something else in the configuration I must change to get this work? --BB70 09:11, 19 March 2007 (UTC)
 * I've found the solution... It's not openlevel but openlevels --BB70 09:52, 19 March 2007 (UTC)
 * Sorry about that - typo fixed --Nad 21:00, 19 March 2007 (UTC)

Display only text of first item?
i have done the following: 1) copy and paste treeview3.php into extensions folder 2) include_once('extensions/treeview3.php');

$wgTreeViewImages = array( 'plus' => '/mwiki/images/7/72/Arrow-closed.png','minus' => '/mwiki/images/a/a0/Arrow-open.png', 'opened' => '/mwiki/images/4/46/Folder_opn_sml_blu.gif', 'closed' => '/mwiki/images/6/6e/Folder_sml_blu.gif', 'doc' => '/mwiki/images/e/e3/Doc-icon.gif', 'spacer' => '/mwiki/images/c/c0/spacer.png' );

3) edit a page with following:


 * but so far all i get is Root displayed as text. i have done chmod 777 for the images above. There is not even an error message shown. Can someone help me? i am using lattest mediawiki with php5, Mysql5 and apache2.