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


    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



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

    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 2 years, 8 months ago.

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