[SOLVED] Remove or Update Login Link at Top

GK User
Tue Aug 23, 2011 8:55 pm
I have JomSocial on my site, and I would like for the login | register link and the top right of the page to link to the jomSocial registration as opposed to the default Joomla registration.

Is there a way to do this? If not, how do I remove/hide the link. When I disable the module, it disappears from the remaining site pages, but it still shows up on the home page. Then when clicked, it takes you to the joomla login page instead of opening in a light box.


Thanks!
User avatar
Junior Boarder

GK User
Sun Sep 04, 2011 9:25 am
I'de be interested in a solution too
User avatar
Junior Boarder

GK User
Wed Sep 07, 2011 12:36 pm
Edit:
If you want to keep original styling and only want to change the links follow below.
Find file "templatesgk_twn2layoutsblockslogo.php" Line 42 to 52
Which is:
Code: Select all
   <?php if((GK_REGISTER || GK_LOGIN) && !GK_COM_USERS) : ?>
   <div id="gkButtons">
      <div>
         <a href="<?php echo $this->URLbase(); ?>index.php?option=com_users&view=login" id="btnLogin"><span><?php echo $btn_login_text; ?></span></a>
         
         <?php if(GK_REGISTER) : ?>
         <a href="<?php echo $this->URLbase(); ?>index.php?option=com_users&view=registration" id="btnRegister"><span><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></span></a>
         <?php endif; ?>
      </div>
   </div>
   <?php endif; ?>

Change it to :
Code: Select all
   <?php if((GK_REGISTER || GK_LOGIN) && !GK_COM_USERS) : ?>
   <div id="gkButtons">
      <div>
         <a href="<?php echo $this->URLbase(); ?>index.php?option=com_community" id="btnLogin"><span><?php echo $btn_login_text; ?></span></a>
         
         <?php if(GK_REGISTER) : ?>
         <a href="<?php echo $this->URLbase(); ?>index.php?option=com_community&view=register" id="btnRegister"><span><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></span></a>
         <?php endif; ?>
      </div>
   </div>
   <?php endif; ?>


Then disable login module from joomla admin > Extensions > Module Manager...

--------------------------------------------------------------------------------------


Here is a quick and dirty hack. See Attached images to see how this looks. Please note if you are using this any future updates will overwrite your changes.

What this does;

If user not logged in it will display Login | Register
Login redirects to jomsocial login page or frontpage with login
Register redirects to jomsocial register page.
If user already logged in both above texts will change to "Your Account | Logout"
Your Account will redirects to jomsocial profile
Logout will logout and redirect to index.php , if you website is in a subdomain this will not work.

None of these are in popup its just a normal redirection....
Links change both ways if you use SEF or NON SEF....

Make sure backup your files....

Open File:
Code: Select all
templatesgk_twn2layoutsblockslogo.php

Line 42 to 52
Which is
Code: Select all
   <?php if((GK_REGISTER || GK_LOGIN) && !GK_COM_USERS) : ?>
   <div id="gkButtons">
      <div>
         <a href="<?php echo $this->URLbase(); ?>index.php?option=com_users&view=login" id="btnLogin"><span><?php echo $btn_login_text; ?></span></a>
         
         <?php if(GK_REGISTER) : ?>
         <a href="<?php echo $this->URLbase(); ?>index.php?option=com_users&view=registration" id="btnRegister"><span><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></span></a>
         <?php endif; ?>
      </div>
   </div>
   <?php endif; ?>

Change it to
Code: Select all
   <?php if($userID == 0) : ?>
   <div id="gkTopLogin">
      <a href="<?php echo JRoute::_( 'index.php?option=com_community' ); ?>"><?php echo JText::_('TPL_GK_LANG_LOGIN'); ?></a> |
      <?php if(GK_REGISTER) : ?>
         <a href="<?php echo JRoute::_( 'index.php?option=com_community&view=register' ); ?>"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></a>
      <?php endif; ?>
   </div>
   <?php else:?>
   <div id="gkTopLogin">
      <a href="<?php echo JRoute::_( 'index.php?option=com_community&view=profile' ); ?>"><?php echo JText::_('TPL_GK_LANG_YOURACCOUNT'); ?></a> |
      <a href="index.php?option=com_users&task=user.logout&<?php echo JUtility::getToken(); ?>=1&return=Lw"><?php echo JText::_('TPL_GK_LANG_LOGOUT'); ?></a>   
   </div>
   <?php endif; ?>

