Hi Michal,
I've been in further contact with the guys at SourceCoast and they can help me but I need to unfortunately place the above tweaks back to how they were... you couldn't help me do this please could you, it would be much appreciated.
I look forward to hearing from you.
Regards,
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...
Hi, Robert.
Changes ware reverted :)
Hi Michal,
Thank you for that, much appreciated.
If I can copy you in on the last reply from Alex of SC and see what you make of the contents please, as you guys know JS and Socialize better than anybody of course.
From what I can see, I'd honestly recommend adding the social login buttons to their template files. You can try to wedge the SCLogin into the template, but since there is already an integration login area that looks how you want it *and* it collapses (presumably) how you want in mobile, it'd be easier to add our code to that.
With that said, I don't have the template files for the Socialize template. I do have the big block of code they had you modify though, and that should be enough to get us started. What I'd recommend is editing the ROOT/templates/your_current_template/html/mod_community_toolbar/default.php file that the JomSocial support had you create. That is a 'template override' which is meant to be edited so that your changes won't be overwritten on updating. Undo any changes they made (or copy the original file from the components/com_community folder to the template override directory.
Then, find the section that looks like:
Code:
<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">
Update that as follows, which should automatically add the social icons for any providers you've configured:
Code:
<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'); ?>
<?php
$providers = JFBCFactory::getAllProviders();
$html = “";
$params = array(‘buttonSize’ => ‘icon_button’); // or ‘icon_text_button’ or can even pass in custom images
foreach ($providers as $p)
$html .= $p->loginButton($params);
echo $html;
?>
<fieldset class="form-list pull-left">
That should add the icons before the login area in the horizontal sidebar. Test if that seems right to you (or add the code after the closing form tag to put it to the right of the bar).
After that, we'd need to add similar code to the left sidebar that opens when you click the 3 bars in a mobile environment.. but I don't have that template code. You'll basically just need to add the same code chunk there though.
I hope that helps get you started, but if you run into any issues or have questions, just let me know.
Thanks,
Alex
Michal Dluzak wrote: Hi, Robert.
Changes ware reverted :)
Hi, Robert.
I think you'll need advice direct from template designer.
I assign Ashraf to this thread.
Hi Robert,
We have not received any response back from you in over 7 days, and would like to know if you consider this issue to be resolved. If you have any further questions related with this topic, simply reply to this post.
Thanks