Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated

Template Login questions

10 years 2 weeks ago
  • Bunmi's Avatar
    Topic Author
  • Bunmi
  • Offline
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Active

ISSUE SUMMARY: What's the difference between the 2 logins (one below the hero image and the one on the community toolbar)? Is the use of both mandatory and do they differ in function? see areas 1 & 2 on my attached screenshot, I saw them booth on the demo too.

Also what's the difference between the "Register account" (on the hero image) and the "Signup" (on the community toolbar)? see areas 3 & 4 on my screenshot.

Can I display the login section below the hero image (area 1) on the right side (move it to area 5) instead? How do I add my company name and logo to the left of the community toolbar (see area marked 6) as in the demo?

STEPS TO REPLICATE:
1
2
3
4
5
RESULT
EXPECTED RESULT
BROWSER

Attachments:
10 years 2 weeks ago
Licenses:

Hi Bunmi,

- both login and registration are same. the toolbar is belongs to jomsocial toolbar module. that module only for socialize template.
- you cant changing the toolbar login position or style. that module only designed for toolbar position
- for company name you can put it from joomla template manager > socialize, you can upload the logo from there

Regards

10 years 2 weeks ago
  • Bunmi's Avatar
    Topic Author
  • Bunmi
  • Offline
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Active

Thanks for the quick response Albertus. Sorry, I meant to ask "Can I move the login from area 2 (below the hero image) to area 5 (on the side) ?" or how can I remove it if I want to since I already have it on the toolbar?

10 years 2 weeks ago
Licenses:

Hi Bunmi,

for that you must do this steps:
1. copy guest.php from [joomla site root]/components/com_community/templates/jomsocial/layouts/frontpage/ to [joomla site root]/templates/socialize/html/com_community/layouts/frontpage/
2. edit it and remove this code at line 39

<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>

3. goto joomla module manager, and activate hellome module. put it at area 5 (sidebar 2)

Regards

10 years 2 weeks ago
  • Bunmi's Avatar
    Topic Author
  • Bunmi
  • Offline
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Active

Thanks Albertus. The login shows on the sidebar 2 but it's still displayed in the area 2 below the helo image, how can I stop it from being displayed in area 2, i.e. remove the login from area 2 ?.

Thanks for you help.

10 years 2 weeks ago
Licenses:

Hi Bunmi,

seem you not doing or wrong with override for guest.php yet. please edit your first post at this topic. and put FTP access detail at site info form.
I will do it for you.

Regards

10 years 2 weeks ago
  • Bunmi's Avatar
    Topic Author
  • Bunmi
  • Offline
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Active

Hi Albertus,

I provided the ftp credentials in the original post. Please let me know the details of the changes you make so I can reuse the knowledge and also apply the same to other sub-domains.

Thanks,

10 years 2 weeks ago
Licenses:

Hi Bunmi,

please check it.
your [joomla site root] = /public_html/test/, so the override must like this:
/public_html/test/templates/socialize/html/com_community/layouts/frontpage/guest.php

Regards

The following user(s) said Thank You: Bunmi
10 years 1 week ago
  • Bunmi's Avatar
    Topic Author
  • Bunmi
  • Offline
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Active

Thanks Albertus.

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