Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • rypetry Friend
    #180794

    I want to disable the “Create an Account” button next to the “Login” button on the top of the JA Mendozite template. I have already disabled user registration in the Users>Options area and that removed it from the login popup, but the Create an Account option is still there. I’ve used 1.5 templates forever and know those like the back of my hand, but am new to 2.5. Any help is appreciated.

    ** I do NOT want to remove the Login module. FYI.

    Sherlock Friend
    #467499

    Hi repetry,

    You open the file of templatesja_mendozitehtmlmod_jalogindefault.php looking for this code

    [PHP]
    <a class=”register-switch” href=”<?php echo JRoute::_(“index.php?option=com_users&task=registration”);?>” onclick=”showBox(‘ja-user-register’,’namemsg’,this, window.event || event);return false;” >
    <span><?php echo JText::_(‘JAREGISTER’);?></span>
    </a>
    [/PHP]

    Change it to
    [PHP] <?php
    // If registration is disabled – Redirect to login page.
    if(JComponentHelper::getParams(‘com_users’)->get(‘allowUserRegistration’) != 0):
    ?>
    <a class=”register-switch” href=”<?php echo JRoute::_(“index.php?option=com_users&task=registration”);?>” onclick=”showBox(‘ja-user-register’,’namemsg’,this, window.event || event);return false;” >
    <span><?php echo JText::_(‘JAREGISTER’);?></span>
    </a>
    <?php endif ?> [/PHP]

    I hope this would help !

    rypetry Friend
    #467548

    Yes Sherlock… that worked like a charm. Thanks a bunch!

    apoorva Friend
    #498933

    Worked great for me as well.:)

    commercialart Friend
    #500788

    I have a problem.
    Code change resulted in a change to all sub menus except the home page and subpages contact.
    I do not understand why.
    Please help.

    Ninja Lead Moderator
    #500885

    <em>@commercialart 382996 wrote:</em><blockquote>I have a problem.
    Code change resulted in a change to all sub menus except the home page and subpages contact.
    I do not understand why.
    Please help.</blockquote>

    Please roll back anything your changed before that and use my way to disable “Create Account” button in JA Login module

    Open templates/ja_mendozite/css/mod_jalogin.css file

    From

    #ja-login > ul > li > a.register-switch {
    background-image: url(../images/icons/icon-register.png);
    }

    Change to

    #ja-login > ul > li > a.register-switch {
    background-image: url(../images/icons/icon-register.png);
    display: none;
    }

    Always remember to clear cache from the Admin area after apply any changes

    marathon64 Friend
    #525705

    Ninja Lead, I’ve tried the above (editing the CSS) to no effect. The Register button at the top of the home page is still there.

    Actually, I’l like to remove both the login AND the register buttons at the top of the home page. I’ve even tried disabling the JA-login module entirely, and it’s still there.

    Getting frustrated.

    marathon64 Friend
    #525706

    Nevermind, I managed to do it. Even with the module unpublished it was still showing up, so I set it’s menu assignment to no pages for everything, and that worked.

    Weird.

Viewing 8 posts - 1 through 8 (of 8 total)

This topic contains 8 replies, has 6 voices, and was last updated by  marathon64 10 years, 8 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum