Also, looking at the path to the files, it appears they are using NFS which has generally poor performance (SLOW) for software like bbPress and WordPress.
https://bbpress.org/forums/topic/bbpress-is-slow-like-godaddy-says#post-21750
Hello,
i just integrated my 1.0-alpha-6 BBpress installation with my WordPress 2.7 blog.
After the integration my bbpress admin disappeared, but i could log in as an admin using the wordpress admin ID and Password, so no big deal.
The problem is this: when i log in with my WordPress admin account there is no way i can see my “settings” label, that used to be on the top row, extreme right, of the control panel: /forum/bb-admin/
Any suggestion/advice, please?
the Process
One final addition to this that I didn’t think of mentioning earlier.
To use bbPress queries like these on a foreign (non-bbPress / non-WordPress) PHP page, all you need to do is include the bbPress core like this at the start:
<?php require('/local-path-to-bbpress/bb-load.php'); ?>
or to load WordPress core use this
<?php require('/local-path-to-wordpress/wp-config.php'); ?>
(change the ‘local-path’ bit to your local path)
and remember to use $wpdb on WordPress pages, vs $bbdb on bbPress pages.
Yup “order by rand()” is very handy.
I used it for a mod for WordPress years ago to make a “random” category which is very useful.
It could even be done to make a “random topics” view in bbPress but not sure how useful that would be.
It’s fine for casual use but keep in mind for larger tasks it’s very slow and makes mysql purists shudder.
and my final correction on the random thing!
$stories = $bbdb->get_results("SELECT post_title, guid FROM site_posts WHERE post_type='post' AND post_status='publish' ORDER BY post_date_gmt DESC LIMIT 0,10");
shuffle($stories);
previous example was getting a random 10 from all posts.
This get’s 10 latest posts, then randomizes them with the ‘shuffle’.
cheers!
On my version I’m fetching 10 latest rows, randomizing, then displaying 5 stories.
$bbdb->get_results("SELECT post_title, guid FROM site_posts WHERE post_type='post' AND post_status='publish' ORDER BY rand() LIMIT 0,10");
Admittedly, I didn’t make the correct alterations to the previous example. Anyway, it should give people an idea of what to do.
oh, and _ck_ I hadn’t spotted your earlier post – it would have made it a lot easier for me to figure out if I had!
Sounds like several problems that are all fixable. First, I would turn off permalinks until you set them up properly:
https://bbpress.org/forums/topic/created-a-new-forum-but-profile-viewedit-not-working#post-24005
I would do that first so you can actually work with your forum.
Also:
- What version bbPress did you install?
- Did you integrate with WordPress and if so, what version?
- Does this happen with the stock them?
- Does this happen with no plugins enabled?
- What server software, PHP version, MySQL version are you using?
If you can start with the permalink issue (I think) and then answer some basic questions, I think we can get it sorted without reinstalling.
Hi,
I’m looking for someone who has had a bit of experience with theming bbPress to help me port a HTML/CSS template (which I have also made into a WordPress theme) over to bbPress. It should be relatively easy seeing as the design is simple and already coded.
Please contact me at patrick.devivo [at] gmail.com if you know someone or are willing to help me out.
Greetings,
I just installed BBPress today and was totally psyched because I have heard such great things about the WordPress products.
But . . . I am having major problems:
– New user testing – password doesn’t work. Login failed.
– I created forums and when I select the topic I get a “The requested document was not found on this server.” error.
– When I select a user profile (including mine) I get the same error.
– This is where it is strange and makes me think that maybe I need to reinstall the whole thing. I can’t create a new post. Nowhere does it say “Create post” on the forums.
I did install the Approve User Registration plugin by Aditya Naik, but I deactivated it and I am still having the above problems.
Thoughts?
thanks in advance,
Jeff
I’m developing a WordPress Theme and I’d like it to work with BBPress too. My theme uses a function ( get_container(); ) to get all the information to go within the body. To change the content, within that container, for a particular page in WordPress, but leave the header, sidebars, and footer, I can reference a custom function to be added in there.
So for BBPress, I would like to do the same thing. The get_container(); function will be called and it will get the custom function defined in each BBPress template file. The problem is, is that when I do this BBPress says I’m logged out and will not allow me to login, because it can’t find the forums. Why is this? I do get the header, sidebar, and footer defined in my get_container();. But for some reason the custom function that get the BBPress forum messes the variables for the forum.
FYI, this only lists 4 posts but is FREAKIN AWESOME!
Just made a query in my forum functions.php to display the 5 latest stories from WordPress. Pretty basic but it may help someone:
// get WP news
function wpnews() {
global $bbdb;
$stories = $bbdb->get_results("SELECT post_title, guid, post_date_gmt FROM wp_posts WHERE post_type='post' AND post_status='publish' ORDER BY post_date_gmt DESC LIMIT 0,4");
foreach ($stories as $story) {
if ($i <= 4) {
echo '<li><a href="' . $story->guid . '">' .$story->post_title . '</a></li>';
$i++;
}
}
}
then call it on your forum with <?php wpnews() ?> and style to suit.
Hey everyone,
I haven’t completely finished pimping my bbpress forum, though I thought id share it with you at this stage. Let me know what you guys and gals think, good or bad feedback is always good.
WordPress: http://www.flowfm.net/
BBpress Forum: http://www.flowfm.net/forums
Look forward to your responses,
Mark
I have bbpress installed in a subdirectory (http://www.domain.com/forum), with WordPress in the root, and I’m using a Private Forums plugin (among various others) and it was all working fine until this morning, when suddenly I am unable to login. I have two accounts, but can’t log in using either of them. (I have sent an email out to find out if I am the only one with this issue or if it is more widespread).
Symptoms are that I get the login page, so I login and am immediately presented with the same screen again.
I’ve tried disabling the Private Forums plugin, which makes the discussions visible, as you would expect but I still can’t log in, and I can’t post, so I’m not logged in ‘behind the scenes’as it were.
I’ve requested a new password, but that hasn’t helped.
I haven’t integrated with WordPress, I haven’t uploaded any new bbpress plugins, or run any upgrades. I am very puzzled.
So does anyone have any suggestions as to what might have changed, or what I can do to restore functionality?
Hi,
1st of all, thanks for this screen-cast.
I have followed your screen-cast and succeeded with integrating WP 2.7.1 and BB 1.0 alpha 6 in different directories.
http://mydom.com/wp/ (WordPress)
http://mydom.com/board/ (bbPress)
My issue is that logging in and out is working fine as long as WP handles log-in and out! And not the other way when logging out from BB.
Issue 1:
When I log-in to my WP and go to BB log-in works fine, also the other way from BB to WP.
But if I log out fron BB and go back to WP – I’m logged out but the META link is not updated and WP thinks I’m still logged in (which I’m not!)
How can I make the log-out work through BB aswell.
Issue 2:
Registering through BB gives me no role inside WP!
I have bbPress integration plug-in (wp) installed and everything else is working fine! Roles are made inside BB-WP integration just like in the screen-cast.
Can someone please help!
Thanks.
The WordPress plugins directory has improved searching now with Sphinx. See here: http://wordpress.org/development/2009/02/new-and-improved-plugins-directory-search/. Will bbPress get Sphinx too?
we dropped vanilla because of lack of support. things were going out of date when wordpress was being upgraded so the integration was starting to break. we also need PMs and the system on vanilla was extremely unsecure. we’re much happier with bbpress as it’s a lot easier to customise.
Hey I just got:
Fatal error: Call to undefined function do_action() in /usr/local/gathera/bbpress/index.php on line 6
Apache/2.0.55 (Ubuntu) mod_jk/1.2.14 PHP/5.1.2
BBPress: version 0.9.0.4
I don’t know if it matters but, last week I installed bbpress on a server without any problems. So this week I try to install it on another server, but I just got the line above and a redirect to bb-admin/install.php. But when I click the link(“let’s get started”) I see the line above again and redirects to the same page. The only difference between the two I have noticed is that one have an WordPress Installation (I didn’t activate integration, I just ignore it).
I’m really lost. Any ideas?
I just converted the TooNewsy wordpress theme over to a bbpress template. Here is a link to download it and see a demo:
http://ericlbarnes.com/projects/toonewsy-for-bbpress/
Hope someone finds it useful!
hey rowoot, i do not think you can bbSync to replace my wordpress comment system with forum posts, but it doesn`t seem to work with wp 2.6.3 + bbpress 1.0a2. well if there is i too would like to know about the same.
Cheers!!!
Hi chrishajer,
I tried to find a solution for this problem and well this is what I could get upon…
When the WP config loads, it prepares the permalink string and then scans for a file (say links.txt) in the root folder.
If the contents of the file are not same with the generated permalink string, then its written into that file.
And when BBpress gets loaded, it reads that file for permalinks and then generates header/footer as per the links.
I know that this is not the best of the methods. But still this is what I could think of.
Hope its useful for anybody trying the same thing.
To use WordPress functions (like wp_list_pages), you need to include WordPress in your bbPress. For something simple like this, I was hoping you could get away without doing that since it’s not recommended and at this point I’m not sure if it even works very well. The other problem with integration like that is that you need to integrate the Alpha version of bbPress with WordPress version 2.5 or newer. You’ve already installed 2.7 and 0.9.0.4. I’m not certain what that achieved since the logins won’t be shared between those versions.
I don’t know if there’s a good answer for this, which is why I suggested hard coding it, at least for now.
Wow! Nice work. Very inspirational.
WordPress MU is something I’ve considered for the Atheneum School down the line once I get more comfortable.
Any good advice to get started on a huge project like that?
Hi chrishajer,
Thanks for the suggestion…….
but they are bound to change sometime in future.
I also read your article. Thanks I was bit struggling with this thing also(getting WP info in BBpress). But even if I get the information, how would i construct the Permalink structure of the WP.
I have been following the WP code to write my own functions, but they seem to go pretty deep and I dont know whether creating a copy of these functions in BBpress would be safe or not.