vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Administrative and Maintenance Tools - cpSuperMenu v1.2.1 (https://vborg.vbsupport.ru/showthread.php?t=112595)

hambil 04-09-2006 09:00 PM

cpSuperMenu v1.2.1
 

Note: This product is now being supported at www.catnine.net

Keywords: admincp, menu, order, displayorder, submenu, supermenu

Description:
Completely customize the grouping and order of display for admincp menu items - including creating your own 'Super Menus'. See the attached screen shots and it will all be clear. :)

Features:
  • Fully Phrased.
  • Create, delete and edit your own 'Super Menus'.
  • Uses the active admincp skin colors.
  • Change the order of menu items.
Install
  1. Download the cpSuperMenu_1.0.zip file.
  2. Unzip and upload the files in the upload directory to your forum root.
  3. Import the product file in your admincp.
  4. Create and Edit Super Menus as desired.
Version Info:

1.2.1
  • Added option to disable super menus
  • Added option to change super menu style (remove border, etc.)
1.2
  • Moved common code into a class
  • Now works with Expand All | Collapse All | Save Prefs | Revert Prefs
1.1
  • Fixed problems with duplicate display orders.
  • Moved large plugin to external file for easier management.
1.0
  • Original Release
Upgrade to 1.2:
  • Download the cpSuperMenu_1.2.zip file.
  • Unzip and upload ALL files in the upload directory to your forum root (note there are new files).
  • Import the product file in your admincp. making sure "Allow Overwrite" is "yes".
  • All previous Super Menus and settings should remain intact.

hambil 04-09-2006 10:10 PM

First post reserved

Mastar 04-09-2006 10:19 PM

Right Behind Yah!!

Love it!!

Is there anyway to keep the default menu open when I refresh or login?

SMO 04-09-2006 10:32 PM

this should be standard from VB...awesome job

hambil 04-09-2006 10:35 PM

Quote:

Originally Posted by Mastar
Is there anyway to keep the default menu open when I refresh or login?

It uses the same routines as the normal cb menus. You'll notice they don't stay open on a refresh either. It's an interesting idea though. I may look into it :)

ThePimp 04-09-2006 10:39 PM

Warning: Invalid argument supplied for foreach() in /admincp/cpsupermenu.php on line 459

I get this when opening "Manage Super Menus".

It shows up at the top of the page.

ThePimp 04-09-2006 10:42 PM

459: foreach($group_keys AS $group_key)

hambil 04-09-2006 10:43 PM

Quote:

Originally Posted by ThePimp
Warning: Invalid argument supplied for foreach() in /admincp/cpsupermenu.php on line 459

I get this when opening "Manage Super Menus".

It shows up at the top of the page.

Are you upgraded to vb 3.5.4?

ThePimp 04-09-2006 10:45 PM

Quote:

Originally Posted by hambil
Are you upgraded to vb 3.5.4?

Yes, vb3.5.4

hambil 04-09-2006 10:46 PM

Hmmm. Can you give me a screen shot of your admincp menu?

ThePimp 04-09-2006 10:56 PM

Screenie:

hambil 04-09-2006 10:58 PM

Quote:

Originally Posted by ThePimp
Screenie:

I should have been more specific. I want to see what hacks you have installed, so I can try them on my test board and see if I can reproduce the problem, thus perhaps uncovering the bug :)

ThePimp 04-09-2006 11:02 PM

Quote:

Originally Posted by hambil
I should have been more specific. I want to see what hacks you have installed, so I can try them on my test board and see if I can reproduce the problem, thus perhaps uncovering the bug :)

Toplist, Forumhome: Gallery Images, Profile Comment System, Friends on Profile, SR Classifieds, Userprofile Changed Date, You got Slapped!

hambil 04-09-2006 11:05 PM

Quote:

Originally Posted by ThePimp
Toplist, Forumhome: Gallery Images, Profile Comment System, Friends on Profile, SR Classifieds, Userprofile Changed Date, You got Slapped!

Thanks. I'll get to work on testing it.

RMS-Chef 04-09-2006 11:49 PM

Quote:

Originally Posted by ThePimp
Warning: Invalid argument supplied for foreach() in /xxxxxx/cpsupermenu.php on line 459

I get this as well.

I do have quite a few plugins installed but none of the ones ThePimp does.
None of my installed plugins effect the admin_index_navigation hook location but I have a few that have their own XML's for added ACP nav function as well as a couple custom ones.

EDIT:
Also, if I add a custom SuperMenu, the error is displayed twice.

RsX 04-10-2006 12:37 AM

I have that same error.

Does it affect the way supermenu works anwyays?

RsX 04-10-2006 12:43 AM

I can only use 1 custom menu...

hambil 04-10-2006 01:05 AM

Quote:

Originally Posted by RsX
I can only use 1 custom menu...

You're giving them all the same order, so they hide each other. Edit one and give it a smaller or larger number.

hambil 04-10-2006 01:43 AM

Quote:

Originally Posted by RsX
I have that same error.

Does it affect the way supermenu works anwyays?

Okay, I think I fixed it. Try getting the zip and installing again (make sure allow overwrite is checked).

My guess is it had something to do with different php versions.

RMS-Chef 04-10-2006 02:16 AM

Quote:

Originally Posted by hambil
Okay, I think I fixed it. Try getting the zip and installing again (make sure allow overwrite is checked).

My guess is it had something to do with different php versions.

