[Plugin: Theme My Login] Modal user profile page
-
I have been playing around with this plugin for a couple of days now and i love it!
I am wondering if there is a way to have the user profile page (the page content only) appear as modal window/popup when the Profile link is clicked?
So far I have managed to get the entire plugin appear as a modal, bot not the user profile page. When I try to load the profile-form.php as a modal, the page content fails to load.
This piece of code seem to be causing the problem is:<?php
$GLOBALS[‘current_user’] = $current_user = wp_get_current_user();
$GLOBALS[‘profileuser’] = $profileuser = get_user_to_edit( $current_user->ID );$user_can_edit = false;
foreach ( array( ‘posts’, ‘pages’ ) as $post_cap )
$user_can_edit |= current_user_can( “edit_$post_cap” );
?><div class=”login profile” id=”theme-my-login<?php $template->the_instance(); ?>”>
<?php $template->the_action_template_message( ‘profile’ ); ?>
<?php $template->the_errors(); ?>
<form id=”your-profile” action=”” method=”post”>
<?php wp_nonce_field( ‘update-user_’ . $current_user->ID ) ?>
<p>
<input type=”hidden” name=”from” value=”profile” />
<input type=”hidden” name=”checkuser_id” value=”<?php echo $current_user->ID; ?>” />
</p>Hope this was possible to understand and I would really appreciate if someone have any tips or pointers on how to achieve this.
The topic ‘[Plugin: Theme My Login] Modal user profile page’ is closed to new replies.