Skip to Content Skip to Menu

Remove 'Forgot Username?' from CB Login page

4 days 3 hours ago #343879 by BobBriscoe
How can I remove the 'Forgot Username?' link from the CB Login page, without removing 'Forgot Password' as well?

Reasons:
  • I am trying to purge all mention of 'username' from a CB site that is configured with Login Method: Email
  • The link is redundant as well as confusing in this case: It asks a user who has forgotten their username (which is their email address) to enter their email address
Unsuccessful alternatives:
  • The 'Forgot Login' option in the module config of 'CB Login' hides or reveals Forgot Password and Forgot Username together (Joomla > Content > Site Modules > CB Login > Login Options tab)
  • There does not appear to be a CB language override for Forgot Username, otherwise I could have set it to an empty string.
  • I cannot find a template override for the CB Login page (I assume it cannot be overridden, otherwise the CB Login module config would break).

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 50412
  • Thanks: 8624
  • Karma: 1472
3 days 1 hour ago #343883 by krileon
Replied by krileon on topic Remove 'Forgot Username?' from CB Login page
There's no parameter to turn it off. You'd need to use a Joomla template override for the module and just remove it from the HTML.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

2 days 3 hours ago #343890 by BobBriscoe
Replied by BobBriscoe on topic Remove 'Forgot Username?' from CB Login page
As I said (on the last line of my original question), I had already tried to find the Joomla template override. Changing this template made no difference: "‎/templates/cassiopeia/html/mod_login/default.php"

However, I did find the relevant language override in that template: MOD_LOGIN_FORGOT_YOUR_USERNAME, which I couldn't find before (I thought I had searched Joomla and CB language overrides). As a work-round, I set it to <br>.

Shouldn't I report this as a minor bug anyway? For all CB customers (not just me), rendering this line in the PHP should be conditional on 'Login Method' != Email.
I believe the Email Login Method is specific to CB, so this is a CB bug, not a Joomla bug.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 50412
  • Thanks: 8624
  • Karma: 1472
2 days 1 hour ago #343891 by krileon
Replied by krileon on topic Remove 'Forgot Username?' from CB Login page
That's Joomla's login module. You need to add a layout override for CBs login module. I've added a feature ticket to hide that link when login method is set to email.

forge.joomlapolis.com/issues/9862


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

1 day 23 hours ago #343894 by BobBriscoe
Replied by BobBriscoe on topic Remove 'Forgot Username?' from CB Login page
You said,

You need to add a layout override for CBs login module.

Either I don't understand or this is rather ironic, given my original question was "I cannot find a template override for the CB Login page"
Then your second reply (quoted here) would be doubly ironic, given your first reply was:  "You'd need to use a Joomla template override"

I do still need to know the location of the template override for the CB Login page, because I also want to alter the page ordering (to shift the Register link to the top of the page).

CB forum searches haven't helped either. Neither has Google AI, except... it gave me a name to search for (mod_cblogin), even tho the path it gave was non-existent. By file-system search I found /modules/mod_cblogin/mod_cblogin
However, the CB Login page still didn't change when I overrode this template.

Specifically, I used joomla 5's template override system as follows: System > templates > site templates > template override > [template name (Cassiopeia)] > 
  • Create Overrides tab > mod_cblogin
  • Edit overrides tab : Modules > html/mod_cblogin/default.php
To repeat, editing this php does not alter the way my CB login page renders at all.
I've proved that the page is definitely owned by the CB login module, because it alters in other ways when I configure the CB Login module.

 

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 50412
  • Thanks: 8624
  • Karma: 1472
1 day 23 hours ago #343895 by krileon
Replied by krileon on topic Remove 'Forgot Username?' from CB Login page
The CB Login Page is just your CB Login Module. It just renders the module. So you need to override the module layout. Under "Create Overrides" in the "Modules" section you should see "mod_cblogin". Clicking it will dump all of its layout files into /templates/cassiopeia/html/mod_cblogin. There you can edit them however you need.

Regardless I've already implemented hiding the forgot username link if login method is set to email. This implementation is pending review. Once merged we'll release a new CB build and it will just automatically hide that link. For now you can either do the layout edit or use CSS and hide as a temporary fix.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum