Try this code instead, this is what I’m using on my own forums:
<?php printf( __('Posted on %s'), bb_datetime_format_i18n( bb_get_post_time( array( 'format' => 'timestamp' ) ) ) ); ?>
Thanks guys, especially code012! After installing reCAPTCHA, spambot stop completely!!
Check for an extra line or space after the closing ?> tag, seems to be a common problem copying from the forums. Or an extra line or space before the <?php tag.
Argh it ate part of it. Check the link and copy the line opening $text from there instead. There’s meant to be $1 in-between the spaces before target.
Hello all. I am starting a new wordpress site with bbpress installed in a subdirectory. I am not very tech savy and don’t know how to do code, but I am wondering how difficult it would be to have my bbpress forums inside my wordpress blog theme.
In other words, is it possible to have the same look and menu structure from my blog appear when in the forums?
From what I can find in the forums this is called deep integration. I have viewed the posts on that, but I am wondering if there is any further development that would help me, because I don’t have the ability to do the tasks as they are presented in those posts.
@grassrootspa
I doubt that too but I am wondering if that didn’t work out
A while back, I added bbPress to my website. I used the bbPress Integration plugin and followed the screencast instructions, but it never quite worked right. Since then, I’ve seen too little need for integration, and I’d like to just get rid of it — keeping the bbPress installation, but getting rid of integration.
I can’t find good instructions on how to do this. Further, I can’t even properly get into my bbPress admin area. I log in, but I just get the regular bbPress screen, and when I click Admin, it just redirects me right back to the regular screen. And I do believe this is the result of things going wrong with cookies because of the integration plugin.
Help! Thanks
<?php
/*
Plugin Name: No Duplicate Display Names
Description: Prevents users from using already existing display names.
*/
function check_display_name ( $user_id ) {
global $bbdb, $bb_current_id, $display_name;
$name_query = <<<EOQ
SELECT
user_login
FROM
$bbdb->users
WHERE
display_name = "$display_name"
AND
ID != "$bb_current_id"
EOQ;
if ( $name_clash = $bbdb->get_var( $name_query ) ) {
wp_redirect( add_query_arg( 'nameclash', $name_clash, get_user_profile_link( $user->ID ) ) );
exit;
}
}
add_action ( 'before_profile_edited', 'check_display_name' );
?>
You also need in your theme’s profile.php, before the line <?php elseif ( $user_id == bb_get_current_user_info( ‘id’ ) ) : ?>
<?php elseif ( $_GET['nameclash'] ) : ?>
<div class="notice error">
<p><?php printf(__('Display name already taken by %s'), $_GET['nameclash' ]); ?>. <a href="<?php profile_tab_link( $user_id, 'edit' ); ?>"><?php _e('Edit again »'); ?></a></p>
</div>
Also, I just set my display name to a SQL query string, yay
<?php $last_post = bb_get_last_post(); ?><a href="<?php echo get_post_link($last_post->post_id); ?>">Latest post</a><?php unset($last_post); ?>
Put that in your front-page.php in the parts you want the latest post link to appear. Try after <?php topic_page_links(); ?>
A threaded forum layout could be achieved using a template, you’d just have to code it yourself by loading the titles from each thread (and add titles, either yourself or with a plugin) or find someone who has already done it. Why isn’t bbPress like that? It’s made to be as simple as possible so you can build what you want from it.
Nope, that’s to fix your capabilities setting, without which I think it’d be impossible to access admin ever. Ah well
Hostnames will just be the public-facing DNS entry for your IP, which in my case at least is just a nice text-and-numbers version of my IP
Of course it’s possible but around half the plugins will stop working.
depends on which plugins you’re using 
I’m using all the plugins I have used before
WordPress itself just underwent a pretty serious security attack:
http://www.cmswire.com/cms/web-cms/wordpress-under-attack-upgrade-now-or-forever-live-in-fear-005489.php
Since bbPress 1.0 shares a lot of code with WordPress (through BackPress), it may or may not be vulnerable… hopefully Sam can weigh in definitively on this one!
Mine was to check the bug tracker… oh dear
my first reaction was to check the sourcecode haha
That is a point. Files with . in front of them are the equivalent in Linux/Unix of hidden files under Windows.
You should have a line something like RewriteRule ^mlist/ /mlist.php [L,QSA] in your .htaccess. Put it after RewriteRule ^rss/view/([^/]+)/?$ /rss.php?view=$1 [L,QSA] if you don’t.
Hi,
I have an existing phpbb2 forum and was hoping to migrate the existing data into bbPress, followed by integration to WordPress MU. Here’s the steps i’ve done so far:
1. installed a fresh copy of bbPress 1.0.2
2. downloaded phpbb2bbpress converter from http://www.iteisa.com/phpbb2bbpress/
3. ammended the necessary stuff inside the file and ran the script
4. installed WordPress MU
I was comparing the bb_ and wp_ tables and would like to know:
1. can i simply insert into wp_usermeta, (user_id, meta_key, meta_value) from bb_usermeta table where the meta_key = bb_capabilities because it looks safer than just replacing wp_usermeta with bb_usermeta due to the existing entries in wp_usermeta which i’m unsure of their usage?
2. it also seems that i should insert all the necessary values from bb_users table to wp_users table because wp_users has more columns
are there anything else database-wise i need to do?
After the above i know i need to install a bbpress-integration.php into WordPress MU and do some settings on both bbPress and WordPress MU settings/configs. Are there any other steps i’m missing out?
I would really appreciate any help on this
Okay. In your stylesheet, put:
#title { position: absolute; top: 0px; }
#tagline { position: absolute; top: 75px; }
I think that should work.
<?php
/*
Plugin Name: Open Links in New Window
*/
function bb_target_blank( $text ) {
$text = preg_replace('|<a (.+?)>|i', '<a $1 target="_blank">', $text);
return $text;
}
add_filter('post_text', 'bb_target_blank',255);
?>
Put the above into a file and save it as new-window-links.php or similar in your my-plugins directory. Then enable it in the plugins menu. Should work. Avoid getting any spaces around the start and end tags.
https://bbpress.org/forums/topic/target-_blank
Programmer’s Notepad + Find in Files = easy finding
Apart from the template files forum.php and topic.php that use the bb_forum_bread_crumb() (which just builds the breadcrumb for forums / topics), the separator is also hardcoded into several (all?) other template files to give custom titles, which I’m afraid have to be changed by hand.
The only central location would be the default of bb_forum_bread_crumb(), which you shouldn’t change.