Actions are ‘placeholders’ to allow you to add code without having to alter the templates, so this line does nothing – it is a hook for you/others see
Step by step guide to setting up a bbPress forum – part 4
you could also add the following to your functions file
add_filter('protected_title_format', 'remove_protected_title');
add_filter('private_title_format', 'remove_private_title');
//removes 'private' and protected prefix for forums
function remove_private_title($title) {
return '%s';
}
function remove_protected_title($title) {
return '%s';
}
Thanks, Fee. As of WordPress 4.0 the problem still exists, so I commented out the
//$private_title_format = apply_filters( 'private_title_format', __( 'Private: %s' ), $post );
//$title = sprintf( $private_title_format, $title );
in wp-includes/post-template.php to get rid of the private: in front of private tagged forums which I use.
I’m obviously missing something quite fundemental 🙂
I’ve installed bbpress (WordPress 3.9.2, bbpress 2.5.4), created some forums, and put the forum index on to one of my pages. All of this works fine.
What I don’t have is a login or register button at the top of the forum list? I have a search button but that’s it. It would be handy to have a ‘view profile’ button up there too. How do I get these buttons, is there some extra code I need to add?
Also, which file would I need to change if I wanted to alter the appearance of the forum a little – for example make the font a little larger.
My forum page is here: http://www.blueberrycovebeads.com/forum
Thanks!
How can I create some more advanced views in bbpress– specifically:
1.) All topics on which a user has replied
2.) Topics based on a custom metavalue (ticket assignment user ID)
For #2, I’ve tried adding this to the $args array: 'meta_value' => $current_user->ID, but the query returns nothing.
Thanks in advance!
in the same order
1. in the backend you can set a forum to private and it is only visible to logged in users
Visibility is set for each forum, go into Dashboard>forums> and when you add/edit a forum, you will see visibility options on the right hand side in the forum attributes.
2. The above will achieve that
3. you can add edit profile to your menu
Layout and functionality – Examples you can use
4. There are some plugins, but my suppers ready, so no time to google them !
5. don’t allow registration
dashboard>settings>general and uncheck anyone can register
https://codex.bbpress.org/ and look at the bottom, every version is available
I cannot translate the word “topics” on forum list. Like here:
View post on imgur.com
This function returns true, so the translation is loaded properly:
// Look in global /wp-content/languages/bbpress folder
load_textdomain( $this->domain, $mofile_global );
And I tried to translate those lines, PO edit compiles them to mo properly also:
#: includes/common/template.php:2593
msgid "%s Topics"
msgstr "%s wątki"
#: includes/forums/template.php:1239 includes/forums/template.php:1977
msgid "%s topic"
msgid_plural "%s topics"
msgstr[0] "%s wątek"
msgstr[1] "%s wątki"
msgstr[2] "%s wątków"
Nothing takes any effect. Any idea where I can find these phrases in code? Because I tried to modify phrase “Topics” in files given in PO file (eg.: includes/forums/template.php:1239). But nothing takes effect.
i did not create a page for the forum archive using the shortcode.
but i did get full width on all the bbpress post type pages by creating a bbpress.php then using this css code.
.bbpress .main {
background: none repeat-y right 0;
padding-right: 0px!important;
}
you can try this
#bbpress .col-2cl .main {
background: none repeat-y right 0;
padding-right: 0px;
}
else try any of these
.bbpress .col-2cl .main {
background: none repeat-y right 0;
padding-right: 0px;
}
#bbpress-forums .col-2cl .main {
background: none repeat-y right 0;
padding-right: 0px;
}
.bbpress-forums .col-2cl .main {
background: none repeat-y right 0;
padding-right: 0px;
}
come back if it didnt work
Hi !
I tried making my forums page full-width, but didn’t manage, so if you could help, it would be great !
I’ve already read this page : https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/#8-make-sure-bbpress-uses-the-page-template-we-want (but it didn’t really help me :/)
Here’s a short video to explain you exactly my problem : https://www.youtube.com/watch?v=0Ekrjb64GxA
Thanks a lot for helping, would be really great ! 🙂
—
My WP version : 4.0 (last in date)
My bbPress version : last in date
My theme : Anew by Alxmedia
My website’s forum : http://www.amitabha-sat.com/forums (password : default)
You must be logged in to reply to this topic (Register/Log In).
Update plugin. Make a link to this post to the registration page.
Hello everyone !
I’m still using BBpress 1.2 and WordPress 4 breaks the integration. I founded this : https://foliovision.com/2014/09/wordpress-original-bbpress but when i try to add this :
return wp_validate_auth_cookie( $cookie, $scheme );
I’ve got a 500 error.
Anyone can help me for BBpress 1.2 ?
Thanks
i got a 500 Internal Server Error checking it out.
but if it is just styling you should check out some links in the documentation.
Functions files and child themes – explained !
Step by step guide to setting up a bbPress forum – part 2
bbPress Styling Crib
Step by step guide to setting up a bbPress forum – part 3
also reading more of the documentation wouldnt be bad.
Codex
you can first seperate the role , reply author name , and avatar.
i just put loop-single-reply.php into my child theme folder called bbpress
then i just remove this line in loop-single-reply.php
<?php bbp_reply_author_link( array( 'sep' => '<br />', 'show_role' => true ) ); ?>
and replace it with these three lines of code.
this code also puts the role above the avatar.
<?php bbp_reply_author_link( array('show_role' => true, 'type' => 'role' ) ); ?>
<?php bbp_reply_author_link( array( 'show_role' => false, 'type' => avatar , 'size' => auto ) ); ?>
<?php bbp_reply_author_link( array( 'show_role' => false,'type' => 'name' ) ); ?>
and to have that sites kind of avatars you dont have a fixed width so the avatars size varies a little bit in height and width but it has a max width it never go bigger than.
to do that you would have to use this.
max-width and max-height are both 150px you can change that to whatever you want.
add this css whereever you can have custom css
bbpress.css in a child theme
child themes css
jetpacks custom css module
custom css plugin
#bbpress-forums div.bbp-reply-author img.avatar {
border: medium none;
max-width: 150px;
padding: 0px;
margin: 12px auto 0px;
float: none;
max-height: 150px;
}
if you change your mind about having the varied avatar sizes
you can remove 'size' => auto in the avatar code. which would leave the default 80px
or change 'size' => auto to whatever number you want example 'size' => 60
Thanks for logging this issue. I had the same problem. I’ve solved it without PHP, just jQuery.
For what it’s worth, here’s what it looks like:
<script>
jQuery(document).ready(function() {
if (jQuery('#bbpress-forums')) {
jQuery('.current_page_parent').toggleClass('current_page_parent').next().toggleClass('current_page_parent')
}
});
</script>
It deselects the “current page” and selects the next one (which is the forum page, for me) as current. But only if #bbpress-forums is on the page.
I’ve added this to the footer.php file of my theme (GeneratePress), just before the </body> statement.
Hackish, but given that it’s noted as a bug it’ll do for now.
forums is a virtual page – ie it doesn’t exist (not that pages really exist anyway!), and is not a ‘post ‘ in the wordpress sense of post
Rather than use the forums widget, why not just use a text widget, just put this in the content
<a href= "http://harveylakeland.com/forums">Community Forums </a>
ok, just looked and all the pages look fine now except the forum page – is that correct?
bbpress should use the bbpress template for all the pages, so you can’t really css the individuals (or not without tons of code).
How are you going to the initial forum ? is it method 1 or 2 from the following
Step by step guide to setting up a bbPress forum – Part 1
and whichever try the other !
Once you are consistently wrong on all pages, you can make it consistently right !
Download the plugin I have here, unzip it and upload it to your site and activate. 🙂
Edit: Users will then be able to use HTML table tags, e.g. <table>, <td>, <tr> etc
@bepyland If you set the bbPress import rows to 50,000 that would be one single query, it would not work though unless you had one amazing MySQL installation. 😉
What the “rows” value means is how many topics or replies for each single query should be imported at a time, the default is 100, so when the importer is running each single query will import 100 topics at a time.
WordPress itself, and then bbPress also make queries along the way so just counting only bbPress import is not the only calculation needed.
Your best bet is to create a test site to test the import before migrating this to your “live” site:
https://codex.bbpress.org/creating-a-test-site/
i think its really like making a plugin for wordress except you use bbpress’s hooks
but i havent gone in too deep in knowing how to create a plugin.
this plugin helps on finding all of bbpress’s hooks
https://wordpress.org/plugins/bbpress-visual-hooks/
and im sure information in documentation will help.
Codex
heres some information that i found real quick that i think could help.
Plugins
Step by step guide to setting up a bbPress forum – part 4
Step by step guide to setting up a bbPress forum – part 5
if you need anymore help create a new topic titled “Need Help on bbpress plugin development”
and maybe robin or stephen can help from there.
robin already has tons of plugins made for bbpress
and stephen is one of the core developers
Hey Robin, thanks so much! The code you supplied me with alters the main forum page a bit (the page that we do not want to chage, but use as a model for the topic and discussion pages) and leaves the topic (http://secularsociety.co.za/forum/forum/sass-general) and discussion pages (http://secularsociety.co.za/forum/topic/sass-vision-statement/) aligned to the left. I have been playing around with your code as well as a bunch of other CSS, but I can not seem get the topic and discussion pages to look like the original main forum page :/ I think that we will need to address each page’s CSS instruction individually. Trying to change the CSS in one go seems to have different results on each of these pages. Any further assistance would be greatly appreciated.
Thank you Robkk, where can I find a tutorial or howto create a plugin for bbpress? I found the bbpress files that I need to edit and I can put my code in, but I think this is not the clean way to do it.