-
AuthorPosts
-
rypetry Friend
rypetry
- Join date:
- March 2011
- Posts:
- 49
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 12
- Thanked:
- 4 times in 1 posts
September 19, 2012 at 12:28 am #180794I 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 FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
September 19, 2012 at 8:40 am #467499Hi 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 !
1 user says Thank You to Sherlock for this useful post
rypetry Friendrypetry
- Join date:
- March 2011
- Posts:
- 49
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 12
- Thanked:
- 4 times in 1 posts
September 19, 2012 at 5:09 pm #467548Yes Sherlock… that worked like a charm. Thanks a bunch!
July 14, 2013 at 3:29 am #498933Worked great for me as well.:)
July 31, 2013 at 7:15 pm #500788I 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 ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
August 1, 2013 at 10:39 am #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 Friendmarathon64
- Join date:
- March 2014
- Posts:
- 2
- Downloads:
- 0
- Uploads:
- 0
- Thanked:
- 1 times in 2 posts
March 6, 2014 at 11:19 pm #525705Ninja 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 Friendmarathon64
- Join date:
- March 2014
- Posts:
- 2
- Downloads:
- 0
- Uploads:
- 0
- Thanked:
- 1 times in 2 posts
March 6, 2014 at 11:32 pm #525706Nevermind, 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.
1 user says Thank You to marathon64 for this useful post
-
AuthorPosts
This topic contains 8 replies, has 6 voices, and was last updated by marathon64 10 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum