Skip to:
Content
Pages
Categories
Search
Top
Bottom

Auto delete friendship


  • bulleteps
    Participant

    @bulleteps

    How can i delete a friendship 30 after the friend request was acepted?
    I need a duration per friendship, maximun 30 days, each month si neccesary to delete the friendship and add the request again.
    ¿Can you help me? Thanks
    Best regards!

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

  • bulleteps
    Participant

    @bulleteps

    nobody knows? I need help with it
    Thnks


    havealookhere
    Participant

    @havealookhere

    You have to search for the table where the friendships are stored.

    Then you need to set a CRON job to automaticly flush the table with the connections

    You can set a time interval of 30 days.

    online cronjob site

    This would be my approach. I cannot give you an advice what table you need.. and also not how you can write the right code.. but i think you are pointed in the right direction.

    Regards


    JewelGuidr
    Participant

    @jewelguidr

    How can I unfriend all my friends in one click?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar