I am using BBPress and in the header I have created an login/logout section for when a guest or user is logged in. I’m currently trying to create a “My Profile” link when a user is logged in but I’m unsure of the functions to achieve this (or if I am using the right functions currently). My code for this currently is:
if(is_user_logged_in()) {
global $current_user;
get_currentuserinfo(); $text .= 'Hi '.$current_user->display_name.'!';
echo $text;
echo "#"'>My Profile | Logout"; }
else{echo "You are currently not logged in!";
echo "Register |
Log in"; }
-
This topic was modified 13 years, 6 months ago by
mighty_fox.
-
This topic was modified 13 years, 6 months ago by
mighty_fox.
I am currently trying to customize the default BBPress profile page. For each forum user’s profile I would like to display the user’s description (which for a WordPress user account is called “Biographical Info”. What functions or how can I display this?
@zaerl,
Thank you so much for your help!
You’re right, the forums page is an archive not a page.
so it handles archive-forums.php not page-forums.php
Problem solved.
Thanks,
@zaerl,
Thanks for your help,
I’m going to test it.. just a few minutes.
Another update:
Switching the page.php template with the code of the page-front-forums.php doesn’t work either..
It will output all forums twice.
I really hope @JJJ or somebody else would comment on this because i can’t believe this is default bbPress and WordPress stuff.
It has to be a bug.
Have you tried archive-forum.php? The forum page is an archive.
WPML gives free licences to developers looking to make their themes or plugins compatible. Given this, it might be acceptable that I give you access to my CMS licence if it fixes the bbPress compatibility issue. What do you think?
Hi Tom,
Well i don’t know much about Artisteer because WordPress is not like iWeb or RappidWeaver where you can drag&drop to make your lay-out, If you would like to build or customize your lay-out you need some understanding of HTML , CSS and a bit PHP.
I’ve helped lots of people at the Dutch WordPress forums and most of them often had trouble with Artisteer because the software often didn’t supported some simple WordPress Codex.
https://nl.forums.wordpress.org/profile/macpresss
The problem here is that bbPress insert a FORCE INDEX (PRIMARY, post_parent) but WPML uses a JOIN in its tables. You can’t do that when you have a JOIN cause the correct syntax in that particular case is FORCE INDEX FOR JOIN. Try to replace the function “function _bbp_has_replies_where( $where, $query )” in wp-content/plugins/bbpress/bbp-includes/bbp-replay-functions.php” with this: https://gist.github.com/3930162
Keep in mind that it’s not tested, I haven’t a WPML license. I do not know either if my reasoning makes sense at all.
This is a “quirk” we’ve seen before. If you have a minute or two to watch our latest video, we show you a very simple few steps that should fix this in a jiffy.
http://labzip.com/the-definitive-guide-to-buddypress-bbpress-configuration/
Cheers,
Spence
Hi Eric,
sorry for the new profile, but my old one seems to have been locked-out.
Forums are typically used to describe BuddyPress Group Forums, and Sitewide Forums used to describe bbPress forums.
Cheers!
spence
Bump..
Really just need a way to upload an image under a specific member’s bbpress username and possibly the same at a section of their buddypress profile..
Anyone?
I’m not using any widgets… hmmm. Have there been any changes to the bbpress that might have changed it, since it wasn’t throwing the error until recently?
Hi,
Seems we are having the same issue.
https://bbpress.org/forums/topic/bbpress-and-artisteer-themes/
Apparently, also other themes are impacted.
Rgds, Tom
Update:
I think it’s very strange we can’t touch the defaul $slug with a custom page template!
This is totally not WordPress like.
Now i have to offer my page.php (default page template) to bbPress and make sure when i draft a new page inside my Dashboard i use a different (custom) page template to prevent my lay-out from breaking..

I tested to following:
Dashboard > New Page > Name it HELP > pick my custom Page Template with the bbPress forums index inside it > Saved it and it works 100%.
I don’t know if it’s a bug or glitch but this is totally not the way to do so, because the default slug keeps showing up in the breadcrumbs.
Hope somebody reads this..
Thanks,
Just curious, i’ve worked with bbPress before but it looks like the WordPress Hierarchy is broken by bbPress.
http://codex.wordpress.org/images/1/18/Template_Hierarchy.png
Normally i could make a page template and call it page-forums.php to make sure WP would use this page template for a new page created by the slug forums
But for some strange reason this doesn’t work anymore with bbPress 2.2.1 and WP 3.5 Beta and Twenty Twelve.
How can i make sure WP or bbPress uses a different page template then page.php for showing the forums and category -index on the forums slug?
I’ve tried everything, Copy/Paste the page-front-forums.php from the Extra’s folder to my Theme’s Root -> Created a new page inside my Dashboard and called it Forumsโฆ Nope doesn’t work.. Even when i use the Shortcode [bbp-forum-index] on that last created page.. It keeps using the page.php by default..
Anybody who can help ?
Because this it totally not very cool ๐
Sounds like there is something in your Child theme is causing the problem, most likely a custom query that is destroying the bbPress query.
Try disabling all of your widgets.
I use bbPress on several sites and none of theme have had any problems with the theme. As JJJ mentioned above, it works pretty much out of the box with most themes, and if it doesn’t, it’s usually because of one of two things:
- It’s not setup correctly
- The theme is poorly written
JJJ is not with holding the theme. He writes it (and bbPress) in his spare time.
The GetShopped Support Forum add-on does this really well. I use it on several of my sites.
Here’s an example of what I’m trying to generate. This requires access to: Topic name, most recent Topic post/reply, name of the member posting, and his avatar.
http://www.dalluva.com/temp/example-excerpt-block.JPG
In this example (which I mocked up in PowerPoint), it is showing the 3 most recent bbPress posts across 3 different Forums/Topic areas.
I hope that makes it clearer as to what I’m trying to accomplish.
Thanks.
Michael
-
This reply was modified 13 years, 6 months ago by
Michael.
Hi,
Great forum plugin!
I am however experiencing some annoying theme compatibility issues…
My forum page (with [bbp-forum-index] shortcode) was wrongly picking up my theme’s css, instead of the bbpress css.
Resulting in an unusable forum layout.
I have applied the theme compatibility actions by copying the necessary bbp-theme-compat directory/files to my theme root.
By setting the correct bbpress page template via its page attributes, the main forum page (now without shortcode) seems to pick up the bbpress css. But shortcodes are still picking up the wrong css via the default theme page template..
Any suggestions to make shortcodes work with the bbpress css instead of the theme’s css?
Are there any additional css styles available that work with the bbpress theme-compat templates?
I am using wp 3.4.2, bbpress 2.1.2 and my theme is generated with Artisteer 4.
Regard,Tom
hi tamarazuk,
Indeed, that seems to be the same error [ticket #1938][1]. But in our case, we have modified bbp_has_replies args for to add our own meta queries…
In your case, it seems that the plugin WPML add a join clause to the bbppress query :
> JOIN wp_icl_translations t ON wp_posts.ID = t.element_id
That’s why the SQL query crash… I suggest you to backup your db & disable WPML for confirm my diagnostic ! ๐
Some ideas for fix it :
- wait the bbpress update
- if you have programing skills, you can try to hook the posts_join or posts_where probably used by WPML for fix manualy the querry.
Good luck !
Hi Michael
if i understood your question you simply want a list of topics in your forum like bbpress.org/forum! am i right?
I haven’t been able to find a simple solution for building a topic/reply excerpt. I’ve checked for plugins and widgets, but can’t seem to find anything out there. I’m also using Advanced Post List plugin (http://wordpress.org/extend/plugins/advanced-post-list/) for building excerpts for other (non-bbpress) post types, and it does not seem to know how to to query the database correctly for the forum, topic and reply post types.
What I’m trying to do is build a list of the most recent N posts to the forums (any/all), and list the member name, ideally their avatar, the topic name, and a ~100-200 word excerpt of the post.
Certainly someone has done this before, and I’m just looking in all the wrong places. ๐
Any ideas on how to do this? Many thanks in advance.
Michael