Skip to Content Skip to Menu

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

Display automatically created username on Sign Up Complete page

  • boyjahq
  • boyjahq
  • OFFLINE
  • Posts: 473
  • Thanks: 33
  • Karma: 3
8 years 8 months ago #278213 by boyjahq
In our system the user does not choose their username. Instead, it is automatically created based on their user_id.

Therefore, we need to change the text on the "Sign Up Complete!" page where it says:
"To have the email sent again, simply try logging in with the username and password of your sign up."

Since they won't know the username they have been assigned until they see the email that is sent, they will not be able to try logging in to get the email resent.

For this we would like to include the automatically created username on this "Sign Up Complete!" page. How can we capture the autocreated username from the database and display it on this page?

I tried adding [username] in the language file text for this page, but it simply shows as [username] when the page is rendered.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 8 months ago #278233 by krileon
You need to modify the UE_REG_COMPLETE_CONF language string within your CB language files or use a language override plugin to override the string with whatever you like. See the CB 2.0 Primer Book as well as the below for language string usage resources.

www.joomlapolis.com/cb-solutions/languages


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.

  • boyjahq
  • boyjahq
  • OFFLINE
  • Posts: 473
  • Thanks: 33
  • Karma: 3
8 years 8 months ago - 8 years 8 months ago #278263 by boyjahq
Yes, I understand about modifying the language file. I tried adding [username] to UE_REG_COMPLETE_CONF but it is rendered exactly that way on the resulting page -- [username]. What syntax do I need to use in order for the data for username to dynamically show on UE_REG_COMPLETE_CONF?

I also tried {cb}[username]{/cb} (yes, I have the content bot plugin installed and enabled). It did not work either.

Actually, now that I think about it, since the person is not logged in on this page, it cannot show the username just created for that person?
Last edit: 8 years 8 months ago by boyjahq.

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

  • boyjahq
  • boyjahq
  • OFFLINE
  • Posts: 473
  • Thanks: 33
  • Karma: 3
8 years 8 months ago #278265 by boyjahq
OK--as a work around I enabled the ability to login with either username or email address. This solves the problem of the user not knowing the username if they have not received the initial email confirmation message (which contains the automatically created username).

However, if they do as instructed on the page UE_REG_COMPLETE_CONF : "To have the email sent again, simply try logging in with the email and password of your sign up", the email is not sent again. Instead they are shown a page stating that "A membership is needed for access" and shown a description of their plan and a Pay Now button. Is there something I must change in order for the original email to be sent again upon attempting to login?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 8 months ago #278286 by krileon

Actually, now that I think about it, since the person is not logged in on this page, it cannot show the username just created for that person?

It doesn't particularly matter as long as the string is passed through substitutions, but in this case it is not so you won't be able to use substitutions in it.

Is there something I must change in order for the original email to be sent again upon attempting to login?

Don't believe you can since you're using CBSubs. CBSubs takes over this process and wants them to pay their pending basket. Once paid CBSubs will enable them.


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