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.

Home Forums Max

About: Max

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


Topics I'm Subscribed To

Viewing 2 topics - 1 through 2 (of 2 total)
Topic Count Last Reply
Ccaps checkbox in registration form

By:  Max in: Community Forum

voices: 2
replies: 1

3 years, 5 months ago  Bruce

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

Topics I've Started

Viewing 2 topics - 1 through 2 (of 2 total)
Topic Count Last Reply
Ccaps checkbox in registration form

By:  Max in: Community Forum

voices: 2
replies: 1

3 years, 5 months ago  Bruce

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

My Latest Replies (From Various Topics)

Viewing 2 replies - 1 through 2 (of 2 total)
Author Replies
Author Replies
Posted: Monday Dec 3rd, 2012 at 4:06 pm #33363
Max
Username: max_s

Great! That did the trick :)

Thanks for the support!

Posted: Monday Dec 3rd, 2012 at 6:49 am #33286
Max
Username: max_s

Thank you Raam for pointing me in the right direction! I was able to piece something together which works just fine.

<?php

if(($status = CheckReturnurl( $rtlo,  $_GET['trxid'] ))=="000000 OK" ){
    
    // CODE FOR AUTOMATICALLY UPDATING CURRENT USER'S ROLE & EOT GOES HERE
    
    update_user_option(get_current_user_id(), 's2member_auto_eot_time', strtotime('+3 months')); 
    $user = new WP_User(get_current_user_id());
    $user->set_role("s2member_level2");

    echo "Thanks for renewing your membership!";

    c_ws_plugin__s2member_user_notes::append_user_notes (get_current_user_id(), "Renewed on: " . date ("D M j, Y g:i a T"));	
    
  }
 
 // IF PAYMENT UNSUCCESSFUL, STATUS REPLIED HERE
  
  else die( $status );

}

?>

The only thing that doesn’t work is appending a note upon renewal. Any thoughts?

Thanks!

Viewing 2 replies - 1 through 2 (of 2 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.