"LOG IN" menu button - redirect to another page

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
Fri Jul 04, 2014 12:13 am
Reply with quote
Report this post
Hi,
is there any possibility to use "LOG IN" button, as a link to another page at specified URL (btw. login page, but of another website)?

My web: www.cfp.com.pl

Regards,
maciek
User avatar
Fresh Boarder

GK User
Fri Jul 04, 2014 10:49 am
Reply with quote
Report this post
Sure, please just disable module on 'login' position and then specify your own URL in template settings like on this » screenshot
User avatar
Platinum Boarder

GK User
Fri Jul 04, 2014 11:24 am
Reply with quote
Report this post
I did as you sugessted, but i still get some pop-up/sign-in window. Propably I did something wrong :/
User avatar
Fresh Boarder

GK User
Fri Jul 04, 2014 1:59 pm
Reply with quote
Report this post
Are you sure that login module is unpublished? Could you saw me screenshot from your back end withthis module settings?
User avatar
Platinum Boarder

GK User
Fri Jul 04, 2014 4:10 pm
Reply with quote
Report this post
Image

Were you talking about this one?
User avatar
Fresh Boarder

GK User
Mon Jul 07, 2014 8:28 am
Reply with quote
Report this post
Hmm... right now I can't see the login button on your website. It disappear with disabling the login module? If yes, please provide me FTP access to your website because it will be necessary to modify part of template code. Please remember to include link to this forum topic in PM.
User avatar
Platinum Boarder

GK User
Mon Jul 07, 2014 10:13 am
Reply with quote
Report this post
Yes it is. After turning off the module it's not visible in the menu. When it's turned on I can see "Zaloguj" button, but it always redirect me to pop-up menu (LOGIN/SIGN IN).
User avatar
Fresh Boarder

GK User
Tue Jul 08, 2014 10:26 pm
Reply with quote
Report this post
Did You get my PM ?
User avatar
Fresh Boarder

GK User
Wed Jul 09, 2014 12:01 pm
Reply with quote
Report this post
Yes but due to fact that this is custom issue it takes some time to resolved. Please wait for my PM answer.
User avatar
Platinum Boarder

GK User
Wed Jul 09, 2014 12:51 pm
Reply with quote
Report this post
It was necessary to remove two lines of code from :

Code: Select all
<?php if($this->API->modules('login')) : ?>
                        <a href="<?php echo $this->API->get('login_url', 'index.php?option=com_users&view=login'); ?>" id="gkLogin" class="button border"><?php echo ($userID == 0) ? JText::_('TPL_GK_LANG_LOGIN') : JText::_('TPL_GK_LANG_LOGOUT'); ?></a>
                        <?php endif; ?>


to :


Code: Select all
                        <a href="<?php echo $this->API->get('login_url', 'index.php?option=com_users&view=login'); ?>" id="gkLogin" class="button border"><?php echo ($userID == 0) ? JText::_('TPL_GK_LANG_LOGIN') : JText::_('TPL_GK_LANG_LOGOUT'); ?></a>



This should resolve the problem.
User avatar
Platinum Boarder

GK User
Wed Jul 09, 2014 2:03 pm
Reply with quote
Report this post
I am afraid I still get the sam pop-up:

Image
User avatar
Fresh Boarder

GK User
Wed Jul 09, 2014 2:19 pm
Reply with quote
Report this post
This code I found only in templates/gk_gravity/layouts/default.php file. I changed the code, but without results :(
User avatar
Fresh Boarder

GK User
Thu Jul 10, 2014 4:01 pm
Reply with quote
Report this post
And of course pop-up have to be disabled.
User avatar
Platinum Boarder

GK User
Thu Jul 10, 2014 10:19 pm
Reply with quote
Report this post
But it is not :(
User avatar
Fresh Boarder

GK User
Mon Jul 14, 2014 10:40 am
Reply with quote
Report this post
The pop-up will disappear as soon as module published on 'login' position will be disabled. With this code where only link is generated (without IF statements to check whether the module exists) template will always display text.
User avatar
Platinum Boarder

GK User
Thu Jul 17, 2014 4:32 pm
Reply with quote
Report this post
Now it works! Thank you for your support.
User avatar
Fresh Boarder

GK User
Wed Aug 13, 2014 11:32 pm
Reply with quote
Report this post
sorry if you already answered this Bkrztuk but I"m trying to achieve 2 things, preferably without any core "hacks" or modifications to code.

1. the same look and feel of the Login button in a menu or module assigned to module position login
2. Same popup window but with different content. I've gotten it to work with an RSForm Pro but my popup menu still contains the word (and hyperlink) Sign-Up.

Thank you in advance for your time and help.
User avatar
Expert Boarder

GK User
Mon Aug 18, 2014 3:53 pm
Reply with quote
Report this post
This both changes are impossible without changes in template code. What is more the second one may be difficult to achieve because template is working only with default Joomla login form.
User avatar
Platinum Boarder


cron