I tried keying in the new secret key from WordPress 2.5.1 into the bb-admin panel, but it’s still not making a difference. Users can only be logged into one or the other at a time.
For spam control/moderation, perhaps it tied in more tightly with Akismet. WordPress blogs allows anonymous commenting this way.
You’re welcome. It’s included with 2.5.1, it’s just an optional entry, so I don’t think it would be in your default config file. But I think it is shown in the sample config file.
https://codex.wordpress.org/Editing_wp-config.php#Secret_Key_IMPORTANT
Well, now. Isn’t that special!!. It works perfectly.
Thank you!
BTW, I do have the latest version of WordPress installed (2.5.1) so I do not think this is included yet, but if those encountering (and noticing) the issue find your fix, it could not be easier.
Thank you, again.
If I remember correctly, a folder will override a wp page. What I have done is, install bbpress at a location within wp, then create a page in wp with the same name that you gave your bbpress install. When viewing the blog, the page will show up in the pages section, menu bar or wherever you theme puts it. This should create a dynamic link to the forum.
I think this is what you are looking for.
I have done this for static folders and things like bbpress.
Add this line to your wp-config.php file.
define(‘SECRET_KEY’, ‘Your bbPress Secret Key’);
Replace Your bbPress Secret Key with your bbPress secret key. I believe the developers already know about this. By the way, make sure you have the latest WordPress installation. I believe secret key is a new functionality in WordPress 2.5.
The secret key is not mentioned period in the wp-config.php file, but is in the bb-config.php file. The WordPress secret is in the http://www.masterdata.com/forum//wp-admin/options.php file (yep, the double forward slash is accurate – cut & paste) and does match exactly (I used Excel to do the match).
If it is supposed to be in the wp-config.php file, please show me how the entire finished code should look (obviously my variables will differ but the structure will be the same). We might let the developer folks in on this too.
Awaiting your reply…. Thank you!
I had the same problem, and thought I had the same secret keys, but actually didn’t when I checked my config files.
Did you manually check your wp-config.php and bb-config.php files to make sure the secret keys are defined and are matching?
IPsource, to add a Forum button in the nav bar, you’ll need to edit your theme files in WordPress. And then do the same in the bbPress template files. Most likely, the files would be something called header.php. Every theme is different so it’ll depend on what you have. You might consider hiring a coder to do it, if you’re not comfortable with the html/php.
Thanks for responding!
@gerikg, Yes I would like to do something like that! What I don’t know how to do is make a “Forum” button on my Nav bar at the top like that website. Then of course I would like to have the header and footer be the same on wordpress and bbpress.
It is the same. I learned all about the “secret key” during the bbPress installation. Most users will have never heard about it before and it is a bit baffling at first glance when it is asked for in the integration instructions. Anyway, it is exactly the same via cut and paste.
Actually, if it was not, it would work as not integrated and therefore, I assume, like the previous version which worked “correctly”. You would stay logged in per “Remember me” in bbPress and WordPress. There is something else going on, I think.
Has anyone installed an “integrated” version where it works properly? i.e. You can log into WordPress then log into bbPress and then go back to WordPress without logging in again. Please let me know. I realize, there is always a 99% chance that problems in coding are of my own making.
Make sure your SECRET_KEY in both WordPress and bbPress are the same. This is covered on this thread:
https://bbpress.org/forums/topic/troubleshoot-integration
I’ve been following the development of MU 1.5.1 (seems pretty nifty so far) and from the looks of things, it’s now locked as an official release to download on the main site.
I haven’t however, been able to integrate it successfully with BB Press yet, despite applying the usual checklist and a few things besides. I haven’t had much of a problem with previous versions of WordPress, MU and BB Press, although I fully understand that MU 1.5.1 is hot off the press as it were.
If anyone manages to successfully integrate or knows whether this is currently possible (with 0.9 or above), please would you post your solution… it’d be greatly appreciated. Thanks.
This is a continuation of the post http://bbpress.org/forums/topic/new-bbpress.
Next item after an “integrated” bbPress / WordPress upgrade is a login issue. Prior to upgrading to bbPress 0.9.0.2 if I logged in to WordPress (checking “Remember me”) and then went to bbPress and logged in, you could go back and forth with no further need to log in repeatedly. In fact, you could come back in the future and still not need to log in to either section.
Since the upgrade, if I go to bbPress I must log in. Likewise, I must log in to WordPress. If I go to one of the two sites, I am logged out of the other site and must log in again.
Just a nuisance thing, but I don’t think this is what the developer’s had in mind.
Thank you.
Hi ,
I’m having a problem with the function php_e().
I use require_once(dirname(dirname(__FILE__)) . ‘/wp-blog-header.php’); to include wordpress functions into bbpress, the problem is, I think , that there is a conflict between php_e() wordpress function and php_e() bbpress function and it is impossible for me to translate my bbpress forum.
So how can I solve this problem and make bbpress use his own php_e() function and not the wordpress one ??
Thanks for your help.
IPSource,
The short answer is you have to convert your WordPress theme to bbPress by hand.
I’m currently doing the same thing you’re trying to do on my WordPress blog with bbPress also. It pretty much means taking your WordPress theme and going through each file one by one and converting them to bbPress. So you have to strip out the WordPress tags and functions in the theme files and replace them with bbPress versions. There’s no list of equivalent tags, so translating them is just gonna take a lot of trial and error and testing.
Thanks for getting back to me and I will definitely look into that. But the problem I’m having is putting my forum actually onto my site.
I just want a button at the top next to “Home” on the navigation bar that says “Forum” and when you click on it, it takes you to my forum. I would prefer to keep the header and footer on it so that it looks like it’s actually in the site still.
Any suggestions???
The easiest way is to find and install an existing theme that exists for both WordPress and bbPress. For instance, K2 for bbPress is similar to the WordPress default theme. Here are some bbPress themes for you to check out.
Sorry I’m new and I tried to look around for this topic but I guess I’m not wording it right in the search.
I want to make BBPress a page on my WordPress site. I’ve installed both and they are both sharing information just fine. I just want to integrate it visually into my site.
So is there anyway that when you click “forum” on my Navigation bar that the forum would just show up in the window below?
Again, I’m pretty new to this so when I have to go in and start messing with code I get lost easily. I really would appreciate any advice or help you can give. Thank you.
Hey Sam, thanks for making a ticket for this. I was able to query for topics within a date from directly from WordPress as well. Here’s something I wrote to merge “super sticky” bbPress topics into the WordPress loop. It’s a bit of hack, but it brings the “Promote to Front Page” functionality of Drupal into WordPress/bbPress:
<?php get_header(); ?>
<?php
//Put WordPress posts into an array
$wp_posts = $posts;
if (!is_single()){
//Retrieve first post of previous page (we need this post's date to query bbPress topics
$offset=$paged*$posts_per_page+$posts_per_page;
$first_post_of_previous_page = get_posts('numberposts=1&offset='.$offset);
//First set the start and end dates to limit the query to the bbPress table
$startdate=(date('YmdHis',strtotime($first_post_of_previous_page[0]->post_date_gmt)));
//If it's the most recent page, set end date to today
if ($paged){
$enddate=(date('YmdHis',strtotime($wp_posts[0]->post_date_gmt)));
} else {
$enddate=gmdate('YmdHis');
}
//Retrieve "Super Sticky" topics from bbPress tables
//This assumes your bbPress and WordPress tables are in the same database
$bb_topics = $wpdb->get_results("SELECT * FROM bb_topics WHERE topic_sticky = 2 AND topic_start_time BETWEEN $startdate AND $enddate ORDER BY topic_start_time DESC");
//Map bbPress topics to WordPress posts structure
foreach($bb_topics as $bb_topic){
$bb_first_post = $wpdb->get_results("SELECT post_text FROM bb_posts WHERE post_position = '1' AND topic_id = $bb_topic->topic_id", ARRAY_A);
$bb_post->ID = "forum_topic_".$bb_topic->topic_id;
$bb_post->post_author = $bb_topic->topic_poster;
$bb_post->post_date = $bb_topic->topic_start_time;
$bb_post->post_content = $bb_first_post[0][post_text];
$bb_post->post_title = $bb_topic->topic_title;
$bb_post->post_status = "publish";
$bb_post->comment_status = "open";
$bb_post->ping_status = $bb_topic->post_id;
$bb_post->post_name = "forums/topic/".$bb_topic->topic_slug;
$bb_post->post_type = "post";
$bb_post->comment_count = $bb_topic->topic_posts-1;
//add bbPress topic to WordPress posts array
$wp_posts[] = $bb_post;
};
//Create function to sort array of posts by date
function compare($x, $y){
if ( $x->post_date == $y->post_date )
return 0;
else if ( $x->post_date < $y->post_date )
return 1;
else
return -1;
}
//Sort array
usort($wp_posts,'compare');
}
?>
<div id="content-box" class="span-8">
<div id="content-area" class="clearfix">
<?php if ($wp_posts): ?>
<?php foreach ($wp_posts as $post): ?>
<?php setup_postdata($post); ?>
<div class="entry">
<div class="entry-header clearfix">
<div class="info span-2">
<a href="<?php the_permalink(); ?>#comments" class="comment-activity"><?php comments_number('<strong>Post comment</strong>', '<strong>1</strong> Comment', '<strong>%</strong> Comments' );?></a>
</div><!-- end info -->
<div class="content span-6 last">
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
</div><!-- end content -->
</div><!-- end entry-header -->
<div class="entry-content clearfix">
<div class="info span-2 clearfix">
<p><strong><?php the_author() ?></strong><br />
<?php the_time('M j, Y'); ?>
</p>
<p class="share-this"><?php akst_share_link(); ?></p>
<p class="post-comment"><a href="<?php the_permalink(); ?>#respond">Comment</a></p>
</div><!-- end info -->
<div class="content span-6 last clearfix">
<?php the_content('Click to continue'); ?>
<p class="entry-tags"><?php the_tags('<strong>Posted in: </strong>', ', ', ''); ?> </p>
</div><!-- end content -->
</div><!-- end entry-content -->
</div><!-- end entry -->
<?php endforeach; ?>
<?php include (TEMPLATEPATH . '/navigation.php'); ?>
<?php else : ?>
<h2 class="page_header center">Not Found</h2>
<div class="entry">
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
</div>
<?php endif; ?>
</div><!-- end content-area-->
</div><!-- end content-box -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Let me premise this by stating that I installed an “integrated” version of the upgrade (BTW, the instructions could be a LOT clearer on this process – not everyone is experienced with php).
I was planning on spending some time on this later, but on this subject (links), my original links were set to “Numeric …/forums/1”. After upgrading, links from my web sites to the bbPress section no longer worked and generated a 404 error. I looked at the links within the bbPress site and they looked fine. For instance, a “sticky” topic I link to from all my web sites is “http://www.masterdata.com/forum/bbpress/topic/62” (I copied the shortcut with a right click on the link). It looks correct, but it does not work. Not even within the bbPress section and certainly not from the outside coming in.
So I switched the setting on my “Pretty permalink type” to “None …/forums.php?id=1”. With this setting, everything once again worked. I left it this way, but these are definitely not “pretty” links. The link to the same topic is now “http://www.masterdata.com/forum/bbpress/topic.php?id=62”. BTW, “Name based …” links do not work either.
OK, that is the first issue. There are more and I will detail those tomorrow, each one in its own separate topic as suggested above.
Let me, however, compliment everyone who has been involved in this project and WordPress. Both efforts are truly beyond belief in terms of what you get by simply downloading some code from the internet. ABSOLUTELY EXCELLENT! So good, in fact, you spoil us to the point where we expect everything to be close to perfect at all times. That is a bit irrational and the experience with both programs should be graciously appreciated. Thank you for your work!
Best
L. Carhartt
@ mykes
I double checked, the latest stable version of WordPress MU uses the old password hashing and cookie types.
You can dumb down bbPress to work with that version of WordPress MU by using both of these bbPress plugins.
https://bbpress.org/plugins/topic/mouldy-old-cookies-for-bbpress/
https://bbpress.org/plugins/topic/md5-insecurity-for-bbpress/