Open File:
Code: Select all
languageen-GBen-GB.tpl_gk_twn2.ini

Change :
Code: Select all
TPL_GK_LANG_LOGOUT="Your account"

Change it to and add extra
Code: Select all
TPL_GK_LANG_LOGOUT="Logout"
TPL_GK_LANG_YOURACCOUNT="Your account"

open file
Code: Select all
templatesgk_twn2cssoverride.css

add below
Code: Select all
#gkTopLogin {
    float:right;
    margin-right: 10px;
    margin-top: 30px;
}
#gkTopLogin a {
    color: #444444;
    padding: 5px 10px 5px 10px;
    display: inline;
    font-size: 16px;
    font-family: BebasNeue,Arial,sans-serif;
    text-transform: uppercase;
}
User avatar
Platinum Boarder

GK User
Wed Sep 07, 2011 11:51 pm
Followed the above and it achieves what I wanted. Registering thru JomSocial

Login and Register links are now on the left side of template as seen here
http://www.junkmail.com.au/
appears to be a css issue

but I get 50 dodgy attempts at registration everyday with default joomla register link so this will make my day much better.

THANK YOU!
User avatar
Junior Boarder

GK User
Thu Sep 08, 2011 12:35 am
I believe you havent enabled override.css option in admin panel> template manager> TWN2> Advanced > "CSS override" turn it on so it can take the styling for Login and Logout etc...

If you havent added CSS classes in override.css disregard above message... Good Luck...







Edited for correct Admin panel navigation :D
User avatar
Platinum Boarder

GK User
Thu Sep 08, 2011 4:07 am
I can only see "Positions style override" in features section

I did add css above to Override.css file

I can't see in template manager for the template where you enable override.css


thanks in advance
User avatar
Junior Boarder

GK User
Thu Sep 08, 2011 6:03 am
admin panel> template manager> TWN2> Advanced settings > Override CSS
User avatar
Junior Boarder

GK User
Thu Sep 08, 2011 8:51 pm
not sure how I didn't see it but have fixed it now and LOGIN/REGISTER positioned exactly right



thanks for the help with this awesome template
User avatar
Junior Boarder

GK User
Mon Sep 26, 2011 10:45 pm
normanUK wrote:Here is a quick and dirty hack. See Attached images to see how this looks. Please note if you are using this any future updates will overwrite your changes.

What this does;

If user not logged in it will display Login | Register
Login redirects to jomsocial login page or frontpage with login
Register redirects to jomsocial register page.
If user already logged in both above texts will change to "Your Account | Logout"
Your Account will redirects to jomsocial profile
Logout will logout and redirect to index.php , if you website is in a subdomain this will not work.

None of these are in popup its just a normal redirection....
Links change both ways if you use SEF or NON SEF....

Make sure backup your files....

Open File:
Code: Select all
templatesgk_twn2layoutsblockslogo.php

Line 42 to 52
Which is
Code: Select all
   <?php if((GK_REGISTER || GK_LOGIN) && !GK_COM_USERS) : ?>
   <div id="gkButtons">
      <div>
         <a href="<?php echo $this->URLbase(); ?>index.php?option=com_users&view=login" id="btnLogin"><span><?php echo $btn_login_text; ?></span></a>
         
         <?php if(GK_REGISTER) : ?>
         <a href="<?php echo $this->URLbase(); ?>index.php?option=com_users&view=registration" id="btnRegister"><span><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></span></a>
         <?php endif; ?>
      </div>
   </div>
   <?php endif; ?>

Change it to
Code: Select all
   <?php if($userID == 0) : ?>
   <div id="gkTopLogin">
      <a href="<?php echo JRoute::_( 'index.php?option=com_community' ); ?>"><?php echo JText::_('TPL_GK_LANG_LOGIN'); ?></a> |
      <?php if(GK_REGISTER) : ?>
         <a href="<?php echo JRoute::_( 'index.php?option=com_community&view=register' ); ?>"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></a>
      <?php endif; ?>
   </div>
   <?php else:?>
   <div id="gkTopLogin">
      <a href="<?php echo JRoute::_( 'index.php?option=com_community&view=profile' ); ?>"><?php echo JText::_('TPL_GK_LANG_YOURACCOUNT'); ?></a> |
      <a href="index.php?option=com_users&task=user.logout&<?php echo JUtility::getToken(); ?>=1&return=Lw"><?php echo JText::_('TPL_GK_LANG_LOGOUT'); ?></a>   
   </div>
   <?php endif; ?>

