*

apibio

  • ***
  • 68 posts
Remove menu
« on: January 04, 2018, 07:40:25 PM »
How do I remove the second option of Expired Ads from the user menu

Thanks

*

MB Themes

Re: Remove menu
« Reply #1 on: January 04, 2018, 09:15:00 PM »
You must remove it in plugin's index.php
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

apibio

  • ***
  • 68 posts
Re: Remove menu
« Reply #2 on: January 04, 2018, 09:22:53 PM »
Can you please tell me which line of code to delete?

Thanks

*

MB Themes

Re: Remove menu
« Reply #3 on: January 05, 2018, 09:42:33 AM »
@apibio
Code: [Select]
// Add expired listings into user menu
function bo_mgr_expired_listings_user_menu(){
  echo '<li><a href="' . osc_route_url('bo_mgr-expired-ads') .'" >'.__('Expired listings', 'backoffice_manager').'</a></li>';
}

  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

apibio

  • ***
  • 68 posts
Re: Remove menu
« Reply #4 on: January 05, 2018, 02:08:43 PM »
How can I change the menu icon? Which file I'm looking for

Thanks

*

MB Themes

Re: Remove menu
« Reply #5 on: January 05, 2018, 03:11:53 PM »
@apibio
You must modify funciton that adds it to menu.
Take a look into instant messenger index.php how it is done.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

apibio

  • ***
  • 68 posts
Re: Remove menu
« Reply #6 on: January 05, 2018, 03:35:42 PM »
I would like to mofify and comment

*

MB Themes

Re: Remove menu
« Reply #7 on: January 05, 2018, 03:40:48 PM »
But you see icon for instant messenger is modified. Why not to use existing code and do it for what you want?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

apibio

  • ***
  • 68 posts
Re: Remove menu
« Reply #8 on: January 05, 2018, 03:44:23 PM »
I'm not good at this ... can you help me please?

*

MB Themes

Re: Remove menu
« Reply #9 on: January 05, 2018, 03:55:03 PM »
Code: [Select]
// Add expired listings into user menu
function im_user_menu_link(){
  if(osc_current_web_theme() == 'veronika') {
    echo '<li class="opt_instant_messenger"><a href="' . osc_route_url('im-threads') .'" ><i class="fa fa-envelope-o"></i> '.__('Personal Messages', 'instant_messenger').'<span class="im-user-account-count">' . im_count_unread(osc_logged_user_id()) . '</a></li>';
  } else {
    echo '<li class="opt_instant_messenger"><a href="' . osc_route_url('im-threads') .'" >'.__('Message center', 'instant_messenger').'<span class="im-user-account-count">' . im_count_unread(osc_logged_user_id()) . '</span></a></li>';
  }
}
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots