ck — Into what file and where do I paste that code? Thanks. PS I am using bbPress 9.0.1
That’s a brilliant suggestion… I’ve noticed a weird lag whenever trying to load up a topic, this could be exactly the problem.
Just tested, seems to speed up the query quite a bit, although I’ll have to do some benchmarking to be sure.
[edit]: I just ran this command manually to create the index, I’m not sure if specifying an index length would help or not.
create index ix_name on bb_topics (topic_slug);
Would anyone be able to assist with testing a conversion script from IP.Board 2.3.4 to bbPress 0.9? I’ve started writing some code myself to handle the switch. It would be great if any other coders would be willing to assist with this too.
The way it will work currently is to generate a ‘ipb2bb.sql’ file that you can pass to mysql to upgrade the database. It will import users, categories, topics and posts. You can ask it to limit it’s import to select categories only instead of all categories.
If you are just trying to filter out spam bots, try my Human Test:
https://bbpress.org/plugins/topic/human-test/
Someone would have to explain the need for registration approval to me before I would bother making such a plugin.
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);
Hi. I’m using 9.0.1. I would like to restrict the number of Latest Discussions showing to 5. How do I do this? I don’t see anything in the bb-config file and the Front Page Topics plugin doesn’t seem to work with 9.0.1…
Your help appreciated.
Still no luck getting Comment Quicktags for bbPress to work in the latest bbPress install.
I really would like this problem to be solved – can anyone help me? x.x
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”.
How did you make it do what it’s doing now?
Precisely. I want to have a preview of what’s inside the forum, essentially, so that people can click on links from outside them. Kind of like what PunBB has by default. But right now, they way I set it up, it seems to copy the first one for all the forums… I don’t know how I’m supposed to set it up.
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!
Can you describe what you are looking for exactly, I am having a hard time envisioning it. So, for example, under your “Community” forum, in addition to the description of that forum, you want to say something like “Latest post: $whatever by $whoever at $time”? For all the different forums?
I want to be able to add the latest post made in a forum section on the front page (and everywhere it lists forums).
If I try to do that, it will just keep repeating the value for the first throughout the list.
It’s on this site, if it makes a difference
Thanks in advance for any help
This is the plugin to do exactly what you want:
https://bbpress.org/plugins/topic/restrict-registration-for-bbpress/#post-173
You might also want to add my “Human Text” plugin to help stop bot (automated) registrations:
https://bbpress.org/plugins/topic/human-test
I saw something about a PHP function checkdnsrr being disabled in the latest build. That function is used in the bbPress function bb_verify_email.
I think the problem is that checkdnsrr is not available on Windows, and I’m not sure if it’s available on XAMPP. Here is how they fixed it in the latest trunk build:
https://trac.bbpress.org/browser/trunk/bb-includes/registration-functions.php
Here is the original bug report:
https://trac.bbpress.org/ticket/856
OK, so it looks like the plugin version 0.8.3 still works in bbPress 0.9.1 – though I have not yet put it through heavy testing. I found the install directions left a little to be desired so I added more detailed directions below.
However… I still have a question. Some of my users have adopted Gravatars since WP 2.5 was released. The plugin currently does not seem to check for gravatar existence, let alone provide some sort of control over precedence of different sourced avatars.
The installation instructions DO provide you with the function to call to see if a plug-in uploaded/created avatar exists. However, in order to get the precedence working the way I’d like, I need to know how to test for a Gravatar existence as well. Any ideas? Thanks in advance.
Any ideas?
Install instructions:
1. Download Plugin here:
https://bbpress.org/plugins/topic/avatar-upload/
Version 0.8.3 is current at time of this writing.
2. Create the following two folders in your bbpress install:
/my-plugins
/avatars
3. follow instructions (specifically, step 5) in the readme file which tells you where to copy files. Some files in the zip aren’t mentioned (such as indenticon.php). I put those into my-plugins and so far, so good.
4. Activate plugin.
I’m trying to install bbPress on a local Intranet Server (Its on a local network for my employees to use for collaboration.) And I’m getting caught on Step 3. When i put in any email address it says that the Email Address “Appears to be invalid” and doesn’t let me continue, My main email ends in .co.uk which i thought might have been the problem but even .com and .info addresses dont work. Any ideas? (Using the latest version with XAMPP / Apache)
I’ve installed 0.9.0.1 at my test site. Gravatars show in the user profile at their true size of 80×80. However, in the kakumei theme, they are displayed at 48×48. I can’t find where this can be changed. I looked in the CSS and in the post.php file.
Am I blind?
I just set up two new accounts… testuser1 and testuser2.
As testuser1, I posted a new topic.
As Keymaster, I was unable to delete testuser1’s post. Before logging off as Keymaster, I made testuser2 a Moderator.
Logging in as testuser2, I was able to delete testuser1’s post.
I’m running v0.8.3 with WordPress 2.3.3. I am not in a position to upgrade to bb 0.9.01 or WP 2.5 yet, since our forum and website are very active right now.
So… why can’t the Keymaster delete a post?
Thanks _ck_ that did the trick.
Make sure they have not been flagged as a “bozo” by looking at their profile.
In bbpress 0.9 you can disable the built-in bozo plugin entirely which I actually recommend as it’s more trouble than it’s worth.
(Then use my Human Test plugin to make sure you don’t get bots registering to post spam).
Find bb-templateskakumeifront-page.php
(or the same template name in any alternate theme you might be using) and find the line that says
<?php if ( $topics || $super_stickies ) : ?>
(around line 11) and make it say
<?php if ( 0 && ( $topics || $super_stickies )) : ?>
which will make the if statement always fail and never show the latest discussions. If you ever want to restore it, just remove the zero &&.