Raised This Month: $ Target: $400
 0% 

menu_create and outside ids?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
sake
Senior Member
Join Date: Jul 2011
Old 10-30-2011 , 04:55   menu_create and outside ids?
Reply With Quote #1

Hello there,

PHP Code:
            new menu,keys;
            
get_user_menu(id,menu,keys);
            
//only show the menu if no other is being displayed
            
if(menu == 0)
            {
                
menu_display(id,g_menu_main,0);
            }
            else
            {
                
//No menu is being displayed
            

The above code works as long as I don't want to check if menu is a menu I created in my plugin. So I was wondering how I could get the outside ID of a menu created via menu_create (new Menu system). In the old system one could use register_menuid for that but whats the pendant for this in the new system?

sake
__________________
sake is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode