Shape 5

Joomla Templates => Velocity - Club => : netrom December 25, 2013, 11:04:05 AM



: 2 questions about Logout and top-menu module position
: netrom December 25, 2013, 11:04:05 AM
Hi,

I have installed Velocity and have costumized it a bit. In this proces I have run into two issues:

1: When in mobile view, the logout icon does not seem to work. I can login and I can register using the two icons at the top of the mobile view. Th icons link to the pages that I input in the template settings. I left the text fields empty so that the links will not show on large devices - only mobile. But, when logged in and tabbing the logout icon (in mobile view) i get to an error page. I cant find anywhere to set the logout link, so I am pretty lost here. How do I configure this logout icon to go to the correct logout destination? (I am using Jomsocial)

2:  I wish to put som buttons in the top-menu module position, that will only show on mobile. I can place the buttons - no problem - but the hide-all class will not work on this position. Will it be possible to use the hide-all in this position?

Url: www.publizd.com (http://Url: www.publizd.com)

Thanks and best regards, Morten


: Re: 2 questions about Logout and top-menu module position
: mikek December 26, 2013, 09:01:33 AM
Hello,

1. There is no logout link, it simply changes between login and logut based on the status of the user. It points to the same url though. When the user is logged in on mobile they will be directed to same page, but whatever page you link to should show a logout button.

2. That would require programming to do this, we don't provide those services. I would suggest specific id's or classes on the buttons and then simply add your own media queries in the s5_responsive.css for those buttons. By default the buttons would be display:none and then set them to display:block at a specific screen width in that file.


: Re: 2 questions about Logout and top-menu module position
: netrom December 26, 2013, 12:52:19 PM
Thanks for your reply.

For ad 2 I have solved it via the custom.css

For ad 1, the problem is that the icon links to the login page when not logged in (in mobile view). This url is specified in the template settings under optional login url. BUT when logged in the url wont work. So even if I put a log out button, the icon still shows and send the user to a page, that wont work, when logged in. This is of course not okay. So if I cant set the logout url in the template settings I need to at least be able to remove the icon for the logged in users.


: Re: 2 questions about Logout and top-menu module position
: mikek December 26, 2013, 01:53:43 PM
Hello,

It's supposed to still show the icon, and link to the same url as it would when you're logged out. The default Joomla login page will have a logout button shown on the page when the user reaches it if they're logged in. The page is dynamic an changes its content based on whether or not the user is logged in or not. That's how the default Joomla login functionality works, and how any other login page should perform as well.

If you want to hide it when logged in you could do something like the following in the index.php file of the template:

<?php if ($s5_user_id) {  ?>
#s5_login {
display:none !important;
}
<?php } ?>