I have just tested this with our new site and its working fine. We’re running BuddyPress and it wasn’t actually catching all of the content though, so I fixed its filters. Also, if you want it to search your site instead of twitter, giving your site good hashtag support change the search string in the settings to this:
https://example.com/?s=%23[hashtag]
To make it put hashtags all throughout BuddyPress, edit index.php and replace the code for the bp filter at like 78 with this:
if( in_array( 'bp', $this->settings['filter'] ) ) {
add_filter('bp_get_activity_action', array( &$this, 'filter'));
add_filter('bp_get_activity_content_body', array( &$this, 'filter'));
add_filter('bp_activity_comment_content', array( &$this, 'filter'));
add_filter('bp_get_activity_latest_update', array( &$this, 'filter'));
add_filter('bp_get_activity_latest_update_excerpt', array( &$this, 'filter'));
add_filter('bp_get_activity_feed_item_description', array( &$this, 'filter'));
add_filter('bp_activity_latest_update_content', array( &$this, 'filter'));
add_filter('bp_get_activity_latest_update_excerpt', array( &$this, 'filter'));
}
]]>
Sites running bbPress are susceptible to XSS payloads. With this plugin enabled, scripts will be executed if entered in topics or replies.
]]>For some reason the plugin is only grabbing parts of the alphanumeric catalog number following the hashtag, only will grab the numbers but not the letters (Ex: #2880GCC). It seems to be affected where there is a line break, comma or period following the completion of the hashtag. I’ve tried adjusting the Regular Expressions by using
'#(\S+)/u)' or '#([0-9A-Za-z])/u)'
but all I’ve successfully done is grab the periods and comma’s following the hashtag using the \S+, I’ve tried many others to no avail.
Example of content:
A useful accessory to these traps is the #2823 CO2 gas regulator kit designed for use in areas where dry ice cannot be obtained or is not desired. Adding the CO2 gas regulator kit increases the catch rate for many mosquito species as well as black flies, stable flies, biting midges and New World sand flies. For more control as to how long the regulator runs, using the #2880CT timer is recommended for unattended stop and start collecting times.
For other replacement items see: Green Carrying Bag #2880GCC, CO2 Emitter Nozzle #2880CO, No-See-Um Mesh Catch Bag #2880CNS1.
]]>For some reason the plugin is only grabbing parts of the alphanumeric catalog number following the hashtag, only will grab the numbers but not the letters (Ex: #2880GCC). It seems to be affected where there is a line break, comma or period following the completion of the hashtag. I’ve tried adjusting the Regular Expressions by using
'#(\S+)/u)' or '#([0-9A-Za-z])/u)'
but all I’ve successfully done is grab the periods and comma’s following the hashtag using the \S+, I’ve tried many others to no avail.
Example of content:
A useful accessory to these traps is the #2823 CO2 gas regulator kit designed for use in areas where dry ice cannot be obtained or is not desired. Adding the CO2 gas regulator kit increases the catch rate for many mosquito species as well as black flies, stable flies, biting midges and New World sand flies. For more control as to how long the regulator runs, using the #2880CT timer is recommended for unattended stop and start collecting times.
For other replacement items see: Green Carrying Bag #2880GCC, CO2 Emitter Nozzle #2880CO, No-See-Um Mesh Catch Bag #2880CNS1.
]]>Hi,
this plugin has a great potential, but the old bugs, over 1 years old, were not fixed yet.
– is this plugin dismissed?
– do you think to update the release regularly?
Keep up the good work.
Kind regards
G.Aloe
]]>Hi!
Fist thanks for this easy but great plugin!
I activated hashtags in buddypress activity page but when i load media (I use rtmedia plugin for that) the post doesn’t show linkable word if I use #, that is the plugin doesn’t work for media posts
Can you help me??
Thanks!
Ositive
Hello and thank you for this plugin. I notice you just updated it 3hrs ago so Im hoping this can be solved.
I just installed the plugin on my site. But clicking on a hashtag creates a link as it should but the link leads to a “page not found”.
If you would like to have a look here I’d appreciate your feedback.
Thank you.
Hi @elhardoum
Thanks for this plugin that seems to be very useful. If only it could work with french accents… https://french.typeit.org/
Are you thinking about a fix ?
]]>How I can make a list with the hashtag of my posts using this plugin
]]>I think the topic covers it pretty well.
This plugin is not working with my buddypress installation
]]>Thank you for this great plugin! But I need help!
I have these two warnings on the configuration page. And when I click on the Hashtag goes straight to twitter!
Redirect to twitter by clicking is the only way, or you can stay on the site itself by clicking on the hashtag?
Warning: Cannot modify header information – headers already sent by (output started at wp-admin/includes/template.php:1981) in wp-content/plugins/wp-hashtags/index.php on line 167
Warning: call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in wp-includes/plugin.php on line 503
]]>Is there a way to detect and remove hashtag conversion if # is a css color ?
]]>I’m getting the following msg when trying to activate this plugin.
Plugin could not be activated because it triggered a fatal error.
Parse error: syntax error, unexpected T_FUNCTION in /var/www/html/wp-content/plugins/wp-hashtags/index.php on line 84
Hello,
As the topic title says, we will filter the post excerpts so we can detect and parse hashtags and by the end they show up in post feed etc. Let’s Proceed.
So Mike has suggested this here and I guess this snippet of code will do the thing.
Add this code to your child theme‘s functions file (functions.php) :
add_filter('get_the_excerpt', function( $content ) {
if( class_exists('WPHT') ) {
$content = WPHT::instance()->filter( $content );
}
return $content;
});
If something didn’t work for you please open an independent support topic for your issue.
I will be updating this topic whenever I have tweaks or improvements..
Samuel
]]>Hey guys,
GREAT plugin. Love how customizable it is in regards to what you can do with the URL.
It doesnt seem to be working on my front page or search results or archives though (so basically not within the loop), only on individual posts.
Anyway to get it to work within the main loop?
Thanks.
]]>I have someone that used a hashtag like this – #M&S
The plugin only converts the first section up to the & symbol –
Like this – #M the rest is ignored after the & and is still plain text.
Also , I don’t suppose there is a simple way to convert @someone-on-twitter to a working link ? or do i need something else for that ?
Any way , great plugin and thanks ??
]]>