Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

[SOLVED] proper name format (first letter capitalized)?

  • duportde
  • duportde
  • OFFLINE
  • Posts: 10
  • Thanks: 0
  • Karma: 0
12 years 3 months ago #212530 by duportde
Hello,

This is a very insteresting topic !
I would like to know how to adapt your auto action in order to have all the letters of the lastname in uppercase.
I tried this query :
Code:
UPDATE `#__comprofiler` SET `lastname` = UCASE(`lastname`) WHERE `id` = '[user_id]'
but it didn't worked...
Thank you very much for your help !
Kind regards,
Etienne

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
12 years 3 months ago #212547 by krileon
Your query looks fine. Your auto action is probably misconfigured and not firing though.


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.

  • duportde
  • duportde
  • OFFLINE
  • Posts: 10
  • Thanks: 0
  • Karma: 0
12 years 3 months ago #212605 by duportde
Hello,
Thank for your reply.
Please find attached a screenshot of the configuration of this auto-action.
If you find something wrong, I would be happy to find the solution...
Thank you very much !
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
12 years 3 months ago #212645 by krileon
You have 2 queries in the same auto action but they're not separated with a ; followed by a linebreak. Please end your first query with ; then press enter/return and start your next query.


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.

  • duportde
  • duportde
  • OFFLINE
  • Posts: 10
  • Thanks: 0
  • Karma: 0
12 years 2 months ago #213101 by duportde
Hello,
I changed the code in order to add the ';' but despite of these modifications, it doesn't work... I have the last version installed 3.1.0, and tested it with one query at once.
Here attached is a screenshot of the parameters of the auto action.
I even tested to define the sql database as external.
Do you have an idea on was is working wrong ?
Thanks a lot !
Etienne
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
12 years 2 months ago #213141 by krileon
Ah, I see an issue with your query. Please try the below.
Code:
UPDATE `#__comprofiler` SET `lastname` = UCASE( `lastname` ) WHERE `id` = '[user_id]'

In your query you've quotes around lastname, which is a column that wouldn't exist. Ensure you're testing with debug mode and maximum error reporting set in Joomla global configuration so such errors can be exposed.


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