Author Topic: Capital Letters  (Read 2079 times)

chris6

  • Posts: 93
    • View Profile
Capital Letters
« on: June 02, 2005, 09:35:47 am »
Does list mail have a facility to automatically make the first letter of
peoples' names a capital letter?
www.YourBusinessSuccess.co.uk

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Capital Letters
« Reply #1 on: June 03, 2005, 05:33:22 pm »
Yes, this was added for v1.8.  In message codes dealing with names (first, last, and fullname) there is a new option for capitalization.  All you have to do is enable it for each code.

Regards!
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

chris6

  • Posts: 93
    • View Profile
Capital Letters
« Reply #2 on: June 05, 2005, 05:44:11 am »
Yes, this was added for v1.8. In message codes dealing with names (first, last, and fullname) there is a new option for capitalization. All you have to do is enable it for each code.

Regards!

Any chance of enlightening me as to "how to enable it" for each code.
Thanks

chris6

  • Posts: 93
    • View Profile
Self Enlightenment
« Reply #3 on: June 05, 2005, 07:47:08 am »
For the benefit of any one else wanting to do this.

Go to Send Email
click on View Message Codes above the Subject Bar
Scroll to the bottom of the codes and click on Edit Message Codes
Then Edit the first name code and click on the Capitalize button and save it.
eh Voila!
www.CardellMedia.com

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Capital Letters
« Reply #4 on: June 05, 2005, 01:48:13 pm »
I'm glad you were able to figure it out.  Instead of going through the "View Message Codes" popup, which results in a toolbar-less browser window, you can also simply click "Message Codes" on the main left menu.

Regards! :D
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

AlanT

  • Posts: 47
    • View Profile
    • http://www.PowerKeysPub.com
Capital Letters
« Reply #5 on: June 22, 2005, 06:37:15 am »
I had missed this option, but with the help of the forum, I can now spend less time editing the names of new subscribers.

However, just as a point of efficiency, would it be better to capitalize the names when added to the database rather than capitalize them for each and every mailing?  It would use fewer CPU cycles to do it this way.

Just my $.02.

Thanks for a great program.

- Alan
http://www.PowerKeysPub.com
- Alan

We all have the Power.
All we need are the Keys.
http://www.PowerKeysPub.com

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Capital Letters
« Reply #6 on: June 23, 2005, 08:48:46 pm »
Yes, you can use JavaScript to format your names before they get to ListMail.  Indeed, it should use less CPU at mailing time as the capitalize function is now a good 10 lines to account for names like "O'Brian", and "McDonald".

Here's the new code:
Code: [Select]
function capitalize($name=NULL) {
 if(empty($name)) return false;
 $name = strtolower($name);
 $names_array = explode('-',$name);
 for ($i = 0; $i < count($names_array); $i++) {
  if (strncmp($names_array[$i],'mc',2) == 0 || ereg('^[oO]\'[a-zA-Z]',$names_array[$i])) {
   $names_array[$i][2] = strtoupper($names_array[$i][2]);
  }
  $names_array[$i] = ucfirst($names_array[$i]);
 }
 $name = implode('-',$names_array);
 return ucwords($name);
}

If you do something like this in JavaScript I'd be interested in a copy.  I could translate it too, perhaps for a future improvement to the signup form generator.

Regards!
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting