user registration issue (Black & White)

Premium, Furniture Joomla Design Shop Template with K2Store support
GK User
Wed Apr 04, 2012 11:16 am
Hello

I have a problem with the connexion module, I'm using the Black & White Template and my probelm is even if I go to the users management and activate the option "activate user registration", the link “Register" or “Become a memeber” dosen't appear with the connection module on the web-site, I'm sure the problem is related to the template, because I have a component that works with joomla’s connection module, and it works very well, when I activate the option "activate user registration", the link “register" appear in the component, and if I disable it, the link disappears.

I really need to fix the problem as soon as possible, because I have deadlines that I must respect, so I will be grateful if you help me to fixe this issue.

thanks in advance

cordially
User avatar
Fresh Boarder

GK User
Wed Apr 04, 2012 7:59 pm
To use login/register area like in demo site you need to publish module mod_gk_register and mod_login on proper positions like 'register' and login.
User avatar
Platinum Boarder

GK User
Thu Apr 05, 2012 5:09 pm
Hello bkrztuk, and thanks for the replay

I think you diden't understund me well, my problem is that when I create a new login module, it displayed well, but I just get the login label and input field, the password label and input field, the "forgot your password" link and the "forgot your login" link, so that's my problem, the "Register" or "Create account" link dosen't appear in the module, and when I change the template it appears, can you please tell me how to fixe that, code changing or anything else.
However, I've installed the mod_gk_register, published it and make it in the same position as my login module, but the link dosen't appear.

I thank you in advance
User avatar
Fresh Boarder

GK User
Fri Apr 06, 2012 12:29 pm
You create default Joomla login module ? If yes please for test change name of template/html/mod_login directory to for example mod_login_tmp and check results.
User avatar
Platinum Boarder

GK User
Mon Apr 09, 2012 11:24 am
Hello,

After a long search : I found the solution, I was sur that the problem was coming from the template, so I've decided to look through its code and I found that there is a view for the login module,and that even if the login module is from joomla, it takes the template view, and in its code (the template view), I did not found anything related to le "Register" link, so I've checked the Joomla mod_login view and it found that it has a short code containing a condition for displaying the "register" link, so I've done a copy past it in the template view and it works! I think you should add it to the tempate updates, however I thank you so much for your replies

For others having the same probelm as me,
Go to
templates/gk_black_and_white/html/mod_login/default.php

and at the bottom of the page, right before that code

</ul>
<div class="posttext">
<?php echo $params->get('posttext'); ?>
</div>
</form>
<?php endif; ?>


Add this code

<?php
$usersConfig = JComponentHelper::getParams('com_users');
if ($usersConfig->get('allowUserRegistration')) : ?>
<li>
<a href="<?php echo JRoute::_('index.php?option=com_users&view=registration'); ?>">
<?php echo JText::_('MOD_LOGIN_REGISTER'); ?></a>
</li>
<?php endif; ?>


Cordially
User avatar
Fresh Boarder

GK User
Mon Jun 25, 2012 8:57 am
ahouassa wrote:Hello,

After a long search : I found the solution, I was sur that the problem was coming from the template, so I've decided to look through its code and I found that there is a view for the login module,and that even if the login module is from joomla, it takes the template view, and in its code (the template view), I did not found anything related to le "Register" link, so I've checked the Joomla mod_login view and it found that it has a short code containing a condition for displaying the "register" link, so I've done a copy past it in the template view and it works! I think you should add it to the tempate updates, however I thank you so much for your replies

For others having the same probelm as me,
Go to
templates/gk_black_and_white/html/mod_login/default.php

and at the bottom of the page, right before that code

</ul>
<div class="posttext">
<?php echo $params->get('posttext'); ?>
</div>
</form>
<?php endif; ?>


Add this code

<?php
$usersConfig = JComponentHelper::getParams('com_users');
if ($usersConfig->get('allowUserRegistration')) : ?>
<li>
<a href="<?php echo JRoute::_('index.php?option=com_users&view=registration'); ?>">
<?php echo JText::_('MOD_LOGIN_REGISTER'); ?></a>
</li>
<?php endif; ?>


Cordially


Honestly i have no idea how to do this and it has been 2 moths has somebody else come up with a way to address this with out having to modify the code in the template this is a pretty major issue one that has cost me no less than 10 hours please let me know hot to address this issue thank you.
User avatar
Fresh Boarder

GK User
Mon Jun 25, 2012 9:17 am
The @ahouassa post solution, all that you need is to login via ftp, goes to templates/gk_black_and_white/html/mod_login and make listed changes.
User avatar
Platinum Boarder

GK User
Mon Jun 25, 2012 9:37 am
bkrztuk wrote:The @ahouassa post solution, all that you need is to login via ftp, goes to templates/gk_black_and_white/html/mod_login and make listed changes.



i am sorry i am not that advanced of a user he is not very specific as to where to insert the code it just says after that spot which is not really helpful truth be told if you can please provide a specific example that would be very helpful as i am not a coder. and need a bit more guidance than what he provided thank you.
User avatar
Fresh Boarder

GK User
Mon Jun 25, 2012 7:10 pm
bkrztuk wrote:The @ahouassa post solution, all that you need is to login via ftp, goes to templates/gk_black_and_white/html/mod_login and make listed changes.



so is it possible to post the modded file so that i can move forward with this thanks.
User avatar
Fresh Boarder

GK User
Tue Jun 26, 2012 7:54 am
We designed login pop-up in this way because we use two login and register areas in template, you can enable mod_login and mod_gk_register and have access to login/registration process via pop-up. If you want to make custom changes feel free to modify template files, but displaying "Register" link few pixels from Register form is only duplicated information.
User avatar
Platinum Boarder


cron