Open File:
Code: Select all
languageen-GBen-GB.tpl_gk_twn2.ini

Change :
Code: Select all
TPL_GK_LANG_LOGOUT="Your account"

Change it to and add extra
Code: Select all
TPL_GK_LANG_LOGOUT="Logout"
TPL_GK_LANG_YOURACCOUNT="Your account"

open file
Code: Select all
templatesgk_twn2cssoverride.css

add below
Code: Select all
#gkTopLogin {
    float:right;
    margin-right: 10px;
    margin-top: 30px;
}
#gkTopLogin a {
    color: #444444;
    padding: 5px 10px 5px 10px;
    display: inline;
    font-size: 16px;
    font-family: BebasNeue,Arial,sans-serif;
    text-transform: uppercase;
}


normanUK thank you for great help you provide. Question for you, is there way to css style these buttons little bit LOGIN | REGISTER instead of having them plain like this.

This would be appreciate it.
Thanks!
User avatar
Junior Boarder

GK User
Mon Oct 17, 2011 7:35 pm
I figured it out. Plain, but working.
User avatar
Fresh Boarder

GK User
Tue Oct 18, 2011 7:14 pm
If you want to keep original styling read my edited post...

You can add background to any added css in override... See attached images examples are using bottom menu styling...

We have 2 css class
#gkTopLogin - is whole box including login | Register so it will look like image 1
#gkTopLogin a - is link buttons which is Login and Register so it will look like image 2

For example making it look like bottom menu...
Code: Select all
#gkTopLogin {
    float:right;
    margin-right: 10px;
    margin-top: 10px;
/* Background styling from bottommenu */
    background-attachment: scroll;
    background-clip: border-box;
    background-color: #FAFAFA;
    background-image: url("../images/breadcrumbs_bg.png");
    background-origin: padding-box;
    background-position: left bottom;
    background-repeat: repeat-x;
    background-size: auto auto;
    border-bottom-color: #C3C3C3;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
#gkTopLogin a {
    color: #444444;
    padding: 5px 10px 5px 10px;
    display: inline;
    font-size: 16px;
    font-family: BebasNeue,Arial,sans-serif;
    text-transform: uppercase;
}

or only words background
Code: Select all
#gkTopLogin {
    float:right;
    margin-right: 10px;
    margin-top: 10px;
}
#gkTopLogin a {
    color: #444444;
    padding: 5px 10px 5px 10px;
    display: inline;
    font-size: 16px;
    font-family: BebasNeue,Arial,sans-serif;
    text-transform: uppercase;
/* Background styling from bottommenu */
    background-attachment: scroll;
    background-clip: border-box;
    background-color: #FAFAFA;
    background-image: url("../images/breadcrumbs_bg.png");
    background-origin: padding-box;
    background-position: left bottom;
    background-repeat: repeat-x;
    background-size: auto auto;
    border-bottom-color: #C3C3C3;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
User avatar
Platinum Boarder

GK User
Tue Oct 18, 2011 7:44 pm
OH SWEET, I totally didn't even think about the override. Cool thanx alot.
User avatar
Fresh Boarder

GK User
Tue Oct 18, 2011 7:53 pm
If you want to keep original look and style check my edited post which is 3rd post from top...
User avatar
Platinum Boarder

GK User
Sun Oct 23, 2011 6:01 pm
Hi NomanUK

could you kindly give a hand with the 2 options for linking to
jomsocial in twn2 BUT for joomla 1.5

The files you mention dont exist in the 1.5 template, and I would
very much like to do this in my 1.5 installation.

