Manage section 'my account'

February 2014 Joomla Template
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
Mon Jun 22, 2015 11:30 pm
Reply with quote
Report this post
Hi there,
I purchased your template 'News2'
I would like to understand how to manage the section 'my account'
I can not see any reference in the functionality of the template, there is no module that manages the login.
I would create a welcome page, with account management but do not know how to do
Can you help me please?
User avatar
Fresh Boarder

GK User
Sun Jun 28, 2015 3:00 pm
Reply with quote
Report this post
Hi,
let me explain few facts:
1) template do not have "new" component features
2) login, profile and registration was overridden by template, but only in appearance layer not functionalities
3) if you will rename folder templates\gk_news2\html\com_users - you will get default appearance from Joomla core
4) If you want have more advance profiles I suggest to install component like EasySocial, JomSocial or similar.
User avatar
Platinum Boarder

GK User
Sun Jul 05, 2015 12:26 am
Reply with quote
Report this post
hi,
you're right, but there's a bug in your template news2:
the link 'my profile' after login aims to:
index.php / component / users /? view = login
while the correct link is:
index.php / component / users /? view = profile
User avatar
Fresh Boarder

GK User
Sun Jul 05, 2015 12:48 am
Reply with quote
Report this post
ok, but you mean bug in template settings or inside php code?
User avatar
Platinum Boarder

GK User
Sun Jul 05, 2015 12:54 am
Reply with quote
Report this post
I only say that after login, the botton 'my account' point to 'login' and not a 'profile'
there must be a problem in the construction of the link in 'layout/default.php'
I'm not a programmer, I only say what I see.
Maybe I'm wrong, I do not know.
User avatar
Fresh Boarder

GK User
Sun Jul 05, 2015 1:33 am
Reply with quote
Report this post
<?php if($this->API->get('login_url', '') != '') : ?>
<a href="<?php echo str_replace('&', '&amp;', ($userID == 0) ? $this->API->get('login_url', 'index.php?option=com_users&view=login') : str_replace('&tmpl=blankpage', '', $this->API->get('login_url', 'index.php?option=com_users&view=login'))); ?>" id="gkLogin"><?php echo ($userID == 0) ? JText::_('TPL_GK_LANG_LOGIN') : JText::_('TPL_GK_LANG_LOGOUT'); ?></a>
<?php endif; ?>


so just replace URL with yours, as you wish.
I'm not sure if there is bug inside because it is quite old template and still have this same code inside that section
User avatar
Platinum Boarder

GK User
Sun Jul 05, 2015 1:36 am
Reply with quote
Report this post
I tried to replace the same code that you sent me with this:

<?php if($this->API->get('login_url', '') != '') : ?>
<a href="<?php echo str_replace('&', '&amp;', ($userID == 0) ? $this->API->get('login_url', 'index.php?option=com_users&view=profile') : str_replace('&tmpl=blankpage', '', $this->API->get('login_url', 'index.php?option=com_users&view=profile'))); ?>" id="gkLogin"><?php echo ($userID == 0) ? JText::_('TPL_GK_LANG_LOGIN') : JText::_('TPL_GK_LANG_LOGOUT'); ?></a>
<?php endif; ?>

but nothing happens...
User avatar
Fresh Boarder

GK User
Sun Jul 05, 2015 10:09 pm
Reply with quote
Report this post
Maybe just in this place add new module position, and publish there a login module.
User avatar
Platinum Boarder

GK User
Mon Jul 06, 2015 2:31 pm
Reply with quote
Report this post
hi, thanks for your kind response.
what do I recommend I already have. It solves the problem in half
In fact, with this method, after login I go in the desired page but then if I click on the action button in the upper right corner is a link in a page 'login'
there is a way out?
User avatar
Fresh Boarder


cron