• Resolved mix359

    (@mix359)


    Hi

    I’m trying your plugin and I wanna congratulate with you for the good job!

    I have a little question and some tips to suggest πŸ˜‰

    First the question:
    I’ve see that you have localized many phrase on the plugin, but I haven’t see any translation file in the plugin. Are only a future feature or can I download from somewhere the language file?

    (Are the phrase different from the original wordpress? If it was the same, you could use the default translation that there’s inside wordpress…)

    I really need to have translation in the major languages on the site where I’ve put the plugin (like French, Spanish, Italian and some like that)

    And now some suggestion tip:
    -Would be awesome have an administration panel where I can choose which url to overwrite. If for example I only want to overwrite the user profile page, and leave all the other the default, at the moment I have to remove your filter on the hook (that is not pratical…)
    Same thing for other stuff like the permission to use for hide the admin bar or the default redirect on the logout.

    -At the moment your url rewrite only work with the permalink enabled.
    Why not make an universal way to recall that?
    I, for example, am using the /index.php/ style of permalink at the moment (don’t have htaccess and stuff) and have to hook into home_url filter to fix the url.
    I suggest to you to create a function that generate the url the right way. In this way, it will work with all the permalink structure (even the disable permalink, like index.php?uf=user_profile)

    Here’s and example in the helper file: (haven’t tested in htaccess case, but it should work)

    add_action( ‘edit_profile_url’, ‘uf_edit_profile_url’ );
    function uf_edit_profile_url( $url ) {
    if ( is_admin() )
    return $url;

    return uf_create_url( ‘user-profile’ );
    }

    function uf_create_url($to) {
    global $wp_rewrite;
    if (get_option(‘permalink_structure’)) {
    $link = home_url(user_trailingslashit($wp_rewrite->root . $to, ”));
    } else {
    $link = home_url(‘?uf=’ . $to);
    }
    return $link;
    }

    Bye πŸ˜‰

    https://wordpress.org/plugins/user-frontend/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter mix359

    (@mix359)

    An other little thing:
    In restrict-backend-access.php there’s a little error.
    add_action( ‘show_admin_bar’, ‘uf_maybe_remove_admin_bar’ );

    show_admin_bar it’s a filter, not an action πŸ˜‰

    so it should be:
    add_filter( ‘show_admin_bar’, ‘uf_maybe_remove_admin_bar’ );

    byez

    Plugin Author Laura

    (@lauraquellmalz)

    Thanks for the postings. I’ll check your requests within the next release πŸ™‚

    Regards,
    Llama

    P.S.: And sorry for the delay of answering your questions πŸ™

    Plugin Author wpcodingde

    (@wpcodingde)

    Hi there,

    I just released an update for this plugin. Please check your requests again πŸ™‚

    Best,
    Thomas

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘good job!’ is closed to new replies.