Forum Replies Created
-
In reply to: Remove NoFollow from BBPress Posts
@Robkk , not necessarily. The “fix” is not 100% perfect because it removes “nofollow”s that I intend to keep for external domains/links. Also, if I were to write an article about nofollow, then any code examples I give will lose
rel="nofollow"
The fix I provided is a poor fix. True, it solves my problem at the cost of a much lesser evil (in my opinion). I still hope that someone can provide a real solution or explain where the nofollow is coming from. Until then, at least I have a fix which is better than no fix.
Considering that I commented out those lines in the bbPress plugin, one would think that that would fix everything.
In reply to: Remove NoFollow from BBPress PostsAs a temporary (but poor fix) the below code can be added to “functions.php”.
//Remove nofollow function rm_nofollow($txt){ $txt=str_replace(' rel="nofollow"','',$txt); return $txt; } add_filter('bbp_get_topic_content','rm_nofollow',20); add_filter('bbp_get_reply_content','rm_nofollow',20);
In reply to: Nofollow on Internal LinksI have tried commenting out the following lines from ./includes/core/filters.php, but without success.
add_filter( 'bbp_get_reply_content', 'bbp_rel_nofollow', 50 ); add_filter( 'bbp_get_topic_content', 'bbp_rel_nofollow', 50 );
In reply to: My Ideas and Suggestions for BBPress@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.
In reply to: Say hi to RobkkThanks @robkk for your contributions
In reply to: My Ideas and Suggestions for BBPress1. If the oEmbeds are disabled in the options, then how would I still have oEmbed cache accumulating?
12. I use Firefox (latest) on Linux and Android. I occasionally use Chromium (also the latest version on Linux).
By the way, thanks for all of your help. However, keep in mind that my main purpose for this thread is to give the BBPress developers some ideas rather than fix my problems.
In reply to: My Ideas and Suggestions for BBPress@Robkk , thank you for your time.
1. I did see the option for oEmbeds. However, after disabling oEmbeds and using WP-Sweep to remove all oEmbeds, WP-Sweep still finds oEmbeds after a few days. Currently, I wrote my own code to disable them.
5. The Report content plugin has not been updated since November of 2014.
12. True, I have tried BuddyPress’s upload-avatar feature and the various upload-avatar plugins, but they no longer work after I upgraded by website to HTML5. Notice that I mentioned that I can still upload media via the backend. My backend is using HTML4. You are right though, this is probably something for WordPress to implement rather than BBPress.
Why not add the below code to the theme’s functions.php file?
//Subscribe by default function subscribed_by_default(){ echo '<script type="text/javascript">jQuery("#bbp_topic_subscription").prop("checked","checked");</script>'; } add_filter('bbp_theme_after_topic_form_subscriptions','subscribed_by_default'); add_filter('bbp_theme_after_reply_form_subscription','subscribed_by_default');
In reply to: Manage Subscriptions?@jrb9406 , I will use my forum as an example. Notice that the link address for the “subscribe” link on my bootloader article forum (http://dcjtech.info/forum/articles/bootloaders/) ends in
?action=bbp_subscribe&forum_id=517&_wpnonce=120c4cdb3d
. So, to start your code, you need to get a list of forum IDs and the name of the forum for a particular ID. Then, you can list forum names and use their ID for the subscription. Obviously,action=bbp_subscribe
calls the subscribe function/code. However, I am not sure about the_wpnonce=120c4cdb3d
.I hope that gives you a good start.
In reply to: [New feature] View/Hit Counts@robkk , thanks. Actually, I had written some code like that for my website late last night. The result can be seen in action at http://dcjtech.info/forum/articles/operating-systems/linux/ . I even figured out how to migrate the bbpress-simple-view-counts data to my implementation. The migration was easy (a few SQL queries via phpMyAdmin) and not at all complex as other developers thought (https://wordpress.org/support/topic/sync-with-simple-view-counts).