[resolved] Hashtags on bbPress only search bbpress (2 posts)

  1. Number_6
    Posted 2 years ago #

    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.


  2. Number_6
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • HashBuddy
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.