Missing "register" button & Working with JomSocial

GK User
Wed Oct 12, 2011 8:10 pm
Is there anything that is needed to get the "Register" button to display like the demo. The Login button is there, but not the register button.

I can confirm that new user registration is enabled in the user manager.

Also, Is there anything specific to get this to allow JomSocial to handle the registrations so tha

Fin. Bus. v2.2
Joomla 1.7.1
Jom Social 2.2.4
User avatar
Senior Boarder

GK User
Tue Oct 18, 2011 8:38 pm
For information regarding missing buttons:

Template does following checks

1 - For Login button, template checks if login module is published in login position then displays the button.
2 - For Register button, template checks if mod_gk_register module is published in register position then displays the button.

In same file below you will see codes surrounding login and register buttons which is as below, removing or adding them allows above checks/conditions.
Code: Select all
<?php if(GK_LOGIN) : ?>
   Login button displayed if above condition is true.
<?php endif; ?>
<?php if(GK_REGISTER) : ?>
   Register button displayed if above condition is true.
<?php endif; ?>

--------------------------------
Now follow below for your hack...


First backup your file:

Disable login module from joomla admin to disable pop-up effect...

Find and edit file "templatesgk_finance_businesslayoutsblocksnav.php"
Line 48 to 58 which is below
Code: Select all
     <?php if((GK_REGISTER || GK_LOGIN) && !GK_COM_USERS) : ?>
        <div id="gkButtons">
         <?php if(GK_LOGIN) : ?>
         <a href="<?php echo $this->URLbase(); ?>index.php?option=com_users&view=login" id="btnLogin"><?php echo ($userID > 0) ? JText::_('TPL_GK_LANG_LOGOUT') : JText::_('TPL_GK_LANG_LOGIN'); ?></a>
         <?php endif; ?>
         
         <?php if(GK_REGISTER) : ?>
         <a href="<?php echo $this->URLbase(); ?>index.php?option=com_users&view=registration" id="btnRegister"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></a>
         <?php endif; ?>
        </div>
        <?php endif; ?>


Change it to : Please note below does not do any checks whether register is allowed or not.
Code: Select all
     <?php if((GK_REGISTER || GK_LOGIN) && !GK_COM_USERS) : ?>
        <div id="gkButtons">
         <a href="<?php echo $this->URLbase(); ?>index.php?option=com_community" id="btnLogin"><?php echo ($userID > 0) ? JText::_('TPL_GK_LANG_LOGOUT') : JText::_('TPL_GK_LANG_LOGIN'); ?></a>
         <a href="<?php echo $this->URLbase(); ?>index.php?option=com_community&view=register" id="btnRegister"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></a>
        </div>
     <?php endif; ?>

or instead Change it to below which checks whether register is allowed or not:
Code: Select all
     <?php if((GK_REGISTER || GK_LOGIN) && !GK_COM_USERS) : ?>
        <div id="gkButtons">
         <a href="<?php echo $this->URLbase(); ?>index.php?option=com_community" id="btnLogin"><?php echo ($userID > 0) ? JText::_('TPL_GK_LANG_LOGOUT') : JText::_('TPL_GK_LANG_LOGIN'); ?></a>
         <?php if(GK_REGISTER) : ?>
         <a href="<?php echo $this->URLbase(); ?>index.php?option=com_community&view=register" id="btnRegister"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></a>
         <?php endif; ?>
        </div>
     <?php endif; ?>
User avatar
Platinum Boarder

GK User
Sun Oct 23, 2011 9:28 pm
Thanks for your help. I found a perfectly solid solution for JomSocial users.

De-activate the core login and GK Register modules. Publish JomSocial's "hellome" module to the "login" position.

Everything seems to work perfectly fine with this. When you click "Your Account", you actually see information relevant to your account versus a simple logout button.
User avatar
Senior Boarder


cron