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
You are here: Home

sol

  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • March 17, 2012 at 11:13 am in reply to: Manually Approve members process #42610
    sol
    Member

    Thanks a lot, that solved it. I just added another condition, so the code looks like this now:

    <?php

    global $wpdb;

    $order = ‘company_name’;

    $members_table_name = $wpdb->prefix . “wp_eMember_members_tbl”;

    $resultsets = $wpdb->get_results(“SELECT * FROM $members_table_name ORDER BY $order”, OBJECT);

    foreach ($resultsets as $member):

    ?>

    <?php if($member->membership_level == 2 and $member->account_state == active) { ?>

    <tr>

    <td align=”left”><?php echo $member->last_name; ?></td>

    <td align=”left”><?php echo $member->first_name; ?></td>

    <td align=”left”><?php echo $member->company_name; ?></td>

    <td align=”left”><?php echo $member->country; ?></td>

    </tr>

    <?php

    }

    endforeach; //

    ?>

    March 15, 2012 at 9:33 pm in reply to: Manually Approve members process #42608
    sol
    Member

    I need to display a member list of only the members which are approved. I realize that both with the shortcode and with my php code – see https://support.tipsandtricks-hq.com/forums/topic/pulling-member-info/page/2 – it displays also unconfirmed members, even applicants who have not even confirmed their email address. As this opens the door to spammers and makes the organisation look little credible, I would like to list only confirmed members.

    Any idea on how I could do that?

    March 15, 2012 at 9:27 pm in reply to: Additional info on members: Title #40508
    sol
    Member

    Completely overlooked your answer. I am, but it was not offering the right options.

    But still in general, it would be nice to be able to add more fields. Mobile number and Phone, …

    January 8, 2012 at 5:35 pm in reply to: Pulling member info #35241
    sol
    Member

    Hi,

    just to say that this post was great to figure out what I needed. Here is how I used and adapted it – watch out that you change the membership level to be displayed if you want to have a different one then 2. If you put it into a page, you also need to have a wordpress php plugin like php exec installed.

    <div align=”center”>

    <div>

    <table>

    <thead>

    <tr>

    <td align=”center”>

    <div>Surname</div></td>

    <td align=”center”>

    <div>First name</div></td>

    <td align=”center”>

    <div>Company</div></td>

    <td align=”center”>

    <div>Country</div></td>

    </tr>

    </thead>

    <tbody>

    <?php

    global $wpdb;

    $order = ‘company_name’;

    $members_table_name = $wpdb->prefix . “wp_eMember_members_tbl”;

    $resultsets = $wpdb->get_results(“SELECT * FROM $members_table_name ORDER BY $order”, OBJECT);

    foreach ($resultsets as $member):

    ?>

    <?php if($member->membership_level == 2) { ?>

    <tr>

    <td align=”left”><?php echo $member->last_name; ?></td>

    <td align=”left”><?php echo $member->first_name; ?></td>

    <td align=”left”><?php echo $member->company_name; ?></td>

    <td align=”left”><?php echo $member->country; ?></td>

    </tr>

    <?php

    }

    endforeach; //

    ?>

    </tbody>

    </table>

    </div>

    </div>

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)

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