Topic: Disable Login and Register in menu?

Hi!

Is there a way to disable/delete the login- and register-urls in the main-menu?

THX!

Re: Disable Login and Register in menu?

Hi siren386,

Yes follow these steps

admin/index.php?id=themes&action=edit_chunk&filename=header edit


  
    
    
    
    
    <?php echo Site::name() . ' - ' . Site::title(); ?>
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
  
  
  
http://e-getcode.eu/

egetcode's Website

Re: Disable Login and Register in menu?

@siren386,

You can do so by doing this:

1st - Go to your location at: yourdomain.com/plugins/box/users/views/frontend/index.view.php and open that file (index.view.php).
2nd - Place this code inside and delete all the other contents on your file:

Disabled forever as php search for location at ../ => (mainpage).

That's it, you may also use this to fill up all the others like you did here, in that folder if you want to disable more options for your frontend users!

wink

http://monstracreative.com - themes, plugins and snippets for monstra cms

:: ATTENTION ::
Need help? Login at your account at: http://monstracreative.com/users/login. -> You have a excellent support center at our website! wink

wormsunited's Website

Re: Disable Login and Register in menu?

Hi All.
Is there any way to verify if user is logged first call a URL (../users/1)?

I want to hide the account information for unregistered visitors (anonymous)...

Thanks

Re: Disable Login and Register in menu?

Yes there is! You can use php functions to make your own statistics and call up that informations

now this deppends in how much you do understand about PHP. Monstra by default does not have that ' Traking ' system and does not Log's users activity yet.

wink

http://monstracreative.com - themes, plugins and snippets for monstra cms

:: ATTENTION ::
Need help? Login at your account at: http://monstracreative.com/users/login. -> You have a excellent support center at our website! wink

wormsunited's Website

6 2015-04-11 15:10:33

Re: Disable Login and Register in menu?

@s3rg10_trrnt,

You can also give or remove them previleges by placing this code:

if (Session::exists('user_role') && in_array(Session::get('user_role'), array('admin'))) { 
      // Only admin 
     Chunk::get('first-level');
     //  Custom admin
    if(Session::get('user_login') == 'michael'){
        Chunk::get('admin');
    }
}else if  (Session::exists('user_role') && in_array(Session::get('user_role'), array('admin','editor')))  {
      // Only admin and editors
     Chunk::get('second-level');
     //  Custom editor
    if(Session::get('user_login') == 'michael'){
       Chunk::get('editor');
    }
}else if (Session::exists('user_role') && in_array(Session::get('user_role'), array('admin','user'))) { 
      // Only admin and users
     Chunk::get('third-level');
     //  Custom user
    if(Session::get('user_login') == 'michael'){
       Chunk::get('user');
    }
}else{
      // all Unregistered users 
       Chunk::get('normal'); 
}
http://monstracreative.com - themes, plugins and snippets for monstra cms

:: ATTENTION ::
Need help? Login at your account at: http://monstracreative.com/users/login. -> You have a excellent support center at our website! wink

wormsunited's Website

Re: Disable Login and Register in menu?

Thanks wormsunited!
I start to work.. :-)

Re: Disable Login and Register in menu?

@s3rg10_trrnt,

Glad i could help you wink

http://monstracreative.com - themes, plugins and snippets for monstra cms

:: ATTENTION ::
Need help? Login at your account at: http://monstracreative.com/users/login. -> You have a excellent support center at our website! wink

wormsunited's Website