Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Anonymous posting

This is almost working for me. My bbpress was already active, so i didn’t want to run the modified install file. Here is the code that’s in the bb-admin/install.php file:

// Anonymous User
$now = bb_current_time('mysql');
$bbdb->query("INSERT INTO $bbdb->users (user_login, user_registered)
VALUES ('anonymous', '$now')");
$bbdb->query("UPDATE $bbdb->users SET ID = '0' WHERE user_login = 'anonymous'");
bb_update_usermeta( '0', $bb_table_prefix . 'capabilities', array('anonymous' => true) );

Since my bbpress is already active, I have manually updated my users table by following the guideline in the above code. But, I have no idea what the last line of code means: bb_update_usermeta( '0', $bb_table_prefix . 'capabilities', array('anonymous' => true) );

Can you modify it so that I can manually update the db or do whatever needs to be done to make it work? Thanks.

Skip to toolbar