you could try this.
#bbpress-forums div.bbp-reply-author img.avatar {
border: medium none;
width:auto!important;
max-width: 150px!important;
padding: 0px;
margin: 12px auto 0px;
float: none;
max-height: 150px;
}
and the other code wasnt suppose to increase the avatar images, it was just suppose to be for the space between the post and avatar.
if you still cant get it , post a link to a forum post on your website.
both fairly easy !
Breadcrumbs
Layout and functionality – Examples you can use
Functions files and child themes – explained !
Search
Dashboad>settings>forums> look for search and unclick it.
you dont need to bump your topic up.
and if you have more questions make a new topic.
i already gave you css on how to change the reply author avatar here
https://bbpress.org/forums/profile/robkk/
the space between the avatar and the post can be increased by adding this and changing 130px to what your max-width of image is , as i said the max-width of the image at the site you led me to has a max-width of 150px so my css for the post would be something close to.
#bbpress-forums div.bbp-forum-content,
#bbpress-forums div.bbp-reply-content,
#bbpress-forums div.bbp-topic-content {
margin-left: 150px;
padding: 12px 12px 12px 0;
text-align: left;
}
to rename roles you can use the code on this , download and upload as plugin or copy from add filter down and put it into your child themes functions.php
https://gist.github.com/ntwb/7864894
Hello!
I’m trying to display a dropdown menu with all the forums on all templates of bbPress. I was able to easily to it on the “content-archive-forum.php” template with this code :
<?php if ( bbp_has_forums() ) : ?>
<?php while ( bbp_forums() ) : bbp_the_forum(); ?>
<li><a id="textdropdown" class="bbp-forum-title" href="<?php bbp_forum_permalink(); ?>"><?php bbp_forum_title(); ?></a></li>
<?php endwhile; ?>
<?php else : ?>
<?php bbp_get_template_part( 'feedback', 'no-forums' ); ?>
<?php endif; ?>
The problem i’m having is on all other pages. I know that it’s passing the wrong forum_id to the bbp_has_forums function but i’m unable to modify the parameters or make a custom function to display a list (with links) of the MAIN forums (the one displayed on the “content-archive-forum.php”).
Basically, it displays the message “Oh bother! No forums were found here!” on all other pages.
Can anyone help me or tell me how to do this ?
Thanks in advance!
@arno8 yeah i worked on this for awhile i cant get it to show a color based on the user id of the reply author on the topic background.
just so you know it should be something like this for topics.
.type-topic .user-id-1,
.type-topic .user-id-2,
.type-topic .user-id-3 {
background: yellow; }
see if its a plugin issue by deactivating each plugin one at a time and check to see if deactivating one helps the links work on bbpress.
switch to a default theme like twenty twelve and see if that works.
i have a feeling it could be that you havent made a bbpress.php file, if you havent make one.
more info about bbpress.php here https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/
i think you alread implemented the login and register buttons you were talking about.
i also recommend adding a border to the text input boxes of the register and login forms, because they seem invisible, and also for the submit buttons for each form.
you can just use simple css to fix that.
to edit the appearance of the forum you can copy bbpress.css into your child and edit that then changes you make will affect the look of your forum.
you can also copy the templates in wp-content>plugins>bbpress>templates>default>bbpress
i recommenced just copying the whole bbpress folder into your child theme.
there is more in the documentation about this.
Step by step guide to setting up a bbPress forum – part 2
Step by step guide to setting up a bbPress forum – part 3
Functions files and child themes – explained !
Layout and functionality – Examples you can use
looking through the rest of the bbpress documentation isnt a bad thing too.
Codex
you would have to edit and copy files from one to the other.
since its bbpress its mostly going to require copying the template files and bbpress.css , but i am not sure if your going to going to need a function for bbpress in the function.php in the theme or many more codes.
This could be really risky if you dont know what you are doing.
I recommend working on a local development area. WAMP for Windows , MAMP for Mac , LAMP for linux , and XAMP for all.
Help on this is really minimal on my side. Its more something you have to do yourself.
But if you do need help transferring i might come up with something.
Other than that it might be an answer of i dont have the time to this kind of thing right now.
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.