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!
Put this in your functions.php file in your child theme or place this php code snippet in a plugin like functionality.
add_filter( 'bbp_get_single_forum_description', 'ja_return_blank' );
add_filter( 'bbp_get_single_topic_description', 'ja_return_blank' );
function ja_return_blank() {
return '';
}
Try some troubleshooting to see if it could be a plugin issue.
Troubleshooting
The user ID is created automatically. There might be something that might help you out like Reveal IDs plugin that will show the ID of each registered user on your site. I cannot find anything that will help you find the 1000th user easily yet. I might find a plugin/code snippet later today that might help.
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.
Hello, the shortcode [bbp-forum-form] force to choose a parent forum. No Parent option is not working. Either we allow the final user (not me) to accedd WP admin… or have to change forum structore. Any way to avoid this?
Thanks in advance!
Jorge
Thanks you Robert.S
Where do i have to put this code ?
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' );
@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
Hello
i have the same problem, i don’t understand what you do, please help me.
where is the functions file ?
what is the code that you modify ?
Thanks again, that’s it!
This is how it works finally for several topics with different divs and a custom action hook:
/*Different divs for all topics of specific forums*/
function add_different_div() {
$topic_id = bbp_get_topic_forum_id();
if (( $topic_id == 123) or ( $topic_id == 456)){
?>
<div> this is some custom div text </div>
<?php
}
elseif ( $topic_id == 789){?>
<div> this is some OTHER custom div text </div>
<?php
}}
add_action( 'different_div', 'add_different_div' );
Custom action hook to add in the template file where the div shall be displayed:
<?php do_action( 'different_div' ); ?>
Hello, i want to remove the commans separating the forums in the index. I searched and found old solutions that do not work. I read on the codex to change the
‘separator’ => ‘, ‘, to ‘separator’ => ”,
in the template.php files from includes but it does not remove the colon.
Can you help me with this please?
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.
BBCode Deluxe (https://wordpress.org/plugins/bbcode-deluxe/) adds BBCode markup (and other shortcodes) to WordPress and BBPress. This plugin is a fork of the unmaintained (but well loved and used) “bbPress2 BBCode” plugin by Anton Channing (https://wordpress.org/plugins/bbpress-bbcode/).
This plugin includes code from the below listed developers and their plugins. More BBCodes/shortcodes will be added (such as the rest of the BBCodes from “Video and Audio BBCodes”).
- Copyright (C) 2013 Anton Channing (“Video and Audio BBCodes” and “bbPress2 BBCode”)
- Copyright (C) 2010 b0ingBall (b0ingBall BBCode plugin)
- Copyright (C) 2008 Viper007Bond (the original BBCode plugin)
The BBCodes are (or try to be) HTML5-compliant.
The <!-- Generated in 0.959 seconds. (121 q) --> comment comes from BuddyPress. And BuddyPress doesn’t affect the movement of topics (tryed on a fresh installation).
(I’m currently installing every plugin one by one that are active on our forum on a fresh installation, but nothing found yet.)
It’s not a solution to the problem but just a work around.
What does this mean?
I think this has something to do with it, and it’s probably part of some Gulp testing-thing they are using or so.
Property sv:eol-style set to native
Property svn:auto-props set to
*.css = svn:eol-style=native
*.js = svn:eol-style=native
*.php = svn:eol-style=native
*.txt = svn:eol-style=native
*.scss = svn:eol-style=native
*.gif = svn:mime-type=image/gif
*.jpg = svn:mime-type=image/jpeg
*.png = svn:mime-type=image/png
Property svn:global-ignores set to
.DS_Store
.gitignore
Property svn:ignore set to
.htaccess
build
node_modules
npm-debug.log
phpunit.xml
Ok, where could I send a patch? Should I create an SVN patch or just give a description on where to add the code?
Thank you, Stefano.
You can use oembed for embedding imgur links automatically.
You can use the img quicktag button in the toolbar if the url of the image is from a different source.
GD bbPress Attachments plugin can handle uploading images to your site directly.
If you use BuddyPress also, you can use the BuddyPress Forum Editor plugin for image uploads that way also.
Looking at the code it seems there is no way to hook into that option in a easy way. One should hook into get_options for the moderation_key option but find a way to determine he is in the bbpress contect and not in the comment moderation context. If needed I can write the patch to bbpress for that, it’s one line of code!
Stefano.
I see this comment in your source code and this usually is inserted from some caching plugins/software?
<!-- Generated in 0.959 seconds. (121 q) -->
If you had some caching plugins activated awhile ago, activate it again and clear the cache and see if this helps any.
IF you have server cache, you might need to check on that. Same thing if you are using something like cloudflare.
How can’t you login?
What is stopping you exactly from logging in?
Do you see an error messages in the login form?
Is it redirects or 404s?
Did you try some troubleshooting to see if it was another plugin conflict? It could also be a security or a spam plugin that could cause this type of issue.
Troubleshooting
Did you try any troubleshooting?
Troubleshooting
Maybe clear any cache collected on your cpu and make sure your forum role is in fact the keymaster role.
There might be some code snippet you can find, or a plugin like the Display Posts Shortcode plugin that might help you here.
function rkk_show_specific_cat() {
echo do_shortcode("[post_in_cat_shortcode]");
}
add_action('bbp_template_after_forums_index','rkk_show_specific_cat');