@Beer: When/if I get the time I’ll be sure to make it public. As you know it’s quite something else to make it work generically rather than for one specific site.
Thanks for the praise though, appreciate it.
@_ck_: Thanks. Yes, I also had a good mind of making that “online” banner that phpbb uses, available per user but other things caught my attention. 
Anyways, glad you both liked it.
Front page topics plugin isn’t working? Hmm. Should be.
I have a modification I’ve done somewhere…
Try this:
// fix number of front page topics
function bb_custom_topic_limit($limit) {
switch (bb_get_location()) :
case 'front-page': $limit=5; break;
case 'forum-page': $limit=10; break;
case 'tag-page': break;
case 'topic-page': $limit=15; break;
case 'feed-page': break;
case 'search-page': break;
case 'profile-page': break;
case 'favorites-page': break;
case 'view-page': $limit=10; break;
case 'stats-page': break;
case 'login-page': break;
default: $limit=15;
endswitch;
return $limit;
}
add_action( 'bb_get_option_page_topics', 'bb_custom_topic_limit',200);
// required to fix for custom topic limits to calculate correct page jumps
function fix_post_link ($link,$post_id) {
global $topic;
remove_action( 'bb_get_option_page_topics', 'bb_custom_topic_limit' );
if ($topic && $topic->topic_last_post_id==$post_id) {
$topic_id=$topic->topic_id;
$page=get_page_number( $topic->topic_posts );
} else {
$bb_post = bb_get_post( get_post_id( $post_id ) );
$topic_id=$bb_post->topic_id;
$page = get_page_number( $bb_post->post_position );
}
return get_topic_link( $topic_id, $page ) . "#post-$post_id";
}
add_filter( 'get_post_link','fix_post_link',10, 2);
Is there a manual way to get someone set to KeyMaster? I registered and was user #1. There seems to be no use #0 so there is no administer for the forum. I’m totally locked out.
I found the issue. The table names were custom set to not interfear with anything that that wasn’t called out anywhere in the install process except in an advanced (hidden) area.
I’ve re-installed BBPress 4 times now and I finally go it to work, with all my old posts, but I can’t log in.
This will affect all forums:
global $bb_roles;
$bb_roles->remove_cap('member','write_topics');
$bb_roles->remove_cap('member','write_posts');
You can put it into header.php
or make a real plugin ie.
members-cannot-post.php
(and install into /my-plugins/)
<?php
/*
Plugin Name: Members Cannot Post
*/
global $bb_roles;
$bb_roles->remove_cap('member','write_topics');
$bb_roles->remove_cap('member','write_posts');
?>
I think I will make a real plugin which can control this on a per-forum basis since this seems to be a requested feature that is not too hard to handle in 0.9 Look for it in the plugin section over the next day or two.
I have a karma plugin in development but it is not available yet and most likely will not be until early May.
You can preview it in use at http://bbShowcase.org
The code in brackets is BBcode so you want my BBlite:
https://bbpress.org/plugins/topic/bbcode-lite/
I think it is. The only issue is if you had an integrated install, then you would have bbPress users in your wp_users and wp_usermeta table. You would probably have to manually remove those entries from those tables. Don’t drop the wp_ tables, just the bb_tables.
I think that’s about it. Once the code is gone from the filesystem, the database doesn’t matter much except for keeping things tidy.
<strong>like this</strong>
and it will look like this. Not bbcode, HTML.
and i am trying use code or something… how i can type this?
[strong] hello[/strong]
I don’t have pretty permalinks on. I don’t have an .htaccess file in the bbpress install. My root .htaccess is this
php_flag register_globals off
RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/print/?$ /wp-print.php?year=$1&monthnum=$2&day=$3&name=$4 [QSA,L]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_COOKIE} !^.*comment_author_.*$
RewriteCond %{HTTP_COOKIE} !^.*wordpressuser.*$
RewriteCond %{HTTP_COOKIE} !^.*wp-postpass_.*$
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{DOCUMENT_ROOT}/wordpress/wp-content/cache/supercache/%{HTTP_HOST}/$1index.html.gz -f
RewriteRule ^(.*) /wordpress/wp-content/cache/supercache/%{HTTP_HOST}/$1index.html.gz [L]
RewriteCond %{HTTP_COOKIE} !^.*comment_author_.*$
RewriteCond %{HTTP_COOKIE} !^.*wordpressuser.*$
RewriteCond %{HTTP_COOKIE} !^.*wp-postpass_.*$
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1index.html -f
RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1index.html [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
<Files 403.shtml>
order allow,deny
allow from all
</Files>
#AddHandler php5-script .php
Nevermind, I’ve coded it myself
. But it’s not ready for release yet…
Hey,
Just wanted to mention that I have released a matching WordPress theme, just in case anyone is using Peacemaker for bbPress.
You can download it here.
UPDATE!!
Figured out a way to integrate WordPress smileys into bbPress. Use this plugin!
http://pastebin.com/f411dfe2a
Hi all,
I’m using this in Japanese. When the user is registered, mail is garbled. It seems that it is because the mail body is submitted with raw UTF8 (not MIME-encode) also this is because of mail in Japanese(encoded iso-2022-jp) being provided as shown in RFC1468.(See http://www.ietf.org/rfc/rfc1468.txt)
However, it is possible to display it even in Japanese with UTF8 normally by doing appropriate treatment.
1. Add Content-Type header and etc.
$headers[] = “MIME-Version: 1.0”;
$headers[] = “Content-Type: text/plain; Charset=UTF-8”;
$headers[] = “Content-Transfer-Encoding: 8bit”;
2. MIME encodes the header.
use mb_encode_mimeheader().
http://www.php.net/manual/en/function.mb-encode-mimeheader.php
Regards,
I installed bbPress in http://paara.org/forum/ because that’s what I wanted the URL of the forum to be, and the installation instructions didn’t indicate any preference for where.
Just one blog, with the WP files at http://paara.org/WordPress/ but with the public URL being simply http://paara.org/, as described in https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
And after moving the bbPress directories to http://paara.org/WordPress/bbPress/, I still can’t get the install to run, or anything but the “no content” message to appear.
What am I missing?
I know just enough PHP to be dangerous. Very dangerous.
In other words, not much…
Maybe this is the opportunity for me to learn more. We’ll see…
Still no luck with my issue. I’ve been looking through the code but can’t pinpoint the problem…
I copy pasted the code it had in threads – <td class="num">"><?php topic_title(); ?> by <?php topic_last_poster(); ?></td>
I figured it would do teh same for the front page, but apparently not.
Hello (my first post, yay) – so is there anyone who is planning to make this invitations/referral plug-in? I would find it very useful
. Especially when running a contest “bring as much users to my forums as possible and win an iPod”.
@raygene can you give me some more details on your install..
you have to initialize bbpress by adding code in your wpconfig file.. have you done that?
@citizenkeith plans – yup.. timeline – nope
From 1998-2003, I ran a forum using the Network54 website. These forums were horrendous. There wasn’t any user database… people just wrote their posts then filled in their name and an optional email address. (It’s amazing I didn’t get any spam during that five year period.)
My goal is to get all these posts into bbPress.
I was unable to spider the forum. Network54’s server kicked in and blocked all attempts using Spiderzilla.
Here’s the forum:
http://www.network54.com/Forum/3752/
Instead this is what I’ve done: There are 53 pages of posts. Some of them are threaded, some are not. On each page, there’s a “View All Messages” link that will show you all of that’s page’s posts and threads on one single HTML page. Each thread is separated with an HR tag.
I downloaded each of these 53 “View All” pages. I just spent 20 minutes cleaning up the code from Page 1, and I’m left with a fairly lean page. Here’s what I got for page 1:
http://www.judyhenskefan.com/viewall-page-1.htm
I will continue doing this for all 53 pages. Then I would like to separate out all the topics and posts, and put it into an “Archive” forum in my bbPress install. I’m trying to determine the best way of doing this…
For one, a lot of the users are not registered on the current forum. Some are, but used slightly different names. Some people never entered their optional email address at the Network54 forum, so I don’t have a way to put everybody into a user account. I could match up a bunch of them, but not all of them.
How would you proceed, if you were me?
Hi chrishajer,
example.com has stuff like htaccess, index.php, php.ini, robots.txt
example.com/folder/ is the WP install that’s integrated with the forum
and example.com/folder/bbpress/ is the aforementioned forum
Just want to say THANK YOU!!
I gave up converting my phpBB forum months ago:
https://bbpress.org/forums/topic/a-phpbb-to-bbpress-database-converter/page/2
But by utilizing the info here (and buy editing the SQL file by hand), I was able to get my forum into the very latest bbPress… it’s even integrated with WP.
http://www.judyhenskefan.com/forums/
Now I get to work on a new design for the forum and blog (as well as add lots of plugins to the new forum).
Thanks again everybody!