Hi,
if I click on “reply” for a comment I would expect the form to appear below that comment. This currently does not work due to a bug in reply.js (bbpress/templates/default/js/reply.js) in line 19.
reply.parentNode.appendChild(respond);
If you change it to the following, everything works fine:
reply.parentNode.appendChild(respond, null);
Best Daniel
PS: Would be great to see development happen on github… 😉
Hi,
I don’t think this is a general question since bbpress states to be compatible with Yoast and Tsf when it is not (at least when it comes to noindex pages) so, imho, it is a BBpress problem.
https://github.com/sybrew/the-seo-framework/issues/243
I asked the same question on wp support anyway and still didnt get any answers (it took almost one week to have one here so I guess I’ll be waiting for some days there as well – https://wordpress.org/support/topic/noidex-metatag-to-groups-of-pages/)
I added your code (thank you for writing it down) but I only see a white page afterwards.
I added it to functions.php in wpcontent/themes/forum/ is it correct?
Thank you,
the Process
Hi,
This is a general WP question and would fit better on the general support pages on https://wordpress.org/support/
But just give you a starting point for e.g. the archives, adding this in your functions.php might help:
add_action( 'wp_head', 'casiepa_add_noindex' );
function casiepa_add_noindex() {
if ( is_archive() ) {
echo '<meta name="robots" content="noindex,follow" />';
}
}
Ciao @finar76,
The shortcode [bbp-register] should remain [bbp-register]. They cannot be translated.
Pascal.
Hi !
I recently add a custom notification system for alert of new messages if you add a topic to your favorite.
For that I hook bp_notifications_get_registered_components, bp_notifications_get_notifications_for_user and bbp_new_reply.
Everything work well but I have a last problem that I dont arrived to fixe : when I click on my new notifications they don’t disappear by her self. I use bbp_mark_read for generate my notification link but without sucess
$topic_link = wp_nonce_url(
add_query_arg(
array(
'action' => 'bbp_mark_read',
'topic_id' => $topic_id
),
bbp_get_reply_url( $item_id )
),
'bbp_mark_topic_' . $topic_id
);
Any solution for fix that ?
Thanks !
As long as you have the IIS Rewrite Module it should work fine, it’s the equivalent of Apaches mod_rewrite module, it’s been a while since I’ve looked at IIS but that’s the only issue I’m aware of for for bbPress and IIS.
This is hopefully close to what you want – play with the numbers
#bbp-forum-76 {
padding-top : 10px ;
}
#bbp-forum-76 li.bbp-forum-info a.bbp-forum-title::before {
font-family: FontAwesome;
content: '\f058';
color: #6190C3;
font-size: 50px;
padding-right: 30px;
position: relative;
top: 15px;
}
ok, I worked out an easy way to do that
create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpress
where %your-theme-name% is the name of your theme
find
wp-content/plugins/bbpress/templates/default/bbpress/loop-single-reply.php
Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/loop-single-reply.php
bbPress will now use this template instead of the original
and you can amend this
so replace line 61 which reads
<div class="bbp-reply-content">
with
<?php
//now check if it is the topic author
$author = bbp_get_reply_author_id(bbp_get_reply_id()) ;
$current_user = get_current_user_id() ;
if ($author == $current_user) {
echo '<div class="bbp-reply-content bbp-author">' ;
}
else echo '<div class="bbp-reply-content">' ;
?>
then just add the bbp-author css styling to your theme’s custom css
eg
.bbp-author {
background : green ;
}
you might require
.bbp-author {
background : green !important;
}
depending on where you put the css.
I presume Rkk has deleted.
my styles pack plugin has a shortcode
[Profile label=’This is the label’] will show
which will let you add that as a text box beneath the standard bbpress login.
bbp style pack
once installed and activated – go to
dashboard>settings>bbp style pack>shortcodes to find what the options are
try
#bbp-forum-9 li.bbp-forum-info a.bbp-forum-title:before {
font-family: FontAwesome;
content: '\f058';
color: #6190C3;
font-size: 30px;
}
Hello,
I’ve read ALL of the bbpress docs on here, and a few months ago i installed the RKK Login Widget as suggested here:
https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/#3-adding-an-amend-profilepassword-to-the-login-widget
It seems the github gist where that plugin was hosted is now gone.
Is there any way to get this plugin still?
Thank you.
Thanks very much Stephen! It would be great if that table of emoticons could be included in the current forum GUI reply box. Even if it’s just a hover over a smiley image to show the complete list. Doesn’t need to be selectable, though that would be extra fancy.
Is there a list of other other functionality not listed in quicktags. ie embedding videos when a youtube link is used. Tagging a forum user within a post with @username. Or have I listed all the hidden user-sided magic off bbPress now 🙂
Apologies, I missed that one, bbPress uses the same smileys as WordPress
The full list can be found here: https://codex.wordpress.org/Using_Smilies
I currently am using this:
https://kristarella.blog/2013/04/bbpress-forum-icons/
But for speed and looks, I’m trying to use a “font awesome” icon for the forum icon.
My plan was to use some css for each forum, and then style the font icons individually.
I started off with this in stylesheet, but it’s not working:
ul#bbp-forum-9:before {
font-family: FontAwesome;
content: '\f058';
color: #6190C3;
font-size: 30px;
padding-right: 10px;
margin-left: -15px;
position: absolute;
left: -13px;
margin-top: 1px;
}
I’ve tried several variations with no luck.
Any suggestions on how to get this css to work properly?
Thanks for any tips.
Just wondering how the script makes the decision if I’m creating or editing a topic. Because I can’t give the $is_edit variable a value in the bbp_insert_reply and I give a excisting topic_id when insert a reply.. Well, maybe when I’ve more time I will look in to this and post the solution here if I find one. For now I will use your other solution.
Thanks for your help and thoughts Robin!
Try our docs, they are in English but cover most of what you are asking, I think 😉
Getting Started
is the code still in there – I can’t see it and you seem to have gone back to the original center alignment
this css should work
#bbpress-forums div.bbp-topic-content img, #bbpress-forums div.bbp-reply-content img {
max-width: 100%;
display: block;
margin-left: auto;
margin-right: auto;
}
presume your theme has a custom css area you can put this in ?
the quick and dirty solution is to get the topic IP before executing bbp_insert_reply and reset it afterwards
eg (untested)
$reply_data = array('post_parent'=>$post_parent, 'post_content' => $post_content);
$reply_meta = array('forum_id'=>$post_forum_id, 'topic_id' => $post_topic_id);
//get the topic IP so we can reset it later
$ip = get_post_meta( $topic_id, '_bbp_author_ip', false );
bbp_insert_reply($reply_data,$reply_meta);
//reset the topic IP
update_post_meta( $topic_id, '_bbp_author_ip', $ip, false );
I could spend a long time working out a more elegant fix, but hopefully the above will be enough !
ok, I know why it is doing it, I’ll do some digging to see how to get around
your function calls
bbp_insert_reply
this function is in
/includes/replies/functions.php starts line 29
This creates the reply, and then on line 64 it has
// Update the topic
$topic_id = bbp_get_reply_topic_id( $reply_id );
if ( !empty( $topic_id ) ) {
bbp_update_topic( $topic_id );
}
bbp_update_topic is held in
/includes/topics/functions.php starting line 818
has a check to see if you are creating or editing a topic.
if you are not editing a topic, it presumes that you are creating so starting line 884
// Update associated topic values if this is a new topic
if ( empty( $is_edit ) ) {
// Update poster IP if not editing
update_post_meta( $topic_id, '_bbp_author_ip', bbp_current_author_ip(), false );
since at that point your call via bbp_insert_reply and bbp_update_topic is NOT an edit, it assumes it is a new topic and updates with the current user IP as above.
let me think about easiest way to fix.
Hi,
I’ve created a custom module for bbpress to combine all new topics and replies in one overview. From there the moderator can comment on all the incoming messages. This works only i’ve one problem. To add a new reply i use the next code:
reply_data = array('post_parent'=>$post_parent, 'post_content' => $post_content);
$reply_meta = array('forum_id'=>$post_forum_id, 'topic_id' => $post_topic_id);
bbp_insert_reply($reply_data,$reply_meta);
When this is a reply on an other reply everything works fine. But when it is a reply on a new topic then the Topic starter ip-adres is changed to the ip-address of the moderator. I can turn some things off in the core function includes/topics/functions.php
// Update poster IP if not editing
update_post_meta( $topic_id, '_bbp_author_ip', bbp_current_author_ip(), false );
But that isn’t what I prefer of course.
Could someone help me out?
Thanks in advance.
Niels
Hi dear support,
we have installed your plugin on our website and apparently it’s not working properly.
If we use the shortcodes to place it on some page:
Forum TEST
It shows list of forums but once you try accessing some forum it shows empty page:
Muske Carape
Also, the default forum page is not working:
http://jadran.paprikart.rs/forums/
We already tried disabling all the plugins to rest assured that plugin conflict is not making some conflict there and it’s still not working.
WP version 4.9.1.
Can you please take a look at it and advise?
Thanks in advance!
I have looked there but couldn’t find what I was after. I was looking at once bbPress plugin is installed what functionality will it give within the actual editor window to users of the forum. Some things are listed in quicktags ie strong tags that bold words. But what about all the other things not listed in quicktags, emoticons etc. Surely there has to be a complete cheat sheet of what code gives what result.
Thanks for your time.