I notice now that, this error comes up when inspecting the element after search with bot wp and bbpress search, now that search forum-wide is on.
GET http://coachingonthego.co.zapath_to_style.css/?ver=4.2.4 net::ERR_NAME_NOT_RESOLVED
I am making a new website for a parent group which would use a forum in its core design. The site would consist of a main page with a blog which has comments that are tied to a forum topic. Similar to something like http://www.macrumors.com/. It would also have custom permission levels beyond the generic moderator, sub, and admin roles via plugins, and be locked with access codes. We are also planning on making a custom App for iOS and Android, or maybe even Windows using core tools like Xcode and Android Studio, Visual Studio, or Xamarin down the line. Right now I am trying to decide on what would be the best foundation for our site. Does bbPress have some sort of API that we could use, or do we need to look elsewhere?
If I view the source code, the copy that is usually rendered by these lines of code:
$retstr = sprintf( esc_html__( 'This topic contains %1$s, has %2$s, and was last updated by %3$s %4$s.', 'bbpress' ), $reply_count, $voice_count, $last_updated_by, $time_since );
is displaying but it seems that %1$s and %2$s isn’t pulling any data through, but %3$s %4$s is.
@robkk , thanks for everything. I appreciate the fact that you took the time to read my ideas and such. The BuddyPress and WordPress community does not seem to notice my suggestions.
Your summary is right. However, when I say “topic auto-suggestion”, I am referring to the “bbPress Live Topic Suggestions” plugin (https://wordpress.org/plugins/bbpress-auto-suggest-topics-based-on-new-topic-title/).
1. As for the oEmbed cache code that I use, the code is below. This is not a real fix/solution since I remove/disable auto-embedding and three shortcodes. Basically, I am making it impossible for oEmbed cache to form.
remove_filter('the_content',array($GLOBALS['wp_embed'],'autoembed'),8);
remove_shortcode('audio');
remove_shortcode('video');
remove_shortcode('playlist');
By the way, the BBPress developers may want to consider designing the “bbp-topic-description” to look similar to the code below. I use that format on my website; the code snippet below was taken from http://dcjtech.info/topic/directx-introduction/ . The below code uses Microdata (like Hentry/Hatom and others) and is used by many search engines.
<p class="bbp-topic-description">This topic was published by <em><span class="p-author h-card fn author post-author" itemprop="author">DevynCJohnson</span></em> and viewed 201 times since "<time itemprop="datePublished" class="dt-published published entry-date uploaded" datetime="2015-07-28">July 28, 2015 @ 06:00UTC</time>".</p>
The BBPress developers are more than welcome to ask me for code or ask how I created/added some particular feature.
Hi,
Thanks for weighing in.
I’ve run debugging mode and found nothing. I have deactivated ALL plugins apart from BBPress (including clearing all caches) and the problem remains.
I can’t find anyone else reporting the same issue after extensive searches.
Any other ideas?
Thank you.
Hi,
I am making a shortcode for bbpress use profile and here is the function
add_shortcode('myprofile', 'show_bb_profile');
function show_bb_profile() {
ob_start() ?>
<?php do_action( 'bbp_template_before_user_details' ); ?>
<div id="bbp-single-user-details">
<div id="bbp-user-avatar">
<span class='vcard'>
<a class="url fn n" href="<?php bbp_user_profile_url( get_current_user_id()); ?>" title="<?php bbp_displayed_user_field( 'display_name' ); ?>" rel="me">
<?php echo get_avatar( bbp_get_displayed_user_field( 'user_email', 'raw' ), apply_filters( 'bbp_single_user_details_avatar_size', 150 ) ); ?>
</a>
</span>
</div><!-- #author-avatar -->
<div id="bbp-user-navigation">
<ul>
<li class="<?php if ( bbp_is_single_user_profile() ) :?>current<?php endif; ?>">
<span class="vcard bbp-user-profile-link">
<a class="url fn n" href="<?php bbp_user_profile_url( get_current_user_id()); ?>" title="<?php printf( esc_attr__( "%s's Profile", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>" rel="me"><?php _e( 'Profile', 'bbpress' ); ?></a>
</span>
</li>
<li class="<?php if ( bbp_is_single_user_topics() ) :?>current<?php endif; ?>">
<span class='bbp-user-topics-created-link'>
<a href="<?php bbp_user_topics_created_url(); ?>" title="<?php printf( esc_attr__( "%s's Topics Started", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php _e( 'Topics Started', 'bbpress' ); ?></a>
</span>
</li>
<li class="<?php if ( bbp_is_single_user_replies() ) :?>current<?php endif; ?>">
<span class='bbp-user-replies-created-link'>
<a href="<?php bbp_user_replies_created_url(); ?>" title="<?php printf( esc_attr__( "%s's Replies Created", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php _e( 'Replies Created', 'bbpress' ); ?></a>
</span>
</li>
<?php if ( bbp_is_favorites_active() ) : ?>
<li class="<?php if ( bbp_is_favorites() ) :?>current<?php endif; ?>">
<span class="bbp-user-favorites-link">
<a href="<?php bbp_favorites_permalink(); ?>" title="<?php printf( esc_attr__( "%s's Favorites", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php _e( 'Favorites', 'bbpress' ); ?></a>
</span>
</li>
<?php endif; ?>
<?php if ( bbp_is_user_home() || current_user_can( 'edit_users' ) ) : ?>
<?php if ( bbp_is_subscriptions_active() ) : ?>
<li class="<?php if ( bbp_is_subscriptions() ) :?>current<?php endif; ?>">
<span class="bbp-user-subscriptions-link">
<a href="<?php bbp_subscriptions_permalink(); ?>" title="<?php printf( esc_attr__( "%s's Subscriptions", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php _e( 'Subscriptions', 'bbpress' ); ?></a>
</span>
</li>
<?php endif; ?>
<li class="<?php if ( bbp_is_single_user_edit() ) :?>current<?php endif; ?>">
<span class="bbp-user-edit-link">
<a href="<?php bbp_user_profile_edit_url( get_current_user_id()); ?>" title="<?php printf( esc_attr__( "Edit %s's Profile", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php _e( 'Edit', 'bbpress' ); ?></a>
</span>
</li>
<?php endif; ?>
</ul>
</div><!-- #bbp-user-navigation -->
</div><!-- #bbp-single-user-details -->
<?php do_action( 'bbp_template_after_user_details' ); ?>
<?php
$output = ob_get_contents();
ob_end_clean();
return $output;
}
However, I am able to get the profile link for a user by this template tag get_current_user_id()
but how what is the template tag for a user to his replies & topics.
Thanks in advance
Hi
we run WP 4.3 and bbpress 2.5.8
This codes does allow both admin and normal user to search for both wp and forum contents fine.
However normal user with no permission to certain forum could search for those articles in hidden forum too! and they could view the full fine from click link on search results, this is privacy alert!
Try some troubleshooting to see if it could be a plugin issue.
Troubleshooting
Does disabling bbPress subscriptions in settings > forums help any?? Or do you need the email notifications but not in the BuddyPress profile??
alright glad you solved your own issue 🙂
you were using this plugin right??
https://wordpress.org/plugins/bbpress-private-replies/
Creating the bbpress.php file was for removing the blog post data like the continue reading button. I guess you can just use CSS instead. creating the bbpress.php file was not for fixing the search issue.
You do not need to install the plugin fixes in that topic, it was for another issue for that user.
Can you enable the forum search in Settings>Forum again so I could see what could be causing the issue again. I remember there being something saying I don’t have the capability/ability to search because of my account to search or something? I am wondering if there is an issue with whatever is causing that too.
the patch might not be created right. I don’t think you create the patch from the plugin version but maybe the latest alpha version or the latest version you can download from the trunk using SVN.
You can download/download using SVN using the url from here.
Download
Are you sure how you inserted the filter will not cause any issues?
I am specifically talking about how $blacklist = both of these.
$blacklist = trim( get_option( 'moderation_keys' ) );
$blacklist = apply_filters('bbp_moderation_keys', $blacklist);
Here are a bunch of helpful guides that I am just going to drop here.
Working With Patches
Installing Via SVN
Try some troubleshooting to see if it is a plugin or theme issue.
Troubleshooting
Also know that the visual editor was not activated by default because it started having issues. So it might be better to just use the quicktags toolbar.
Please explain on the formatting issue.
How does this pertain to bbPress?
I installed bbpress and it’s working fine. My boss wants users using the site to create topics without ever having to create a forum. Is that Possible? Also on the front end, When a user is creating a new topic can I hide or disable “Topic Type:”, “Topic Status:” and “Notify me of follow-up replies via email”? Even the “Notify me of follow-up replies via email” option isn’t working. What can I do the fix that?
N.B All of this must be possible on the front end. The back end is fine.
I am running a WordPress network with the latest version of Buddypress and bbpress. The site is http://theglobalschool.net/science and it is run for high school students.
My problem is that every time a blog is viewed, that viewer is added as a user, which makes things very confusing after a short while. Is there any way I can prevent this from happening? I noticed there is a checkbox in the settings for forums but it doesn’t seem to resolve the problem.
Thanks,
Rob.
Thanks so much Robkk.
I’ll take a look at those files, and see if any plugins might do the trick.
I am using some custom code I found *somewhere* (!! maybe here haha??) to include Forum results in general WordPress Search results, which works well enough, but of course this is from a site-search, not the BBPress search function.
Here it is in case anyone else stumbles across this thread and wants to extend WordPress searches to include Forum results (without adding a plugin):
/**
* Include bbPress 'topic' custom post type in WordPress' search results */
function ntwb_bbp_topic_cpt_search( $topic_search ) {
$topic_search['exclude_from_search'] = false;
return $topic_search;
}
add_filter( 'bbp_register_topic_post_type', 'ntwb_bbp_topic_cpt_search' );
/**
* Include bbPress 'forum' custom post type in WordPress' search results */
function ntwb_bbp_forum_cpt_search( $forum_search ) {
$forum_search['exclude_from_search'] = false;
return $forum_search;
}
add_filter( 'bbp_register_forum_post_type', 'ntwb_bbp_forum_cpt_search' );
/**
* Include bbPress 'reply' custom post type in WordPress' search results */
function ntwb_bbp_reply_cpt_search( $reply_search ) {
$reply_search['exclude_from_search'] = false;
return $reply_search;
}
add_filter( 'bbp_register_reply_post_type', 'ntwb_bbp_reply_cpt_search' );
Hi you all,
I made a personalized Spanish translation of bbpress words but when this get updated it goes back to the one that bbpress offers in Spanish.
Is there a way to prevent these changes?
I want to keep my Spanish translation all the time.
Anyone?
Thanks
@devyncjohnson
1. Well yeah the cache staying not removing is the issue, it could be a bug in WordPress itself since that caches the oembeds. What peice of code did you use to fix this?
12. I couldn’t duplicate the issue on latest Firefox on W10 using the html5 blank theme.
Yeah I know, I bookmarked most of the suggestions for features for the bbPress plugin on this site, but if you are experiencing some kind of issue, then why not help out too.
What I got from you that could possibly make the bbPress plugin are.
option to turn off feeds.
add topic auto-suggestion (might be better for the forum search though)
Integrate some plugins like report content (maybe external links)
Export and import settings
View counter
Custom notices
Specific forum permissions
Avatar system
Most of the SEO things could be best to have in a separate plugin, or should be left to the theme and how it is set up.
@pinkishhue
The forum requests and feedback is for this type of thing. If you think some codex article should be available, features should be in bbPress, this site bbpress.org should have some style fixes, etc. this forum is where you post all that in. If you need to create a new topic with a list of suggestions in a list from yourself, you can do that.
The way the menu items show up has always been like that since bbPress v1 standalone. It could be easier for users to see all the post types in one section, this might need another opinion though. I think it is fine either way though. It will be annoying to change all the codex articles if we do change that though haha.
Alright I am going to just test out this theme later today to see all the issues it presents and try to resolve them.
Try this on a local development server or just a test site in general o the site you are trying to import from. Cloning the whole site might be the best way to import from one WordPress site to another WordPress site.
Creating a Test Site
Going to reinstall WordPress and bbPress and budypress
I’ve just created a ticket, hopefully in the correct way…
https://bbpress.trac.wordpress.org/ticket/2861
Stefano.
Not sure if this is the right place to add another suggestion but something that just occurred to me that I think would be helpful –
Perhaps all bbpress custom post types could be grouped together under 1 ‘bbpress’ entry in the admin menu. I find it feels quite cluttered once you’ve installed bbpress and suddenly have the 3 entries there for forums, topics & replies, and this must also be confusing for less experienced users who might not understand that they are 3 different post types.
Hi Rob
Sorry but I am really at a loss here.
The What The File plugin directed me to the index.php, I copied this to my child theme and pasted the suddested code in there, this changed my layout dramatically when viwing the forum and search results, but did noting to help with the problem, still not getting forum results in the bbpress search.
I also tried adding the code suggested in the thread, to add forum to the wp search, and installed both plugin fixes, but still wordpress ignores the forum in it’s searches.
The issue is that my forum is useless without a decent search function.
Please help.