good job!
-
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 π
The topic ‘good job!’ is closed to new replies.