[buddypress-trac] [BuddyPress] #3622: bp_get_sitewide_activity_feed_link()
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Sun Sep 25 17:14:33 UTC 2011
#3622: bp_get_sitewide_activity_feed_link()
-------------------------------------------------+-------------------------
Reporter: webraket | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 1.5.1
Component: Activity | Version: 1.5
Severity: minor | Resolution:
Keywords: has-patch reporter-feedback needs- |
testing |
-------------------------------------------------+-------------------------
Comment (by webraket):
''Do you have the activity component disabled?''
No, it's enabled.
''Have you associated a WP page with the Activity component (Dashboard >
BuddyPress > Pages)?''
Never done this myself, but I guess those pages where created
automatically after upgrading from 1.2.9.
I can see those items at dashboard->all_pages on the root/main blog.
Please note I hook to the "init" function, the plugin is network-wide
enabled and executes even if no buddypress component is loaded (maybe this
causes problems?)
{{{
<?php
class BP_PubSubhubbub {
public function __construct(){
$this->hub_urls[] = "http://pubsubhubbub.appspot.com";
//$this->feed_urls[] =
bp_get_sitewide_activity_feed_link();
$this->feed_urls[] = network_home_url().'activity/feed/';
add_action('bp_activity_sitewide_feed_head',
array(&$this,'add_rss_link_tag'));
add_action('publish_post', array(&$this,'publish_to_hub'),
999);
}
function add_rss_link_tag() {
foreach ($this->hub_urls as $hub_url) {
echo '<atom:link rel="hub" href="'.$hub_url.'"/>';
}
}
function publish_to_hub($post_id) {
//
}
private function http_post($url, $post_string) {
//
}
}
function Init_BP_PubSubHubbub(){
$oBP_PubSubHubbub = new BP_PubSubHubbub;
}
add_action('init', 'Init_BP_PubSubHubbub');
?>
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3622#comment:2>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list