BuddyPress Activity Plus
[resolved] Prevent users from posting the same link twice - Buddypress Activity Plus (6 posts)

  1. rivistadimoda
    Posted 2 years ago #

    I've been using Buddypress activity plus plugin and have noticed that many users have been posting the same url links more than once. Is there a way we can prevent it?

    I tried to check for already existing links in database but couldn't find any.



  2. ellbristow
    WPMU DEV Support Staff
    Posted 2 years ago #

    I'm afraid there is no built in feature to check for already existing links. however if you wanted to tweak the code to check if a link already exists in the database you would need to search the {Prefix}bp_activity table, in the content column.

    Links are stored in the database in the following format:

    [bpfb_link url='{URL HERE}']{ANCHOR TEXT HERE}[/bpfb_link]

    So you could run an sql search similar to:

    SELECT * FROM {prefix}bp_activity WHERE content LIKE '%[bpfb_link url=\'{URL HERE}\']%'

  3. WPMU DEV - Your WordPress Team
    WPMU DEV Support Staff
    Plugin Author

    Posted 2 years ago #

    Hey there.

    We haven't heard from you in a while, so I just wanted to check in to make sure all was good.

    This thread was marked resolved, but please, if you still need help then just respond and open it back up. We can then take it from there. :)

    Hope you have a fantastic day!

  4. oshi
    Posted 2 years ago #

    Hi, I would like to have this as well, I would like to prevent user from pasting the same link over again.
    give a user 5 minute before they can paste the same link again
    Is this possible?


    Posted 2 years ago #

    Hi @oshi,

    I hope you are well today and thank you for your question.

    Unfortunately currently the feature is not available in the plugin but yes it's possible to develop this feature developing custom code and editing plugin files.

    Check the answer provided by @ellbristow in the previous reply to get some idea on it.

    Please advise if you have more questions.


  6. oshi
    Posted 2 years ago #

    Hey, am doing great thanks for asking. hope all is well with you to. I was hoping adding a code into the theme function

    Thank you for your time :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BuddyPress Activity Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic