I found the problem. I had a function in my functions.php was malformed. The correct way was this way:
// Add classes to posts
add_filter('post_class', 'my_post_classes');
function my_post_classes( $classes )
{
$postType = get_post_type();
if ( $postType == 'post' ) {
$classes[] = 'clearfix';
}
return $classes;
}
I don’t think this should be a priority for bbPress. You’re doing the right thing by “outsourcing” it. But even that might be unnecessary. Most websites would be better served by adjusting to bbPress, not the other way around.
Those strongly opposed to change should simply consider options such as SimplePress, which follows the traditional (legacy imo) style of forum structure.
Maybe the teaching route is better than the development route in this case? An instructional blog post or codex page to ease people into bbPress’ new concepts could go a long way. That’s the Git approach for instance.
Man I tried to post here ages ago. I can’t believe no one has replied
SoundCloud Shortcode
That’s a plugin for wordpress I use. Will work in the forum.
It’s not that hard…
$post->ID, "links" => array("edit" => bbp_get_reply_edit_link(), "trash" => bbp_get_reply_trash_link() ))); ?>
Have you taken over control of bbpress templates using theme compatibility? If so you can modify yourtheme/bbpress/loop-forums.php and remove the list item:
li class=”bbp-forum-freshness”
Next from yourtheme/bbpress/loop-single-forum.php remove the same section and its contents:
li class=”bbp-forum-freshness
Finally you’ll have to adjust the CSS of your forums to compensate the width of the remaining forum columns for the missing freshness. Hope this helps.
EDIT: sorry, I tried to post the exact code blocks to remove, but the forum here isn’t letting me embed the code 🙁
Having the same issue in a footer widget as well as the sidebar. BBPress is overriding the footer 1 and primary widgets on the /forum/. I’ve made the page forum full width via a custom CSS file to make it disappear in the sidebar as a short term solution, but can’t seem to find the issue in the code.
See, http://www.divorcingmatters.com/forums/
This would be better:
add_filter( 'bbp_get_single_forum_description', 'ja_return_blank' );
add_filter( 'bbp_get_single_topic_description', 'ja_return_blank' );
function ja_return_blank() {
return '';
}
I want the option for it to go to a page of my choosing. People often don’t like the default forums-archive page (which ends up being the root/home page), so they create a WordPress page with bbPress shortcodes in it to be the forums’ home page. The problem is, when they do that, the breadcrumbs root link, which says “forums”, doesn’t go to that page. it goes to the archive page, or forums-index– which is the page they were trying to avoid.
-
This reply was modified 13 years, 8 months ago by
MTPrower.
This really should be put into the original code. Great tip.
Hello,i’m french 😐 (sorry)
I use a WordPress 3.4 and a buddypress 1.5.6. With it a bbpress 2.1.2.My WP theme is Frisco for buddypressmy bbpress theme is BBpress default because I can’t select another one.
My bug is on a “members/username/forums/“My sidebar is running out.all over pages are ok.
How I can resolve it?
I used a http://codex.bbpress.org/theme-compatibility/ but how I can select it in the adminpanel.
Thank’s a lot.
Franck
ok, never mind. The above code works, just the redirect needed some value, thought that blank would redirect to the home page….
bryan
It is possible to get permanent link to last post of topic? Something like has mybb engine ?action=lastpost for example http://www.example.com/forums/topic?action=lastpost
-
This topic was modified 13 years, 8 months ago by
tiberiusCA.
When you create the ‘forum you can assign the following permissions to each forum:
Public – Anyone can see these forums
Private – Only logged in registered users can see these forums
Hidden: Only Moderators/Admins can see these forums
https://codex.bbpress.org/getting-started-with-bbpress/#creating-your-first-forum
Hi….
I am using the HTML5 Reset Blank theme, and I am designing the theme from scratch. The question I have is this, is bbPress a Theme, or is it just a Forum Page…. Sorry if I am confusing you.
I guess what I am asking is this, can I just create a Page in my Blog called forum, add the Forum to that page using the short code?
Thank you….
One more attempt to get the code to paste: (I guess it won’t work, oh well. It’s fairly standard.)
get_header(); ?> <!-- ?php comments_template( '', true ); ? --> <!-- .left-column --> <!-- .right-column --> <!-- #content -->
Hey,
My company’s website uses a custom wordpress theme, and we’ve been adding bbpress compatibility to it directly (rather than using a child theme). We’ve been working on a staging server initially, before installing the updated theme on the main site.
We got everything working very nicely on the staging server, but the main one seems to have problems. Here’s an example:
I’m very confused, because supposedly there’s no difference in setup between the staging server and the live one.
I have a single top level template file for the forums: forum.php, which looks like this:
get_header(); ?> <!-- ?php comments_template( '', true ); ? --> <!-- .left-column --> <!-- .right-column --> <!-- #content -->
I would like to avoid all of the typical wordpress “backend” stuff for my users. For example, when a user registers, he just gets redirected back to whatever page he was at beforehand – there is no notification page or “success” page, just a redirect – how are my users to know they should check their email? How can I create a page that simply says “thank you for registering, please check your email for your username and password” after they register?
I would like to avoid getting redirected to the default “/wp-login.php” and instead use the bbpress login page I created. I would also like to use the bbpress registration page I made (using the shortcode and template) instead of “/wp-login.php?action=register”. Is this possible?
I would like to keep users on the front end of the site.
I created a page for forgotten passwords – after a user fills out the form, they are simply redirected – no notification of what just happened, no message that says “Your password is being email to you”, how can I go about making this more user friendly? If someone uses incorrect login detail, they simply get redirected to “/wp-login.php”, I would like them to stay on the “front end” of the site (I have a login page there after all).
Why does everything redirect in some way or another to “/wp-login.php”? How can I integrate this fully into the site without always jumping to a wordpress page?
Second issue, I seem to be having a problem with some of the other page, if I try to view members or a single member I get a 404. When going to “/index.php/forums/users/”. Any idea why these pages do not work?
Here is my domain: http://www.tbgamers.com
Thanks, I’d appreciate any help.
I’d like to be shown topic no or topic id in topic list.what should I edit in loop-single.php file? please show me getting topic id codes. thanks.
-
This topic was modified 13 years, 8 months ago by
JayteeHong.
Hey all,
I have a website that users log into and would like to sign in/register the user when the go to the bbpress forum. The site is NOT a wordpress site.
I have read several posts on this topic:http://bbpress.org/forums/topic/integrating-with-external-authentication-system/
being the most recent but none of them seem to work. I can successfully log in or create a new user. They show up as logged in on the home page. However when they click any link bbpress does not recognize them as the current user and the login form is displayed again.
We are using bbpress 2.0 db version 2471.
Here is the code I have been inserting either in a file of its own (linking to that file from my system with login parameters passed) or in the header.php file of my businesslike template:
-new_user( compact( ‘user_login’, ‘user_email’, ‘user_url’, ‘user_nicename’, ‘user_status’, ‘user_pass’, ‘display_name’ ) ); if ( is_wp_error($user) ) { echo ” got an error “.$user->get_error_code(); } $user = bb_login( $_GET[‘login’], $_GET[‘password’],1 ); }
$user = bb_set_current_user( $user->ID );
}?>
Nope I just had to make a New Page, named it Forum and then put short code [bbp-forum-index] .
Still not sure if this plugin is going to work for me, I am not that happy with the way it is arranged, it is a bit hard to understand how to see the different forums as they are just text and no color bars to differentiate them. Plus I need to have “Youtube” & “Picture” embed buttons to make it easy for people to share.
I disabled all of the plugins and thought it was W3 Total Cache at first, but then I ended up with other errors.
I disabled all caching and it was still broken. I addressed each problem individually, and after a few hours of trying different things, I changed
memory_limit = 62M ;
to
memory_limit = 128M ;
in php.ini in my root folder and re-enabled the W3 Total Caching. That seemed to fix the problem.
Resolved!
Thanks for your help!
bbpress.org/forums/ editor messed up my child sidebar.php code in my previous post. My child sidebar.php code is pasted on http://codetidy.com/3282/
-
This reply was modified 13 years, 8 months ago by
mluther.
Dear Netweb and all other helpful folks,
I looked in my Child theme’s folder and I have three files in there.
- footer.php
- sidebar.php
- style.css
When I temporarily renamed my Child’s sidebar.php to sidebar.phpTEMPCHANGE, I was able to see the bbpress sidebar.
I remember now why I created a Child sidebar.php file, and it is because I did not want any sidebar to show up when a website visitor uses the search feature. See https://wordpress.org/support/topic/archives-and-meta-widgets-show-up-on-search-results-pages for my post and people’s suggestions.
My child’s sidebar.php contains this:
<!-- https://mail.google.com/mail/u/0/#inbox/1383cda0f1903ca0 'monthly' ) ); ?> --> <!-- #secondary .widget-area -->
What can I do to both:
A. Keep the “Login” and “Meta” from showing up in the nonforum pages
AND
B. Make the bbpress sidebar appear?
Thank you!enter code here
You will need to copy the templates into a subdirectory of your theme
https://codex.bbpress.org/theme-compatibility/