The 2 options i`m after is

post 3 from the top (Remove or Update Login Link at Top)

and quick and dirty hack

Best regards
User avatar
Expert Boarder

GK User
Tue Oct 25, 2011 8:32 am
bump
User avatar
Expert Boarder

GK User
Tue Oct 25, 2011 5:20 pm
JOOMLA 1.5 VERSION EDITS

1 - Disable Login Module from Joomla Module Manager
2 - Enable CSS override in joomla Administrator > Template Manager > gk_twn2 > Dev Mode > Use override.css ON

3 - Editing PHP File
Find File: "templatesgk_twn2layoutsblockstop.php"
Find Lines: 28 to 35
Which is:
Code: Select all
<?php if(GK_REGISTER || GK_LOGIN) : ?>
<div id="gk-buttons">
    <div>
   <?php if(GK_LOGIN) : ?>
   <a href="<?php echo $this->baseurl(); ?>index.php?option=com_user&view=login" id="btn_login"><span><?php echo $btn_login_text; ?></span></a><?php endif; ?><?php if($userID == 0) : ?><a href="<?php echo $this->baseurl(); ?>index.php?option=com_user&view=register" id="btn_register"><span><?php echo JText::_('GK_REGISTER'); ?></span></a><?php endif; ?>
    </div>
</div>
<?php endif; ?>

If you want to use Original Button Styling Replace with below
Code: Select all
<div id="gk-buttons">
   <?php if($userID == 0) : ?>
    <div>
      <a href="<?php echo JRoute::_('index.php?option=com_community'); ?>" id="btn_login"><span><?php echo JText::_('GK_LOGIN'); ?></span></a>
      <?php if ($usersConfig->get('allowUserRegistration')) : ?>
         <a href="<?php echo JRoute::_('index.php?option=com_community&view=register'); ?>" id="btn_register"><span><?php echo JText::_('GK_REGISTER'); ?></span></a>
      <?php endif; ?>
    </div>
   <?php else:?>
    <div>
      <a href="<?php echo JRoute::_('index.php?option=com_community&view=profile'); ?>" id="btn_login"><span><?php echo JText::_('GK_ACCOUNT'); ?></span></a>
      <a href="<?php echo JRoute::_('index.php?option=com_user&return=Lw&task=logout' ); ?>" id="btn_register"><span><?php echo JText::_('COM_COMMUNITY_LOGOUT'); ?></span></a>   
    </div>
   <?php endif; ?>
</div>


If you want to use normal text only replace with below

Code: Select all
<?php if($userID == 0) : ?>
<div id="gkTopLogin">
   <a href="<?php echo JRoute::_('index.php?option=com_community'); ?>"><?php echo JText::_('GK_LOGIN'); ?></a> |
   <?php if ($usersConfig->get('allowUserRegistration')) : ?>
      <a href="<?php echo JRoute::_('index.php?option=com_community&view=register'); ?>"><?php echo JText::_('GK_REGISTER'); ?></a>
   <?php endif; ?>
</div>
<?php else:?>
<div id="gkTopLogin">
   <a href="<?php echo JRoute::_('index.php?option=com_community&view=profile'); ?>"><?php echo JText::_('GK_ACCOUNT'); ?></a> |
   <a href="<?php echo JRoute::_('index.php?option=com_user&return=Lw&task=logout' ); ?>"><?php echo JText::_('COM_COMMUNITY_LOGOUT'); ?></a>   
</div>
<?php endif; ?>


Edit File : "templatesgk_twn2cssoverride.css"
Add below css code for text version look
Code: Select all
#gkTopLogin {
    float:right;
    margin-right: 10px;
    margin-top: 10px;
}
#gkTopLogin a {
    color: #444444;
    padding: 5px 10px 5px 10px;
    display: inline;
    font-size: 16px;
    font-family: BebasNeue,Arial,sans-serif;
    text-transform: uppercase;
}


Note: in logout link which is "index.php?option=com_user&return=Lw&task=logout" Lw actually points to root of your domain.
If your website is in subdomain e.g www.mywebsite.com/joomlasite ( i am using /joomlasite as my example subdomain)
Then goto below link
Code: Select all
http://www.motobit.com/util/base64-decoder-encoder.asp

In second box i enter /joomlasite and click convert the source data
In top box i get L2pvb21sYXNpdGU=
so my logout link would be "index.php?option=com_user&return=L2pvb21sYXNpdGU=&task=logout"
So for those who have their website in subdomain change your logout link as above example.
User avatar
Platinum Boarder

GK User
Wed Oct 26, 2011 6:09 am
Hi NomanUK

I`we used your code for "Original Button Styling" and disabled the login module

BUT

when running the site, it only shows a white page with the text LOGIN.

This happens on all page calls.

If you need backend access (site has eXtplorer installed also) let me know where to send the login information, if you want to have a look for yourself.

Best regards
121261
User avatar
Expert Boarder

GK User
Wed Oct 26, 2011 6:14 am
sure send me the info and i ll have a look
normanuk at live.co.uk
User avatar
Platinum Boarder

GK User
Wed Oct 26, 2011 6:23 am
Have send information

Best regards
121261
User avatar
Expert Boarder

GK User
Wed Oct 26, 2011 6:41 am
Done...
User avatar
Platinum Boarder

