Viewing 7 replies - 16 through 22 (of 22 total)
  • Hey jas712,
    I just had the same problem. Here’s the solution:

    Change the snippets that you included in settings.php

    if( !empty( $_POST[‘yourextraprofilefield’] ))
    update_usermeta( $current_user->id, ‘the-metaname-of-your-custom-field’, esc_attr( $_POST[‘yourextraprofilefield’] ) );

    to the following:

    if( !empty( $_POST[‘yourextraprofilefield’] ))
    update_usermeta( $user->id, ‘the-metaname-of-your-custom-field’, esc_attr( $_POST[‘yourextraprofilefield’] ) );

    (The only difference is that $current_user->id is changed to $user->id.)
    Afterwards it should work. (At least it worked for me.)

    Thanks FranzWegener!

    I also figured it out few hours ago, there is also one more part:

    update_usermeta()

    to

    update_user_meta()

    which is an update of this function.

    However, I found out that I broke a bit of the function. I was translating all the message into another language, and I found out that the required_field array didn’t update at all. (for example the first_name, last_name, user_email), I need to add in the update_user_meta if case for those fields.

    And when you click update, the link should became “your-domain.com/profile=a?true (something like that).
    Mine is just stays as “your-domain.com/profile” even though is already updated.

    Any clue do you know what seems to be the problem?

    Thanks again!!

    2 – How to create an FEU view

    – Next, we need to instruct the plugin to use the new “view” template. Add the following code to the functions.php file of your current theme:

    add_filter(‘feu_settings’, ‘set_custom_feu_views_directory’);
    function set_custom_feu_views_directory($settings) {
    //$settings[‘views_directory’] = get_theme_root().’/’.get_template().’/views/’;
    $settings[‘views_directory’] = ‘/home/public_html/your-website/wp-content/themes/your-current-theme/views/’;
    return $settings;
    }

    – For some reason, the third line of the above code didn’t work for me so I commented it out (the two forward slashes) and replaced it with the fourth line.

    thank you for the great plugin.

    TEMPLATEPATH just works fine.
    $settings[‘views_directory’] = TEMPLATEPATH.’/views/’;

    Thanks for this walkthrough. Definitely a much needed addition to this plugin.

    I’ve been able to get the custom fields working but when I try doing the website step it won’t update on the plugin side. It shows up correctly and updates via /wp-admin/ but does not update when changed on the FEU side.

    Is there a possible update to this code due to the new wordpress updates?

    Thank you for this detailed user guide! That’s fantastic.
    However, as I’m following the steps to add a custom profile field manually to FEU (step 4 above). While the field is displayed properly, I get an error message when updating the form: “Failed Security Check”. Any clue?

    Hi Dominor Novus thanks for the instructional steps, however I am having trouble to add a link to the profile page. I want to add the author’s post link (the page showing all the posts the current user posted), can you or anyone else please teach me how to add it? I tried <?php the_author_posts_link(); ?> but not doing anything, sorry for being such a noob =/

    Thanks everyone
    Alex

    Hi Dominor,

    Most of your instructions I’ve followed, and they were great – no problems!

    However, I’ve run into a problem adding the menu to my profile page. Although I can get the “setting” menu item to show, and I’ve added

    page-a.php
    page-c.php
    page-x.php
    page-y.php
    page-z.php

    to my view, and followed your instructions copying the code into my theme’s functions.php. But this is where i ran into a problem. Loading my profile page resulted in this error message:

    “Parse error: syntax error, unexpected $end in /home/rowenr/public_html/theyogapost.com/wp-content/themes/reportage/functions.php on line 122”

    Do you have any idea why I’m seeing that? And how I can neat tabs to display the menu items as seen in the screenshot for this plugin?

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘[Plugin: Front-End Users] Further instructions and examples’ is closed to new replies.