Still the same. I did an overwrite as well as uninstalling then reimporting the XML from the zip.

I am running PHP v4.4.1

hambil 04-10-2006 02:29 AM

Quote:

Originally Posted by RMS-Chef
Still the same. I did an overwrite as well as uninstalling then reimporting the XML from the zip.

I am running PHP v4.4.1

Can you replace cpsupermenu.php in your admincp directory with the attached file, then click on Manage Super Menus, and send me the resulting log file (called supermenu.log)? It should be created in your forum directory.

bashy 04-10-2006 04:24 AM

Wahooo...this is what ive been after...will try it when i get home...cheers :)

bashy 04-10-2006 02:32 PM

Maybe not :( I have had a wee play but had to take it out again :(

I do have a lot of hacks installed and this just makes a compete mess of things with regards to the menus, I created a menu added the GARS and it took a load of others with it, This dont even show half the stuff that i do have in the menus....

Tis a shame mind as i need sommat like this so i can sort it all :(

Thanks anyway

hambil 04-10-2006 02:34 PM

Quote:

Originally Posted by bashy
Maybe not :( I have had a wee play but had to take it out again :(

I do have a lot of hacks installed and this just makes a compete mess of things with regards to the menus, I created a menu added the GARS and it took a load of others with it, This dont even show half the stuff that i do have in the menus....

Tis a shame mind as i need sommat like this so i can sort it all :(

Thanks anyway

The problem is that many menu items have the same order (e.g. they are all set to 10 or something). I'm working on changing the code to handle this. Check back for a 1.5 release soon.

bashy 04-10-2006 02:36 PM

Ok m8 cheers, will do....
Clicking install and waiting, thanks :)

RsX 04-10-2006 05:04 PM

That was fixed, but there are still a lot of bugs...

When you create a new menu without changing the order, it wont appear if there was a menu with that same order number before it. For example, if I create a new menu with display order 10, and the "Default" menu was already on 10, it wont appear, but it still exists.

There are also many other database errors, etc....

Ill just disable the plugin for now, I hope these problems are fixed.

Snake 04-10-2006 05:36 PM

Truly a nice hack!

Thanks! :)

eNforce 04-10-2006 08:51 PM

sorting the options is sketchy... some of them won't move into categories

vBulletin Options is in 'custom plugins' but i didn't put it there, and i can't move it cause it's not being displayed.

see attachment, vbulletin options is on the left, but not in your hack

Freeneter 04-10-2006 08:59 PM

Works for me fine!
Thanks
"click install, and give a good rating"

hambil 04-10-2006 10:22 PM

vBulletin cp menus are a mess to deal with - real byzantine. I've been slaving at it all day, and making some very good progress. I will have all the grungy details of menus with the same display order worked out soon enough. Stay tuned.

Yukino_AE 04-11-2006 05:16 AM

this is a very handy hack! ^_^ i would like it though if the menus (like the default menu) would be auto open and not have to click that arrow to drop it down. but very good. (2 thumbs up)

Mastar 04-11-2006 11:54 AM

I had one or two hacks that didn't wanna move in the new menu, what I did I opened the hack and removed the displayorder="*" in them.

I really love this hack, it should be part of vb next version, maybe with alittle more control for display order. 3 stars

hambil 04-11-2006 11:57 AM

Quote:

Originally Posted by Mastar
I had one or two hacks that didn't wanna move in the new menu, what I did I opened the hack and removed the displayorder="*" in them.

I really love this hack, it should be part of vb next version, maybe with alittle more control for display order. 3 stars

displayorder = "*"? That's a new one on me :) I'm get on that right away. Thanks.

Mastar 04-11-2006 02:45 PM

Quote:

Originally Posted by hambil
displayorder = "*"? That's a new one on me :) I'm get on that right away. Thanks.

Yeah! One of the hacks were custom links, I deleted the displayorder="60" from cpnav_custom_links that is located in the xml dir.

bashy 04-11-2006 02:51 PM

Much better thanks alot m8 :)
A deafault open sections would be a bonus if at all possible?

Mastar 04-11-2006 08:01 PM

Hey the new upgrade isn't working now,

Uninstall old and install new.

Add new menu and nothing changes.

Any Ideas!?

hambil 04-11-2006 08:16 PM

Quote:

Originally Posted by Mastar
Hey the new upgrade isn't working now,

Uninstall old and install new.

Add new menu and nothing changes.

Any Ideas!?

The plugin got moved into a seperate file in the 'plugins' directory. Make sure you have uploaded it.

obsidian 04-11-2006 09:28 PM

I just installed on 3.5.2 and it works without issue. Outstanding hack. I agree this should be built into VB. It really goes a long way towards organizing the admincp.

RsX 04-11-2006 10:49 PM

I like it.
Installed :)

Heres a tip : Add 4 links at the bottom.

Expand All | Collapse All
Save Prefs | Revert Prefs

for the super menus :)


It requires adding cookie commands, I believe.

hambil 04-12-2006 12:52 AM

Quote:

Originally Posted by RsX
I like it.
Installed :)

Heres a tip : Add 4 links at the bottom.

Expand All | Collapse All
Save Prefs | Revert Prefs

for the super menus :)


It requires adding cookie commands, I believe.

Funny you should mention that. I went one better and made it work with the ones already there ;)


All times are GMT. The time now is 03:45 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02173 seconds
  • Memory Usage 1,817KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete