WordPress.org

Forums

Custom Registration form and Permalink (8 posts)

  1. zanfardinom
    Member
    Posted 2 years ago #

    Hi all,

    Two questions -
    I would like to add one field to the registration form that WP uses. The form will ask for the new users display name. I have created a copy of the wp-signup.php file and renamed it to custom-signup.php. Then, added the field that ask for the users preferred display name. It carries over in hidden fields for when the user setups up the blog. But, I can't get it to add to the database. It just puts the username in the display field.

    2nd question -
    How can I setup WordPress to use a custom permalink as %postname% for new registered users.

    This will elminate two steps our users don't have to manual go in and change.

    Thanks in advance!
    mz

  2. For #2, http://wordpress.org/extend/plugins/wpmu-new-blog-defaults/ will help.

    For #1, can you post your code to pastebin so we can see it?

  3. zanfardinom
    Member
    Posted 2 years ago #

    Thanks, Mika!

    Okay, so we have our own custom registration, but the problem with this one is it worked great in wpmu 2.8. Now, in 3.4.2 with network installed it adds the new registered user with blog as a subscriber to the super admin account. Looked and looked and just can't figure out why. Any thoughts.

    http://pastebin.com/VzGx5VVL

    Second link is a varient of the wp-signup.php file. Everything works on the front-end, but does not add the display_name field data to the database. Would love to use our original code above, but this would work too.

    http://pastebin.com/XwJ19TTy

    Thank you so much. Please let me know if you have additional questions.

  4. great in wpmu 2.8. Now, in 3.4.2 with network installed it adds the new registered user with blog as a subscriber to the super admin account.

    To the ... what?

    The 'super admin account' doesn't get more people added to it. Do you mean they get added to the main blog as a subscriber? That doesn't happen anymore as of ...3.3 I think.

  5. zanfardinom
    Member
    Posted 2 years ago #

    Yes, sorry about that. They get added as a subscriber to the admin blog. Tested the first link code on the latest 3.4.2 version of wordpress and it adds the new registered user and their blog to the network, but adds the user as a subscriber to the admin blog.

  6. Okay, that's got to be a function of your code, which I haven't sat and dug through yet. By default, WordPress doesn't add you as a subscriber to any sites when you register. If you create a blog with your ID, it makes you the admin. But that's really it.

  7. zanfardinom
    Member
    Posted 2 years ago #

    Mika,

    If you look at the first link above...our custom code. Yes, I agree...has to be in our code. We looked and looked and can't find it. I am sure we need a second set of eyes. :)

    We would greatly appreciate your time o look at the code.

    Thank you!!

  8. Nothing jumped out at me...

    You copied wp-signup.php, I see. Have you tried making that a page-template instead of a stand-alone php page? I wonder if that may help...

    I described how to do it for a per-site way here: http://halfelf.org/2012/multisite-registration/

Topic Closed

This topic has been closed to new replies.

About this Topic