This sounds like something to look at in your theme. I’m not sure bbpress has thumbnails/featured images on topics by default?
Ask your theme author or let us know what theme you are using and hopefully we can find out more.
If you want to temporarily disable a plugin(s) or custom theme you can access your site via FTP and move the folders (don’t delete!) out of their respective places. This will disable the plugin/set WordPress to use the default theme.
Then you should at least be able to login to your dashboard.
Hope that helps!
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!
Thank Robin W for your link. I do all instructions in this topic but the issue is not fixes. I disable all my plugins except bbpress, also i change my default template for wordpress default theme but i get same error.
You don’t have another solution ?
to save someone scrolling through, this is the solution posted by @themusiciangirl1 – thanks Maya !
Guys, I DID IT! After spending the better part of a day sweating over this problem, I finally fixed it. The solution is so simple, I have no idea why it took me so freaking long to think of it!
1. Download and install the “page links to” plugin at https://wordpress.org/plugins/page-links-to/
2. Go to Dashboard –> All pages –> and then click edit on your default forum page (usually http://www.yoursite.com/forums)
3. Once you’re on the editing page, scroll down to where your new plugin has two, magic little options for you. The first one, “this is a normal wordpress page,” is probably checked. Instead, check the one right below it, the one that says “custom url” or something like that. Enter the url for the page that you WANT your default forums page to be. Click publish.
TA-DA! Now, when you click on “forums” in your breadcrumbs trail, instead of taking you to that default index page, it’ll take you to the special one that you made using the index shortcode.
I managed to fix it using the solution described in this post:
Change the default Forums page
It might be more of a workaround than anything else, but it’s transparent to our readers, so that works for me.
Thanks for following up and getting back to me!
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.
@jturet
I don’t know , suggest you hire a developer if you really want this functionality.
but by default bbPress and BuddyPress do not use the visual editors so Id say just use the default text editor.
The trouble is, by default bbPress has a lot of bells and whistles (features) that will quickly clutter a small screen.
So it’s a lot of work to clean up the clutter and remove unnecessary design elements, borders, etc. Convert “px” to “em” and percentages. Use something like Flowtype to resize your text.
Here’s an example of what you can do: http://linkedexpertsalliance.com/forums/
I spent about an hour just cleaning up the boxes and borders bbPress draws around the text editor, which makes all of your editor buttons too small to press on a phone. You want that text editor to use up the full width of your device. I tried to make those buttons responsive but the problem is you need those buttons to be big enough to tap, like the “bold” button is tiny. In the end, decided to go with a fixed viewport. It’s just lots of little tradeoffs here and there that makes it frustrating.
I’ve been using bbpress plugin to set up forums for my website’s users. Originally there is no function when it comes to ‘counting views’ of each post. So I added some codes according to this website’s advice.
It works fine with general(sitewide) forums but when I made a group(buddypress function) and tried to integrate it with bbpress forum, the view count php code does not work in group forums. (Still, it works perfectly fine at sitewide forums)
this is my code right now (wp-content/plugins/bbpress/templates/default/bbpress/loop-single-topic.php)
<li class="bbp-topic-voice-count">
<?php
if( !function_exists('get_wpbbp_post_view') ) :
// get bbpress topic view counter
function get_wpbbp_post_view($postID){
$count_key = 'post_views_count';
$count = get_post_meta($postID, $count_key, true);
if($count==''){
delete_post_meta($postID, $count_key);
add_post_meta($postID, $count_key, '0');
return "0";
}
return $count;
}
function set_wpbbp_post_view($postID) {
$count_key = 'post_views_count';
$count = get_post_meta($postID, $count_key, true);
if( $count == '' ){
add_post_meta($postID, $count_key, '1');
} else {
$new_count = $count + 1;
update_post_meta($postID, $count_key, $new_count);
}
}
endif;
if( !function_exists('add_wpbbp_topic_counter') ) :
// init the view counter in bbpress single topic
function add_wpbbp_topic_counter() {
global $wp_query;
$bbp = bbpress();
$active_topic = $bbp->current_topic_id;
set_wpbbp_post_view( $active_topic );
}
add_action('bbp_template_after_single_topic', 'add_wpbbp_topic_counter');
endif;
echo get_wpbbp_post_view( bbp_get_topic_id() ); ?>
</li>
looking forward to your template or codex changes
I just updated the codex article and put an example template to look and study off of.
It is not just copy and pasting the template into a file and it working, you have to study it and read the comments in the code and find similarities in your index.php file. Then you can create a bbpress.php file from your index.php file.
If I add the short-code to a custom page using the page.php code it works
Yes I know but it is just that page, you need all of the bbPress forum pages. Using shortcodes like that means you would have to put a topic shortcode for every topic you have in a bunch of pages. And that is not what either of us are looking for , right??
It doesnt matter if the default forum uses index.php or page.php – it doesnt work.
Yes it does, and you have to edit the new bbpress.php file.
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
Its not as easy as just renaming it.
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
Was busy with other stuff , but yes i uploaded an example template to look over and compare to your index.php. You cannot just copy and paste , you have to look at the simple code and read how it works in the comments i left in the code.
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
Thanks so much – although I am wondering if it is going to solve my problem (but please do!)
The reason I say that is….
I downloaded ‘What the File plug in’ and looked at the forums page that isnt working (the default page). It ‘was’ using ‘index.php’ where as the page I built that does work uses ‘page.php’
So then I used ‘bbPRess wp tweaks to tell it to use ‘page.php’ for the non-working forums page
And now when I go to the non-working forums page, What That file tells me I am using ‘pages.php’ (same template that works on the other page) but as you can probably guess it still doesnt render!
It’s like listify is telling it to ignore whatever page I choose and just ‘don’t render it correctly!’
Another ‘not so good’ solution would be just to remove ‘forums’ from that path directory, or that entire directory (but I dont know if that can be done). While it reduce navigation for the site, at least it would remove a bogus link that doesnt work
I have a very similar problem and I must admit I have posted it as a seperate topic, but you guys seem so close to the problem (and solving it) that I trust it’s ok to post here as well.
I am using the Listify Theme and there does not fundamentally seem to be a default template that will work with bbpress. No matter what template I choose and copy as the plugin-bbpress.php template for example – it won’t work. Here’s an example of the page not working – http://tattsamistake.com/forums/
So….I built a custom page and put the shortcode in it – and the page works. BUT when I click thru to a forum, I get my navigation path which links to the forums page that doesnt work – ie the path shown is … Tattoo Removal Australia › Forums › Tattoo Removal
and if i click on ‘forums’ it goes to the non-working page – http://tattsamistake.com/forums/
BUT if i go and change the slug from ‘forums’ to ‘Tattoo-forum’ (the customised page that does work) it goes and applies a non-working template to that page, so in effect killing the page.
I guess to solve it I need the following…
1. A way to tell it where the forum short-code is without over-writing the page template
2. This may sound very silly but is there such a think as a generic bbpress.php template that I can use and upload to my site? Sure it won’t look like my site, but it would be a starting block.
3. Can I just get rid of ‘forums’ in that path, or at a pinch just get rid of that path from displaying completely?
Any help much appreciated!
I am using the Listify theme at http://tattsamistake.com
For some reason none of the page themes will work with bbpress (if I am wrong would love to know!)
So I followed the instructions on building a new page and adding the forums short-code to it. Even then it isn’t ideal but it will just about do – you can see it at http://tattsamistake.com/tattoo-forum/
If I click on any forum I then get presented with a directory ‘path’ to go back one page ie – Tattoo Removal Australia › Forums › Caring for Tattoos
The problem is – if I click on ‘Forums’ I go to the ‘default’ forums page that doesn’t work, rather than the new forums page that I built (that mostly works)
If I go to settings and change the name ‘forums’ to the same name as my custom-made forums page, it then overwrites my page template choice with the template that doesn’t work for forums – so it breaks the page
So in short – how can I get that ‘path’ Tattoo Removal Australia › Forums › Caring for Tattoos
to point to my working forums page, rather than a non-working forums page?
Hope this makes sense!
Hi @robkk
Here are my answers :
1. I haven’t imported any forums, and this issue wasn’t there berfore ( I think ).
2. I haven’t modified core plugin and there is no other user capability plugin in my site.
3. Yes default WordPress role is “participant”.
4. Nope, not spam.
5. No any security issue detected till now.
If they get the keymaster role make sure you disable registration til you get this fixed.
can you please answer these questions so i can narrow down what the issue might be??
has this issue always been there when you first installed bbPress?
did you import any forums and this issues has started?
did you install any plugins that modify s the capabilities of users?
is your default WordPress role for registration a subscriber in settings>general?
have you had a large amount of spam lately?
have you had any security issues lately?
Right now i cant tell what what causing the issue?? It is either some capability plugin settings that are messed up , or that you have been hacked??
i don’t have multi-site. and i am using custom registration form for new user, also if I create new user from back-end (i.e. new user ), still the default role of user is “keymaster”
sorry Friday through Sunday you can expect slow support responses.
it should be like that by default , participants shouldnt be allowed to mark topics spam, they can edit but for whatever time you have allowed in settings> forums.
you can answer these questions to help me help you.
has this issue always been there when you first installed bbPress?
did you import any forums and this issues has started?
did you install any plugins that modify s the capabilities of users?
is your default WordPress role for registration a subscriber in settings>general?
@entrapped
edit the custom post type/post type archive titles for bbPress which should be these below in your All in one Seo plugin settings.
forum archive
topic archive
forum
topic
reply
by default without an seo plugin the titles should display like this
topic: your topic title | yoursite
this is not really a problem , and its not bbPress
WordPress handles the registration and in a default installation of WordPress your login page is yoursite.com/wp-login.php
bbPress just has a custom registration form.
You can use this plugin for a custom new registration email.
https://wordpress.org/plugins/welcome-email-editor/
im sure when bbPress devs implement the @mentions scripts into bbPress they will have a way for it to work with the visual editor , well depending on their stance to implement the visual editor by default too.
if you really want the @mentions script from BuddyPress to work in the visual editor in bbPress you might need to hire a developer.
post a job at http://jobs.wordpress.net/
Hi,
I’m using both bbPress and buddyPress in my site and in the “forum topic” page, even the subscriber/user can edit/mark spam the topic. But I want only administrator to have those feature.
Here what I tried,
1. In the forum setting, assigned default role to “participant” and in forum repair tools, I checked the “Remap existing users to default forum roles” checkbox and repaired the Items. ( but didn’t work )
2. I tried uninstalling all the other plugins and repeated the process 1 ( Still didn’t work )
3. I tried switching theme and again repeated process 1 ( Didn’t work 🙁 )
Am i missing anything ? Please help !!