This might be quite simple when you have custom template or have child themes. You will just need to place a jump link or button.
e.g. Click Me
Agree it could do with an overhaul. A single widget that can be flexibly configured to show and link exactly what you want would be a real bonus. Similarly for the shortcodes. Even better if it could cover WP posts and replies using an identical structure/layout.
an ideal widget would have
– number of things
– sort by: topic creation, freshness, popularity/views, popularity/replies in last X days
– show/link OP author
+ include date [x]
+ include avatar [x]
– show link most recent
+ include date [x]
+ include avatar [x]
– present as table or list
– extract OP
– extract latest
– [shrtcodeable]
I don’t see the need for a list that has replies (with dups per topic) as thats better handled as an activity stream.
Hello I am running the latest version of wordpress and bbpress, I am new to both of the aforementioned products. I have added a header link to my site that looks like
<?php if (is_page(‘Forums’)) { echo ” class=\”current_page_item\””; } ?>
That code works everywhere on my site except for bbpress. Can someone please tell me how to set my header link, and keep it, in the active state when on the forums? I’ve looked on this site and searched google to no avail.
Thanks alot.
Coming back to answer my own post, in case it helps someone else down the line: the shortcode (for the individual forum ONLY) was distorted in Visual mode. Switching to Text mode and correcting the shortcode seems to have fixed the issue.
Where do you put the code?
Wordpress 3.6, using theme Twenty Eleven
BbPress 2.4 (Just updated this morning, though I had the problem with the previous version as well)
Only other active plugin: Error Log Dashboard Widget 1.0.2 (showing no PHP errors)
Several other plugins are installed, but deactivated while trying to debug this issue.
I have the following text on a single page:
Here is the shortcode for the single forum: [ bbp-single-forum id=39 ]
[bbp-single-forum id=39]
Here is the shortcode for all forums: [ bbp-forum-index ]
[bbp-forum-index]
The single forum does not display. The forum index does display. I have confirmed that the index is the correct number via the admin forum view. Here is a link to a screenshot. Here is the link from the forum page, showing the forum id: http://[domainremoved].org/wordpress/wp-admin/post.php?post=39&action=edit (Obviously, clicking it won’t work, because it requires a log-in, but this is to confirm that I’m finding the forum index correctly.)
Here is the forum: http://[domainremoved].org/forums/forum/pta-board/
Here is the page it is linked from, showing where the shortcodes do not work: http://[domainremoved].org/pta-board-2/
(Note: I have added spaces between the shortcodes so you can see the text that I used, then repeated the shortcodes without the spaces to display the forums.)
I feel like this should be some really simple user error, but given that I have double-checked the shortcode syntax and the forum id, deactivated all other plugins, and chosen the Twenty Eleven theme, I can’t figure out what it could be.
ETA: Wow, that was fast— my page got slammed with spam comments within minutes of posting the links here. I have removed them for now. If a support person needs them to diagnose the issue, I can give them out then.
@media (max-width:767px){
.bbp-reply-author { float: none; }
.bbp-reply-content { margin-left: 0; padding: 12px; }
}
Something like that.
Is there a way to edit the code to make this happen?
Anyone out here knows what to put in the navigation bar to re direct the user to his bbpress profile?
yhmm something strange happened to that code.. 🙁
After weeks trying to find something that would work, I found the code on wordpress forums to remove completely gravatars (and redirects it was causing.. )
here is it:
function bp_remove_gravatar ($image, $params, $item_id, $avatar_dir, $css_id, $html_width, $html_height, $avatar_folder_url, $avatar_folder_dir) {
$default = get_stylesheet_directory_uri() .'/images/mystery-man.jpg';
if( $image && strpos( $image, "gravatar.com" ) ){
return '<img src="' . $default . '" alt="avatar" />';
} else {
return $image;
}
}
add_filter('bp_core_fetch_avatar', 'bp_remove_gravatar', 1, 9 );
function remove_gravatar ($avatar, $id_or_email, $size, $default, $alt) {
$default = get_stylesheet_directory_uri() .'/images/mystery-man.jpg';
return "<img alt='{$alt}' src='{$default}' height='{$size}' width='{$size}' />";
}
add_filter('get_avatar', 'remove_gravatar', 1, 5);
function bp_remove_signup_gravatar ($image) {
$default = get_stylesheet_directory_uri() .'/images/mystery-man.jpg';
if( $image && strpos( $image, "gravatar.com" ) ){
return '<img src="' . $default . '" alt="avatar" width="60" height="60" />';
} else {
return $image;
}
}
add_filter('bp_get_signup_avatar', 'bp_remove_signup_gravatar', 1, 1 );
As I am now planning to disable buddypress completely. I am looking for an easy way to let users upload their avatars in bbpress, anyone tried it already?
Agreed! Missing this functionality 2. I have it set to your setting as well, but a perfect widget would be a combination of the 2! Not a coder myself as well unfortunately.
I cannot reproduce the issue of missing bbPress wp-admin panels with any of these plugins: GD bbPress Attachments, GD bbPress Tools, GD bbPress Widgets, that’s not to say it isn’t happening. I will keep an eye on Milan Petrovic’s Twitter feed to see if he comes across any issues himself.
Permissions and caps with bbPress is a hard (for me anyway) to grasp at a code level, I do know that essentially bbPress is ahead of WordPress in some ways in this aspect and the fact that bbPress is built on top of WordPress this is going to constantly evolve. The ‘other’ forum packages that are available do have finer granular permissions but none of them integrate with WordPress the way bbPress does (I am up to my 27th forum converter now BTW).
These bits will come, hopefully sooner rather than later and the dev’s that contribute code for bbPress are acutely aware of this type of feature request and I am quite sure it is kept in their mind as code is written for anything for example as mentioned above ‘Per-forum moderation’ & ‘Forum subscriptions’ slated for bbPress 2.5, these two features alone make for a great start in getting more of the types of features you are referring to.
“bbPress is forum software with a twist, from the creators WordPress”
The file is located in /wp-content/plugins/bbpress/templates/default
If you edit this file manually when you update bbPress your changes will be lost.
The link above in my post shows the steps needed to copy this template to your own theme so you can use your own custom templates without bbPress overriding it during updates.
The newest version of bbPress has caused a couple of my sites plugins/short-codes to display incorrectly. The plugin in question is Cookie Law Info, it appears to remove it format i.e. no button image and text not centred etc. Also the short-codes for my elegant themes, theme do not appear to be displaying correctly either.
It is in the feedback-no-forums.php template \templates\default\bbpress
If you want to modify this template for your theme here check out the docs on theme compat.
https://codex.bbpress.org/theme-compatibility/
Hi there
I used the code in my themes function.php file, as detailed above and it worked perfectly. That is, until I upgraded to 2.4 a few minutes ago, now the open forums changed position with the private ones (no problem) but the subforums are back listed on one line again.
The function.php file still contains the code, so I guess something has changed with bbpress.
Would someone know what I should do now?
Many thanks
Ok thanks for the 2.4 update, I installed it but it does not fix this issue. Maybe this is something I could just edit myself if I had the code and knew the place to add it. Also it would be cool to add an option in bbPress to have the User info to the “left” or “across the top”.
With it to the left there is a lot of wasted page real-estate and it is not responsive friendly.
Forums have always had the user info to the left but I think it’s time to change this or at least have the choice.
Thank you for your time.
Anonymous User 5853594Inactive
First of all, did you copy the extra Dutch language files for bbPress and BuddyPress? You need those in addition to the Dutch language files for WordPress itself.
https://codex.bbpress.org/bbpress-in-your-language/ will point you in the right direction for making things work with bbPress. (I suggest that you take the “dev branch” for the files, as the other link is outdated.)
https://translate.wordpress.org/projects/buddypress/dev points to the BuddyPress version of the language files.
If you’ve got those up and working, you should be able to use the Dutch settings… Although I don’t know if the plugin will enable you to switch languages for the bb’s, as I can’t find that they support them.
In ieder geval veel succes!
I have just managed to solve this issue by using:
bbp_get_user_profile_url( get_current_user_id() )
Those looking to create a simple link to the profile could use:
<?php echo bbp_get_user_profile_url( get_current_user_id() ); ?>
Thanks for reporting this 🙂
I’ll try to update the importer as soon as I can to import any username that includes white space eg. Member Name to member_name or member-name.
This needs a bit of thought on a patch as it will affect all of the bbPress importers 😉
Categories are currently only imported as a forum type and each of these can be changed in WP-admin forums panel.
Sub-forums in phpBB and bbPress are all just forums with a parent forum for the forum hierarchy, these can be changed re-ordered etc also in WP-admin forums panel.
Your forum title ‘Obutto’ is just a title name for the site, you can set the title of your WordPress site title in WP-admin.
https://codex.bbpress.org/getting-started-with-bbpress/
https://codex.bbpress.org/import-forums/phpbb/
Hi guys,
Have a problem working out how to use the archive page and shortcode to create a forum index.
Currently, the default archive page created for forums gives me an unstyled archive page without a H1. My archive page slug is “forum”
So, Instead of this I have decided to make a regular page, name it forum and stick the shortcode for the forum index in. Perfect!! I thought…..
2 The issues remain. Although the index page looks good as a regular page, the breadcrumbs when in a single forum / topic take users back to the archive page, not the new forum index page.
The second is that the archive page actually still exists…. I would like if possible to be able to overwrite access o the old forum archives when creating the forum index.
Basically, I don’t want 2 archive or forum index pages to exist for the site.