-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathreadme.txt
More file actions
115 lines (67 loc) · 3.41 KB
/
Copy pathreadme.txt
File metadata and controls
115 lines (67 loc) · 3.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
=== Plugin Name ===
Contributors: nuprn1, etivite, r-a-y
Donate link: http://etivite.com/donate/
Tags: buddypress, activity stream, activity, hashtag, hashtags
Requires at least: WordPress 3.4.1, BuddyPress 1.6
Tested up to: WordPress 3.9.1, BuddyPress 2.0.1
Stable tag: 0.5.1
This plugin will convert #hashtags references to a link (activity search page) posted within the activity stream
== Description ==
** IMPORTANT **
This plugin will convert #hashtags references to a link (activity search page) posted to the activity stream
Works on the same filters as the @atusername mention filter (see Extra Configuration if you want to enable this on blog/comments activity) - this will convert anything with a leading #
Warning: This plugin converts #hashtags prior to database insert/update. Uninstalling this plugin will not remove #hashtags links from the activity content.
= Also works with =
* BuddyPress Edit Activity Stream plugin 0.3.0 or greater
* BuddyPress Activity Stream Ajax Notifier plugin
= Related Links: =
* <a href="http://etivite.com" title="Plugin Demo Site">Author's Site</a>
* <a href="http://etivite.com/wordpress-plugins/buddypress-activity-stream-hashtags/">BuddyPress Activity Stream Hashtags - About Page</a>
* <a href="http://etivite.com/api-hooks/">BuddyPress and bbPress Developer Hook and Filter API Reference</a>
== Installation ==
1. Upload the full directory into your wp-content/plugins directory
2. Activate the plugin at the plugin administration page
== Frequently Asked Questions ==
= What pattern is matched? =
The regex looks for /[#]([_0-9a-zA-Z-]+)/ within the content and will proceed to replace anything matching /(^|\s|\b)#myhashtag/
= Can this be enabled with other content? =
Possible - try applying the filter `bp_activity_hashtags_filter`
See extra configuration
= Why convert #hashtags into links before the database save? =
The trick with activity search_terms (which is used for @atmentions) is the ending </a> since BuddyPress's sql for searching is %%term%% so #child would match #children
= What url is used? =
you may define a slug for hashtags via the admin settings page
= My question isn't answered here =
Please contact me on http://etivite.com
== Changelog ==
= 0.6.0 =
* Feature: Unicode support for hashtags (uses Twitter's algorithm)
* Feature: Taxonomy support
* Feature: Tag cloud widget support - use WP's "Tag Cloud" widget and for "Taxonomy", select "Activity Hashtags"
* Enhancement: Better multisite support
* Enhancement: phpDoc throughout the plugin
* Enhancement: Removed global references with native BP functions
= 0.5.1 =
* BUG: fix network admin settings page on multisite
* FEATURE: support for locale mo files
= 0.5.0 =
* BUG: updated for BuddyPress 1.5.1
* FEATURE: added admin options - no more functions.php config line items
= 0.4.0 =
* BuddyPress 1.2.6 and higher
* Bug: if html is allowed and color: #fff was used, was converting the attribute
* Bug: if #test was used, other #test1 was linked to #test
= 0.3.1 =
* Bug: Added display_comments=true to activity loop to display all instances of a hashtag search (thanks r-a-y!)
= 0.3.0 =
* Feature: RSS feed for a hashtag (adds head rel and replaces activity rss link)
* Feature: Added filter for hashtag activity title
= 0.2.0 =
* Bug: Filtering hashtags (thanks r-a-y!)
= 0.1.0 =
* First [BETA] version
== Upgrade Notice ==
= 0.5.0 =
* BuddyPress 1.5.1 and higher - required.
== Extra Configuration ==
`