BuddyDev

Search

[Resolved] paiement with featured Member

  • Participant
    Level: Enlightened
    Posts: 126
    Hervé on #18866

    HI Brajesh,

    ok I put in my code in functions.php :

    
     if( $form_id==112 ) {
        bp_featured_members()->add_user($user_id);
        update_user_meta( $custom[3], '_paid_featured', 1 );
        update_user_meta( $custom[3], '_bpfm_featured_expiry_time', time() + bpfm_paypal_get_role_based_interval( $custom[3] ) );
      }
    

    and added in your plugin the mentioned code

    I clicked the button manually “set featured” and several hours after the member is still present
    How can this work according to the xprofile field or by clicking on your button manually to “highlight”?

    I’m sorry for the delay this week because I have 1 site for association that has been hacked, I am less available
    Regards

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #18867

    Hi Herve,
    I am sorry to hear about your other site.

    For this site, Please share complete code including file header on pastebin. It seems to me that you might have removed the plugin header again. I don’t see any reason why the already running code won’t work.

    The code in previous reply does not have any affect on the original.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 126
    Hervé on #18959

    Hello Brajesh,
    To understand each other, I did not retest what worked.
    1 After doing what you asked, I just clicked on the “set featured” button to members. The members stay all the time “set featured”!
    2 / I do not see where you support the xprofile

    https://pastebin.com/6C3ejJYL

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #18963

    Hi Herve,
    I am sorry but each time I share the code you keep changing and that breaks it.

    For example, The code you have shared in the above link is incapable of adding members as featured after Payment. You have removed the section which marked user as featured on Payment.

    Please provide me FTP and let me update the file for you. That will be much easier and I can update this quickly. That will save you time too.

    Thank you
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 126
    Hervé on #19784

    Hello Brajesh,

    Its good. last time i had to go wrong in the times and wordpress roles. I will now put it on the production site
    Thank you for your great support 🙂
    Happy Holidays and I wish you the best in 2019
    Best regards

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #19804

    Hi Herve,
    Thank you.
    Happy Holiday and Wish you a wonderful year ahead:)

    Regards
    Brajesh

The topic ‘ [Resolved] paiement with featured Member’ is closed to new replies.

This topic is: resolved