GK User
Wed Oct 26, 2011 6:43 am
Your`re the best

THANKS
User avatar
Expert Boarder

GK User
Fri Oct 28, 2011 6:00 pm
Hi,

can anybody help me. I have to change the register-link (see attachment). I don´t know where I can find the file to change the link. I would like to replace it with a link to the Joomsocial-register-form.


register_link.jpg



I use joomla 1.5.

best regards,
jbfp
User avatar
Junior Boarder

GK User
Sat Oct 29, 2011 5:53 am
- Joomla 1.5 -
Find File: "templatesgk_twn2htmlmod_logindefault.php"
Find Line: 151
Which is:
Code: Select all
               <li> <a href="<?php echo JRoute::_( 'index.php?option=com_user&view=register' ); ?>"> <?php echo JText::_('REGISTER'); ?></a> </li>

Replace the line with below
Code: Select all
               <li> <a href="<?php echo JRoute::_( 'index.php?option=com_community&view=register' ); ?>"> <?php echo JText::_('REGISTER'); ?></a> </li>
User avatar
Platinum Boarder

GK User
Sat Oct 29, 2011 10:26 am
Thank you very much, norman!
User avatar
Junior Boarder

GK User
Tue Nov 08, 2011 4:17 pm
Something happened along the way, My login and Register buttons were working, not they are not.

If you hover over login or Register, you get the root directory, if you view the page code, you can see the community link plain as day. But its not linking to the page.

http://mytemporarywebsite.com/iftsgen2/
User avatar
Fresh Boarder

GK User
Tue Nov 08, 2011 5:53 pm
Any link to your site , also did you disable login module...
User avatar
Platinum Boarder

GK User
Tue Nov 08, 2011 6:03 pm
http://mytemporarywebsite.com/iftsgen2 is the link to the site, and yes, I disabled Login module.

Its strange, when I inpect element, I see the link /iftsgen2/component/community but when I hover over LOGIN, I only see http://mytemporarywebsite.com/iftsgen2/ and when I click it, it only refreshes page.
User avatar
Fresh Boarder

GK User
Wed Nov 09, 2011 8:48 am
Your logo link is overlapping on top of login/register buttons.

Change your css as follows
Find File: "/iftsgen2/templates/gk_twn2/css/template.css"
Find Line: 33
Which is
Code: Select all
h1#gkLogo {
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    position: relative;
    top: 44px;
}

Change it to
Code: Select all
h1#gkLogo {
    margin-bottom: 0;
    margin-left: 145px;
    margin-right: 140px;
    margin-top: 0;
    position: relative;
    top: 44px;
}
User avatar
Platinum Boarder

GK User
Mon Nov 14, 2011 9:09 pm
It appears to have done it. Thanx again.
User avatar
Fresh Boarder

GK User
Wed Nov 16, 2011 12:28 pm
No problem at all...
User avatar
Platinum Boarder

GK User
Mon Nov 28, 2011 2:34 pm
Hi NormanUK

I use your JOOMLA 1.5 VERSION EDITS

BUT in IE I get an script error all the time:

gk.script.js, linje 93 tegn 6
popup_overlay.setStyle('display', 'block');

something like : value of setstyle cant be set

Can you help !

regards
bison
User avatar
Expert Boarder

GK User
Thu Feb 16, 2012 9:42 pm
Is there a Joomla 2.5 solution yet for Norman's hack?

Thanks.
User avatar
Senior Boarder

GK User
Fri Feb 17, 2012 8:48 am
For joomla 2.5
Find File: \templates\gk_twn2\layouts\blocks\logo.php
Find Lines: 46 to 57 which is below
Code: Select all
   <?php if((GK_REGISTER || GK_LOGIN) && !GK_COM_USERS) : ?>
   <div id="gkButtons">
      <div>
            <?php if(GK_LOGIN) : ?>
         <a href="<?php echo $this->URLbase(); ?>index.php?option=com_users&amp;view=login" id="btnLogin"><span><?php echo $btn_login_text; ?></span></a>
         <?php endif; ?>
         <?php if(GK_REGISTER) : ?>
         <a href="<?php echo $this->URLbase(); ?>index.php?option=com_users&amp;view=registration" id="btnRegister"><span><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></span></a>
         <?php endif; ?>
      </div>
   </div>
   <?php endif; ?>

Replace with below
Code: Select all
   <?php if((GK_REGISTER || GK_LOGIN) && !GK_COM_USERS) : ?>
   <div id="gkButtons">
      <div>
    <?php if(GK_LOGIN) : ?>
      <a href="<?php echo JRoute::_( 'index.php?option=com_community' ); ?>" id="btnLogin"><span><?php echo $btn_login_text; ?></span></a>
    <?php endif; ?>
    <?php if(GK_REGISTER) : ?>
      <a href="<?php echo JRoute::_( 'index.php?option=com_community&amp;view=register' ); ?>" id="btnRegister"><span><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></span></a>
    <?php endif; ?>
      </div>
   </div>
   <?php endif; ?>

Find File: \templates\gk_twn2\js\gk.scripts.js
Delete Lines: 38 to 96 Do not delete line 97 , we are just removing login and register popup functions as we are not using it anymore as well as to prevent IE7 users having problems.
From:
Code: Select all
delete from 38 -    // login popup
up to line 96 -    }
dont delete line 97 -    // nsp header suffix improvement ;)


To 121261: Please try last edit removing script popup effect as we are not using it.

Thats it. See you around...
User avatar
Platinum Boarder

GK User
Fri Feb 17, 2012 4:35 pm
Norman, tried it for Joomla 2.5 and it didn't work for me. Your Account remained there and clicking it essentially just refreshed the page. I'm very much looking for the Login | Register and Logout | Your Account modification you mentioned below.

Thanks.
User avatar
Senior Boarder

GK User
Fri Feb 17, 2012 4:48 pm
Use below code as the replacement code.
Code: Select all
    <?php if($userID == 0) : ?>
    <div id="gkTopLogin">
        <a href="<?php echo JRoute::_( 'index.php?option=com_community' ); ?>"><?php echo JText::_('TPL_GK_LANG_LOGIN'); ?></a> |
      <?php if(GK_REGISTER) : ?>
        <a href="<?php echo JRoute::_( 'index.php?option=com_community&view=register' ); ?>"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></a>
    <?php endif; ?>
    </div>
    <?php else:?>
    <div id="gkTopLogin">
      <a href="<?php echo JRoute::_( 'index.php?option=com_community&view=profile' ); ?>"><?php echo JText::_('TPL_GK_LANG_YOURACCOUNT'); ?></a> |
        <a href="index.php?option=com_users&task=user.logout&<?php echo JUtility::getToken(); ?>=1&return=Lw"><?php echo JText::_('TPL_GK_LANG_LOGOUT'); ?></a>   
    </div>
    <?php endif; ?>

Also Add following css in override.css
Code: Select all
#gkTopLogin { float:right; margin-right: 10px; margin-top: 30px; }
#gkTopLogin a { color: #444444; padding: 5px 10px 5px 10px; display: inline; font-size: 16px; font-family: BebasNeue,Arial,sans-serif; text-transform: uppercase; }

And make sure following strings are in language/en-GB/en-GB.tpl_gk_twn2.ini
Code: Select all
TPL_GK_LANG_LOGOUT="Logout"
TPL_GK_LANG_YOURACCOUNT="Your account"


See you around...
User avatar
Platinum Boarder

GK User
Fri Feb 17, 2012 5:14 pm
Almost got it. Login | Register is fine. For Logout | Your Account, I am seeing TPL_GK_LANG_YOURACCOUNT | Your Account, but Your Account logs me out.

I made my site available at http://www.teacherresourecemanual.com so you can see it.

user: test
pass: test

Thanks.
User avatar
Senior Boarder

GK User
Fri Feb 17, 2012 5:57 pm
Have you done the last step which including those language strings.
If you open file : languages/en-GB/en-GB.tpl_gk_twn2.ini and find following lines 4 and 5
Code: Select all
TPL_GK_LANG_LOGIN="Login"
TPL_GK_LANG_LOGOUT="Your account"


Change them so it looks same as below.
Code: Select all
TPL_GK_LANG_LOGIN="Login"
TPL_GK_LANG_LOGOUT="Logout"
TPL_GK_LANG_YOURACCOUNT="Your account"


See you around...
User avatar
Platinum Boarder

GK User
Fri Feb 17, 2012 6:04 pm
Thought I did :)

Looks good now. How might I reduce the width of the logo hover click to go 'Home'? It is too easy to click this than the login, register, etc.

Thank you very much!
User avatar
Senior Boarder

GK User
Fri Feb 17, 2012 6:11 pm
I cannot access your website can you check the link please. Thank you.

See you around...
User avatar
Platinum Boarder

GK User
Fri Feb 17, 2012 6:15 pm
normanUK wrote:I cannot access your website can you check the link please. Thank you.

See you around...


http://www.teacherresourcemanual.com
user: test
pass: test
User avatar
Senior Boarder


cron