We have requested this fix before and Michal provided a suitable answer for JS v3,
HERE
, however this no longer applies to the newer version 4 jomSocial, as you have renamed and rewritten the code for these pages.
frontpage.guest.php has now become just guest.php and the code has been updated so the customisation mentioned above no longer applies and we have lost our customised front page.
Please revise the fix for JS v4 ASAP
Hi, Zurkster.
I'll add this request to my TODO list. But please, be aware that as JomSocial 4 is newly released, customizations request have lowest priority. So it make take some time when I'll be able to get back to i...
I have the same issue with the customised avatar sizes, they have all blown out of proportion too.
PS Michal, what sort of time scale are we talking about, as these errors are on a live site.
HI, Zurkster.
I can't say... it depends how crowded forum will be.
Please, note that these are not "errors" but your customization requests... and any customizations we provide are just a courtesy as customizations are not officially supported (please, read our Support Policy:
www.jomsocial.com/support
)
So how much to reproduce this Fix for JS v4.x if we're prepared to pay?
This offer extends to the continued development of the Kunena/JomSocial plugin which JomSocial have the source code for....
Many users would benefit from this plugin becoming available and stable with JS v4.
Hi, Zurkster.
We're not allowed to accept paid customizations... I'll provide code snippet for free but after it become more quite on forum.
I ask your patience...
As for Kunena Plugin, this will be improved - our developers work on this already.
Hi again Michal, I asked a considerable while ago if you could look into providing a revised fix for the customised frontpage module inclusion to replace the default hero image. I have all the modules made up and were active until JomSocial v4 came about, now there have been a number of JomSocial revisions, but still no resolution to a feature we had come to depend on.
Thanks in advance for any help you can provide. This is an important landing page feature that without, is seriously affecting our new registrations.
Hi, Zurkster.
This fix will be not needed, as in JomSocial 4 this is much much easier.
All you need is to browse here:
Backend -> Components -> JomSocial -> Theme designer -> General -> Show frontpage image -> NO.
Then copy this file:
ROOT/components/com_community/templates/jomsocial/layouts/frontpage/guest.php
to:
ROOT/templates/your-template/html/com_community/layouts/frontpage (if you don't have any of those folders, feel free to create them)
Then add this code right above line 13:
<?php $this->renderModules('my_frontpage_module'); ?>
So I have done as you suggested, however I am a little confused as to where exactly you want the snippet entered.
I entered the below code:
<?php $this->renderModules('my_frontpage_module'); ?>
* @copyright (C) 2013 iJoomla, Inc. - All rights reserved.
* @license GNU General Public License, version 2 (http://www.gnu.org/licenses/gpl-2.0.html)
* @author iJoomla.com <[email protected]>
* @url https://www.jomsocial.com/license-agreement
****** Line 13 is here on my editor *****
* The PHP code portions are distributed under the GPL license. If not otherwise stated, all images, manuals, cascading style sheets, and included JavaScript *are NOT GPL, and are released under the IJOOMLA Proprietary Use License v1.0
* More info at https://www.jomsocial.com/license-agreement
*/
defined('_JEXEC') or die();
?>
<div class="joms-landing <?php if (!$settings['general']['enable-frontpage-image']) echo "no-image"; ?>">
<div class="joms-landing__cover">
<?php if (isset($settings) && $settings['general']['enable-frontpage-image']) { ?>
<div class="joms-landing__image" style="background:url(<?php echo $heroImage; ?>) no-repeat center center;">
</div>
<?php } ?>
<div class="joms-landing__content">
<div class="joms-landing__text">
<h2><?php echo JText::_('COM_COMMUNITY_GET_CONNECTED_TITLE'); ?></h2>
<?php if (isset($settings) && $settings['general']['enable-frontpage-paragraph']) { ?>
<p><?php echo JText::_('COM_COMMUNITY_HERO_PARAGRAPH'); ?></p>
<?php } ?>
</div>
PS What is the position name for the modules? is it my_frontpage_module
Hi, Zurkster.
What editor do you use? :) I recommend BlueFish ;)
Paste code right before:
<div class="joms-landing <?php if (!$settings) echo "no-image"; ?>">
Yes, position name will be "my_frontpage_module". but you may change to whatever you like - just remember to NOT use spaces and non-Latin characters.
I'm sorry sometimes I forget about non-coders :) I explained it so many times on this forum... so I myself feel lost sometimes ;)
Please, let me know if something needs to be cleared more...
Just re-checked, that's how I assumed it should have been placed however, when I allocate a module to the defined position, still nothing displays on the page above the stream.
Hi, Zurkster.
Instructions are 100% correct. I' did a test here:
www.prolusatia.nazwa.pl/test/
"Lorem ipsum" is a text in html module assigned to my_frontpage_module.
Credentials to your site doesn't work so I can't check your code.