It’s time to take another look at the (unofficial) bbPress Top 100 list! I’ve come up with some more advanced ways to find bbPress forums and I am pleased to announce the full list has broken 3,000 forums and provided for some new discoveries for the Top 100:
http://bbshowcase.org/forums/view/top100
(based on activity, not quality, which is subjective)
If you register/login you can also see the sites that may have just missed the top 100 via the top 1000:
http://bbshowcase.org/forums/view/top1000
August update was essentially aimed at finding new sites, not updating stats for existing sites. I’ll do a full re-analysis next month.
Some really nice looking sites among the bunch. I enabled “snapshots” so you can mouse-over their little logo and get a general preview. I hope to improve the list soon with the ability to vote on the design of any site.
Also new for this month is an attempt to guess what country the site is “aimed at” (not hosted in or TLD used). This is very difficult to determine and I estimate my automated route is currently correct only 70% of the time.
Some interesting statistics…
1) bbPress has been installed on at least 4000 sites
2) There are now at least 200 sites with over 1000 posts.
3) A bbPress forum will break one million posts late 2008
More analysis as I have time…
If I missed your site be sure to post it for the next update!
I think the default theme have a problem:
Conflict between Mime Type and Document Type
The document is being served with the text/html Mime Type which is not a registered media type for the XHTML 1.1 Document Type. The recommended media type for this document is: application/xhtml+xml
This is the error when i try to validate it for the w3c validator.
Why?
Fred
It’s very easy to do this via a plugin.
You have to attach to the ‘bb_head’ action.
In fact if there’s a plugin for WordPress that does it, it would take under a minute to change it for bbPress.
Here’s a mini-plugin I wrote to do noarchive and nofollow:
function no_archive() {
echo "n".'<meta NAME="robots" CONTENT="noarchive,nofollow">'."n";
} add_action('bb_head', 'no_archive');
.
It would just have to be wrapped in an IF statement with a URI check to add it when you want it. To get the current location, either check bb_get_location
or steal it’s code and modify as desired.
Something like this (untested)
function no_index() {
if (in_array(bb_get_location(),array("login-page","register-page","profile-page")) {
echo "n".'<meta NAME="robots" CONTENT="noindex,nofollow">'."n";
}
} add_action('bb_head', 'no_archive');
This is very dumb of me, but I can’t find anywhere under the bonnet to register New Posts RSS feed with Feedburner (it’s a while since I set up my WordPress blog, but I seem to recall in WordPress, there is a place to do this).
I guess I go to Feedburner to register, then? Once I’ve done this, does this mean that every post will be notified to anyone who signs up for the feed?
Thank you! It worked quite well.
Anyone who can give advice on MO files if that is what is needed?
For #1, you can add the following to your style.css file as near to the bottom as possible:
#latest th a, #forumlist th a, #favorites th a {
color: #eee;
}
#latest th a:hover, #forumlist th a:hover, #favorites th a:hover {
color: #eee;
}
For #2, I downloaded sv_SE.mo, and it does not have the words “Register or log in:”, “Log in »”, or “Remember me”. I don’t know how to edit MO files, so you’ll need to wait for someone who does.
I have made some small changes in the Kakumei theme to change colors. My forum at http://www.enkelwebbplats.se/forum/ is now how I want except two minor things:
1. I want to change the color of Add new topic (in Swedish LÄGG TILL NYTT ÄMNE) which is now in black and not easily seen after I changed background to navy blue.
2. I use a Swedish language file but as you can see “Register or log in:” is not translated as is also not “Rememer me”. Where can I change that?
I am most grateful for any advice!
I’ve never figured out how to do direct query setup for views, so what I do is just short-circuit the internal function and write my own. For example:
bb_register_view("highest-rated","Topics with the highest rating",array('append_meta'=>false,'sticky'=>false));
add_action( 'bb_custom_view', 'highest_rated' );
function highest_rated( $view ) {
if ($view=='highest-rated') {
global $bbdb, $topics, $view_count, $page;
$limit = bb_get_option('page_topics');
$offset = ($page-1)*$limit;
$where = apply_filters('get_latest_topics_where',"WHERE topic_status=0 ");
$query = " FROM $bbdb->topics $where ";
$restrict = " ORDER BY cast(topic_posts as UNSIGNED) DESC LIMIT $limit OFFSET $offset";
$view_count = $bbdb->get_var("SELECT count(*) ".$query);
$topics = $bbdb->get_results("SELECT * ".$query.$restrict);
$topics = bb_append_meta( $topics, 'topic' );
}
}
.
Obviously change the query to your own and that might work for you. Don’t forget to use $bbdb->bb_ratings
the $bbdb part is critical.
I would register the New Posts RSS feed with FeedBurner and subscribe from there.
I work with bbPress 0.9.
Been trying for hours to get this SQL into a view?
How should the array for bb_register_view() look like?
SELECT bbt.*, (SELECT COUNT(*) FROM bb_ratings WHERE topic_id=bbt.topic_id) AS counts
FROM bb_topics bbt, bb_ratings bbr
WHERE bbt.forum_id = 2 AND bbt.topic_status = 0
GROUP BY bbt.topic_id
ORDER BY counts DESC
755628Inactive
Hi! Thank you _ck_ and chrishajer. It works wonderfully now.
I have a few more questions if you don’t mind:
1. Is there any way to optimize bbPress for extremely large forums? My forum will have 50 forums, followed by subforums for cities, followed by 5 subforums for each city. (I’ve thought it over through as well, and this is the best way to organize it)
2. If there isn’t, is there a way I can create 50 forums that are different, one for each state, and have them running congruently? Would that alleviate the loading time and the strain on the database?
3. Is there any way to have many separate forums that are sharing the same users table? They are going to be separate forums. I just want to have it so that 1) if one person is logged into one bbpress, they are also logged into another, and 2) if they are registered on one, they are also registered at another. Is there a way to do this?
What would be the best way to handle this? It’s just that when I release the site, I want to have every section and everything up so that I don’t have to worry about expanding. I just want to do everything now (and having a lot of free time during the summer doesn’t hurt either!)
Thanks.
As of fairly recently, other users and I have only been able to post in Firefox. In all other browsers the error message of “Your attempt to create this topic has failed.” comes up.
The bbPress is not hooked up to a WordPress install, and is running no plugins. I haven’t touched the core code, only the template files (and I’m aware they’re slightly out in IE).
I’ve tried with both a newly registered account, and using my Admin account – both work in FF, but not in anything else.
If anyone could offer some guidance as to why this may be, it would be greatly appreciated.
The URL is: http://support.westciv.com
Cheers
Guy
== Users Registered via bbPress appear as “anonymous” in WordPress ==
This is a bug on the bbPress side where it does not define and insert a “display name” during registration. See this post for a fix (which should be done via plugin and not a core edit). I suspect it will be fixed soon in a newer release.
@_ck_ Yes I did install it in a seperate db. I thought thats what it meant when it said seperate. i just didn’t want to mess up my wp db if I had to customize it or reinstall or do something of that type.
@chrishajer I can’t register a new user. I got the error.
Warning: mysql_insert_id(): supplied argument is not a valid MySQL-Link resource in /home/hyperhoo/public_html/businessperfection/forum/bb-includes/db-mysql.php on line 180
How would I install it with the wp db?
755833Inactive
Well I fixed it, if anyone (incl. developers) are interested. Unfortunately it requires modifying a line of core application code…
pluggable.php in bb-includes
Line 502
$bbdb->insert( $bbdb->users,
compact( ‘user_login’, ‘user_pass’, ‘user_nicename’, ‘user_email’, ‘user_url’, ‘user_registered’ )
);
Replace with
// bbPress / WordPress bug fix added display name to wordpress
$display_name = $user_login;
$bbdb->insert( $bbdb->users,
compact( ‘user_login’, ‘user_pass’, ‘user_nicename’, ‘user_email’, ‘user_url’, ‘user_registered’, ‘display_name’ )
);
755833Inactive
From what I can tell the anonymous issue is because users that register through bbPress get added to the wp_users table but the display_name field is left empty. Where do I change the query to put the user_nicename into the display_name on registration, like WordPress does? I’m not sure why bbPress doesn’t do this automatically.
Going back to the first post, what does this mean:
the db's fine but erased by login information
It seems that the installation went well, you just need to figure out what user to log in with. If you can’t do that, why not register a new user with your email address. (Check the wp_users table now for the last id, and then after you register, make sure you look for the new id.) It will get the normal permissions of a member, then go into the database and modify that user’s meta info to give them moderator permissions? Then log in with as that user?
755833Inactive
I’m not meaning to be rude or anything but I’m struggling to understand why two bits of software made by the same company are so hard to integrate? I’ve never managed to get integration working fully and I always get to the point where users who registered through the forum post on the WordPress blog show up as Anonymous… which basically renders the whole process pointless. I’ve managed to get WordPress and vBulletin to integrate seamlessly, but not bbPress.
bbPress and WordPress are both great pieces of software in their own right, but when it comes to integration with each other they are pretty weak. For example, the new bbPress isn’t compatible with WordPress 2.6 because of an issue with cookie management in WordPress… for the integration to work we now have to wait for bbPress to release an update which according to a moderator on here will be a while away.
There are also so many unsolved integration threads here that it’s very difficult to find any one collection of possible solutions. I appreciate the amount of work that goes into this kind of software and time required to provide support. I’m just feeling a bit frustrated
Just the syncing of cookies and do users don’t have to log in again and or register again. Nothing else.
724719Inactive
yeah sorry ck basically i meant that STOPPING people from having more than one account with the same email address can be a way of addressing the issue of “Multiple Accounts”.
because if the user really wanted to make another account he/she would have to go through the annoying/lengthly process of creating another gmail/hotmail account. But the current issue is that it only takes literally 5 seconds to create another account becuase the new account details will be sent to the same email address over and over again.
anyway, i never thought of the redirecting I guess im just losing alot of sleep, yeahs nice idea. .htaccess
nv1962, it would be a good plugin to learn/practice from. Roughly 3-5 lines total. Essentially you’d add an action to bb_send_headers and just like my plugin above, if the bb_get_location==”register-page” you echo the redirect header for the wordpress page (and then do a die() so no other code can execute until it redirects).
The sole (arguably flimsy) reason I cleaned-out the register.php file is pure paranoia: to avoid directly injected calls that somehow (mysteriously) don’t get caught by Apache (htaccess).
Let’s say I’m not too confident in my mad php skillz to write such a plugin… I’ll try it with a redirect instead.
Well login integration is not as important as the register part. As far as your instructions, I wouldn’t recommend deleting the contents of a core file but the redirect part is okay.
It occurs to me, it’s actually possible to redirect the register page in bbpress to the wordpress side via plugin with no edits required anywhere.
Remember that bbPress registration process should catch up to the WordPress side eventually. In fact I like it’s layout better but WordPress’s is more mature code-wise.
Sorry for the tangent _ck_ but… you really recommend redirecting all logins to WP, too? As in, this silly thing I just posted about “unifying” registration on the WP side?