- This topic has 1 reply, 2 voices, and was last updated 11 years, 8 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Tweaks › How To Build A Custom PHP Widget For E-member
Tagged: custom login php widget, custom widget
We have a tabbed Widget for WordPress that includes our WordPress Login variables.
How do I mimicked this for E-member?
Here is our current code:
<?php if (!(current_user_can(‘level_0’))){ ?> <p class=”message”>Premium subscribers log in here.
<span class=”red”> Not a premium subscriber? Sign up here.</span></p>
<form action=”<?php echo get_option(‘home’); ?>/wp-login.php” method=”post”>
<p>
<label>Username:</label>
<input class=”login-field” type=”text” name=”log” id=”log” value=”<?php echo wp_specialchars(stripslashes($user_login), 1) ?>” size=”20″ />
</p>
<p>
<label>Password:</label>
<input class=”login-field” type=”password” name=”pwd” id=”pwd” size=”20″ />
</p>
<div class=”clear”></div>
<input type=”submit” name=”submit” value=”Login Now” class=”submit_button” />
<input type=”hidden” name=”redirect_to” value=”<?php echo $_SERVER; ?>” />
</form>
<?php }else{?> Logout <?php }?>
The following posts might be helpful for this customization you are trying to do:
eMember – login, registration and edit profile form CSS customization
WP eMember – Creating or Customizing the Compact Login Widget/Links