latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

About: Ryan McNeil

Sorry, I've not written a description yet. I'll get to it soon!


Topics I'm Subscribed To

Viewing 3 topics - 1 through 3 (of 3 total)
Topic Count Last Reply
Conditionals for API Notifications

By:  Ryan McNeil in: Community Forum

voices: 2
replies: 2

3 years, 4 months ago  Ryan McNeil

if/else with Custom User Field

By:  Ryan McNeil in: Unofficial Extensions/Hacks

voices: 2
replies: 3

3 years, 7 months ago  Eduan

Get User's Selected Checkboxes With PHP

By:  Bruce in: Unofficial Extensions/Hacks

voices: 3
replies: 3

3 years, 7 months ago  Ryan McNeil

Viewing 3 topics - 1 through 3 (of 3 total)

Topics I've Started

Viewing 2 topics - 1 through 2 (of 2 total)
Topic Count Last Reply
Conditionals for API Notifications

By:  Ryan McNeil in: Community Forum

voices: 2
replies: 2

3 years, 4 months ago  Ryan McNeil

if/else with Custom User Field

By:  Ryan McNeil in: Unofficial Extensions/Hacks

voices: 2
replies: 3

3 years, 7 months ago  Eduan

Viewing 2 topics - 1 through 2 (of 2 total)

My Latest Replies (From Various Topics)

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Tuesday Aug 20th, 2013 at 11:50 am #56264
Ryan McNeil
Username: rmcneil

I do have a Modification Notification set up, which is working fine. I was just trying to find a way to trigger the Mod. Notification in certain cases and not in others. (i.e. trigger for 0 -> 1 but not renewing level 1 membership)

I have a Buy Now Button set up for renewals (the member is still current but wants to extend the subscription. However, the Modification Notification is still firing when a current member renews, even though the member’s level is not actually changing.

I was tried using an if statement using the result of the %%user_id%% tag, but that didn’t seem to work (maybe the notification is firing before wp can recognize the ids?)

Any suggestions?

Posted: Wednesday May 29th, 2013 at 11:03 pm #50889
Ryan McNeil
Username: rmcneil

Bruce,
Thanks for this hack.

A related question:

Is there any way to list all the multi-option variable choices (not user specific)?
I want to use foreach to create a list of specialties (there are over 40) that will change dynamically if the client adds more specialties, or edits or deletes current ones. Is this possible?

Thanks again!

Ryan McNeil

Posted: Wednesday May 29th, 2013 at 6:36 pm #50881
Ryan McNeil
Username: rmcneil

Thanks, Eduan.

The conditional works now. Also, it turns out I needed to call the user field after the foreach function. Here’s what I ended up with and it works perfectly!

<?php
    $blogusers = get_users('search=Action Theatre');
    
    foreach ($blogusers as $user) {
    
    $radiobox = get_user_field ("public_directory_yesno", $user);
     
     if($radiobox == 'Yes'){
        echo '<tr>';
        echo '<td style="width:3%"></td>';
        echo '<td style="width:15%"><h4>' . $user->user_firstname . "&nbsp" . $user->user_lastname . '</h4></td>';
        echo '<td style="width:3%"></td>';
        echo '<td><p>' . $user->user_email . '</p></td>';
        echo '<td>' . $user->user_url . '</td>';
        echo '</tr>';}
     else {
        echo '';
        }
    }
?>

Thanks again for the help!

Viewing 3 replies - 1 through 3 (of 3 total)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.