Set delay before user can request to join the same Group again, after being rejected.
I am trying to limit the number of join requests a user can submit to any particular private Group, per set period of time. For example, if a Group admin rejects a user’s request, that user will not be able to submit another join request to that same group until he has waited 30 days since his initial submission. This will help minimize “join request” spam.
I have no problem creating a new button with the proper IF statement under bp_get_group_join_button in bp-groups-template.php, but this is where I’m stuck:
When logged in as a Group admin, and when viewing the Group admin tab, I can see exactly how long ago a member had requested to join the Group. When logged in as that member while viewing the Home tab in that Group, I have been unable to pull the correct value. When I set link_text to bp_group_request_time_since_requested, it says “requested 42 years, 2 months ago”. This comes out to a request date of Jan. 1, 1970.
What am I missing?
- The topic ‘Set delay before user can request to join the same Group again, after being rejected.’ is closed to new replies.