[SOLVED] How do I change "register" to "sign-up" in login

12 years 5 months ago - 12 years 5 months ago #184350 by MissyW
How can I change the prompt which says "Register" in the login module so it says "Sign-up" instead? (Have browsed the language files and module files, but can't seem to find it.)

Please Log in to join the conversation.

12 years 5 months ago #184464 by krileon
Language string within your language files. Please see the below example.

IN: components/com_comprofiler/plugin/language/default_language/default_language.php
ON: Line 242
DEFINE('_UE_REGISTER','Register');


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.
The following user(s) said Thank You: MissyW

Please Log in to join the conversation.

12 years 5 months ago - 12 years 5 months ago #184516 by MissyW

krileon wrote: Language string within your language files. Please see the below example.

IN: components/com_comprofiler/plugin/language/default_language/default_language.php
ON: Line 242

DEFINE('_UE_REGISTER','Register');

:) Thanks! I have been able to change the prompt in the login module to say "New User? - click here to Register".
Only trouble is, it has changed the submit button at the bottom of the registration form to say the same thing, which looks a bit silly.

I will try to work out if I can customise the submit button on the registration form separately.
Attachments:

Please Log in to join the conversation.

12 years 5 months ago - 12 years 5 months ago #184535 by pepperstreet
Replied by pepperstreet on topic Re: How do I change "register" to "sign-up" in login
Checkout the CB-login-module parameters.

A.) You can change the appearance of the links (i.e. buttons, icons only ...)

B.) You can also hide the default "Create account" link. Than you might add your own custom link in the pre-/post text areas. In those textareas, you can use any HTML and also your own language definitions!
The following user(s) said Thank You: MissyW

Please Log in to join the conversation.

12 years 5 months ago #184563 by krileon

Only trouble is, it has changed the submit button at the bottom of the registration form to say the same thing, which looks a bit silly.

Yeah, it's kind of a widely used string. No worries as you can edit the template directly and change the string for the registration page manually with the below.

IN: components/com_comprofiler/plugin/templates/default/default.php
ON: Line 295
FROM:
<span class="cb_button_wrapper"><input type="submit" value="<?php echo $this->registerButton; ?>" class="button" /></span>
TO:
<span class="cb_button_wrapper"><input type="submit" value="Register" class="button" /></span>

B.) You can also hide the default "Create account" link. Than you might add your own custom link in the pre-/post text areas. In those textareas, you can use any HTML and also your own language definitions!

This could work, but I can't recall if the pre/post texts are generated inside the FORM element. If they are then you could quite easily supply a custom submit button.


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.
The following user(s) said Thank You: MissyW

Please Log in to join the conversation.

12 years 5 months ago #184605 by MissyW

krileon wrote:

Only trouble is, it has changed the submit button at the bottom of the registration form to say the same thing, which looks a bit silly.

Yeah, it's kind of a widely used string. No worries as you can edit the template directly and change the string for the registration page manually with the below.

IN: components/com_comprofiler/plugin/templates/default/default.php
ON: Line 295
FROM:
<span class="cb_button_wrapper"><input type="submit" value="<?php echo $this->registerButton; ?>" class="button" /></span>
TO:
<span class="cb_button_wrapper"><input type="submit" value="Register" class="button" /></span>

Thanks! It worked, though I also had to change the same line of code on line 257.

You're a hero! :)

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.237 seconds

Facebook Twitter LinkedIn