Forum Support

Shape 5
March 28, 2024, 09:30:46 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: 2 questions about Logout and top-menu module position  (Read 508 times)
netrom
Jr. Member
**
Offline Offline

Posts: 19



« on: 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

Thanks and best regards, Morten
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #1 on: 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.
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
netrom
Jr. Member
**
Offline Offline

Posts: 19



« Reply #2 on: 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.
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #3 on: 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 } ?>
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.