I have bbpress-post-topics plugin installed so that my comments forms are replaced by a bbpress forum topic, it’s working but I would like to enable anonymous posting.
Currently, as you can see above, the Author Name, Email, Website and Topic Title are required. I would like to adjust this so only the ‘topic title’ is required and if they are not logged in, their posts are attributed to a user called ‘anonymous’
I can edit the PHP if required – I really thought the setting in Forums for ‘Allow guest users without accounts to create topics and replies’ would have achieved what I’m aiming for.
Note: This problem exists in the traditional forums too, e.g.
http://www.rugbydata.com/forums/forum/aviva-premiership/
You can see the author name/email are required fields.
How do I remove them as required fields so users can really post anonymously without creating an account?
When we post an empty anonymous reply, we get the following errors:
The part of BBPress that’s responsible for handling this, is the
bbp_new_reply_handler()
function, in the file/bbpress/includes/replies/functions.php
. It contains these lines that are of interest to us:where
bbp_filter_anonymous_post_data()
is defined in the file/bbpress/includes/replies/functions.php
.Here’s a demo plugin that should
where:
I hope this can point you in the right direction.