Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Frontpage guest.php customisation

8 years 11 months ago
  • Zurkster's Avatar
    Topic Author
  • Zurkster
  • Visitor
  • Thank you received: 0
Licenses:

Sorry Michal, try again, I disable that account when not in use

8 years 11 months ago
Licenses:

Hi, Zurkster.

You disabled login area... that disables whole frontpage-guest header... I enabled it and now your module is displayed.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
8 years 11 months ago
  • Zurkster's Avatar
    Topic Author
  • Zurkster
  • Visitor
  • Thank you received: 0
Licenses:

Thank you Michal, I'm sure I would have finally got it figured.... but it's all too easy to overlook something rather small and seemingly insignificant.

8 years 11 months ago
  • Zurkster's Avatar
    Topic Author
  • Zurkster
  • Visitor
  • Thank you received: 0
Licenses:

Actually there in itself is another problem, we do not want the login oiption showing as we already have the socialise v2 toolbar with login and register. We need to be able to bypass all aspects of the default login process on the frontpage in favour of JUST the toolbar.

8 years 11 months ago
Licenses:

Hi, Zurkster.

This could be done. Today my shift is about to end so I'll provide you with solution tomorrow.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
8 years 11 months ago
Licenses:

Hi, Zurkster.

If you want to remove login fields only, please, remove this code:

<form class="joms-form joms-js-form--login" action="<?php echo CRoute::getURI(); ?>" method="post" name="login" id="form-login">
            <div class="joms-input--append">
                <svg viewBox="0 0 16 16" class="joms-icon">
                    <use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-user"></use>
                </svg>
                <input class="joms-input" type="text" placeholder="<?php echo JText::_('COM_COMMUNITY_USERNAME'); ?>"
                       name="username" autocapitalize="off">
            </div>
            <div class="joms-input--append">
                <svg viewBox="0 0 16 16" class="joms-icon">
                    <use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-key"></use>
                </svg>
                <input class="joms-input" type="password"
                       placeholder="<?php echo JText::_('COM_COMMUNITY_PASSWORD'); ?>" name="password" autocapitalize="off">
            </div>
            <button class="joms-button--login"><?php echo JText::_('COM_COMMUNITY_LOGIN') ?></button>

            <?php if (JPluginHelper::isEnabled('system', 'remember')) : ?>
                <div class="joms-checkbox">
                    <input type="checkbox" value="yes" id="remember" name="remember">
                    <span><?php echo JText::_('COM_COMMUNITY_REMEMBER_MY_DETAILS'); ?></span>
                </div>
            <?php endif; ?>

            <a href="<?php echo CRoute::_('index.php?option=' . COM_USER_NAME . '&view=remind'); ?>"><?php echo JText::_('COM_COMMUNITY_FORGOT_USERNAME_LOGIN'); ?></a>
            <a href="<?php echo CRoute::_('index.php?option=' . COM_USER_NAME . '&view=reset'); ?>"
               tabindex="6"><?php echo JText::_('COM_COMMUNITY_FORGOT_PASSWORD_LOGIN'); ?></a>
            <?php if ($useractivation) { ?>
                <a href="<?php echo CRoute::_('index.php?option=com_community&view=register&task=activation'); ?>"
                   class="login-forgot-username"><?php echo JText::_('COM_COMMUNITY_RESEND_ACTIVATION_CODE'); ?></a>
            <?php } ?>

            <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 $return; ?>"/>
            <div class="joms-js--token"><?php echo JHTML::_('form.token'); ?></div>
        </form>

        <script>
            joms.onStart(function( $ ) {
                $('.joms-js-form--login').on( 'submit', function( e ) {
                    e.preventDefault();
                    e.stopPropagation();
                    joms.ajax({
                        func: 'system,ajaxGetLoginFormToken',
                        data: [],
                        callback: function( json ) {
                            var form = $('.joms-js-form--login');
                            if ( json.token ) {
                                form.find('.joms-js--token input').prop('name', json.token);
                            }
                            form.off('submit').submit();
                        }
                    });
                });
            });
        </script>

        <?php echo $fbHtml; ?>

