Change GK "Sign In" to link to jomsocial registration

GK User
Mon Dec 10, 2012 9:20 pm
Hello - Your support has been fantastic and I truly appreciate it!

I would like to change the "Sign In" text to say "Register" and just be a link to the jomsocial registration .../index.php/jomsocial

Home.png
User avatar
Senior Boarder

GK User
Mon Dec 10, 2012 11:34 pm
Please open file template/layouts/blocks/logo.php and in lines 50-52 find this part :

Code: Select all
<?php if((GK_REGISTER) && ($userID == 0)) : ?>
      <a href="<?php echo $this->URLbase(); ?>index.php?option=com_users&amp;view=registration" id="btnRegister"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></a>
        <?php endif; ?>


Then just change this part of URL
Code: Select all
index.php?option=com_users&amp;view=registration
to JomSocial register page and save settings in file. Unpublish mod_gk_register module and that's all.
User avatar
Platinum Boarder

GK User
Tue Dec 11, 2012 3:41 am
Thank you very much for your reply. I'm sorry, but this is not working. I may be missing something, I'm sorry.

I found the code:

Code: Select all
<?php if((GK_REGISTER || GK_LOGIN) && !GK_COM_USERS) : ?>
   <div id="gkButtons">
      <?php if((GK_REGISTER) && ($userID == 0)) : ?>
      <a href="<?php echo $this->URLbase(); ?>index.php?option=com_users&amp;view=registration" id="btnRegister"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></a>
        <?php endif; ?>


My jomsocial reg url is: mydomain.com/index.php/community/register

What do I need to put so that there is a button "Register" that takes user to jomsocial registration. No popup...like in the image above.

Thank you in advance for your patience and your help.
User avatar
Senior Boarder

GK User
Wed Dec 12, 2012 9:27 am
To disable pop-up you need to disable mod_gk_register module via your module manager. Then change this URL visible on attached code and your 'Register' button will redirect to JomSocial register form.
User avatar
Platinum Boarder

GK User
Wed Dec 12, 2012 9:59 pm
Thank you for this reply - I have searched all over the boards and I am confused.

There are two module positions in the upper right - "Register" and "Login" - The login popup is fine as is.

In the template the gk_register module displays as "Sign Up". I would like to do two things:

1. Change the button text "Sign Up" to say "Register"
2. Make "Register" just a link (not a popup) to .../community/register

I have tried disabling the gk_register module and "Sign Up" goes away. I then tried adding a custom HTML module button to the register position and no matter what I name it it will appear as "Sign Up"

Please be very clear on how to accomplish - Pretty please :)

Thank you so much for your help.
User avatar
Senior Boarder

GK User
Thu Dec 13, 2012 2:57 am
I figured out #1 - editing the en-GB...file.

I'm still stuck on getting that to link to JS reg.

Thanks!
User avatar
Senior Boarder

GK User
Thu Dec 13, 2012 3:13 am
I have disabled the gk_registration mod
It is pointing to the correct registration link - but on click is still brining up an empty popup
User avatar
Senior Boarder

GK User
Thu Dec 13, 2012 3:43 am
SOLVED - I got it! - had to remove

Code: Select all
id="btnRegister"


I truly appreciate all your help. Thank you for your patience.
User avatar
Senior Boarder

GK User
Thu Dec 13, 2012 10:25 am
It is wired because looks like script still detects the register popUp. Your solution is correct, sorry for delay.
User avatar
Platinum Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.