Forum Replies Created
-
In reply to: bbPress 1.0-alpha-6 : Favorites problem
Ok just so you know, about the problem with the meta value :
” if I add another topic to my favs, it doesn’t add the id with the previous ones, but overrides the meta_value with the new one”, found the bug :
in the functions.bb-users.php ,
$user->favorites
is used instead of$user->bb_favorites
.That solves the problem.
<br />
function bb_add_user_favorite( $user_id, $topic_id ) {<br />
global $bbdb;<br />
$user_id = (int) $user_id;<br />
$topic_id = (int) $topic_id;<br />
$user = bb_get_user( $user_id );<br />
$topic = get_topic( $topic_id );<br />
if ( !$user || !$topic )<br />
return false;</p>
<p> $fav = $user->bb_favorites ? explode(',', $user->bb_favorites) : array();<br />
if ( ! in_array( $topic_id, $fav ) ) {<br />
$fav[] = $topic_id;<br />
$fav = implode(',', $fav);<br />
bb_update_usermeta( $user->ID, $bbdb->prefix . 'favorites', $fav);<br />
}<br />
do_action('bb_add_user_favorite', $user_id, $topic_id);<br />
return true;<br />
}<br />In reply to: bbPress 1.0-alpha-6 : Favorites problemDone!
In reply to: bbPress 1.0-alpha-6 : Favorites problemOk thanks.
bbPress 1.0-Alpha-6 and Wp 2.7
I still didn’t find a way to resolve this, it’s really weird.
I can access to the bbpress functions on my wp template now with no problem, but my wp admin section is still “broken” (no css, no jquery)
It’s on localhost unfortunately
In reply to: admin re-directs to index and unable to post.Had the same problem, just logged out and logged in again but in the bbpress admin section solved the problem.
In reply to: WordPress access to bbPress FunctionsI think you have to add it at the bottom of your wp-config file.