do you see the edit link besides the reply link??
what happens exactly when you hit the edit link??
did you follow these guides
https://codex.bbpress.org/theme-compatibility/
codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/
also maybe re-installing bbpress and see if there could have been an error during installation.
@cyclesha
you could try the discussion settings that are compatible with bbPress for now.
Moderation and BlackListing
Shortcodes Ultimate API overview
I would like to implement this for all those boring long quotes, and quote inside quote, inside quote, etc…
It would make reading forum topics much more pleasant.
One click and long quote opens at whole. There is scroll if you dont want to click.
I managed this easy with CSS3 and transitions, but there is very nasty problem on mouse out and page jumping, confusing to know where on page you are after this.
Another way to cheat a little is to make an actual page, call it yourdomain-forums
Then you could add the existing shortcode from BBpress like this
<h1>title of category 1</h1>
[bbp-single-forum id=XX]
<h1>title of category 2</h1>
[bbp-single-forum id=XX]
Then make a link in your menu to that page
I am doing it here
onlijn.com/onijn-forums
www
function my_bbp_change_avatar_size($author_avatar, $topic_id, $size) {
$author_avatar = '';
if ($size == 14) {
$size = 50;
}
if ($size == 80) {
$size = 190;
}
$topic_id = bbp_get_topic_id( $topic_id );
if ( !empty( $topic_id ) ) {
if ( !bbp_is_topic_anonymous( $topic_id ) ) {
$author_avatar = get_avatar( bbp_get_topic_author_id( $topic_id ), $size );
} else {
$author_avatar = get_avatar( get_post_meta( $topic_id, '_bbp_anonymous_email', true ), $size );
}
}
return $author_avatar;
}
/* Add priority (default=10) and number of arguments */
add_filter('bbp_get_topic_author_avatar', 'my_bbp_change_avatar_size', 20, 3);
add_filter('bbp_get_reply_author_avatar', 'my_bbp_change_avatar_size', 20, 3);
add_filter('bbp_get_current_user_avatar', 'my_bbp_change_avatar_size', 20, 3);
/* We increased the tiny avatar size, so adjust the position */
#bbpress-forums p.bbp-topic-meta img.avatar, #bbpress-forums ul.bbp-reply-revision-log img.avatar, #bbpress-forums ul.bbp-topic-revision-log img.avatar, #bbpress-forums div.bbp-template-notice img.avatar, #bbpress-forums .widget_display_topics img.avatar, #bbpress-forums .widget_display_replies img.avatar {
margin-bottom: -2px;
}
/* Increase max-width for the big avatars */
#bbpress-forums div.bbp-forum-author img.avatar, #bbpress-forums div.bbp-topic-author img.avatar, #bbpress-forums div.bbp-reply-author img.avatar {
/*margin: 12px auto 0;*/
max-width: 110px;
}
Problems with other forum scripts are (if we forget about WP integration for a moment) like this, and i have seen it more than often.
People come to forum, relax, discussing, forget about time. But they forget about main portal too. It doesnt exist for them. I have seen many popular and crowded forums and people behind main portal lose money, time, energy to write editorials and news. Nobody is reading this, nobody “knows” about portal when they are on forum. And all try to make other forum scripts look a like something near CMS are madness, better not to go this way.
Here you have old brother WordPress, so popular in the world. You discuss in the forum, suddenly sidebar widget display new article from portal, as it says “did you forget to read news”. Just one example of many of them.
All is here, all exist to make bbPress (or BuddyPress) most popular forum script. To follow steps of WordPress.
Smart core coders, wish exist, older brother WordPress is there to push bbPress in the front of other forum scripts.
I am not saying all this because of me. I have now so many (tested) snippets and tweaks i can make bbPress more advanced than phpBB3 forum. I am thankfull to core guys, and I am not complaining.
Integration (affinity better to say) with WP core is so amazing it just blow minds.
I am saying this because of core coders guys. It is pitty lose hours, days, weeks and last nobody or very few people use bbPress.
ok,
firstly if you just create a page for your forum and use the shortcode
[bbp-single-forum id=$forum_id] – Display a single forums topics. eg. [bbp-single-forum id=32]
then just that forum will be displayed.
to change the breadcrumb display – see
Layout and functionality – Examples you can use
@stagger-lee
no problem in your post – and followed it right up until
I am talking about plain old CSS2/CSS3. No database queries, and you “sell” your product/code.
I didn’t understand that part – can you explain further !
Is there something that I’m missing?
possibly.
but the rest of the codes don’t work.
This again isn’t really helpful. What do you mean by ‘don’t work’ – nothing shows? something shows but it is not what you want? a picture would be useful.
I cannot help unless I get detailed problems 🙂
Sorry. I mean, I tried the shortcodes in my page but the forums aren’t separating the way I need them to like in my picture. The codes dont seem to work… I added the stat code that shows how many users and that works but the rest of the codes don’t work.
I put the correct forum ID and everything and they weren’t showing. Is there something that I’m missing?
First, for a whole week now I am collecting, testing, verifiyng snippets around the web, most from this forum, and make my own collection. To have it all on one place on localhost. Stop making it, it never ends. 🙂 bbPress is so, so, so manageable and easy to add all functions other forum software have.
Second, you won hearts of coders and developers. What about WP/bbPress beginners ?
As you already lose your time coding make some new theme for this support forum. To make it as demo for bbPress, to make it shine and stick out.
There is a reason why WP holds so much of web, and bbPress is not in this league.
Dont get me wrong, I read your topic about complicating things and rised support with new functions/options. I am talking about plain old CSS2/CSS3. No database queries, and you “sell” your product/code.
So, thanks and apologies if I offended someone.
I put the whole code in the editor. But I get the same error…
I know nothing about visual composer, but a quick google produces
http://codecanyon.net/item/bbpress-shortcodes-for-visual-composer/9073637
which suggests that standard shortcodes don’t work?
my plugin
bbp additional shortcodes
has a code
[display-forum-index forum= ‘2932, 2921′ breadcrumb=’no’ search=’no’] Displays the selected forum indexes
which lets you organise the order of forums
I think we are close, but it gives me an error in this line
echo “Replies only viewable for logged in users”;
Parse error: syntax error, unexpected ‘only‘ (T_STRING), expecting ‘,’ or ‘;’
Seems like it uses the message as code?
I am creating a page using visual composer and making it have tabs. One of those tabs is forum, and when I embed a bbpress shortcode in that tab and publish the page. bbpress breaks our of visual composer and takes over the whole page. Any idea for why this is happening?
Probably the same problem, however, I have the code.
Old topic but if it can help someone. Code is tested and still works, just formatting of code on this forum is wrong.
add_filter('bbp_current_author_ip', 'my_anonymize_ip');
function my_anonymize_ip($retval) {
$retval = '0.0.0.0';
return $retval;
}
I had no knowledge of PHP when I started a few months ago and made it by cutting and pasting, copying and changing plugin codes, lot of topicsand tutorials read and many sleepless nights.
Deffo a lot of work but I hope it is paying off.
I have a dummy account for people who want to see members only functions like a “like” system and lots of profile functions
username : demo
password : demo
Now working on @media queries so it is easier to use on mobiles
A lot of work ? Looks very nice. I had to check source code to see if you are cheating. 🙂
This seem to works. Or seems to work, I never know difference.
add_filter('bbp_before_get_reply_author_role_parse_args', 'ntwb_bbpress_reply_css_role' );
function ntwb_bbpress_reply_css_role() {
$role = strtolower( bbp_get_user_display_role( bbp_get_reply_author_id( $reply_id ) ) );
$args['class'] = 'bbp-author-role bbp-author-role-' . $role;
$args['before'] = '';
$args['after'] = '';
return $args;
}
add_filter('bbp_before_get_topic_author_role_parse_args', 'ntwb_bbpress_topic_css_role' );
function ntwb_bbpress_topic_css_role() {
$role = strtolower( bbp_get_user_display_role( bbp_get_topic_author_id( $topic_id ) ) );
$args['class'] = 'bbp-author-role bbp-author-role-' . $role;
$args['before'] = '';
$args['after'] = '';
return $args;
}
you could try something like the following in your function file (not tested)
add_action ('bbp_template_after_replies_loop', 'bbp_breadcrumb' );
Hm, it shows this error…
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'bb_auth_reply_view' not found or invalid function name in ..../blog/wp-includes/plugin.php on line 213