Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Dion Pitsilos Friend
    #968317

    Hi,

    Can you please let me know how I can set all twitter links to open in a new window?

    We are using the latest JA Twitter Module for J25 & J3.4 on the latest Joomla 3.6.2

    Thanks,

    Dion.

    Dion Pitsilos Friend
    #968378
    This reply has been marked as private.
    Saguaros Moderator
    #969016

    Hi Dion,

    You will need to tweak the module a bit:

    • Open the file: modules/mod_jatwitter/helper.php
    • Look for this line of code:
      $description = preg_replace('#(^|[\n ])([\w]+?://[\w]+[^ \"\n\r\t<]*)#i', '$1<a  href="$2" >$2</a>', $description);

      change it to:

      
      $description = preg_replace('#(^|[\n ])([\w]+?://[\w]+[^ \"\n\r\t<]*)#i', '$1<a target="_blank" href="$2" >$2</a>', $description);`

    Hope this helps.

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

This topic contains 2 replies, has 2 voices, and was last updated by  Saguaros 8 years, 2 months ago.

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