Login module and template layout

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sat Jan 11, 2014 11:51 pm
Reply with quote
Report this post
the login button at the upper right of the template displays "login" but after a user logs in its still says "login".. I need it to change to "logout" after a user logs in.

And my second question is how can i make the template not responsive meaning fixed EVERYTHING .... i know you can disable this in the template manager but when looked on a mobile device EVERYTHING is all over the screen... I just want it to display just as a desktop layout...
User avatar
Junior Boarder

teitbite
Sun Jan 12, 2014 7:34 pm
Reply with quote
Report this post
Hi

About disabling responsive I think You need to remove mobile.css and table.css so it will not interfere with template.

Login in this template is provided as a menu option so please simply create a second menu option with a Logout option and loggour url and set it to show only for registered.
User avatar
Moderator

GK User
Mon Jan 13, 2014 4:09 am
Reply with quote
Report this post
removing the two css gives the same layout as if i just disable the responsive option in template manager .. as for the logout menu button thats how i have been doing it but the problem is after the user logs in the logout appears but the login stays the same.. so now i have both menu buttons showing...
User avatar
Junior Boarder

teitbite
Wed Jan 15, 2014 5:44 am
Reply with quote
Report this post
Hi

About responsive. Please also edit file /layout/default.php, find line:

Code: Select all
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2.0">


and replace it with:

Code: Select all
    <meta name="viewport" content="width=1000px">


To hide the login button after login add this script to /layout/default.php

Code: Select all
<?php if( $userID ): ?>
<style type="text/css">
.item-571 { display:none; }
</style>
<?php endif; ?>


right before the </head> tag.
User avatar
Moderator


cron