Posted on: 04/08/04 11:38am
By: jannetta
Hi folks
I wrote a plugin, that others might be interested in. I managed to convince the folks at the college I work for, to consider Geeklog for the Intranet (an maybe our Internet site). However, we have loads and loads of static pages and needed some kind of menu system that won't grow endlessly down the side of the page. So, I wanted a block with a main menu and a block with sub-menu items for the selected main menu item. Blockmenu, consists of a plugin that an administrator uses to add main and sub-menu items. It also uses, either two blocks for a main menu and a sub-menu, or one block for the main menu with the sub-menu embedded in it. The reason I created the second option was because it is not possible at this point to change the title of the sub-menu block, except if you create it as an embedded block in the first.
Anyhow, if anybody is interested in the plugin/block Blockmenu, it is available on sourceforge at: http://sourceforge.net/projects/blockmenu/. I would appreciate any feedback, comments and if anyone decides to use it I would like to link to your site on the Blockmenu sourceforge homepage (which I haven't created yet).
Jannetta
Blockmenu
Posted on: 04/08/04 12:27pm
By: Dazzy
I'll take a look and let you know my findings
Blockmenu
Posted on: 04/09/04 01:48am
By: destr0yr
got an error:
Thu Apr 8 23:14:02 2004 - 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' bm_order_index=0' at line 1. SQL in question: INSERT INTO blockmenu_index SET bm_label="test test ", bm_url="www,destr0yr.com", bm_onswitch=, bm_order_index=0
Blockmenu
Posted on: 04/09/04 06:40am
By: geKow
Janetta: this one is really nice and works like charme (for now ;p)
I have one suggestion: I would love to have a button or something to collapse the submenu.
geKow
Oh... and another one: what about the chance to add an url to a topmenu? (like to the overviewpage)
Blockmenu
Posted on: 04/10/04 05:52pm
By: Anonymous (jannetta)
Hi destr0yr
I think what went wrong here is that you tried to add a submenu item without having first added a main menu item to which the sub-menu item should belong. I should add the code to avoid this. I'll try to do this soon. In the meantime, try adding a main menu item first and see if it doesn't work.
Jannetta
[QUOTE BY= destr0yr] got an error:
Thu Apr 8 23:14:02 2004 - 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' bm_order_index=0' at line 1. SQL in question: INSERT INTO blockmenu_index SET bm_label="test test ", bm_url="www,destr0yr.com", bm_onswitch=, bm_order_index=0
[/QUOTE]
Blockmenu
Posted on: 04/10/04 05:59pm
By: Anonymous (jannetta)
Hi geKow
I should be able to do both these things quite easily. Can you just give me an idea of why you would want to collapse the sub-menu? Are you just thinking of a button on the main menu to collapse it and leave it collapsed until the button is pressed again (toggle) or are you thinking in terms of a configuration option.?
Jannetta.
[QUOTE BY= geKow] Janetta: this one is really nice and works like charme (for now ;p)
I have one suggestion: I would love to have a button or something to collapse the submenu.
geKow
Oh... and another one: what about the chance to add an url to a topmenu? (like to the overviewpage) [/QUOTE]
Blockmenu
Posted on: 04/10/04 06:05pm
By: Dazzy
Toggle would be great for me, abit like + and - !
Blockmenu
Posted on: 04/10/04 06:40pm
By: destr0yr
[QUOTE BY= jannetta] Hi destr0yr
I think what went wrong here is that you tried to add a submenu item without having first added a main menu item...[/QUOTE]
yes, this is exactly what i did. I like doing things the hard way first...
Blockmenu
Posted on: 04/10/04 09:54pm
By: enigmah
Where can I see this menu block working?
Blockmenu
Posted on: 04/11/04 03:13am
By: jannetta
Hi eniqmah
Unfortunately our college Intranet site is not accessible to the outside world and I'm busy setting up my own websites again after a server failure. Once they are up and going I'll drop a message here. If anyone else gets a site going with the Blockmenu, please let us know.
[QUOTE BY= enigmah] Where can I see this menu block working?[/QUOTE]
Blockmenu
Posted on: 04/11/04 05:50am
By: geKow
[QUOTE BY= enigmah] Where can I see this menu block working?[/QUOTE]
You can see it on my site, I "transfered" and expanded my top menu for testing The block menu is labeled "MenĂ¼ (experim) on the left side.
gekow.net[*1]
geKow
edit: sorry, I killed it. Will try the next release ASAP
Blockmenu
Posted on: 04/16/04 07:18am
By: Dazzy
One thing I've noticed, the url in the adress bar becomes very big if you switch between menus!
Ie on if I were to click on three main headings one after the other the address would be
http://www.fenixshowcase.com/index.php?blockmenu=7&blockmenu=8&blockmenu=9
Could it be revised so its only the first blockmenu element that has the number updated?
So if I was on
http://www.fenixshowcase.com/index.php?blockmenu=7
And click on my second menu it becomes
http://www.fenixshowcase.com/index.php?blockmenu=8
and not
http://www.fenixshowcase.com/index.php?blockmenu=7&blockmenu=8
Blockmenu
Posted on: 04/19/04 05:11am
By: jannetta
Hi Dazzy
That is a mistake on my part. I'll fix it!
Jannetta
[QUOTE BY= Dazzy] One thing I've noticed, the url in the adress bar becomes very big if you switch between menus!
Ie on if I were to click on three main headings one after the other the address would be
http://www.fenixshowcase.com/index.php?blockmenu=7&blockmenu=8&blockmenu=9
Could it be revised so its only the first blockmenu element that has the number updated?
So if I was on
http://www.fenixshowcase.com/index.php?blockmenu=7
And click on my second menu it becomes
http://www.fenixshowcase.com/index.php?blockmenu=8
and not
http://www.fenixshowcase.com/index.php?blockmenu=7&blockmenu=8
[/QUOTE]
Blockmenu
Posted on: 04/19/04 10:29am
By: jannetta
Hi folks
I have uploaded version 1.0.2 of blockmenu onto sourceforge http://sourceforge.net/project/showfiles.php?group_id=105515. This version now has:
1) the collapsable sub-menu that geKow requested. I'm not sure whether it is what he meant, but it is there!
2) I have also removed the header of an empty sub-menu.
3) fixed the expanding URL that Dazzy mentioned
4) You can add a URL to the main menu, but I still need to add a description field to the database, because, at the moment the text for the url is the URL itself, which obviously is not acceptable.
5) Because I wasn't to sure what geKow wanted with the collapsable sub-menu, I created a new block that displays the menu in one block with the submenu below the main menu item, rather than in a separate block. The sub-menu is also collapsable.
Well, let me know what you guys think.
Jannetta
Blockmenu
Posted on: 05/14/04 08:44am
By: beewee
I have 3 mainitems in the menu, each mainitem has a submenu.
If I'm on the page of a submenu-item in main-item 1 and click on main-item 2 the menu collapses as it should do, but I'm still seeing the same page (the submenu item of main-item 1). Is that correct?
I've downloaded version 1.02, but in the source it says it's still version 1.01!! How can I make a separate URL/page for a mainitem ?
Blockmenu
Posted on: 05/16/04 07:27am
By: ldfoo
Hi Jannetta
Thanks for this menu - works great
I have a problem and am not sure if it is related to the blockmenu - all the pages open in a new window from the blockmenu so that I end up with many open windows - is there something I can change this ???
thanks
Laurie
Blockmenu
Posted on: 05/16/04 02:56pm
By: beewee
Just remove the http://www.yourdomain.com/
Greetz from Holland
Blockmenu
Posted on: 05/16/04 05:05pm
By: ronack
How does this compare with Menu 1.6?
Blockmenu
Posted on: 05/17/04 04:33am
By: ldfoo
Thanks Beewee - will try it out
Blockmenu
Posted on: 05/17/04 04:58am
By: ldfoo
Hi ronack - I haven't tried menu 1.6 - I guess the advantage of blockmenu is if you have a large numer of menu items and can use a category system
Blockmenu
Posted on: 05/17/04 11:04am
By: jannetta
Hi Bewee
Yes this is the correct behaviour. Clicking on a main menu item won't change the currently displayed page, it will just open the menu item. In the beginning this made sense to me, but just lately I started wondering whether it won't be confusing to the novice user as nothing seems to happen when you click on such an item (apart from the menu opening up). What do you guys think, should I change it, and if so, what behaviour do you think would make sense?
The version number might be an oversight on my part, I'll have a look at it and fix it.
Jannetta
[QUOTE BY= beewee] I have 3 mainitems in the menu, each mainitem has a submenu.
If I'm on the page of a submenu-item in main-item 1 and click on main-item 2 the menu collapses as it should do, but I'm still seeing the same page (the submenu item of main-item 1). Is that correct?
I've downloaded version 1.02, but in the source it says it's still version 1.01!! How can I make a separate URL/page for a mainitem ?[/QUOTE]
Blockmenu
Posted on: 05/17/04 11:05am
By: jannetta
Blockmenu is now also running on my website at http://www.jannetta.com.
[QUOTE BY= enigmah] Where can I see this menu block working?[/QUOTE]
Blockmenu
Posted on: 05/17/04 03:29pm
By: beewee
Jannetta, before I forget: it's a great plug-in! It's really user-friendly and offers lots of possibilities.
Some of my friends looked at the behaviour, they we're also confused as they found out that clicking on a main item did not have much effect except for the change in the blockmenu. OK, we're just stupid Dutchmen, but the behaviour is just different from what everybody expects.
I would love to see that clicking on a main item would result in changing the page as well (linking to an URL), like the other menu plugin (which doesn't work very well with GL1.39 and Mozilla/Firefox/NS).
Next step would be to make a two-level menubar with your code, or a combination of a horizontal main-menu and vertical sub-menu.
Your plug-in is a great addition to a great CMS!
Blockmenu
Posted on: 05/19/04 11:53am
By: jannetta
New Release: Blockmenu 1.0.3
Hi Beewee
Thanks, I'm really glad it is of use for others!
From one dumb Dutchmen to another (even if there is 300 years of genealogy in between), let's fix the problem!
You'll be glad to hear that I have just released Blockmenu 1.0.3 which now allows you to specify a URL for the main menu.
Please just be careful, I haven't tested the installation program. The upgrade part of the code does work but make sure to read the BLOCKMENU_INSTALL file. If anybody has a Geeklog installation where they can try the new installation of Blockmenu, I'll appreciate any feedback!
Last thing, please explain more about the two-level menubar that you mentioned. Where would you want to use it? In the centre block? Because in the side blocks it wouldn't make any sense - or am I missing something here?
Jannetta
[QUOTE BY= beewee] Jannetta, before I forget: it's a great plug-in! It's really user-friendly and offers lots of possibilities.
Some of my friends looked at the behaviour, they we're also confused as they found out that clicking on a main item did not have much effect except for the change in the blockmenu. OK, we're just stupid Dutchmen, but the behaviour is just different from what everybody expects.
I would love to see that clicking on a main item would result in changing the page as well (linking to an URL), like the other menu plugin (which doesn't work very well with GL1.39 and Mozilla/Firefox/NS).
Next step would be to make a two-level menubar with your code, or a combination of a horizontal main-menu and vertical sub-menu.
Your plug-in is a great addition to a great CMS!
[/QUOTE]
Blockmenu
Posted on: 05/19/04 07:29pm
By: beewee
Correct, I would use it as a menu bar in the header. I'm setting up a test site without your plug-in with:
- a main menubar with links to some topics, and a sub-menu bar with links to the stories. It's not for a weblog but a CMS, so there are not so many stories.
Thanks for adapting and upgrading your menu block!!! I believe this plug-in is a great additon for all of us!
I'll will install and try it tomorrow evening (it's 01.30 AM over here..)
Blockmenu
Posted on: 05/20/04 10:45am
By: beewee
Got mySQL error message while attempting to add the first main menu item:
Thu May 20 16:25:44 2004 - 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '",URL="staticpages/index.php/beeweb"' at line 1. SQL in question: INSERT INTO blockmenu_main SET bm_title="Over Beeweb",bm_order_main=1",URL="staticpages/index.php/beeweb"
I'll try it again tonigth to see if it's going better from a new install. Upgraded everything according your install file.
Greetz, beewee
Blockmenu
Posted on: 05/20/04 06:31pm
By: beewee
Oops, that didn't work out. Installed GL again, and Blockmenu. Works fine, except for the embedded submenu, the submenu still shows in a separate block, despite the option I choose...How can I check if the installation/upgrade was OK?
Blockmenu
Posted on: 05/21/04 08:09am
By: jannetta
I spotted an error in the mysql statement which I have fixed. I'll upload the fix and post a message here to let you know about it.
[QUOTE BY= beewee] Got mySQL error message while attempting to add the first main menu item:
Thu May 20 16:25:44 2004 - 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '",URL="staticpages/index.php/beeweb"' at line 1. SQL in question: INSERT INTO blockmenu_main SET bm_title="Over Beeweb",bm_order_main=1",URL="staticpages/index.php/beeweb"
I'll try it again tonigth to see if it's going better from a new install. Upgraded everything according your install file.
Greetz, beewee[/QUOTE]
Blockmenu
Posted on: 05/21/04 08:20am
By: jannetta
After the installation you should have four new blocks. They are phpblock_blockmain, phpblock_blockindex, phpblock_blockmain_index and phpblock_blockmenu. Their titles are:
Main Menu with submenu
Sub-menus
Main Menu with embedded sub-menu
Main Menu with indented menu
If you want to use the two block option, enable phpblock_blockmain and phpblock_blockindex (ie Main Menu with indented menu and Sub-menus). Disable the other two.
If you want the one block with the embedded sub-menu, enable phpblock_blockmain_index (ie Main Menu with embedded sub-menu). Disable the other three blocks.
If you want the menu with the collapsable sub-menu below each main menu item, enable phpblock_blockmenu (ie Main Menu with indented menu) and disable the other three blocks.
[QUOTE BY= beewee] Oops, that didn't work out. Installed GL again, and Blockmenu. Works fine, except for the embedded submenu, the submenu still shows in a separate block, despite the option I choose...How can I check if the installation/upgrade was OK?[/QUOTE]
Blockmenu
Posted on: 05/21/04 08:58am
By: jannetta
Hi folks
My apologies to everyone who discovered that adding a new menu item resulted in an SQL error and many thanks to beewee for pointing out the problem.
I have fixed it and uploaded it to sourceforge. I have also changed the version number to 1.0.3p1. The version number should now be displayed on the Blockmenu admin screen. Hopefully this will make it easier to see that you have the latest code. You only need to download Blockmenu_1.0.3b.zip as there were no changes to 1.0.3a. The file however, is still called Blockmenu_1.0.3.zip
If you have already installed 1.0.3 then you can just extract the new zip over the old code. If you are installing from scratch, then please read the readme files.
If anyone would like to be my official tester, please let me know. I'll add your name to the sourceforge project and you will have the priviledge of discovering my bugs before anyone else. If you would like to volunteer, please send me your email address through sourceforge.
Jannetta
Blockmenu
Posted on: 05/21/04 10:56am
By: beewee
Thanks, Jannetta, for all your efforts.
I'll think about your 'testing' inquiry.
Blockmenu
Posted on: 05/21/04 12:37pm
By: TeppoM
Just installed the new version of menublock. It seems promising, but I got this sql error when trying to add main menu item #2
pe 21 toukokuu 2004 11:20:42 - 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1. SQL in question: SELECT bm_title FROM blockmenu_main WHERE bm_onswitch=
Blockmenu
Posted on: 05/21/04 06:41pm
By: beewee
Works fine over here! But installed/upgraded it again to get it working.
Thnx Jannetta, great job! Will send you some URL's with working examples soon!
Found something out too: you can make static links in a horizontal menubar (in the header template) to the main menu-items, disable the main menu and only enable the submenu, which changes according the results of the static links.
And: with Blockmenu you can easily use lots of searchengine-friendly static pages, and GL is becoming a real CMS instead of a blog (oops, sorry, there's nothing wrong with a blog!). Also easy when you need a site with bilangual content.
Blockmenu
Posted on: 05/22/04 07:21pm
By: jannetta
Hi TeppoM
Were you doing a new installation or an upgrade? I can't seem to reproduce the error. The SQL statement that failed is the one that is trying to get the menu items from the database in order to draw the menu. It is not part of the admin function for adding menu items. Can you perhaps give a bit more detail of the procedure you were following when this happened?
[QUOTE BY= TeppoM] Just installed the new version of menublock. It seems promising, but I got this sql error when trying to add main menu item #2
pe 21 toukokuu 2004 11:20:42 - 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1. SQL in question: SELECT bm_title FROM blockmenu_main WHERE bm_onswitch=
[/QUOTE]
Blockmenu
Posted on: 05/24/04 03:28am
By: beewee
It doesn't seem to work with static pages for the main-items, but that is no problem for me. Have you ever thought of the possibility of sub-submenu items?
Like:
_Geeklog
___Plugins
______Blockmenu
Blockmenu
Posted on: 05/24/04 04:03am
By: beewee
Oops, why didn't I try IE earlier? While logging I got an MySQL error as well:
1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1. SQL in question: SELECT bm_title FROM blockmenu_main WHERE bm_onswitch=
It did not show when I was not logged in. But I'm using HTML area 2 for my static pages, so I had to use IE for this.
The error disappeared when I disabled the blockmenu.
Nor errors found with Mozilla/Firefox/Netscape, only with IE (6)
Blockmenu
Posted on: 05/24/04 08:50am
By: jannetta
Hi Beewee
It should work with static pages. That is actually what it is was written for. You have to get the link correct though. Only use the relative URL, ie something like:
staticpages/index.php?page=12345678
Have a look at my home page at http://www.jannetta.com. Almost all the menu items, including the main menu item Kids, are linked to static pages.
I have thought of sub-submenus, but because the blocks on the left (or right) have limited size, I dismissed the idea again. I basically didn't want to allow the guys at work to go crazy on sub-sub type menus and then end up having to argue the point they are destroying layouts and defeating the purpose trying to minimise the number of clicks before getting to an item.
It would also mean a rewrite, because for such a menu I would rather use a recursive structure and one database table in stead of they way I structured Blockmenu.
It might be something I'll do in future though, even if it is just for fun. I could limit the depth of the menu in the code or in a config file. However, right now I don't have the time for that.
[QUOTE BY= beewee] It doesn't seem to work with static pages for the main-items, but that is no problem for me. Have you ever thought of the possibility of sub-submenu items?
Like:
_Geeklog
___Plugins
______Blockmenu[/QUOTE]
Blockmenu
Posted on: 05/24/04 09:08am
By: jannetta
I use only Opera and IE at the moment and I still can't reproduce the error. The error however, does not have anything to the browser. The error is caused by the SQL statement that reads the menu items from the database. Where it says "WHERE bm_onswitch=" it is looking for the main menu item that is suppose to be active and for which the sub-menu item must be displayed. Because there is no value for bm_onswitch, you get an SQL syntax error, the menu can't be printed on the screen and basically the whole Geeklog will stop working. If you disable the menu, Geeklog will work again because the syntax error never occurs.
Do you perhaps have blockmenu= in one of your URLs? If you do and you don't specify a valid blockmenu you should get this error. blockmenu must have a value. It specifies the main menu item that is active and for which the sub-menu items must be displayed. You shouldn't really have to specify blockmenu in your URLs though. You can do it if you want to control the Blockmenu from a link within a page, but otherwise it shouldn't be neccessary. I'm going to build some error handling into Blockmenu to prevent this error from occuring in the next release.
I wish I could refer you to our college's new web site because there I could point you to various examples. Unfortunately the site is not available yet.
Anyway I hope some of what I have said is of some help.
[QUOTE BY= beewee] Oops, why didn't I try IE earlier? While logging I got an MySQL error as well:
1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1. SQL in question: SELECT bm_title FROM blockmenu_main WHERE bm_onswitch=
It did not show when I was not logged in. But I'm using HTML area 2 for my static pages, so I had to use IE for this.
The error disappeared when I disabled the blockmenu.
Nor errors found with Mozilla/Firefox/Netscape, only with IE (6)[/QUOTE]
Blockmenu
Posted on: 05/24/04 09:24am
By: jannetta
Hi Guys
I think I just reproduced the error! I'll be back soon with a solution!
Blockmenu
Posted on: 05/24/04 09:40am
By: jannetta
Found the error! It was all my fault, there was a bug, but I didn't notice it because, of the three options of Blockmenus that you can have it was on the two that I wasn't using on my homepage.
Plenty apologies! I'm uploading the patch now to sourceforge. You only need to download Blockmenu_1.0.3b.zip. Just extract it over the existing files. After installation the Blockmenu Admin heading should be Blockmenu version 1.0.3p2.
Blockmenu
Posted on: 05/24/04 03:01pm
By: beewee
Jannetta, how can I thank you for all this??
About the static pages: I'm using searchenginefriendly (nice word for Scrabble!) URL's like http://www.beeweb.nl/staticpages/index.php/showroom, and these don't work. But don't worry, I'll link the mainitems to a topic instead and let the corresponding static pages appear on these pages.
Blockmenu
Posted on: 05/24/04 03:39pm
By: MacDog
[QUOTE BY= jannetta] Plenty apologies! I'm uploading the patch now to sourceforge. You only need to download Blockmenu_1.0.3b.zip. Just extract it over the existing files. After installation the Blockmenu Admin heading should be Blockmenu version 1.0.3p2.
[/QUOTE]
I've like to thank you for a great plugin!
Your last release works OK for me, but I did't have the problem you last fixed. I have a question though.
Why do you keep calling the releases 1.0.3b? This is confusing when the content is really different. You should increment either the number or the letter.
I also am wondering why your not changing the value in the "plugins" table with a new release. This still reads 1.0.
Blockmenu
Posted on: 05/24/04 06:49pm
By: jannetta
MacDoc, You're right and you're right! I have not been giving attention to details because I just wanted to get the Blockmenu fixes out for those who have started to use it. This is not a good excuse though, so I'll spend some time over the next few days getting things in order and then I'll do another release with everything in place.
Beewee, at the same time I'll have a look at the search engine friendly URLs. I never thought of them, because at the college I am forced against may will to work on Windows with IIS, and if I'm not mistaken these URLs don't work on M$. Therefore, I haven't even tried them. My own stuff is on Linux though, so I can test it on that. I can't spend too much time on that at work though so I might have to do that at home at night and between two kids, the house, some more work and general stuff like that, things go a bit slow ...
I've like to thank you for a great plugin!
Your last release works OK for me, but I did't have the problem you last fixed. I have a question though.
Why do you keep calling the releases 1.0.3b? This is confusing when the content is really different. You should increment either the number or the letter.
I also am wondering why your not changing the value in the "plugins" table with a new release. This still reads 1.0.
Blockmenu
Posted on: 05/25/04 04:05pm
By: beewee
Jannetta, please don't bother, family comes first! My wife is coming home next thursday after 6 weeks in hospital, so things were going slow here as well, my (and your) kids and husband are more important than anything else.
You plug-in works fine, just don't use url-rewrite for the main-items and switch off the center block option in static pages, unless you want to see a copy of your site just below the first one...
Blockmenu
Posted on: 05/25/04 11:40pm
By: samstone
Yap, family first!
Blockmenu
Posted on: 07/21/05 07:22pm
By: Anonymous (Cajenka)
Hi! I was really glad when I found this plugin, if it works lilke I think it does it will solve a lot of my problems!
But I havent been able to test it yet since I got stuck in the installation process.
Can someone help me? I'm new to this, so it could be a really simple mistake from my side...
I get this error message:
Fatal error: Cannot redeclare com_getblocktemplate() (previously declared in c:Inetpubwwwrootlib-common.php:395) in C:Inetpubwwwrootlib-common.php on line 448
What should I do?
/Cajenka
Blockmenu
Posted on: 07/21/05 07:35pm
By: Cajenka
I just wanted to add that I downloded the 1.0.4 beta and got the result above.
Then I started fresh with the 1.0.2 which worked fine until I tried to upgrade to 1.0.4 with the upgrade file = same error message again.
Thanks for any help!
/Cajenka
Blockmenu
Posted on: 01/01/06 10:04am
By: 1000ideen
I`d also like to use this plugin but got an error when installing:
main(): open_basedir restriction in effect. File(../../../../plugins/blockmenu/config.php) is not within the allowed path(s):
I manually typed in the absolut paths in install.php wondering why it doesn`t take GL's variables?
require_once('../../../lib-common.php');
require_once('../../../../plugins/blockmenu/config.php');
Installation went o.k. with absolut paths but then the next step e.g. going to home produced another error. functions.inc was looking for the wrong path to lib-common.php although I had typed it correctly.
I tried to change that in the install file again for testing but it didn't change. I had to manually delete the plugin in the MySQL.
Blockmenu
Posted on: 08/31/06 01:02pm
By: 1000ideen
Sorry folks, but I`d like to install this plugin an I got stranded completely. I think it got an error in the installation.php which I don`t understand.
Does this plugin necessarily require the html folder to be below the system? GL does not require this. My structure is like that:
root/files/geeklog_conf/ here is the system
root/html/ here is the public stuff
GL is running fine but when I install this plugin it hangs. The error message is:
Warning: main(../../../../plugins/blockmenu/config.php) [function.main]: failed to open stream: Datei oder Verzeichnis nicht gefunden in /home/www/pr82/html/admin/plugins/blockmenu/install.php on line 32
Fatal error: main() [function.require]: Failed opening required '../../../../plugins/blockmenu/config.php' (include_path='/home/www/pr82/files/geeklog_config/system/pear/:.') in /home/www/pr82/html/admin/plugins/blockmenu/install.php on line 32
So I have the feeling that these two lines in install.php are causing the problem:
require_once('../../../lib-common.php');
require_once('../../../../plugins/blockmenu/config.php');
So I changed them to:
require_once($_CONF['path_html'].'lib-common.php');
require_once($_CONF['path'] . 'plugins/blockmenu/config.php');
The same with this line in functions.inc which seems to be problematic anyway because of the fixed "public_html":
require_once($_CONF['path'].'public_html/lib-common.php');
I changed it to
require_once($_CONF['path_html'].'lib-common.php');
After that I receive another error
Warning: main(lib-common.php) [function.main]: failed to open stream: No such file or directory in /home/www/pr82/html/admin/plugins/blockmenu/install.php on line 31
Fatal error: main() [function.require]: Failed opening required 'lib-common.php' (include_path='.') in /home/www/pr82/html/admin/plugins/blockmenu/install.php on line 31
I am pretty sure it is not me causing the problems but my understanding of it is too small to repair it.