Good morning,
I want to to impose a restriction on how many times a user can reply to specific threads. In order to achieve it, I am looking for the link used to post a reply. Then, I can use the link monitor how often it is used by each user and impose a restriction. Would somebody be able to help please?
And, how can I find this link when hovering over buttons is obfuscated like here please?
Thank you.
Kind Regards,
Bertrand
As an example, I am posting a reply to my own topic. When I click 'add reply', what script/link is used to reply to this specific thread please?
Hi,
Thank you for your question.
In wpForo, the Reply button is not necessarily a direct link to a reply-submission endpoint. Its primary purpose is to open the reply editor for the selected post.
If you'd like to inspect what happens when a user submits a reply, you can use your browser's Developer Tools:
-
Open the browser's Developer Tools (F12).
-
Navigate to the Network tab.
-
Select Fetch/XHR to filter network requests.
-
Submit a test reply and inspect the requests generated by that action.
However, rather than monitoring URLs, we recommend using wpForo's built-in action hooks to implement this functionality.
In particular, you can look into:
-
wpforo_before_add_post– triggered before a new post or reply is added. -
wpforo_after_add_post– triggered after a post or reply is successfully added.
These hooks provide access to the post data, which can be used to identify the user and the topic where the reply is being submitted.
You can find more information in our wpForo Hooks documentation.
Please note that implementing a restriction based on the number of replies would require custom PHP development.
Best regards,
I have received a copy of a reply by e-mail. However, the reply is not visible in my browser when I log in the forum and open the discussion. Very strange.
Thank you for the recommendations.
I have no idea how to use hooks. I am not a programmer. It is why I am looking for a plugin with GUI settings.
Thank you. I am considering different alternatives. Will keep your offer in mind.