user-pic

Add field in registration?

Vote 0 Votes

I would like to add a field in the registration form, and then reference the contents of that field in the templates.

Specifically, I would like to add the Website Name, after Website URL in the registration form. Then on entries, I would like the entry to say, Posted by Carole of Carole's Kitchen, with Carole linked to the user's profile (as is now) and Carole's Kitchen linked to her website's URL.

Right now when someone leaves a comment, there is a little MT icon that is linked to the commenter's URL.

Question is how to create a field on the registration the data content of which can be used in the manner described.

I've added the following code to the Registration template in the System Overview:

<mtapp:setting
    id="website-name"
    label="Website Name"
    label_class="top-label"
    hint="The name of your website. (Optional)">
    <input name="website-name" id="website-name" class="ti" value="<$mt:Var name="website-name" escape="html"$>" />
</mt:App:Setting>

but I'm pretty sure that's not enough to do the trick. Ideas?

3 Replies

| Add a Reply
  • Well, I created a custom field and tied it to the user data. So now I can enter this information in my profile edit window.

    But I still haven't figure out what to do about the registration form. I would like this field to be there at registration.

  • Hi,
    Afraid from my quick spin around you need to be looking at a few files:

    lib/MT
    - Author.pm
    - Association.pm
    - Auth.pm
    - Comment.pm

    also look at the lib/MT/CMS & lib/MT/Auth folders. Afraid IMHO MT has a weakness with the 'User' registration side of things, as in ot all users need to comment and not all users are Authors but MT doesn't really handle this very well.

    I'll take a deeper look and see if there is anything else I can find.

  • Hey, Elise.
    Brad checked something in a couple minutes ago that on quick scan looks like it might be exactly this. I'm assuming it'll be in the RC4 release slated for next week, so if this question is regarding the site I think(which is currently running RC3), you might have Jesse take a look at it.

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1773 6162

Last Topic: Excluding categories from blog by kholechek on Feb 9, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1429 5077

Last Topic: What apocalypse hit this community in the middle of 2011? by 75th on Feb 10, 2012

695 2910

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

173 737

Last Topic: About the MT version stated in HTML source by Alex E. Schneider on Feb 7, 2012

190 567

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012