I want to display a list of all the users on my blog (wbs80.com) and their profile information.
I have been looking at the bbpress code and trying several tests…but unfortunately without success.
My approach is to get the list of profile keys, get the list of users and for each user display the username and profile information. The code segment that I have is:
<?php
require_once (‘../../bb-load.php’);
global $bddb;
$profile_keys = get_profile_info_keys();
//print_r($profile_keys);
$userinfo = $bbdb->get_results(“SELECT * FROM $bbdb->users WHERE user_status = 0 ORDER BY ‘ID'”);
//print_r($userinfo);
foreach ($userinfo as $key) {
$metainfo = $bbdb->get_results(“SELECT * FROM $bbdb->usermeta WHERE user_id = $key->ID”);
// ???
}
?>
I don’t know how to use the “profile_keys” value(s) to access the “metainfo” data structure and extract the data.
Any help would be greatly appreciated!
I am using the latest bbpress i belive
and i have showavatar plugin enabled
it told me to put
<?php if(function_exists(‘pws_get_avatar’)) pws_get_avatar(); ?>
in post.php which i did, and the avatars started showing
but the database thing i do not get, i went to mysql admin and the database is their, and its bbph01
I’m using “Human Test for bbPress” with RC3 and it’s working perfectly, spam bots has been stopped.
Hi Sam,
Thanks for that detailed post. I’ve added this post to my favorites so I can come back to it.
However, at this time, I’m not going to upgrade until bbPress reaches official version 1 status.
I’ve temporarily gotten rid of the warning messages by doing the following:
Line 71 of bbPress 1.o alpha 6:
$_cached_ids = join( ',', array_map( 'intval', (array)$cached_ids ) );
Lines 86-89 of bbPress 1.o alpha 6:
if(!empty($cached_ids)) {
foreach ( $cached_ids as $cached_id )
$this->results[] = $trans[$cached_id];
}
Yeah I know it isn’t ideal as I’m probably not using the latest, optimized build of bbPress, but it gets rid of the warning messages.
i’ve it with latest rc3 and works without problem
What’s the best way to prevent spam user account registration?
I’ve tried the “Human Test for bbPress” plug-in but it seems to stop working with 1.0 RC.
Any other plug-ins out there that are a good way to prevent spam user account registeration?
@r-a-y
OK then, you really need to upgrade.
Here’s how I would do it…
- De-integrate cookies, clear out all cookie settings in bbPress/WordPress including hardcoded ones in configs with the exception of you secret keys (BB_AUTH_KEY and friends)
- Upgrade to the latest Trunk of bbPress
- Upgrade to the latest release of the bbPress Integration plugin
- Clear all relevant cookies in your browser
- Setup integration in WordPress first, go to the admin panel for the plugin – use the settings it gives you to use in your wp-config.php file
- Setup integration in bbPress second, if the plugin in WordPress tells you to add a special constant to bb-config.php, do that now too. You’ll need to login to bbPress separately at this stage. Only enter settings into the admin, don’t try to add anything back into your bb-config.php except that one line from the WordPress plugin
- Now you should be good to go again, clear your browser cookies and try various ways to login and logout
Anonymous UserInactive
After the Update to bbPress Version 1.0-rc-3 my problems are gone. I think everyone should test there used plugins, backup and then test the update. Can’t wait for bbPress 1. 
https://bbpress.org/forums/topic/cookie-integration-problem-wp28-bb-10-rc-2
@johnhiller – On the other hand, going gold will mean more people using it and thus more people screaming for help and bitching at bugs
Which is stressful, but honestly there’s nothing like a real-world test. (She says, having spend 6 months beta testing new software, had NO bugs in her queue, and then twenty minutes in the wild had a fill ticket queue again
You just can’t test everything.)
@Atsutane – I had slightly misunderstood how to use the filters in the Latest Discussion plugin, and I realize I can get closer than I thought with that plugin. However, I don’t think I can get all the way there. The bbld_forum filter seems to be applied to the variables before they have been given values, right? So, you could, as in the example, replace a specific gravatar based on the $user_data variable. But is it possible to get the $forum variable in the same way? What I need is to determine the forum ID within my filter function.
@johnhiler, I have two test environments.
One is on my localbox, which doesn’t have WP_CACHE enabled.
The second is my development server, which has WP_CACHE enabled.
I should add that I’m using deep integration between WPMU 2.7.1 and bbPress 1.0 alpha 6.
The problem only occurs on the development server, which leads me to infer that it only happens when WP_CACHE is enabled. However, I’ll turn WP_CACHE off and let you know what happens.
—
@sambauers, BuddyPress + WPMU 2.7.1 + bbPress integration works really well on bbPress 1.0 alpha 6 (cookies and all). I haven’t upgraded because I’m afraid I will break integration somehow.
If I were to upgrade, it will be when bbPress reaches version 1 status and when other BP developers can test out all the kinks involved with integration.
Untested thought: You could edit your theme to limit the data accepted in the textbox.
http://www.hscripts.com/scripts/JavaScript/character-count.php
Sorry. Yes, I was doing some debug testing in functions.bb-core (bb_repermalink), and left it in an abused state. It’s fixed now… with my enhanced 404 error reporting, by the way. Something I also need to post in trac.
Yea. It get’s it one step further, but still broken. It’s permalinks and the bb_repermalink routine. On my server it ends up re-linking to the same uri, which causes an infinite loop. I tried _ck_’s old code, but it had zero effect. I also used the same principles (constructing the uri from other SYSTEM variables) directly in bb_repermalink, and that does work — the right uri can be constructed, but I haven’t gotten it to work yet. I need to go through the routine and figure out what it does.
bb_repermalink needs a LOT of work. It is extremely sensitive to $_SERVER variables not being set the way it expects, and it’s tests are not sufficiently detailed. I’m wondering why it would do any kind of redirection on uri’s that are not links to any forum. We’re just trying to browse to the home page, for goodness sake!
Well, for the moment, I’ve simply disabled the permalink test in the home page (why would anyone do a permalink test on index.php, anyway? It’s not like anyone is going to link to a forum entry on the home page.
Ah I see. That exact error has been reported by someone else using the latest bbPress together with Hidden forums… and they even suggested a patch to functions.bb-forums.php that they claim fixed the issue!
https://bbpress.org/forums/topic/when-there-is-no-forum-to-display-warning-is-generated
Or if I’m reading this correctly, you could also create a general folder and leave it as public… so that there’s always at least one forum, and it’s never null?
@leggo-my-eggo
Sorry i should have update the plugin here in, but if you are download from the plugin from wordpress.org there are 3 filter support release on 22-6-2009
More info can be found here.
http://www.atsutane.net/2009/06/update-bbpress-latest-discussion-v1-5.html
@sambauers – Yep, I get that, thanks. I think where I’m coming from is that I am a long-time WordPress developer, and I have just had the need to create a forum, so I (almost automatically) chose bbPress, thinking that all the talk about integration would allow me to do some cross-platform things that I had in mind. I didn’t read far enough into the forums to discover that the “deep integration” only went one direction (bbPress->Wordpress), and now I’m way too far down the the path of developing this site to turn around, and I’m not sure I could get the interaction I wanted with anything else anyway. Any chance you’re updating the bbPress Live plugin for 2.8?
@johnhiler – Agreed about avoiding deep integration. Given what I now understand about how it works, I would prefer to avoid it entirely, merely pulling content between platforms. I actually can mod the Latest Discussion plugin, and that’s probably what I’ll end up doing. I kind of hate doing that because I forget later what I changed when I want to upgrade. Basically all I really need is a way to limit one of my forum’s topics and counts to those topics begun today (I have a “Today Only” forum to talk about topics for a single day). I have this working fine within bbPress, and what I wanted to do was simply filter the output of the Latest Discussion plugin like that from within my own plugin.
legg-my-eggo – I totally agree that basic functionality should be easier to call between the two platforms! Pulling content back and forth between WordPress and bbPress… sharing header/footer/sidebar templates… that stuff should be a lot more seamless, and hopefully it will be over time.
Deep integration does have its own set of problems. _ck_ mentions two of them here:
Two huge strengths for stand-alone (simple) integration over deep integration are:
1. your forums can be still running even if your blog is temporarily down (or visa versa)
2. speed/performance – deep integration will crush a shared server if you get a surge in visitors
https://bbpress.org/forums/topic/display-bbpress-on-wordpress-page-inside-the-blog#post-25353
Anyway my personal sense is that if you can avoid deep integration, you’re probably better off that way. But if you absolutely need it, it’s possible… but only in one direction. It’s up to WordPress to decide if they want to offer deep integration of bbPress – I guess some of us could post over at the WordPress forums and ask them for it?
What kind of filters are you looking to run on the Latest Discussion plugin? Maybe we can find a way to mod the plugin to be more flexible… and remove your need for deep integration!
Yeah, that makes some sense. However, there’s a conceptual problem here, right? Because the recommended structure is to install WordPress and then install bbPress as a subdirectory (say, /forums). Which works great, but then I’ve got a home page created by WordPress, and since the deep integration only works the other way around, no way to use any bbPress content on that home page.
I also tried using the Latest Discussion plugin, but I have a modification that I need to filter some of the output supplied by whatever functions output the discussion and forum lists, and that plugin does not include a filter which allows me to do what I need to do, so I was trying to find a way to use bbPress functions on my WordPress home page.
For “deep integration” to be really relevant, I have to have a way to include bbPress content within my WordPress pages, right? Or am I really thinking of this the wrong way?
Hey guys – there are different levels of integration between WordPress and bbPress (these definitions are from Sam):
* User database integration – Sharing of user data tables with WordPress
* Cookie integration – Sharing of login cookies with WordPress
* Deep integration – Including the WordPress codebase (PHP) inside bbPress to allow use of WordPress functions inside bbPress
bbPress supports all of these (although cookie integration between some versions wasn’t supported until user plugins were created fairly recently).
I think what was asked was reverse deep integration, so to speak? Where instead of normal deep integration (allowing you to call WordPress from inside of bbPress), it would work the other way around (where you could call bbPress from inside of WordPress).
I think that’s where Sam is drawing the line re: integration, although I could be misunderstanding. He’s definitely said recently that he’s supporting normal deep integration (allowing users to call WordPress functions from inside of bbPress), so all deep integration isn’t off the table. My guess would be that it’s easier for Sam to program bbPress to support WordPress… than to demand that WordPress engineers program in full deep integration for bbPress.
Incidentally, I pull bbPress discussions onto my WordPress using the Latest Discussion plugins and it works great!
https://bbpress.org/plugins/topic/bbpress-latest-discussion-for-wp/
Gotta say, that was not the answer I was expecting, since there are so many posts on these forums advising exactly that solution. I also am a little confused about why you would intentionally limit the interaction between these two–obviously intended to work together–apps, but I’m sure there are complexities here that I don’t understand, and I certainly understand needing to draw the line somewhere, especially at this early stage of development.
As for using bbPress Live, that’s what I initially tried to do, but it hasn’t been updated since October of last year, and doesn’t work with WordPress 2.8, so that’s not really an option. If it did work with 2.8 I would be more than happy to use it instead of including bbPress in WordPress, as it apparently provides all the functionality I would need. Any chance an update is on its way soon?
All I really need is the ability to pull the latest discussions list and the forums list into my WordPress home page. Any other suggestions are welcome.