Hi All,
I have recently moved from a separate Rockettheme Joomla template, with the separate Jomsocial default one and I'm happy overall with how Socialize and Jomsocial go together.
However, I have one issue and for me it's quite a big one and that's the templates default login in the top-header position.
Now I was previously utilising a social media integration extension from:
see here...
and I'm wholly unsure if and how I can replace the current socialize templates in built one that currently resides in the top-header.
I did have a play about with it last night and whilst I can of course publish and set position of their 3rd party login extension SCLogin, I have had a look around for any available setting to replace Socializes and as yet I can't find anything.
It really is imperative for me to get the above implemented but I'm hoping you can help guide me, point me in the right direction for maybe something I'm missing, or indeed how I can achieve the above.
Keep up the good work.
I look forward to hearing from you in due course.
Regards,
Rob
Hi, Robert.
I'm not sure if I understand you well...
1. You just want to replace default login in top-header position with other login module?
2. Or you want to display (any?) login module in different place on your page?
3. Or you ant a pop-up login?
Hi and thanks for the quick reply, much appreciated.
In effect I just want number 1, to replace the default socialize login module, with my own 3rd party login module, is this possible please? *fingers crossed*
I look forward to hearing from you.
Regards,
Rob
Michal Dluzak wrote: Hi, Robert.
I'm not sure if I understand you well...
1. You just want to replace default login in top-header position with other login module?
2. Or you want to display (any?) login module in different place on your page?
3. Or you ant a pop-up login?
Hi, Robert.
Yes, it could be done :)
What you need to do:
1. First you'll need to get rid of JomSocial toolbar login form.
Copy this file:
ROOT/modules/mod_community_toolbar/tmpl/default.php to
ROOT/templates/your_current_template/html/mod_community_toolbar/default (if you don't have "html" or "mod_community_toolbar" folders - feel free to create them).
Now you'll need to edit file in line 409, replace this:
<style type="text/css">
body {
padding-top: 0;
}
</style>
<div id="community-tb-wrap" class="community-toolbar toolbar-login logged-out not-logged-in cModule clearfix">
<div class="navbar">
<div class="navbar-inner">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"></a>
<div class="nav-collapse collapse">
<div class="container">
<?php if(isset($toolbar_left_logo) && !empty($toolbar_left_logo)){?>
<a href="<?php echo $logo_url;?>" class="community-toolbar-logo"><img src="<?php echo $toolbar_left_logo;?>" alt="<?php echo $logo_url.' logo';?>"/></a>
<?php }?>
<form class="form-inline pull-right" action="<?php echo CRoute::_( 'index.php?option='.COM_USER_NAME.'&task='.COM_USER_TAKS_LOGIN ); ?>" method="post" name="form-login" id="form-login" >
<?php echo $params->get('pretext'); ?>
<fieldset class="form-list pull-left">
<p id="form-login-username">
<span for="username" class="clearfix">
<label><?php echo JText::_('COM_COMMUNITY_USERNAME') ?></label>
<input name="username" id="username" type="text" class="inputbox" alt="username" size="18" />
</span>
</p>
<p id="form-login-password">
<span for="passwd" class="clearfix;">
<label><?php echo JText::_('COM_COMMUNITY_PASSWORD') ?></label>
<input type="password" name="<?php echo COM_USER_PASSWORD_INPUT;?>" id="passwd" class="inputbox" size="18" alt="password" />
</span>
</p>
<?php if (JPluginHelper::isEnabled('system', 'remember')) { ?>
<p id="form-login-remember">
<span for="remember">
<?php echo JText::_('COM_COMMUNITY_REMEMBER_MY_DETAILS') ?>
<input class="checkbox" type="checkbox" name="remember" id="remember" value="yes" alt="Remember Me" />
</span>
</p>
<?php } ?>
<button type="submit" name="Submit" class="btn btn-orange"><?php echo JText::_('LOGIN') ?></button>
</fieldset>
<div class="register-btn pull-left">
<div style="display: none;">
<a href="<?php echo JRoute::_( 'index.php?option='.COM_USER_NAME.'&view=reset' ); ?>">
<?php echo JText::_('MOD_HELLOME_FORGOT_YOUR_PASSWORD'); ?>
</a>
</div>
<div style="display: none;">
<a href="<?php echo JRoute::_( 'index.php?option='.COM_USER_NAME.'&view=remind' ); ?>">
<?php echo JText::_('MOD_HELLOME_FORGOT_YOUR_USERNAME'); ?>
</a>
</div>
<div style="display: none;">
<a href="<?php echo CRoute::_( 'index.php?option=com_community&view=register&task=activation' ); ?>" class="login-forgot-username">
<span><?php echo JText::_('MOD_HELLOME_RESEND_ACTIVATION_CODE'); ?></span>
</a>
</div>
<?php
$usersConfig=JComponentHelper::getParams( 'com_users' );
if ($usersConfig->get('allowUserRegistration'))
{ ?>
<div>
<a class="btn btn-green" href="<?php echo CRoute::_( 'index.php?option=com_community&view=register' ); ?>">
<?php echo JText::_('MOD_HELLOME_REGISTER'); ?>
</a>
</div>
<?php } ?>
</div>
<?php echo $params->get('posttext'); ?>
<input type="hidden" name="option" value="<?php echo COM_USER_NAME;?>" />
<input type="hidden" name="task" value="<?php echo COM_USER_TAKS_LOGIN;?>" />
<input type="hidden" name="return" value="<?php echo $uri; ?>" />
<?php echo JHTML::_('form.token'); ?>
</form>
</div>
</div>
</div>
</div>
</div><?php /* ?>
<style type="text/css">
body {
padding-top: 0;
}
</style>
<div id="community-tb-wrap" class="community-toolbar toolbar-login logged-out not-logged-in cModule clearfix">
<div class="navbar">
<div class="navbar-inner">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"></a>
<div class="nav-collapse collapse">
<div class="container">
<?php if(isset($toolbar_left_logo) && !empty($toolbar_left_logo)){?>
<a href="<?php echo $logo_url;?>" class="community-toolbar-logo"><img src="<?php echo $toolbar_left_logo;?>" alt="<?php echo $logo_url.' logo';?>"/></a>
<?php }?>
<form class="form-inline pull-right" action="<?php echo CRoute::_( 'index.php?option='.COM_USER_NAME.'&task='.COM_USER_TAKS_LOGIN ); ?>" method="post" name="form-login" id="form-login" >
<?php echo $params->get('pretext'); ?>
<fieldset class="form-list pull-left">
<p id="form-login-username">
<span for="username" class="clearfix">
<label><?php echo JText::_('COM_COMMUNITY_USERNAME') ?></label>
<input name="username" id="username" type="text" class="inputbox" alt="username" size="18" />
</span>
</p>
<p id="form-login-password">
<span for="passwd" class="clearfix;">
<label><?php echo JText::_('COM_COMMUNITY_PASSWORD') ?></label>
<input type="password" name="<?php echo COM_USER_PASSWORD_INPUT;?>" id="passwd" class="inputbox" size="18" alt="password" />
</span>
</p>
<?php if (JPluginHelper::isEnabled('system', 'remember')) { ?>
<p id="form-login-remember">
<span for="remember">
<?php echo JText::_('COM_COMMUNITY_REMEMBER_MY_DETAILS') ?>
<input class="checkbox" type="checkbox" name="remember" id="remember" value="yes" alt="Remember Me" />
</span>
</p>
<?php } ?>
<button type="submit" name="Submit" class="btn btn-orange"><?php echo JText::_('LOGIN') ?></button>
</fieldset>
<div class="register-btn pull-left">
<div style="display: none;">
<a href="<?php echo JRoute::_( 'index.php?option='.COM_USER_NAME.'&view=reset' ); ?>">
<?php echo JText::_('MOD_HELLOME_FORGOT_YOUR_PASSWORD'); ?>
</a>
</div>
<div style="display: none;">
<a href="<?php echo JRoute::_( 'index.php?option='.COM_USER_NAME.'&view=remind' ); ?>">
<?php echo JText::_('MOD_HELLOME_FORGOT_YOUR_USERNAME'); ?>
</a>
</div>
<div style="display: none;">
<a href="<?php echo CRoute::_( 'index.php?option=com_community&view=register&task=activation' ); ?>" class="login-forgot-username">
<span><?php echo JText::_('MOD_HELLOME_RESEND_ACTIVATION_CODE'); ?></span>
</a>
</div>
<?php
$usersConfig=JComponentHelper::getParams( 'com_users' );
if ($usersConfig->get('allowUserRegistration'))
{ ?>
<div>
<a class="btn btn-green" href="<?php echo CRoute::_( 'index.php?option=com_community&view=register' ); ?>">
<?php echo JText::_('MOD_HELLOME_REGISTER'); ?>
</a>
</div>
<?php } ?>
</div>
<?php echo $params->get('posttext'); ?>
<input type="hidden" name="option" value="<?php echo COM_USER_NAME;?>" />
<input type="hidden" name="task" value="<?php echo COM_USER_TAKS_LOGIN;?>" />
<input type="hidden" name="return" value="<?php echo $uri; ?>" />
<?php echo JHTML::_('form.token'); ?>
</form>
</div>
</div>
</div>
</div>
</div>
<?php */ ?>
Hi Michal,
Thanks for the reply, much appreciated as always.
I am sure I've followed your guidance to the letter but I'm still seeing the stock login module... do you by any chance mean that once I've done the following;
Copy this file:
ROOT/modules/mod_community_toolbar/tmpl/default.php to
ROOT/templates/your_current_template/html/mod_community_toolbar/default
Michal Dluzak wrote: Hi, Robert.
Yes, it could be done :)
What you need to do:
1. First you'll need to get rid of JomSocial toolbar login form.
Copy this file:
ROOT/modules/mod_community_toolbar/tmpl/default.php to
ROOT/templates/your_current_template/html/mod_community_toolbar/default (if you don't have "html" or "mod_community_toolbar" folders - feel free to create them).
Now you'll need to edit file in line 409, replace this:
<style type="text/css"> body { padding-top: 0; } </style> <div id="community-tb-wrap" class="community-toolbar toolbar-login logged-out not-logged-in cModule clearfix"> <div class="navbar"> <div class="navbar-inner"> <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"></a> <div class="nav-collapse collapse"> <div class="container"> <?php if(isset($toolbar_left_logo) && !empty($toolbar_left_logo)){?> <a href="<?php echo $logo_url;?>" class="community-toolbar-logo"><img src="<?php echo $toolbar_left_logo;?>" alt="<?php echo $logo_url.' logo';?>"/></a> <?php }?> <form class="form-inline pull-right" action="<?php echo CRoute::_( 'index.php?option='.COM_USER_NAME.'&task='.COM_USER_TAKS_LOGIN ); ?>" method="post" name="form-login" id="form-login" > <?php echo $params->get('pretext'); ?> <fieldset class="form-list pull-left"> <p id="form-login-username"> <span for="username" class="clearfix"> <label><?php echo JText::_('COM_COMMUNITY_USERNAME') ?></label> <input name="username" id="username" type="text" class="inputbox" alt="username" size="18" /> </span> </p> <p id="form-login-password"> <span for="passwd" class="clearfix;"> <label><?php echo JText::_('COM_COMMUNITY_PASSWORD') ?></label> <input type="password" name="<?php echo COM_USER_PASSWORD_INPUT;?>" id="passwd" class="inputbox" size="18" alt="password" /> </span> </p> <?php if (JPluginHelper::isEnabled('system', 'remember')) { ?> <p id="form-login-remember"> <span for="remember"> <?php echo JText::_('COM_COMMUNITY_REMEMBER_MY_DETAILS') ?> <input class="checkbox" type="checkbox" name="remember" id="remember" value="yes" alt="Remember Me" /> </span> </p> <?php } ?> <button type="submit" name="Submit" class="btn btn-orange"><?php echo JText::_('LOGIN') ?></button> </fieldset> <div class="register-btn pull-left"> <div style="display: none;"> <a href="<?php echo JRoute::_( 'index.php?option='.COM_USER_NAME.'&view=reset' ); ?>"> <?php echo JText::_('MOD_HELLOME_FORGOT_YOUR_PASSWORD'); ?> </a> </div> <div style="display: none;"> <a href="<?php echo JRoute::_( 'index.php?option='.COM_USER_NAME.'&view=remind' ); ?>"> <?php echo JText::_('MOD_HELLOME_FORGOT_YOUR_USERNAME'); ?> </a> </div> <div style="display: none;"> <a href="<?php echo CRoute::_( 'index.php?option=com_community&view=register&task=activation' ); ?>" class="login-forgot-username"> <span><?php echo JText::_('MOD_HELLOME_RESEND_ACTIVATION_CODE'); ?></span> </a> </div> <?php $usersConfig=JComponentHelper::getParams( 'com_users' ); if ($usersConfig->get('allowUserRegistration')) { ?> <div> <a class="btn btn-green" href="<?php echo CRoute::_( 'index.php?option=com_community&view=register' ); ?>"> <?php echo JText::_('MOD_HELLOME_REGISTER'); ?> </a> </div> <?php } ?> </div> <?php echo $params->get('posttext'); ?> <input type="hidden" name="option" value="<?php echo COM_USER_NAME;?>" /> <input type="hidden" name="task" value="<?php echo COM_USER_TAKS_LOGIN;?>" /> <input type="hidden" name="return" value="<?php echo $uri; ?>" /> <?php echo JHTML::_('form.token'); ?> </form> </div> </div> </div> </div> </div>
with this:
<?php /* ?> <style type="text/css"> body { padding-top: 0; } </style> <div id="community-tb-wrap" class="community-toolbar toolbar-login logged-out not-logged-in cModule clearfix"> <div class="navbar"> <div class="navbar-inner"> <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"></a> <div class="nav-collapse collapse"> <div class="container"> <?php if(isset($toolbar_left_logo) && !empty($toolbar_left_logo)){?> <a href="<?php echo $logo_url;?>" class="community-toolbar-logo"><img src="<?php echo $toolbar_left_logo;?>" alt="<?php echo $logo_url.' logo';?>"/></a> <?php }?> <form class="form-inline pull-right" action="<?php echo CRoute::_( 'index.php?option='.COM_USER_NAME.'&task='.COM_USER_TAKS_LOGIN ); ?>" method="post" name="form-login" id="form-login" > <?php echo $params->get('pretext'); ?> <fieldset class="form-list pull-left"> <p id="form-login-username"> <span for="username" class="clearfix"> <label><?php echo JText::_('COM_COMMUNITY_USERNAME') ?></label> <input name="username" id="username" type="text" class="inputbox" alt="username" size="18" /> </span> </p> <p id="form-login-password"> <span for="passwd" class="clearfix;"> <label><?php echo JText::_('COM_COMMUNITY_PASSWORD') ?></label> <input type="password" name="<?php echo COM_USER_PASSWORD_INPUT;?>" id="passwd" class="inputbox" size="18" alt="password" /> </span> </p> <?php if (JPluginHelper::isEnabled('system', 'remember')) { ?> <p id="form-login-remember"> <span for="remember"> <?php echo JText::_('COM_COMMUNITY_REMEMBER_MY_DETAILS') ?> <input class="checkbox" type="checkbox" name="remember" id="remember" value="yes" alt="Remember Me" /> </span> </p> <?php } ?> <button type="submit" name="Submit" class="btn btn-orange"><?php echo JText::_('LOGIN') ?></button> </fieldset> <div class="register-btn pull-left"> <div style="display: none;"> <a href="<?php echo JRoute::_( 'index.php?option='.COM_USER_NAME.'&view=reset' ); ?>"> <?php echo JText::_('MOD_HELLOME_FORGOT_YOUR_PASSWORD'); ?> </a> </div> <div style="display: none;"> <a href="<?php echo JRoute::_( 'index.php?option='.COM_USER_NAME.'&view=remind' ); ?>"> <?php echo JText::_('MOD_HELLOME_FORGOT_YOUR_USERNAME'); ?> </a> </div> <div style="display: none;"> <a href="<?php echo CRoute::_( 'index.php?option=com_community&view=register&task=activation' ); ?>" class="login-forgot-username"> <span><?php echo JText::_('MOD_HELLOME_RESEND_ACTIVATION_CODE'); ?></span> </a> </div> <?php $usersConfig=JComponentHelper::getParams( 'com_users' ); if ($usersConfig->get('allowUserRegistration')) { ?> <div> <a class="btn btn-green" href="<?php echo CRoute::_( 'index.php?option=com_community&view=register' ); ?>"> <?php echo JText::_('MOD_HELLOME_REGISTER'); ?> </a> </div> <?php } ?> </div> <?php echo $params->get('posttext'); ?> <input type="hidden" name="option" value="<?php echo COM_USER_NAME;?>" /> <input type="hidden" name="task" value="<?php echo COM_USER_TAKS_LOGIN;?>" /> <input type="hidden" name="return" value="<?php echo $uri; ?>" /> <?php echo JHTML::_('form.token'); ?> </form> </div> </div> </div> </div> </div> <?php */ ?>
Okay, login form should be gone.
2. Now you'll need to assign new, vertical login form to "top-header" module position and make it visible only for guests.
Install this great extension: extensions.joomla.org/extensions/style-a...les-management/10307
Use it to set your new login module as visible only for Public group. It will be not visible for logged in users so you could use default log-out, avatar and link to preferences that comes along with our toolbar.
Hi, Robert.
No, don't delete original file.
After first step add something in that file (or clear part of it content) to see if it was applied from override.
Hi Michal,
Do I take it you mean to for e.g. just put a full stop . in the following file, ROOT/templates/your_current_template/html/mod_community_toolbar/default and if the override file has actually worked then it should throw it out and cause a temporary error kind of thing, or am I barking up the wrong tree?
I look forward to hearing from you.
Regards,
Rob
Michal Dluzak wrote: Hi, Robert.
No, don't delete original file.
After first step add something in that file (or clear part of it content) to see if it was applied from override.
Hi, Robert.
Yes, add something e.g text in this file to see if it is loaded from override or still loaded from component template folder.
I always just add <?php echo "xxxxxxxxxxxxxxx"; ?> or simply xxxxxxxxxxxxx to see if it is displayed. Then I know that I edit right file.
Michal,
I've done as you mention to do but I don't see any xxxxxxxxx's as I've typed in to the file we're looking at present.
I don't know what I'm doing wrong.
Regards,
Rob
Michal Dluzak wrote: Hi, Robert.
Yes, add something e.g text in this file to see if it is loaded from override or still loaded from component template folder.
I always just add <?php echo "xxxxxxxxxxxxxxx"; ?> or simply xxxxxxxxxxxxx to see if it is displayed. Then I know that I edit right file.
Are you there Michal?
Regards,
Michal Dluzak wrote: Hi, Robert.
Yes, add something e.g text in this file to see if it is loaded from override or still loaded from component template folder.
I always just add <?php echo "xxxxxxxxxxxxxxx"; ?> or simply xxxxxxxxxxxxx to see if it is displayed. Then I know that I edit right file.
Hi, Robert.
The reason that you saw no changes was site cache :)
I saw that you pasted code in wrong place in code... but never mind.
I achieved it in different, easier way by installing Advanced modules manager and set that JomSocial toolbar is not visible for guests and public.
So, it's solved now? :)
Hi Michal,
Do you recall where I went wrong with putting the code you provided in the wrong place? For future reference.
Thank you so much for sorting that element out for me, I'm now well on the way to getting it how we need it.
However, may I ask and as you may know I use SourceCoast's SCLogin in tandem with their JFBConnect but currently the SCLogin is purely assigned as buttons in the top left top-header of the JS Socialize template.
What I'm looking for is how I would complete what we would dearly love with this whole setup, to get the SCLogin to replicate as the original stock Socialize login was, which is a mixture of login/register buttons and data entry fields horizontally along the top-header and more importantly, when you are on a mobile device to login we would have it look the same as stock socialize in that regard.
I'm aware that I may need SourceCoast to help achieve this and will post to their support as soon as I am aware of what is needed but thought I would ask you guys as the template provider for my site, in case there's anything that can be done this end first before confusing matters going to them?
So SCLogin to look like this in web browser view;
Michal Dluzak wrote: Hi, Robert.
The reason that you saw no changes was site cache :)
I saw that you pasted code in wrong place in code... but never mind.
I achieved it in different, easier way by installing Advanced modules manager and set that JomSocial toolbar is not visible for guests and public.
So, it's solved now? :)
Hi, Robert.
Don't bother about code misplacement :) It's fixed anyway ;)
To achieve that you'll need to rebuild/redesign SC Login module template as it is now displayed in top-header position and no JomSocial file influence it. So yes, you'll need guidance from SourceCoast how to rebuild their module to make it vertical...
Hi Again Michal,
OK, I won't worry about the code misplacement, thank you though. :)
I have been in touch with Alex from Sourcecoast and heard the following;
"As for JomSocial, we're actually working with them right now for even better integration in their upcoming releases. They already have a setting for integrating with JFBConnect, which adds the login buttons to their home page. The upcoming 3.2 release (we're hoping) will automatically add the social login buttons to other login areas (like access denied, their login module, etc). "
The above excites me as it would give the best of both worlds, the awesome Jomsocial in it's own right, the newly added just as awesome Socialize JS / Joomla template and all the goodies that Sourcecoast offer which I use most of.
I believe JS 3.2 Beta is now out, so maybe we can expect a non beta release in a couple of weeks when any / as many bugs have been found and patched as possible?
I'm putting ticket status to fixed, as even though it's not for me as yet, I now need to liaise with Sourcecoast for now as I am doing, at least until any deeper SC and JS integration.
Regards,
Rob
Michal Dluzak wrote: Hi, Robert.
Don't bother about code misplacement :) It's fixed anyway ;)
To achieve that you'll need to rebuild/redesign SC Login module template as it is now displayed in top-header position and no JomSocial file influence it. So yes, you'll need guidance from SourceCoast how to rebuild their module to make it vertical...