Not Working with 10 🙁
remove_filter( 'the_content', 'make_clickable', 10 );
remove_filter( 'post_content', 'make_clickable', 10 );
remove_filter( 'bbp_get_reply_content', 'make_clickable', 10 );
remove_filter( 'bbp_get_topic_content', 'make_clickable', 10 );
The remove filter above I mentioned is not working for me, I even tried changing the priority 1 to 255.
The remove must have the same priority – see
https://codex.wordpress.org/Function_Reference/remove_filter
since you are trying to change a function in buddypress viz ‘bp_setup_nav’ then logically it is buddypress.
Anyway try
//This function changes the text wherever it is quoted
function change_translate_text( $translated_text ) {
if ( $translated_text == 'Forums' ) {
$translated_text = 'Chapters';
}
return $translated_text;
}
add_filter( 'gettext', 'change_translate_text', 20 );
Hi Have tried to remove the link from username with below code but when i use it, the avatar reappears which i managed to get rid of – is there another workaround?
add_filter(‘bbp_before_get_breadcrumb_parse_args’, ‘mycustom_breadcrumb_options’);
add_filter( ‘bbp_get_author_link’, ‘remove_author_links’, 10, 2);
add_filter( ‘bbp_get_reply_author_link’, ‘remove_author_links’, 10, 2);
add_filter( ‘bbp_get_topic_author_link’, ‘remove_author_links’, 10, 2);
function remove_author_links($author_link, $args) {
$author_link = preg_replace(array(‘{<a[^>]*>}’,'{}’), array(” “), $author_link);
return $author_link;
}
thanks in advance
Melanie
create a directory on your theme called ‘bbpress’
ie wp-content/%your-theme-name%/bbpress
find
wp-content/plugins/bbpress/templates/default/bbpress/loop-single-forum.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/%your-theme-name%/bbpress/loop-single-forum.php
bbPress will now use this template instead of the original
Then change line 50 of this file from
<?php bbp_list_forums(); ?>
to
<?php //bbp_list_forums(); ?>
This will, stop it listing sub forums.
Come back if that’s not what you wanted
Hello,
I am tired but couldn’t find a way to stop converting a simple url text into a hyperlink url.
This is where I working >> http://www.punjabi.cc/topics/zikar-lyrics-jagjeet-kooner/
Is there any way I can remove this filter, even the code below returns no desired result.
remove_filter( 'bbp_get_reply_content', 'make_clickable');
remove_filter( 'bbp_get_topic_content', 'make_clickable');
How to remove this?, Please help me guyz…
Really thankful for valuable reply and code.
Can anyone help me to correct this code?
Thanks a lot
Nevermind. I am stupid.
I took away all my shortcode stuff and used this. Please go easy on me lol. Everything is perfect now.
<?php while( have_posts() ): the_post(); ?>
<?php the_content(); ?>
<?php endwhile; ?>
After installing BBPress nothing was working, I could see a list of forums if I went to /forums/ but nothing appeared to create a new forum or post, and no form appeared to enter a reply. I rebuilt the pages using the shortcodes and this worked great, but if I click “Edit” on a reply I get a page with no content.
Here is the code I am using in my main template to make the BBPress items show up:
<?php if (is_bbpress()) : ?>
<section id="content" class="grid-block"><h3 class="page-subtitle"><?php echo $this['config']->get('Subtitle'); ?></h3>
<?php
if(!is_user_logged_in())
{
echo do_shortcode("[bbp-login]");
} else {
echo 'bbpress page';
$forum_id = get_the_ID();
if( get_post_type( $forum_id ) == 'page')
{
echo do_shortcode("[bbp-forum-index]");
}
echo do_shortcode("[bbp-single-forum id=" . $forum_id . "]");
echo do_shortcode("[bbp-single-topic id=" . $forum_id . "]");
}
?>
I can’t find a shortcode for the reply edit form. How can I made the reply edit form appear on a page?
Also none of the forms worked until I added this to the functions.php:
add_filter( 'bbp_verify_nonce_request_url', 'my_bbp_verify_nonce_request_url', 999, 1 );
function my_bbp_verify_nonce_request_url( $requested_url )
{
return 'http://localhost:8088/mySite/' . $_SERVER['REQUEST_URI'];
}
I am using a woo-theme with their warp system, I think it does not work well with bbpress.
Please, how can I made the edit form appear? There appears to be no shortcode for that.
Hi. i want to add custom html under the keymaster’s name in his reply.
My html is: <p class="supportteam">I im in supporting group</p>
I have all bbpress’s files in my theme and think that the loop-single-reply.php should be modify but can’t find the correct solution to do it.
Here is my purpose: http://i.cubeupload.com/ZSr3pR.png
my loop-single-reply.php :
<div id="post-<?php bbp_reply_id(); ?>" <?php bbp_reply_class(); ?>>
<div class="bbp-reply-author">
<?php do_action( 'bbp_theme_before_reply_author_details' ); ?>
<?php bbp_reply_author_link( array( 'type' => 'avatar', 'show_role' => false ) ); ?>
<?php do_action( 'bbp_theme_after_reply_author_details' ); ?>
</div><!-- .bbp-reply-author -->
<div class="bbp-meta">
<?php bbp_reply_author_link( array( 'type' => 'name', 'show_role' => false ) ); ?>
" title="<?php bbp_reply_title(); ?>" class="bbp-reply-permalink"><span class="bbp-reply-post-date"><?php bbp_reply_post_date(); ?></span>
<!--HERE IS a place for my new code -->
</div>
<div class="bbp-reply-content">
<?php do_action( 'bbp_theme_before_reply_content' ); ?>
<?php bbp_reply_content(); ?>
<?php do_action( 'bbp_theme_after_reply_content' ); ?>
</div><!-- .bbp-reply-content -->
<?php do_action( 'bbp_theme_before_reply_admin_links' ); ?>
<?php
$args = array (
'id' => 0,
'before' => '<span class="bbp-admin-links">',
'after' => '</span>',
'sep' => ' / ',
'links' => array()
);
bbp_reply_admin_links( $args ); ?>
<?php do_action( 'bbp_theme_after_reply_admin_links' ); ?>
</div><!-- #post-<?php bbp_reply_id(); ?> -->
I tried this code but it does not work:
<?php
$role=bbp_get_reply_author_role();
if($role == 'keymaster'){echo '<p class=="supportteam">I im in supporting group</p>';}
?>
It not show anythings!
Can you help me to correct this code?
When i use this:
$role=bbp_get_reply_author_role();
echo $role;
it print reply author’s role.
@andreippo, @joop.stringer
You may have better luck starting your own thread on this one. I had a similar problem, in that users see notifications (the little icon on the wordpress nav bar) but never get an email. I will mention that if you look closely at the ticket referenced and if you do have access to the code yourself you can find the line to examine in bbpress\includes\common\functions.php -> Line 1066 and roughly 1106. My smtp provider was not liking the noreply email address that was being constructed as the sender. I changed the lines I mention to a valid email address and everything started to work. Also worth mentioning, I am using WP Mail SMTP.
Yes, so it is vith github and updates. I had some old code, testing something on my old website. Noticed on github changes for GD Attachments.
Now it works very nice.
Put this plugin in WP repository. It is very unique.
@Robkk
What is name of this option ? I cannot find it.
I dont use plugin for visual editor, only manual code and media button is deactivated.
Preview even doesnt work for non-admins. As I see “detach” option in images, I suspect GD bbPress Tools-Attachments is making this problem.
My users login to bbpress via a login page with the shortcode, rather than via the sidebar widget. i’d like to redirect them to the forum or topic they came from when they clicked the login link, just as the sidebar widget does. But I don’t know how to make that work – at the moment it just redirects back to the login page after logging in.
Is there any way to achieve this?
Thanks
Hi all,
Just a question:
I use Kleo Template and bbpress as forum.
As of now, the layout is like the ordinary going through the forum.
Like this:
Forum Index –> Topics list –> Full topic/text with reply field below.
I would like to have it more like Facebook.
But I’d still need multiple forum IDs.
For example:
If I have a page with different ‘tabs’ (called perhaps: Forum1, Forum2 etc.) to show the contents of different forum-IDs, I’d like them to show the full topics for this specific forum.
AND it should have a reply function below each of these topics.
This is how Facebook is doing it, and it makes a very direct access to the topics and easy access to reply.
I’m not sure if this is possible, without the need to change alot of code?
Thanks.
Okay, Robin, I’m trying that. Will soon find out if it works for me.
In the mean time perhaps the plugin author could make some sense out of the code I received:
Code:
brk(0x5419000) = 0x5419000
— SIGSEGV (Segmentation fault) @ 0 (0) —
Thnx,
Bob
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.