bbPress Showcase » WordPress Integration

  1. dimadin

    junior member
    Joined: Apr '09
    Posts: 8

    offline

    I didn't use bbPress a lot, except for testing it for translating for locale WP forum, where I'm now administrator. But now I have situation with a little more complex integration with WP.

    There is WordPress 2.7.1 filled with content and forum in /forum running on SMF 1.1.6. I found solutions for moving it to bbPress (although I didn't try them, I hope they work :)). Plan is to integrate bbPress users to WordPress so that they can subscribe to e-mail newsletters and to comment on posts (which are locked for commenting for unregistered users), and also for posting some kind of classifieds (pages that will be moderated by administrators).

    So users will be logged on both parts of site with one username/password and I think that this is not problem to achieve. Why I'm asking here is this: there should be additional fields for showing users details, like we have now location, occupation, interests etc. I found this plugin for WordPress (see screenshot; note that I didn't tried it) that have something like that but could this data be printed on bbPress? Or is there solution to achieve this on bbPress directly, I searched and didn't find similar plugin?

    On SMF there is solution to add this additional fields.

    Thanks in advance

    Posted 1 year ago #
  2. _ck_

    senior admin
    Joined: Jul '06
    Posts: 685

    offline

    It is fairly easy to add extra profile fields in bbPress.
    I thought there was a plugin for it, hmm...

    There are a few topics on http://bbpress.org with similar questions.

    http://bbpress.org/forums/topic/profile-user-specified-fields#post-2672

    If you already have the data inside of wordpress, it's easy to access it through bbPress too.

    Posted 1 year ago #
  3. dimadin

    junior member
    Joined: Apr '09
    Posts: 8

    offline

    Thank you for quick reply! I only searched plugins directory and now I found this "plugin" in forums which is actually same as code in topic you linked, meaning that there is need for manual editing.
    (maybe this is idea for one more plugin for you :))

    Anyway, how would I print this value, e.g. if I want to print only occupation below nick on topic's page (like you have "joined" or "reputation")? I see in profile.php of kakumei theme that there is <?php bb_profile_data(); ?> but that prints all values.

    And how to access that data from WordPress?
    (you could give me links if that is already explained somewhere)

    Thanks again

    Posted 1 year ago #
  4. _ck_

    senior admin
    Joined: Jul '06
    Posts: 685

    offline

    Hopefully you know a little php.

    If the plugin on the wordpress side works like I suspect, it hopefully stuffs the results into the usermeta. Which would mean once the user is loaded, it's very easy to access.

    I don't have time right now but ask me again over the weekend if you haven't made any progress.

    Posted 1 year ago #
  5. dimadin

    junior member
    Joined: Apr '09
    Posts: 8

    offline

    Ok, I decided to use WordPress plugin Register Plus which stores values in wp_usermeta table. In WP I could use that data with function get usermeta but how to use it bbPress. I know a little php but don't know how to call this in bbPress.

    Thank in advance.

    Posted 1 year ago #
  6. dimadin

    junior member
    Joined: Apr '09
    Posts: 8

    offline

    OK, I found that there is function bb_get_usermeta that could be used on topic page like this:

    <?php //show user location from its profile
    $author_id = get_post_author_id( $post_id );
    $location = bb_get_usermeta( $author_id, 'from' );
    if ($location) echo $location . '
    '; ?>

    You should replace from with name of meta_key from usermeta table you want to display.

    For profile page, I used this hack.

    Posted 11 months ago #

RSS feed for this topic

Reply

You must log in to post.

keep _ck_ coding >> donate $5 <<     Theme Switcher:
17 users online from in the past 30 minutes. 12 bots 5 guests
208 views today 3,983 yesterday 9,585 peak. Most at once 20 today 77 yesterday 115 peak.
1,783 posts in 296 topics over 44 months by 344 of 1,173 members. Latest: juanmanolo, marcosgdf, fil.diesel