BuddyDev

Search

[Resolved] paiement with featured Member

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

    Hi Brajesh,

    Actually, I want to assign the number of days based on the WP role and gender of the member. Why it is not possible?
    If this is not possible, do you have any idea of ​​another solution?
    Regards

  • Keymaster
    (BuddyDev Team)
    Posts: 24212
    Brajesh Singh on #17449

    Hi Herve,
    In your case, you will need to store the expiration time(when you want to the user account to expire in meta entry) and then in the remove_featured() you will need to check against that time.

    The reason is, you can determine the allowed time at the time of marking featured(as the user account is available) but the same is not true for removing.

    The current strategy will not work as it keeps when the user account was marked featured. In this case you can not differentiate between two account.

    I will share some code later to allow you do the same

    If you have made modifications to Expirable Membership, Please share on pastebin and link me.

    Thank you
    Brajesh

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

    Hi Brajesh,
    Ah ok thank you for all these details.
    I shared the current code:
    https://pastebin.com/13kNA2x8

    I would have liked to have a different time depending on the role WP if I activate manually clicking on the button “set featured”. If it’s too complicated, I give up this option (or I’ll put a common time for any manual activation)
    Regards

  • Keymaster
    (BuddyDev Team)
    Posts: 24212
    Brajesh Singh on #17474

    Hi Herve,
    I had a look at the shared code. It is incomplete. You have only shared part of the class. Please share the complete code for expiring members as well as assigning them too.

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

    Hello Brajesh,
    I’m not sure I understood correctly, but I put the complete code of your add-on: BuddyPress Member Featured Expirable Membership Addon
    Regards

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

    Hello Brajesh,
    little reminder
    have a good day
    Regards

  • Keymaster
    (BuddyDev Team)
    Posts: 24212
    Brajesh Singh on #17710

    Hi Herve,
    I will be looking at your code this weekend and updating you.

    Thank you
    Brajesh

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

    Hello Brajesh
    Little reminder
    If it was possible
    Regards

  • Keymaster
    (BuddyDev Team)
    Posts: 24212
    Brajesh Singh on #17966

    Hi Herve,
    I am sorry, I have been skipping on it. I will spend some time tonight or tomorrow and assist you.
    Thank you
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 126
    Hervé on #18074
    This reply has been marked as private.

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

This topic is: resolved