Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

How To Build A Custom PHP Widget For E-member

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

  • This topic has 1 reply, 2 voices, and was last updated 12 years, 2 months ago by admin.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • March 28, 2013 at 7:24 pm #8838
    rbrtvbr
    Member

    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 }?>

    March 29, 2013 at 1:43 am #54708
    admin
    Keymaster

    The following posts might be helpful for this customization you are trying to do:

    eMember – login, registration and edit profile form CSS customization

    Editing WP eMember login widget/form

    eMember – Customize compact login widget

    WP eMember Login forms

    WP eMember – Creating or Customizing the Compact Login Widget/Links

    https://support.tipsandtricks-hq.com/forums/topic/change-default-lookdimensions-of-emember-login-widget

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