Use Gavick login module position for other login module?

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 Aug 25, 2014 9:57 am
Reply with quote
Report this post
Hello,

I currently use SCLogin module for my site and I'd like to ask how to use login module position for it instead of your default login feature.
When I assign it to login position, it shows nothing.
link: http://jreplay.com

Thanks,
Giang Anh
User avatar
Expert Boarder

GK User
Tue Aug 26, 2014 4:38 pm
Reply with quote
Report this post
Hello,

Please make sure that the module is assigned to all pages - the login module position is a normal module position so it should display any module.
User avatar
Administrator

GK User
Tue Aug 26, 2014 6:58 pm
Reply with quote
Report this post
Hi,

Sure: http://goo.gl/R252BU

Thanks,
Giang Anh
User avatar
Expert Boarder

GK User
Tue Aug 26, 2014 11:13 pm
Reply with quote
Report this post
That's really weird - could you send me your back-end and FTP access using the PM message?
User avatar
Administrator

GK User
Wed Aug 27, 2014 4:34 am
Reply with quote
Report this post
Sent :)
User avatar
Expert Boarder

GK User
Wed Aug 27, 2014 9:19 pm
Reply with quote
Report this post
Ok, I've found a reason of your problems - the login URL option under the features settings is blank - please change it to some URL, then the button and popup will appear.

Or you can change line:

Code: Select all
<?php if($this->API->get('login_url', '') != '') : ?>


to:

Code: Select all
<?php if($this->API->get('login_url', '') == '') : ?>


in the layouts/default.php file.
User avatar
Administrator

GK User
Thu Aug 28, 2014 4:36 am
Reply with quote
Report this post
It shows Check your account text and when I click to that text, it appears a popup showing my module like this:
http://goo.gl/qPzVSb
What I expect is: my module ( button account) show in that position. Is this possible?

Thanks,
Giang Anh
User avatar
Expert Boarder

GK User
Thu Aug 28, 2014 3:58 pm
Reply with quote
Report this post
Please check it now - I've modified the layouts/default.php file and the css/template.css file.
User avatar
Administrator

GK User
Fri Aug 29, 2014 4:31 am
Reply with quote
Report this post
I follow your document and added a new module position. Now it works.
Thank you.
User avatar
Expert Boarder

GK User
Sat Sep 06, 2014 8:46 am
Reply with quote
Report this post
I upgrade the template and all code in override.css was gone!
Could you please tell me to add this again. I add new module position to the files but it doesn't work. For default.php I added this code
Code: Select all
<?php if($this->API->modules('usermenu')) : ?>
            <div class="userstyle">
            <jdoc:include type="modules" name="usermenu"
            style="<?php echo $this->module_styles['usermenu']; ?>" />
            </div>
         <?php endif; ?>

Below this code:
Code: Select all
 <?php if($this->API->get('login_url', '') != '') : ?>
             <a href="<?php echo $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; ?>


Thanks,
Giang Anh
User avatar
Expert Boarder

GK User
Mon Sep 08, 2014 9:36 am
Reply with quote
Report this post
Please ask your hosting for the files backup - it will be the fastest way to reproduce the old changes.
User avatar
Administrator

GK User
Mon Sep 08, 2014 10:40 am
Reply with quote
Report this post
Hi,

I'm using my own server. Could you please advise how to use gavick login module position for other modules one more time?
User avatar
Expert Boarder

GK User
Mon Sep 08, 2014 10:41 am
Reply with quote
Report this post
I'm using my own server.


Is it means that you have no backup on your hosting?
User avatar
Administrator

GK User
Mon Sep 08, 2014 11:11 am
Reply with quote
Report this post
Yes, my mistake. Your documentation said that this file won't be overridden.
I have to do whole again from yesterday to today for this...
User avatar
Expert Boarder

GK User
Tue Sep 09, 2014 10:24 am
Reply with quote
Report this post
Please publish the module on the login module position - I've added the login module position instead of the login link. And please make a backup before updating the template.
User avatar
Administrator

GK User
Fri Sep 12, 2014 5:42 am
Reply with quote
Report this post
It works! Thank you
User avatar
Expert Boarder


cron