From ROOT/templates/your-template/html/com_community/layouts/frontpage/guest.php

If you want to get rid of ALL frontpage get connected and login form, just remove all that is below:
<?php $this->renderModules('my_frontpage_module'); ?>

Literally remove this code:
<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>

            <?php if ($allowUserRegister) : ?>
                <div class="joms-landing__signup">
                    <button class="joms-button--signup"
                            onclick="location.href='<?php echo CRoute::_('index.php?option=com_community&view=register', false); ?>'">
                        <svg viewBox="0 0 16 16" class="joms-icon joms-icon--white">
                            <use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-signup"></use>
                        </svg>
                        <?php echo JText::_('COM_COMMUNITY_JOIN_US_NOW'); ?></button>
                </div>
            <?php endif; ?>
        </div>
    </div>
    <div class="joms-landing__action">
        <form class="joms-form joms-js-form--login" action="<?php echo CRoute::getURI(); ?>" method="post" name="login" id="form-login">
            <div class="joms-input--append">
                <svg viewBox="0 0 16 16" class="joms-icon">
                    <use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-user"></use>
                </svg>
                <input class="joms-input" type="text" placeholder="<?php echo JText::_('COM_COMMUNITY_USERNAME'); ?>"
                       name="username" autocapitalize="off">
            </div>
            <div class="joms-input--append">
                <svg viewBox="0 0 16 16" class="joms-icon">
                    <use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-key"></use>
                </svg>
                <input class="joms-input" type="password"
                       placeholder="<?php echo JText::_('COM_COMMUNITY_PASSWORD'); ?>" name="password" autocapitalize="off">
            </div>
            <button class="joms-button--login"><?php echo JText::_('COM_COMMUNITY_LOGIN') ?></button>

            <?php if (JPluginHelper::isEnabled('system', 'remember')) : ?>
                <div class="joms-checkbox">
                    <input type="checkbox" value="yes" id="remember" name="remember">
                    <span><?php echo JText::_('COM_COMMUNITY_REMEMBER_MY_DETAILS'); ?></span>
                </div>
            <?php endif; ?>

            <a href="<?php echo CRoute::_('index.php?option=' . COM_USER_NAME . '&view=remind'); ?>"><?php echo JText::_('COM_COMMUNITY_FORGOT_USERNAME_LOGIN'); ?></a>
            <a href="<?php echo CRoute::_('index.php?option=' . COM_USER_NAME . '&view=reset'); ?>"
               tabindex="6"><?php echo JText::_('COM_COMMUNITY_FORGOT_PASSWORD_LOGIN'); ?></a>
            <?php if ($useractivation) { ?>
                <a href="<?php echo CRoute::_('index.php?option=com_community&view=register&task=activation'); ?>"
                   class="login-forgot-username"><?php echo JText::_('COM_COMMUNITY_RESEND_ACTIVATION_CODE'); ?></a>
            <?php } ?>

            <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 $return; ?>"/>
            <div class="joms-js--token"><?php echo JHTML::_('form.token'); ?></div>
        </form>

        <script>
            joms.onStart(function( $ ) {
                $('.joms-js-form--login').on( 'submit', function( e ) {
                    e.preventDefault();
                    e.stopPropagation();
                    joms.ajax({
                        func: 'system,ajaxGetLoginFormToken',
                        data: [],
                        callback: function( json ) {
                            var form = $('.joms-js-form--login');
                            if ( json.token ) {
                                form.find('.joms-js--token input').prop('name', json.token);
                            }
                            form.off('submit').submit();
                        }
                    });
                });
            });
        </script>

        <?php echo $fbHtml; ?>

    </div>
</div>


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
6 years 1 month ago
  • Direct Lenders's Avatar
  • Direct Lenders
  • Visitor
Licenses:

guaranteed installment loans for bad credit <a href=" installmentloans.bid ">need a loan asap</a> installment loans no credit <a href=http://installmentloans.bid>installment loans for bad credit</a>

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW