WordPress.org

Forums

User Profiles (11 posts)

  1. rustin
    Member
    Posted 9 years ago #

    I've been looking around for ideas on how to do this and wanted to see if anyone else had some ideas.

    I'd like to do a few extra things with my user information:

    1. Collect additional information about registered users (address, phone, etc...) to be stored in the user table and editable by the user in their profile

    I did find this:http://dev.wp-plugins.org/wiki/Userextra but haven't dug into it yet.

    2. Have the user edit their profile from within the current theme. Is there a way to run PHP from within a page and just create a form that updates the WP user table?

    anyone have any good ideas?

  2. sikatzonline
    Member
    Posted 9 years ago #

    you have to code for this. It's no no longer possible as a plugin alone. WHAT I DID: redirected users to another admin panel that has the current theme.

  3. rustin
    Member
    Posted 9 years ago #

    any chance you could post a link? I'd love to see how someone else did it.

  4. chinaman
    Member
    Posted 9 years ago #

    I am looking for the same solution.

    For a small community website I like people to
    register, edit, subscribe, unsubscribe to the newsletter, rsvp to an event (based on an unique id in the link send out in the newsletter) etc but instead of going into the wp-admin I like them to stay within the theme layout.

    I don't know if this is possible but if anyone knows how to achieve this within WP or is interested to develop a plugin that can do this, it would be great.

    In case of the plugin I am more than happy to pay for it, as well as giving the result back to the community

  5. Phunky
    Member
    Posted 9 years ago #

    I have done this many times one http://www.eurocss.net and other places.

    I dont have this as a plugin yet, if you know PHP though i can walk you thru it with some of my userProfile mods.

    http://www.wilcob.com/Wilco/Pastecode/2647/showpaste.aspx

    ^ above is the basics of my userProfile Plugin, as i say its done for one site only (not eurocss) its very easy to add extra details and such for when a user registers

    http://www.wilcob.com/Wilco/Pastecode/2648/showpaste.aspx

    ^ that is my custom register page for users on one of my sites that is in development, but i also had to hack wp-login.php abit to stop it going to the wp-admin login

  6. chinaman
    Member
    Posted 9 years ago #

    Thanks. I will study this and see how far I can take it myself. I am absolutely a php noob but replacing things I am good at:)(at least sometimes)

    A couple of questions

    1. Does the code Work with wp 2.01?

    2. The first part works as/is a plugin

    3. The second part is code for a customized page to subscribe/register.

    I'll let you know how far I have been able to take it.

    Thanks again.

  7. Phunky
    Member
    Posted 9 years ago #

    1) Yes this is written for WP 2.01
    2) Yes the first part is done as a WP-Plugin just add <?php pky_userProfile();?> into the page you wish to use it in.

    3) That is a page template for signing up users.

  8. chinaman
    Member
    Posted 9 years ago #

    thanks for the answers

  9. Coolzor
    Member
    Posted 9 years ago #

    @Phunky; your code seems to work, I can copy it and paste it in a text file. Saving it as a php file I can upload it to the plugin section and it's recognized.

    Then I created a blank page and made a template which included the <?php pky_userProfile();?> you provided and yes, it shows my current data. Now if I want to click 'ammend', it doesn't load anything, it just refreshed the page. Also, how can I make it to display users instead of always me (admin)? And where can I actually change my data?

    Thanks.

  10. Coolzor
    Member
    Posted 9 years ago #

    Sorry for the second post, I know it's not done, but I also wanted to know what exactly you had to change in the wp-admin login...

    Thanks again.

  11. neeKlamy
    Member
    Posted 9 years ago #

    Woo, okay I've been trying to get the amend link working as well. Now I'm no PHP guru but after a lot of hacking and a sudden "eureka" moment I've got it partially going.

    It's a simple edit, in userprofile.php (or whatever you've named the plugin as) http://www.wilcob.com/Wilco/Pastecode/2647/showpaste.aspx

    Change line 28 from:
    if ($action == 'edit'){

    to:
    if ($_GET['action'] == 'edit') {

    Just have to figure out how to post the updated information in line 31 of the plugin, it can't be sent directly to wp-admin/profile-update.php because that requires sending referrers http://codex.wordpress.org/Enable_Sending_Referrers

    Help us out Phunky?

Topic Closed

This topic has been closed to new replies.

About this Topic