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 7 months ago #2418

  • Tim Stöhr
  • Tim Stöhr's Avatar
  • OFFLINE
  • Junior Member
  • Posts: 32
  • Karma: 0
Hey Pham,

How come that the module does not recognise any links as hyperlinks? If I put in links in the description of the event on FB, then it comes out on the website without the hyperlink (ie only the writing). Would it be possible that it recognises hyperlinks?

Thanks

Bye

Tim
The administrator has disabled public write access.

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

  • 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
Last Edit: 8 years 7 months ago by Super User.
The administrator has disabled public write access.

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

  • Tim Stöhr
  • Tim Stöhr's Avatar
  • OFFLINE
  • Junior Member
  • Posts: 32
  • Karma: 0
Hey Pham, the code you mentioned broke the whole website... Could you have a look at it again?
The administrator has disabled public write access.

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

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hello Tim
Can you send me URL site and Account FTP via contact form? So we can easy check and help you
Best regards
Bach Pham
The administrator has disabled public write access.

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

  • Tim Stöhr
  • Tim Stöhr's Avatar
  • OFFLINE
  • Junior Member
  • Posts: 32
  • Karma: 0
Hey Mate, could you use the ones for saigon that I sent you?
The administrator has disabled public write access.

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

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hello
In saigon.international-friends.net/index.php/events we not see have URL in description. Can you added a URL in Facebook events? So we can check it
Best regards
Bach Pham
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.058 seconds