bbPress/AnonymousPosting

Anonymous Posting

The plugin can be downloaded at the bottom of the page'''

The original bbPress forum does allow only logged/registered user to post. I have made a little patch (yeah, call it hack) which will allow non-registered users to log in as anonymous and then post. Such anonymous user has very limited credentials, for those using Wordpress integration there is a set of steps which will configure the same user for Wordpress instance as well.

Basically the user can not change its password, cannot visit Dashboard/Admin? area etc. Only things which should be possible to do with such user is post a topic, comment and ad/remove its tags.

Please consider this piece of code as an Alpha version. I haven't tested thoroughly yet so please use it at your own risk. I would highly recommend test it on non-live system and after that backup all database/source codes.

I am going to make some plugin like structure for it later, for now just use it as it is or leave it. I would be also very happy to get any feedback if it is working for you or not. Don't hesitate to post a comment in case it's working, at the other way just raise a new ticket in this Trac. When raising a new ticket, don't forget to mention version number of the bbPress/Wordpress instance, any related error message and please also double check if you have followed all necessary stop needed for getting it work.

  • if you have found a bug, first check below if it wasn't already reported (and fixed in new version). If not, feel free to raise a new ticket - thank you!
1. patch source

- cd /bbpress/
- patch -p0 -i ../../bb-esprit-anonymous-posts-0.0.1.patch

2. create anonymous user

- register as anonymous
- login as admin, change anonymous password to anonymous
- change goup of anonymous user to anonymous

3. Change the role in wordpress (optional)

vim wp-includes/capabilities.php and around line 110 add:

                if ( ! empty( $wp_user_roles ) ) {
                        $this->roles = $wp_user_roles;
                        $this->use_db = false;
                } else {
                        $this->roles = get_option( $this->role_key );

                        // these 4 lines are new
                        $data = array();
                        $data['name'] = 'Anonymous';
                        $data['capabilities'] = array();
                        $this->roles['anonymous'] = $data;

- login as admin
- got to user administration
- change the role of anonymous user to to 'anonymous'

Current tickets

Attachments