cforms II User Forum

Registration is currently disabled.
Guest

FAQs

Login form protected by Login LockDown.


Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

    

Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Case transformation of Author variable?
January 30, 2008
7:06 am
Hugh Todd
Guest

Please replace the ??? with your data!


Absolutely brilliant to see the new Author variable, along with other changes. Oliver, you should be awarded a medal.

Just a quick question. I notice that when I use the {Author} variable, the author's name (I'm only using first names at present, so haven't tested first and last names together) is rendered in lower case. In other words, the capitalisation I have used for the first letter of the WordPress username is changed to lower case.

I could fix this with a text-transform to the style, but don't have access to this for an individual field or text message, I don't think.

Oliver? Sorry to bother you again, but is this fixable?

Thanks! 

January 30, 2008
7:45 am
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

I'm using the "Nickname" of the profile. How is that one set in your example?

January 31, 2008
8:20 am
Hugh Todd
Guest

The nickname and username are both capitalised (by which I mean they begin with uppercase letters) in the Users set-up. But somehow they come out lower case when processed by the form. Odd.

 I see from the Codex that it's possible to set up the_author, the_author_firstname, the_author_nickname, the_author_email and a whole lot of other variations.

Within the Loop (below the post entry and above your form) I've set up a little message to visitors to the site. It tells them to fill in the form or call the company, asking for the author of the entry. In this message I have tried calling "the_author" and "the_author_nickname" and they both give me a capitalised result. "the_author" seems to give me the public name of the User, so I think this is what I'd like to see.

Another odd thing is that I have added a surname to the nickname, just to see what would happen, but the form seems to ignore that completely. The form seems instead to be grabbing the username and making it all lower case.

If you'd like to see the set-up, I can give you access to the prototype site, which I'd prefer not to make public for commercial reasons. Just let me know if this would help.

January 31, 2008
6:55 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

Right. It makes sense to change the {Author} variable to reflect the "Display Name" instead of the nick_name. I'll change that in v7.3b.

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
34 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3762

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5361

Posts: 18742

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)