Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

text in input box login field

11 years 10 months ago #216163 by lancealot1977
text in input box login field was created by lancealot1977
How do I put username or email (the text) into the login field? I want user's to understand what goes in those fields.

Its similar to the top of the page of joomlapolis where it says username or email.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48464
  • Thanks: 8280
  • Karma: 1443
11 years 10 months ago #216178 by krileon
Replied by krileon on topic Re: text in input box login field
Edit your CB login module and set "Display type" to "Compact".


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.

11 years 4 months ago #228878 by RebelFlicks
Replied by RebelFlicks on topic Remove 6 dots in password field
How do we remove the 6 dots in the password field when set to compact?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48464
  • Thanks: 8280
  • Karma: 1443
11 years 4 months ago #228890 by krileon
Replied by krileon on topic Remove 6 dots in password field
You can't without editing the module and removing it. You can find the module at the below location.

/modules/mod_cblogin/mod_cblogin.php

It uses JS to remove and restore the value on focus and blur when compact mode is used. I can not help you with this however as we do not support core edits. Best I can suggest is where to find it below.

ON: Lines 660 - 673
Code:
$bgstyleUser .= " alt=\"" . htmlspecialchars( $userNameText ) . "\" value=\"" . htmlspecialchars( $userNameText ) . "\" " . "onfocus=\"if (this.value=='" . addslashes( $userNameText ) . "') this.value=''\" onblur=\"if(this.value=='') { this.value='" . addslashes( $userNameText ) . "'; return false; }\"" ; $bgstylePass .= " alt=\""._UE_PASS."\" value=\"paswww\" onfocus=\"if (this.value=='paswww') this.value=''\" onblur=\"if(this.value=='') { this.value='paswww'; return false; }\"" ;


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