Unfortunately these type of features will require custom code, likely in the form of a plugin to power them, and theme changes to display them.
Thanks, John. I’d like for the page to show two buttons before visitors register or log in. The first button is a post button. The second button would give visitors the option of being updated about new posts and edits by email. These two buttons would direct visitors, who aren’t logged in, to a register or log in screen. Is this possible to do without creating new code?
Hi. I’d like to automatically include a hyperlink to users’ groups (Buddypress) or a custom profile field (BBpress) in all of their topic and response posts in forums. It would be something like a signature, but would be automatic, not a choice.
Any suggestions? I’m not a coder.
I’ve searched support and plugins to no avail. Thanks.
Running WP Version 3.8.2 , BP Version 1.9.2, BBpress Version 2.5.3
Thanks for the reply, but it didn’t seem to work.
How can I make http://leopolds.com/discussions/ look like http://leopolds.com/bbs/ (created using shortcode)?
Hi,
I think I have some theme compatibility issues with my freshly installed bbPress. I’ve just installed bbPress to my new WordPress site, and when I’m trying to open the forum index page, it will show only a mostly blank page with my theme’s top menu. However, the title of the page and the body part of the HTML source seems to be OK – my body tag looks like this:
<body class="forum bbpress single single-forum postid-30 logged-in admin-bar no-customize-support">
I’ve tried to use [bbp-forum-index] shortcode in a page, and it shows the index, but of course I can’t use the forum in this way neither, since if I try to navigate to one of my forum topics, it will also show the blank page.
I’m using Academica theme (the free one), but I’ve found a solution for an other theme (http://bbpress.org/forums/topic/non-functional-index-page-when-bbpress-2-1rc4-is-used-with-woothemes-canvas-5-05/) and it seems that fixing my issue would evoke some PHP coding, which I’m not so familiar with. So if you have some tips or solutions, share with me, I’d be very thankful. 🙂
Thanks in advance! 🙂
Ohh, and here is the link to my only forum: http://homeschooling.hu/?forum=probaforum
…and to the page with the shortcode: http://homeschooling.hu/?p=38
what shortcode are you trying to add?
html is easy just echo it in brackets eg
echo '<br>that was a break<div>a div</div></br>' ;
I know this is old thread. But my reply can be useful for the others.
You can change the font-size in your bbpress forum through editing your bbpress.css like as :
#bbpress-forums ul.bbp-lead-topic,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-replies,
#bbpress-forums ul.bbp-search-results {
font-size: 14px;
overflow: hidden;
border: 1px solid #eee;
margin-bottom: 20px;
clear: both;
}
In this article writer is explaining step by step. See this:
How to increase the font-size of the content in bbpress forums
thanks
Hi,
I have just installed bbpress on my site, which is using the latest Twenty Fourteen child theme (only some simple css modifications.)
I want the forum listing page http://leopolds.com/discussions/ to look like this http://leopolds.com/bbs/ (created using shortcode).
There should be:
– No right-hand sidebar and centered content. I created a bbpress.php in my child theme folder and copied the full-width page template code to it. But it still looks different. Contents are not centered.
– No post-like forum listing. All forums I created are displayed under the usual forum listing section like posts.
Please help. Thank you very much.
That’s gud.
Actually i needed to add a shortcode along with some html customization just after the first post of the topic only.
How to do that?
nothing bad in doing that
as bbpress has different custom post types for topic and reply, you could also link to the action bbp_theme_after_reply_content action and put a topic condition on
something like
function display_after_topic() {
if( get_post_type() == 'topic') {
$text="hello mother" ;
echo $text;
}
else {
return ;
}
}
add_action ('bbp_theme_after_reply_content', 'display_after_topic') ;
I suspect this is not related, but always worth checking
Do you have a forums page with shortcode.
If not another poster did the following with success for a twentyfourteen theme.
So let me restate what you found to work:
1. When creating a menu item for forums, do NOT use the automatically available permalink that ends in “/forums/”
2. Instead, create a page that has the shortcode [bbp-forum-index] in the body. There could also then be other content or links in the body.
3. Make sure the page you created does NOT have a permalink that ends in “/forums/”. In my case I had a page Title of “Forums”, but I changed the permalink to end with “/allforums/”.
I suspect that this will not fix for you, but give it a try anyway !
I think I figured out how to make the toolbar appear. In my original theme, I didn’t include:
<?php wp_footer(); ?>
Apparently, that is what is needed to load all the javascripts to make the toolbar working. Hope this helps!
Terry
Ok.. so i found out a way to do it while checking the bbpress functions.
You can enable the bbpress show lead topic using this function
bbp_show_lead_topic
and then easily add any code to the content-single-topic-lead to display anything after the first post in a thread.
Is there bad side doing this?
Hi
I would like to insert a custom code or eco a shortcode after the first post in a topic. ( or say adsense after first posts)
I have tried to implement this – https://bbpress.org/forums/topic/displaying-adsense-ads/
But seems to be not working correctly.
When posting the code in loop-sing-reply, its getting showing below all replies.
Anyway to show only after the first posts.
Hope to get an help soon.
ok, you have several routes to go
If you think you will be making other changes, then it may be worth you reading this
Step by step guide to setting up a bbPress forum – part 2
but if you just want to get this going then download this plugin
https://wordpress.org/plugins/simple-custom-css/
and then put this code into it
#bbpress-forums .bbp-topic-content p,
#bbpress-forums .bbp-reply-content p {
color: blue !important ;
}
a:link {
color: blue !important ;
}
Obviously you can change the blue to whatever, or use hex codes to get any shade you like
http://www.w3schools.com/cssref/css_colors.asp
Come back if that doesn’t work, and I’ll try to help further
Hello,
I added the follwoing code to functions.php
add_action( ‘init’, ‘blockusers_init’ );
function blockusers_init() {
if ( is_admin() && ! current_user_can( ‘administrator’ ) &&
! ( defined( ‘DOING_AJAX’ ) && DOING_AJAX ) ) {
wp_redirect( bbp_user_profile_link( bbp_get_current_user_id() ) );
exit;
}
}
This redirects users to http://www.mydomainame.org/wp-admin/profile.php
and displays a link to their BBPress Profile.
Question is, how do I redirect users directly to to their BBPress profile?
This is probably something very simple, but I am not a developer unfortunately.
Thanks for your help.
I would not be entirely sure where to put the code lol.
ok if it proves an issue, you could use
if ( is_singular( array('forum', 'topic', 'reply') ) ) {
// conditional content/code
}
yes they are on your site.
If I gave you the code and said for you to add this to your style.css would you know what I was asking?
If so I’ll cut some for you to use
If not, come back and I’ll try and help further
Nevermind, Robin. It’s just a Notice and not an error at this point. I’m not going to stress over it at the moment. The code is working fine. Thanks for the help.
So I know people will facepalm at the question, but I am just really confused on this and I don’t wanna edit and mess the little bit of work I have done up lol. So anywho, how can I change the font color on the topics and posts? They are pretty difficult to see: http://i.imgur.com/8ZOOaef.png But yeah, I really dunno much (If anything) about code or website stuff so, surprised I got this far! Thanks for the help!
is_bbpress() almost works. Thanks for the pointer there, by the way. I can’t see how I missed that function in all my searching. I failed my Google-fu obviously. My code now looks like this in the my-plugin.php file.
function forum_lock_check($allcaps, $cap) {
if (function_exists("is_bbpress")) {
$is_bbpress = is_bbpress();
} else {
$is_bbpress = false;
}
return $allcaps;
}
add_filter("user_has_cap", "forum_lock_check", 10, 3);
Here’s the funny part. (Funny = weird not Funny = haha) If I’m navigating to the main forums page (http://localhost/wordpress/forums/), then everything proceeds swimmingly. If I then navigate to a forum within the page (http://localhost/wordpress/forums/forum.forum-a) or to a thread within the forum (http://localhost/wordpress/forums/topic/post-1) I then get several of the following errors.
Notice: Trying to get property of non-object in C:\xampp\htdocs\wordpress\wp-includes\query.php on line 3792
Notice: Undefined property: WP_Query::$post in C:\xampp\htdocs\wordpress\wp-includes\query.php on line 3306
Commenting out the “$is_ppbress = is_bbpress();” line removes the errors but I’ve got no idea why WordPress suddenly doesn’t like the code. Have you seen this before? What file is is_bbpress() in?
Thanks, Robin.
Hey Stephen, I’ve modified your code. With your code, when clicking on the link, it redirects the user to the compose form with the “Send To” field empty. I wanted to fill this field for the user automatically, just the way it works in buddypress user page. So I came up with this code.
function ntwb_bbp_bp_pm() {
if(function_exists('bp_send_private_message_link') && is_user_logged_in() ) {
$user = get_userdata( bbp_get_reply_author_id() );
if ( !empty( $user->user_nicename ) ) {
$user_nicename = $user->user_nicename;
}
$compose = bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?r=' . $user_nicename;
?>
<a>" title="Private Message">Private Message</a>
<?php
}
}
add_action( 'bbp_theme_after_reply_author_details', 'ntwb_bbp_bp_pm' );
I’m not a php programmer and I’m not sure that I did it the right way, but hey, it works.