Support » Plugin: HashBuddy » Hashtags on bbPress only search bbpress

  • Resolved Number_6


    Hi there,
    Great work on the plugin.

    #test in the Buddypress activity stream links to:

    #test in a bbPress topic links to:

    I’ll keep looking for what’s responsible for the bbPress hashtags and make the change myself. In that case I’ll post it here.

Viewing 1 replies (of 1 total)
  • I’ve made a temporary fix.

    In /hashbuddy/includes/hashbuddy.php I switched out line 69 for this:
    $content = preg_replace( $pattern, ' <a href="'. $site_url . '/activity/?s=%23' . htmlspecialchars( $hashtag ) . '" rel="nofollow" class="hashtag" id="' . htmlspecialchars( $hashtag ) . '">#'. htmlspecialchars( $hashtag ) .'</a>', $content );

    I don’t know how to call the activity root of Buddypress in that php link, so I put it in raw before “/>s=#23”, as that’s my activity root.

    The temporary fix searches sitewide activity and displays the BP Activity items bbPress generates. Not ideal, but it will do for now.

Viewing 1 replies (of 1 total)
  • The topic ‘Hashtags on bbPress only search bbpress’ is closed to new replies.