Fix AJAX pagination when clicked page number is 1000 or more.

Previously, BP's javascript was converting the paginated element
content to a number with the Number() function.  This doesn't work
with comma-seperated number strings (eg. 1,000), which returned a NaN
value causing problems during the AJAX callback.

This commit changes the way the page number is parsed in BP's
javascript by grabbing the page number from the 'href' attribute.
Thereby, ensuring that AJAX pagination works for pages greater than
1000.

Fixes #5404

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7946 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Add filters to bp_get_group_create_button() and bp_get_blog_create_button()

See #5144

Props rogercoathup

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7947 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Introduce support for a 'type' sorting parameter in BP_Group_Member_Query

The 'type' parameter supports any of the arguments ('newest', 'active', etc)
supported by the parent class BP_User_Query. In addition, it's possible to
sort by type 'last_joined' and 'first_joined'.

This changeset also introduces the 'type' parameter through the
bp_group_has_members() function stack.

See #921

Props imath, boonebgorges

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7948 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Enable member sorting and pagination on group Members pages

Fixes #921

Props imath, boonebgorges

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7949 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
POT, generated from r7949

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7950 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Add 'offset' parameter to bp_has_activities() function stack

This param allows plugins and themes to filter results to only those activity
items whose IDs are greater than the 'offset' parameter. See eg the "load
new items" integration with the Heartbeat API.

See #5328

Props imath, boonebgorges

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7951 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Automatically check for newly created items when viewing the Activity Stream.

Leveraging WP's Heartbeat API, this new functionality performs periodic checks
to see whether new activity items matching the current filter have been posted
since the page was originally loaded. If new items are found, a Load Newest
link is inserted into the top of the stream, which will insert the new items.

A filter is included, bp_activity_heartbeat_pulse, that allows site owners to
set a specific interval for these checks. The default value is 15 seconds, or
whatever your global Heartbeat interval is.

To disable the feature, there is a new setting "Automatically check for new
activity items when viewing the activity stream".

Fixes #5328

Props imath, boonebgorges

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7952 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Clarify syntax related to r7952.

Fixes #5328

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7953 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
POT, generated from r7953

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7954 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Remove redundant activity tests (copypasta from groups)

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7955 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Overhaul the way that individual group objects are cached

The existing implementation was broken in a number of ways. Most critically,
user-specific data (like is_member) was being stored in the persistent object
cache without respect to user.

This refactor excludes the user-specific data from being cached along with the
group object. It also reworks the way that items are keyed in the cache, for
greater consistency with WordPress and the other BP components.

See #5407

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7956 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
POT, generated from r7956

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7957 cdf35c40-ae34-48e0-9cc9-0c9da1808c22