WordPress.org

Forums

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

  1. Number_6
    Member
    Posted 9 months ago #

    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/

  2. Number_6
    Member
    Posted 9 months 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.

Reply

You must log in to post.

About this Plugin

  • HashBuddy
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.