Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • spheredesign Friend
    #199669

    Hi there,

    I have a small problem, the hash tags for each tweet displayed are linking through to the twitter search page (https://twitter.com/search-home) rather than to the search results for that particular hash tag.

    How can I fix that?

    Many thanks,
    Sarah

    Thanh Nguyen Viet Friend
    #542395

    Hello,

    Could you please explain more detail about your issue? It is easier for us if you send me link to the page where we can check this issue.

    spheredesign Friend
    #542715

    Hi,

    Sure, you can see the module on the homepage, right-hand column here: http://www.telcoexec.com

    When you click on a hash tag say #telecoms for example (see screenshot: http://screencast.com/t/FqbARrLpeI) they open the generic twitter search page instead of the correct hash tag search results page (https://twitter.com/hashtag/telecoms?src=hash).

    So my question is how can I get the hash tag links to open the correct page? Hope that’s a bit clearer.

    Many thanks,
    Sarah

    Thanh Nguyen Viet Friend
    #542788

    Hello,

    To resolve this issue, please follow these steps :
    – Open the file:
    modules/mod_jatwitter/helper.php

    – Find the code line:
    [PHP]$description = preg_replace(‘#(^|[n ])#([^ “tnr<:]*)#i’, ‘$1<a target=”_blank” href=”https://twitter.com/search?q=#$2&src=hash” >$2</a>’, $description);[/PHP]

    – And replace it with:
    [PHP]$description = preg_replace(‘#(^|[n ])#([^ “tnr<:]*)#i’, ‘$1<a target=”_blank” href=”https://twitter.com/hashtag/$2?src=hash” >$2</a>’, $description);[/PHP]

    spheredesign Friend
    #542823

    Excellent! Thank you 🙂

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 2 voices, and was last updated by  spheredesign 9 years, 9 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum