Hi Robin W, thank you for providing the above code! It is just what I’ve been looking for!
I have a question. When I was testing, I noticed if I entered invalid login info, there was no redirect or error message, but it did display that in my address bar. What accounts for what happens on login failure?
Here is a sample that displayed in my browser after login failure:
Upside
The site I’m testing on is this one:
http://www.rashedlightsways.com
Also, small second question. It happens often that I’m on a site that I *think* I’ve registered on, but haven’t. If someone enters a login that is not correct AND that username doesn’t currently exist, is there a way to redirect to the registration page WITH that username?
So, for example, I type in username: MyFaveUser pw: 1234, and it doesn’t exist in my user table, so the user is redirected to “Hey, MyFaveUser doesn’t exist, but you can register with it! It’s available!” and then autofill the username field with MyFaveUser and leave the pw field blank?
I’ve been trying to bridge together new user registration and login in one field, and thought that might be a way to do it.
Thank you so very much!
– Omar
“Let Your Light Shine”
nsParticipant
—
Wordpresss: Latest version
bbPress: Latest version
design theme: Original building
—
I have one question.
In the page “Forum Replies Created”, can I show my replies data only?
If I can, which php file is, and how do I change code?
Or if I need to apply certain WordPress plugin, what is it?
The page “Forum Replies Created” shows all replies data which contains my relied data.
I’d like not to show other user’s replies data.
Thank you, Robin. I had done a post of my own to test, which worked. However, it now seems to be solved due to an update on Simple WordPress Membership (at least, it’s now visible, which is a relief). Fingers crossed!
so we need to work out if
a) it is this individual post
or
b) the first reply of any topic
You’ll need to do some testing to establish which and come back
I have set up a website for a local horticultural society with a forum restricted to society members. For the forum, I’m using bbpress; for the membership registration I’m using Simple WordPress Membership. I’m using the customizr theme and the latest version of WordPress. My problem is that, with our 1st topic, the first reply is hidden. I cannot find a way of unhiding it. I’ve posted a reply myself, which is visible, and tried reposting the text of the hidden reply. When I do this, I get van email altering me to the reply but still nothing is visible on the website. Please can someone help? The website is http://www.growchiswick.org.
Many thanks,
Jo Hodges
Hi guys!
looking at these forums, I can see the @name name is printed beneath the profile picture.
How can I turn this on in my website?
I’ve uploaded a beta of my website here
Is there an auto suggestion option for the mentions?
example, if somebody starts typing @bor he/she will be suggested @boris-kamp?
Thanks!
I just installed bbpress on a brand new site. I have created a couple of test forums and topics. On the forum root it shows that there are topics and posts in the forums. However, when I click on a specific forum to view the topics, I get the following message: “Oh bother! No topics were found here!”
By way of troubleshooting, I tried another WordPress theme. It worked, and the forums displayed as they should. Is there a way I can keep my current WordPress theme from conflicting with bbpress? I have no idea what is causing the conflict, only that it is being caused by the theme I am using. I don’t want to change themes, either.
This plugin is great (from what I’ve seen so far while testing)
Thanks for posting the link.
I hope this sort of feature can become part of the core bbpress plugin in future.
It does seem tricky to set this sort of thing up (hopefully to be improved in future versions of bbpress?).
One way to do this, although not the most robust option, would be to simply hide the new topic form for everyone but keymasters/admins when viewing that particular forum.
I will assume you are accessing your new topic form when viewing the individual forum (it’s trickier if you are using the new topic form where you choose which forum to post to instead of/as well as individual forms in each section. This is what’s used here on the bbpress.org forums for example. If you need a solution for this as well let us know, I’m sure someone can explain how to do that)
This is just off the top of my head and not tested (hopefully someone more experienced will be able to advise better) – in wp-content/your-theme/bbpress/form-topic.php (create this file if it’s not already in your theme, copy the original from wp-content/plugins/bbpress/templates/default/bbpress/
At the top of the file, after this code:
<?php
/**
* New/Edit Topic
*
* @package bbPress
* @subpackage Theme
*/
?>
Add this code to check if you are in your news forum (here I’ve used forum id ‘5’ as an example, you’ll have to find the specific id for your forum) and if the user is an admin (there may be a better to do this using the keymaster role instead of the usual WP role but I don’t know about that):
<?php if ( bbp_is_single_forum( '5' ) && current_user_can( 'manage_options' )) : ?>
Then at the very end of the file close the if statement by adding this:
<?php endif; ?>
That should work as far as I know but I am still finding my way with bbpress so can’t say for definite. Good luck!
Hello,
My search function didn’t work for a good while (a search was redirecting to the homepage), and I realized today that it was an issue with buddypress or plugins I used with buddypress.
Now that I disabled Buddypress, I can now search the forum again but unfortunately, the search results are protected by a password.
I use s2member to protect one of my forum, so it is only accessible to subscribers, but all the other forums are opened. I tried to lift the s2member block of the subscribers forum but still the same thing happens anyway.
I also tested the issue with twenty fifteen and the same thing happened.
I am using bbpress Version 2.5.7, WordPress Version 4.2.2
Site is http://www.tourdecartes.com
Any help would be greatly appreciated 🙂
Emmanuel
hmmm you might need @netweb’s help on this one.
You might need to update phpBB (but not to the latest 3.0) but I am not entirely sure.
I just ran a test, – tried to import just 2 replies (by DB), – see white page (No data received ERR_EMPTY_RESPONSE) @ the “Replies” section in admin.
After i ran “Recalculate the parent topic for each post”, “Recalculate the parent forum for each post”, “Recalculate the position of each reply” – problem get fixed.
Now i import all the 3M+ replies. I’m able to run only “Recalculate the parent topic for each post”, “Recalculate the parent forum for each post”. “Recalculate the position of each reply” fails with white page. The “Replies” section in admin is white (((
nsParticipant
Hello.
I’d like to solve problem.
Would anyone answer to my problem?
Firstly, the conditions of WordPress, bbPress, design theme, plugin, and function.php are below.
Wordpresss: Latest version
bbPress: Latest version
design theme: Original building
plugin: introduced “bbPress – Sort topic replies”.
The settings of this plugin are “Global:Descending”, “No Parent:Default”, and “Always show lead Topic:Yes”.
function.php: Below code exists.
add_filter('bbp_before_has_replies_parse_args', 'change_reply_order');
function change_reply_order() {
$args['order'] = 'DESC';
return $args;
}
add_filter('bbp_show_lead_topic', 'custom_bbp_show_lead_topic' );
function custom_bbp_show_lead_topic( $show_lead ) {
$show_lead[] = 'true';
return $show_lead;
}
Then, here is main topic.
The function of bbPress itself is that after the user replies to the parent topic in topic page, next screen shows the last page(the page of max number) if the pagination shows.
With the setting of “bbPress – Sort topic replies” plugin is under “Global:Descending”, the redirection which I expect is to go to the first page.
I think that this solution isn’t https://bbpress.org/forums/topic/new-replies-redirect-to-last-page/
I’ve searched and tried to solve the problem, however I can’t find the solution.
I wonder my current settings or ways might be wrong.
Thanks.
Same Issue, I am using the latest version of bbpress and buddypress.
Strict Standards: Declaration of BBP_Forums_Group_Extension::display() should be compatible with BP_Group_Extension::display($group_id = NULL) in /Applications/MAMP/htdocs/supernova/wp-content/plugins/bbpress/includes/extend/buddypress/groups.php on line 28
I’ve been working hard at setting up a site for my podcast and things had been going swimmingly, but while looking around at some RSS feed import widgets and such today, somehow I seem to no longer have working BBpress forums. It doesn’t seem like it would be related, but who knows?
The forums still show in my dashboard, and I was able to create a forum page by hand and get it to show the index with shortcode, but when I click on any of the forum links, it gives me a page not found error. It seems to do so even if I swap to one of the bundled 201x themes.
The RSS widget I was testing out is RSS Multi Import 3.15 and I’m running WordPress 4.2.2 with the Generate Press theme 1.2.9.8 and BBpress 2.5.7. Website is http://www.whitebookpodcast.com.
I’m a quite a newb to delving in to WordPress stuff, so I have to admit that I’m at a loss. Any thoughts on possibilities?
That’s why I installed it.. Testing the code and by the time my forum is done bbPress 2.6 will be released I hope.
But still, a missing core stylesheet?
Some developer who has worked last on the code should’ve mentioned it don’t you think, maybe the developers have some fancy tool where they test/fork the alpha and beta versions with?
I just downloaded the latest version (trunk) of the trac website.
https://bbpress.trac.wordpress.org/browser/trunk ( bottom – download .zip )
Hello Friends, I need your help. How to get the latest reply on the top of the page. I tried a lot. But not got the solution. Where is the SQL has been written for getting the latest replies on top. Help me out please 🙁
Why is this topic not showing at index page? -test.
I’m implementing derricksmith01’s solution but I couldn’t find this file in the latest version of buddypress (Version 2.2.3.1):
/buddypress/groups/single/plugins.php
but found it here:
plugins/buddypress/bp-templates/bp-legacy/buddypress/groups/single/plugins.php
His solution worked (awesome!!!!) but only when I modified both my functions.php file in my child theme and the plugins.php file in the core files. The plugins.php mod will get erased with the next buddypress update. I tried recreating the same file structure to house the plugins.php file in my child theme:
childtheme/buddypress/bp-templates/bp-legacy/buddypress/groups/single/plugins.php
but that did not work either.
Any one know if derricksmith01’s fix is possible without changing a core file?
Great thanks – it should work, just I haven’t tested !
Hi there – thanks so much for your help so far. I did some more tests and I just cant get it to work (so looking forward to your template or codex changes.
To summarise:
1. I was only using WPtweaks to tell it which page to use as a template but no matter which one I told it to use – it didnt work. Have since de-activated
2. If I add the short-code to a custom page using the page.php code it works
3. It doesnt matter if the default forum uses index.php or page.php – it doesnt work.
4. I have sequentially copied pages.php and index.php and made them bbpress.php and each time I can see that the default forum is using it, and each time it doesnt work
So i guess I need a generic index.php that will work (which I think you said you were producing) OR some workaround so the generic forums page doesnt appear in the directory path
did you copy it correctly I just tested it out and pasted it right from my functions.php file
Im going to paste it again just in case it was me that forgot something.
function my_bbp_change_avatar_size($author_avatar, $topic_id, $size) {
$author_avatar = '';
if ($size == 14) {
$size = 24;
}
$topic_id = bbp_get_topic_id( $topic_id );
if ( !empty( $topic_id ) ) {
if ( !bbp_is_topic_anonymous( $topic_id ) ) {
$author_avatar = get_avatar( bbp_get_topic_author_id( $topic_id ), $size );
} else {
$author_avatar = get_avatar( get_post_meta( $topic_id, '_bbp_anonymous_email', true ), $size );
}
}
return $author_avatar;
}
/* Add priority (default=10) and number of arguments */
add_filter('bbp_get_topic_author_avatar', 'my_bbp_change_avatar_size', 20, 3);
add_filter('bbp_get_reply_author_avatar', 'my_bbp_change_avatar_size', 20, 3);
use this PHP function to resize the small avatars
function my_bbp_change_avatar_size($author_avatar, $topic_id, $size) {
$author_avatar = '';
if ($size == 14) {
$size = 24;
}
$topic_id = bbp_get_topic_id( $topic_id );
if ( !empty( $topic_id ) ) {
if ( !bbp_is_topic_anonymous( $topic_id ) ) {
$author_avatar = get_avatar( bbp_get_topic_author_id( $topic_id ), $size );
} else {
$author_avatar = get_avatar( get_post_meta( $topic_id, '_bbp_anonymous_email', true ), $size );
}
}
return $author_avatar;
}
/* Add priority (default=10) and number of arguments */
add_filter('bbp_get_topic_author_avatar', 'my_bbp_change_avatar_size', 20, 3);
add_filter('bbp_get_reply_author_avatar', 'my_bbp_change_avatar_size', 20, 3);
The CSS you would have to use now is
#bbpress-forums .bbp-author-avatar .avatar-24 {
width: 24px !important;
height: 24px !important;
padding: 0 !important;
border: none !important;
}
and you can remove the first function i gave you to test with
@van24
yeah i tested it and it seems to work good.
and yes the PHP code snippets you can add to a child themes functions.php file.
To Whom It May Concern,
I’m trying to configure forums properly for my site and for some reason the forum samples that I created from my back end are not showing up on my http://www.myloopnetwork.com website under the “Forums” tab. So I went to check out the Error Log from my hosting plan back end and saw this message:
20150609T144202: http://www.myloopnetwork.com/index.php
WordPress database error Table ‘wordpress_iomdefe35a.wp_jgts_bb_forums’ doesn’t exist for query DESCRIBE
wp_jgts_bb_forums; made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), call_user_func_array, bp_template_redirect, do_action(‘bp_template_redirect’), call_user_func_array, bp_screens, do_action(‘bp_screens’), call_user_func_array, bp_forums_directory_forums_setup, do_action(‘bbpress_init’), call_user_func_array, bp_forums_load_bbpressThere were a lot of other errors listed on that log but I already spoke to a representative of my hosting plan service and he said that he doesn’t see any other errors on that log from his end, except this one and another error (which I’m currently trying to resolve with the BuddyPress plug in moderators). So is there a reason why the above message is showing up? Please let me know what necessary steps I must take to get this resolved.
I’m currently testing everything out on the latest version of the Twenty Fifteen theme (ideally, I want to use this Magnus WordPress Theme [1.6 Version] for my site), I only have the BuddyPress plug in (now running a 2.3.1 version), the bbPress plug in (now running a 2.5.7 version) and a W3 Total Cache plug in (running a 0.9.4.1 version) currently activated. My hosting provider is with iPage, which is running a 5.0 PHP version and is running NGINX for their server. I hope all this info will be helpful in figuring out what’s going on. Any feedback or any other suggestions you may have will be greatly appreciate it.
Thank you in advance.