Multi instance forms
-
Hi,
i am using Polylang plugin version 1.7.3 and Theme My Login plugin version 6.3.12.
i have multi language site, so i want to duplicate theme my login pages so there will be two profile pages one for english and other for arabic.
when i used this shortcode [theme-my-login] in arabic profile page it displays login form even when i logged in.
then i used [theme-my-login default_action=”profile”] it displays the profile form successfully but when i click update the profile form it redirect to the same page and add ?instance=1&updated=true to the url and display the login form
i tried [theme-my-login default_action=”profile” instance=”2″] but it still redirect to the same page and add ?instance=1&updated=true to the url and display the login form
i tried this:
function tml_action_url( $url, $action, $instance ) {
if ( ‘register’ == $action )
if(get_bloginfo(‘language’) == “ar”){$url = get_permalink(“314”);}else{$url = get_permalink(“306”);}
if ( ‘lostpassword’ == $action )
if(get_bloginfo(‘language’) == “ar”){$url = get_permalink(“316”);}else{$url = get_permalink(“307”);}
if ( ‘login’ == $action )
if(get_bloginfo(‘language’) == “ar”){$url = get_permalink(“310”);}else{$url = get_permalink(“304”);}
if ( ‘profile’ == $action )
if(get_bloginfo(‘language’) == “ar”){$url = get_permalink(“318”);}else{$url = get_permalink(“309”);}
return $url;
}
add_filter( ‘tml_action_url’, ‘tml_action_url’, 10, 3 );but this only change the url of the links and make the profile form redirect to the same page and add ?updated=true&instance=1 to the url instead of ?instance=1&updated=true but still display the login form
it seems for me that it doesn’t read instance in the shortcode.
it update the profile data but display login form after it.
Note : i am only taking profile form as example but this happen with all forms
please advise
- The topic ‘Multi instance forms’ is closed to new replies.