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;
}