WordPress.org

Support

Support » Plugins and Hacks » HashBuddy » [Resolved] Hashtags on bbPress only search bbpress

[Resolved] Hashtags on bbPress only search bbpress

  • Hi there,
    Great work on the plugin.

    #test in the Buddypress activity stream links to:
    “/activity/?s=%23test”

    #test in a bbPress topic links to:
    “/forum/search/?bbp_search=%23test”

    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.

    https://wordpress.org/plugins/hashbuddy/

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 ‘[Resolved] Hashtags on bbPress only search bbpress’ is closed to new replies.
Skip to toolbar