Welcome, Guest
Username: Password: Remember me
JO Facebook Events Pro
  • Page:
  • 1
  • 2

TOPIC: Possibility of module to show links in hyperlinks.

Possibility of module to show links in hyperlinks. 8 years 8 months ago #2428

  • Tim Stöhr
  • Tim Stöhr's Avatar
  • OFFLINE
  • Junior Member
  • Posts: 32
  • Karma: 0
Hey Pham, I just have added a test event to it.... it has a URL.
The administrator has disabled public write access.

Possibility of module to show links in hyperlinks. 8 years 8 months ago #2429

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hello Tim
I think now it work fine. You can check it
Best regards
Bach Pham
The administrator has disabled public write access.

Possibility of module to show links in hyperlinks. 8 years 8 months ago #2430

  • Tim Stöhr
  • Tim Stöhr's Avatar
  • OFFLINE
  • Junior Member
  • Posts: 32
  • Karma: 0
Works perfectly! What did you do? I would like to implement it on my other websites as well...
The administrator has disabled public write access.

Possibility of module to show links in hyperlinks. 8 years 8 months ago #2431

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hello Tim
In file module/mod_jo_facebook_events_pro/tmpl/default.php line 150

echo nl2br($fbevent["description"]);

Please help me changed to

$reg_exUrl = "/((((http|https|ftp|ftps)\:\/\/)|www\.)[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,4}(\/\S*)?)/";
$text = nl2br($fbevent["description"]);
if(preg_match($reg_exUrl, $text, $url)) {
echo preg_replace($reg_exUrl, '<a href="'.$url[0].'" target="_blank">'.$url[0].'</a>', $text);
} else {
echo $text;
}

Best regards
Bach Pham
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.038 seconds