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!
You are not logged in. Please login or register.
Hi!
Is there a way to disable/delete the login- and register-urls in the main-menu?
THX!
Hi siren386,
Yes follow these steps
admin/index.php?id=themes&action=edit_chunk&filename=header edit
@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!
Hi All.
Is there any way to verify if user is logged first call a URL (..
I want to hide the account information for unregistered visitors (anonymous)...
Thanks
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.
@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'); }
Thanks wormsunited!
I start to work.. :-)
@s3rg10_trrnt,
Glad i could help you