[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
www.dhtmlgoodies.com • View topic - Menubar items not staying disabled
Page 1 of 2

Menubar items not staying disabled

PostPosted: Mon Feb 05, 2007 6:12 pm
by FickD
I have code that sets the state of sub menu items to disabled if the user is not permitted to do them on a given screen, my problem is that the first item in the sub menu won't stay disabled when a user expands out a sub menu the first item appears to be set back to regular when I intended for it to stay disabled. For example I have the following menu structure

Tools
.Administrate
..Definitions
..Roles
..Users

I set all 3 items under Administrate to disabled, but then when I mouse over Adminitrate to expand the sub menu, the Definitions menuItem changes back to regular ( it's not supposed to be active... arg!!! :x ) Could somebody please look into why this is happening.

Thanks,
Daniel

PostPosted: Mon Feb 05, 2007 6:39 pm
by Batalf

PostPosted: Mon Feb 05, 2007 8:30 pm
by FickD

PostPosted: Mon Feb 05, 2007 11:19 pm
by Batalf

PostPosted: Tue Feb 06, 2007 4:15 pm
by FickD
this fixed the menu problem, but downloading this file causes the pane splitter to fail now with the following JS error

Error: this.divExpand has no properties
Source File: http://fickd1/js/dhtml-suite-for-applications.js
Line: 10303

[RESOLVED] I had to remove the block comment you put in on a block of code starting at line 9767 and ending at 9778 removing these comment tags fixed everything!

PostPosted: Tue Feb 06, 2007 4:18 pm
by Batalf
Try to download it again now

PostPosted: Tue Feb 06, 2007 4:26 pm
by FickD
still broken

PostPosted: Tue Feb 06, 2007 4:27 pm
by FickD
same fix as above works though

PostPosted: Tue Feb 06, 2007 4:34 pm
by FickD
noticed another difference now the south pane doesn't look right in it's collapsed state, it's still showing some of the white pane below it instead of just the header bar like it used to.

Daniel

PostPosted: Tue Feb 06, 2007 4:41 pm
by Batalf
Daniel,

I had to make some changes to the layout on friday because of some copyright issues with some images which I wasn't aware of. This of course is something I apologize to both my users and to the owner of the images.

The new pane splitter is therefor a little bit different now.

btw! : The gap you experience is most likely caused by the line

this.paneSizeCollapsed = 18;

I seem to remember that it was 26 before.

The collapsing div which caused your error is no longer in use in the new pane splitter.

I may do some other changes to the pane splitter later on if you and/or other users doesn't like the new one. But as mentioned, I had to make some changes on short notice before last weekend.

To fix your problem, you should ideally download the latest zip file and replace the content of your "js", "images_dhtmlsuite" and "css_dhtmlsuite" folders.

PostPosted: Tue Feb 06, 2007 4:49 pm
by FickD
is the url on your website the current version?

PostPosted: Tue Feb 06, 2007 4:54 pm
by Batalf
yes, 1.5.1 is current version......now with the menu fix.

I just downloaded it and tried it just to be sure.

PostPosted: Tue Feb 06, 2007 5:10 pm
by FickD
even after getting all the new stuff I can't seem to get the south pane to look right in it's collapsed state ( I'm kinda cheating giving the south pane no content and just putting the copy write information for the site in the pane header and then collapsing it and removing the controls, but there still is the white space below it when it wasn't there before, gotta be a css thing somewhere to fix this that I'm missing )

Daniel

PostPosted: Tue Feb 06, 2007 5:14 pm
by Batalf
Can you post a screenshot and send me the code you use to create the south pane?

PostPosted: Tue Feb 06, 2007 5:18 pm
by Batalf