• Hi,
    I am facing one issue. I am using mycred plugin & i want to reward user for signup referral.
    & for that i am using Referral Hook that is available on mycred.
    Now i turned on one option that is available in your plugin Social Sharing to “Append myCRED referral ID to the urls being shared”
    I have modified mycred Referral link Hook a bit & its working fine. But seems like your plugin is taking default one.

    I have made a video kindly look to it. So that you can better understand the case.
    https://drive.google.com/file/d/1No1EwA076QkQWUGupEpj14d6R60J0Fn4/view

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Heateor Support

    (@heateor)

    Hi there,

    We are looking into it. Will keep you updated.

    I have same issue.
    If you can tell us where the Mycred “mref” script is in the super socializer, I’m sure we can do some changes to make it work.

    The script below works for jetpack share buttons but I’m using Super Socializer Share buttons.

    Your recommendation is highly required and appreciated.

    add_filter( ‘sharing_permalink’, ‘mycred_pro_insert_ref_in_jetpack_share’ );
    function mycred_pro_insert_ref_in_jetpack_share( $url ) {

    // Cant do anything for visitors
    if ( ! is_user_logged_in() ) return $url;

    // Get users ref ID (if using numeric IDs)
    $ref_id = get_user_meta( get_current_user_id(), ‘mycred_affiliate_link’, true );
    if ( $ref_id == ” ) return $url;

    // Get users ref ID (is using username)
    //$user = wp_get_current_user();
    //$ref_id = urlencode( $user->user_login );

    return add_query_arg( array( ‘mref’ => $ref_id ), $url );

    }

    //END OF SCRIPT

    #THANKS

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Social Sharing Mycred Issue’ is closed to new replies.