Hello,
What is the shortcode to display the recent replies in a page instead of a widget ? I want the appearance of the recent replies to be just like in a widget (that means a simple LIST), so none of the shortcodes here (http://codex.bbpress.org/shortcodes/) corresponds to my request.
Thank you for your help.
How can I allow the participants to delete their own posts. I tried adding the line of code below to ‘capabilities.php’ under ‘case bbp_get_participant_role()’, but I don’t see the delete button when I login as a participant.
‘delete_topics’ => true,
I hardly know PHP.
Could someone help me on this issue? Thanks.
I have tried replacing that, but there’s still no joy at all.
The user profile link is still broken due to the space being stripped between the first and last name.
So https://hub.hiddenurl.co.uk/forums/users/johncroft/ – 404 error
https://hub.hiddenurl.co.uk/forums/users/john%20croft/ works fine. Is there a way to FORCE a space between the first and last name without hacking core code?
Any help would be really appreciated. many of our users are getting frustrated by this problem & we are receiving support emails because of it.
Thank you 🙂
Thanks rob as usual for the better css code !
Go to \wp-content\plugins\bbpress\includes\common folder and open template.php file and go to line: 2319 and put the condition as bellow
if($r[‘current_text’] == ‘Forums’){
$crumbs[] = $r[‘current_before’] . ‘/put your text here./’ . $r[‘current_after’];
}else{
$crumbs[] = $r[‘current_before’] . $r[‘current_text’] . $r[‘current_after’];
}
try above code it’s work for me
Hello,
Using the new topic shortcode, is there a way to get the forums of the current user? or is there a way for me to edit this snippet `<p>
<label for=”bbp_forum_id”><?php _e( ‘Book:’, ‘bbpress’ ); ?></label><br />
<?php
bbp_dropdown( array(
‘show_none’ => __( ‘(Select One)’, ‘bbpress’ ),
‘selected’ => bbp_get_form_topic_forum()
) );
?>
</p>
` to reflect forums from the current user?
i found this plugin which pretty much has it, no styling though.
https://wordpress.org/plugins/bbpress-info-widgets/
but bbpress.org uses
forum shortcode to list the forums.
regular bbpress topic tags widget
they are just links , you can put the menu widget there, create a new menu and put your feed links there, they will be exactly like the links what bbpress.org uses just replace the domain name with yours
custom development for the forum info.
@alice-kaye
i know that finding the id in the page source is a little easier since your using CSS.
but i also like to point out that you can use this plugn for finding the ID in the backend of WordPress for the forums/topics/replies sections to show the post types ID.
its pretty useful.
https://wordpress.org/plugins/reveal-ids-for-wp-admin-25/
as for the CSS you could be missing a few periods.
.bbpress .single-forum .postid-20 #fixed-background { background: url('http://www.heartwoodgaming.com/wp-content/uploads/2015/02/ffxiv-background.jpg') !important; }
@seo45
if your theme author did not copy all of the bbpress templates to your child theme (use a child theme if you didnt) you can go into the plugin and copy the loop-single-reply.php file into your bbpress folder.
if your theme is highly customized and copying the file from the bbpress templates to your child theme is causing issues, contact your theme author for help as your theme might be highly customized.
this link might help explain better how to copy the templates you need into your bbpress folder, but since you have customized templates from your theme already try not to overwrite them.
https://codex.bbpress.org/theme-compatibility/
i see it on the right..i think.
is it a userpro widget or does it do this automatically??
if its just a userpro widget , and you want to remove the sidebar from all bbPress forum areas create a bbpress.php from page.php or single.php and remove all the content you dont need especially the get_sidebar php code.
heres some help on creating a bbpress.php
https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/
if userpro does it automatically contact the plugin author.
if you need any help creating a bbpress.php file and removing the unnecessary code you wouldnt need , reply back and possibly paste your page.php file first.
@dealtek
dont edit the core files or you will lose them the next time you update bbPress.
please follow this guide instead
https://codex.bbpress.org/theme-compatibility/
and please create a child theme as the guide says to , because it will make customizing bbPress alot easier. you can edit all the bbPress templates that you have copied to your child theme safely if you go to appearance>editor and choose your child theme and find the bbPress templates/css, you can also use FTP and a advanced text editor like notepad++ to edit files on your cpu.
here is more information on child themes
Functions files and child themes – explained !
the left margin CSS for bbPress threaded replies is
#bbpress-forums ul.bbp-threaded-replies {
margin-left: 50px;
}
to make it smaller for a small device use something like this.
put it anywhere you can put custom CSS
or if you copied the CSS file into a folder called bbpress into your child theme , you can add it below
/*--------------------------------------------------------------
Media Queries
--------------------------------------------------------------*/
/* =Standard Mobile Landscape
-------------------------------------------------------------- */
@media only screen and (max-width: 480px) {
@media only screen and (max-width: 480px) {
#bbpress-forums ul.bbp-threaded-replies {
margin-left: 20px;
}
}
you can remove the reply author image too if you want
@media only screen and (max-width: 480px) {
#bbpress-forums div.bbp-reply-author a.bbp-author-avatar,
#bbpress-forums div.bbp-topic-author a.bbp-author-avatar {
display: none;
}
}
it might be a theme issue, if you havent created a bbpress.php file please do so it usually fixes most common theme issues.
https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/
you can also link to your site and see if i can find any conflicting CSS that might be causing the issue.
So I was able to find a solution to my second issue by using <?php elseif ( bbp_is_topic_closed() ) : ?> to detect if the topic is closed or not.
I am still having problems with the first one. Trying to only show content to the author of the topic. I have tried <?php elseif ( get_topic_author() ) : ?> and <?php elseif ( current_user_can() ) : ?> nothing has worked for me yet. Any ideas?
Hello. Since few people asked for it (I think there was even thread here few months ago), I’m trying to make my plugin (https://wordpress.org/plugins/simple-rating/) compatible with bbPress. As far as I understand, bbPress got own filters for content and that’s exactly where I got stuck. I can’t find list of filters. I found bbp_get_reply_content and bbp_get_topic_content but they exhibit kind of weird behavior. bbp_get_topic_content does exactly nothing, and bbp_get_reply_content filters content of first post, which is actually topic and I’m pretty sure should be filtered by bbp_get_topic_content.
Screenshot
So questions are:
– Is there a list of filters?
– If no, what are filters I should use to filter content of topic, reply and forum?
– What is this problem I described above?
bbPress version is latest stable available.
I think the code is in the wp-includes/js/quicktags.js file on line 621 , and in the quicktags.min.js on line 152 of the formated version.
if ( src ) {
alt = prompt(quicktagsL10n.enterImageDescription, '');
this.tagStart = '<img src="' + src + '" alt="' + alt + '" />';
qt.TagButton.prototype.callback.call(this, e, c, ed);
}
best regards
ok, this could be lots of things, and part of what you mention is buddypress not bbpress.
so start with
Step by step guide to setting up a bbPress forum – Part 1
and if you aren’t seeing forums/topics and replies in the back end then
It could be a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.
There is no need to copy the bbpress.css file.
you just need to put it in your child theme’s style.css, BUT add the ‘!important ‘ which stops bbpress overwriting it.
.forum bbpress single single-forum postid-20 #fixed-background { background: url('http://www.heartwoodgaming.com/wp-content/uploads/2015/02/ffxiv-background.jpg') !important; }
You may find you don’t need all the string above ie ‘.forum bbpress single single-forum postid-20 #fixed-background ‘ but have a play if the full doesn’t work, or come back with a url/link and I’ll try to help
Hui
I dont use threaded comments so can not check the exact code, but should be easy with css.
Check out @media queries for your stylesheet, then you could add styles to remove comment/reply avatars and change the margins.
Perhaps another member has better details for you.
I am looking at why the ‘img’ shortcode is making URLs have encoding in them so that the browser will not load an image.
Anyway, the shortcode code is in bbcodes.php in lines 487-502. That might get you started, but I don’t think that has the part where it actually generates the “src” and “alt” tags.
What I usually do is use “Inspect Element” in FF or Chrome, find the class or ID for the element, then use grepWin to search for that within the WP code files. That would work only if you have FTP’d the files to your local rig, though.
Yeah, it’s just very difficult to get it to work the way I want sometimes.
Anyhoo, I put it in my themes custom css box. Though now in hindsight that seems foolish. I suppose what I really need to do is make a copy of the bbpress stylesheet and then update that with this code and upload it to the bbpress folder inside of my child theme/bbpress.
Am I on the right track? Sorry for any typos. Writing this on my cellphone.
the following works
//This function changes the text wherever it is quoted
function change_translate_text( $translated_text ) {
if ( $translated_text == '<strong>ERROR</strong>: Your topic needs a title.' ) {
$translated_text = '<strong>CHYBA</strong>: VaÅ¡e téma musà mÃt název.';
}
return $translated_text;
}
add_filter( 'gettext', 'change_translate_text', 20 );
but equally well, the line is in the pot on line 3727 as
Line 3727: msgid "<strong>ERROR</strong>: Your topic needs a title."
so you could just use then normal translate !
I’ll admit CSS is not always my friend
Whilst really useful I hate this as well.
Where are you putting that code?
Hi @robin-w,
I just realized that you responded to this. I’m not sure how I missed this!
I just tried to give this a go (man sometimes this stuff isn’t easy to find) and it’s so far not doing what I want. I’ll admit CSS is not always my friend.
The code I’m using is below:
.forum bbpress single single-forum postid-20 #fixed-background { background: url('http://www.heartwoodgaming.com/wp-content/uploads/2015/02/ffxiv-background.jpg'); }
I was hoping that would be how I needed to set it up, but I’m starting to think, not…
Could you take a look at that and let me know where I might have gone wrong? Let me know if you need access to my site to see my bbPress, I have a test account set up for situations such as this! 😛
Thanks in advance!