Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Link Redirect To Youtube Fix [TTv3]
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Mods Completed

2019-03-16 07:53:45
Updated for V3 credit to Original Author

Fix the redirect problem the with links

functions.php find
// Text
  $s = preg_replace(
  "/\[url=((http|ftp|https|ftps|irc):\/\/[^<>\s]+?)\]((\s|.)+?)\[\/url\]/i",
  "<a href='http://kpaste.net/redir/\\1' target='_blank'>\\3</a>", $s);

  // http://www.example.com
  $s = preg_replace(
  "/\[url\]((http|ftp|https|ftps|irc):\/\/[^<>\s]+?)\[\/url\]/i",
  "<a href='http://kpaste.net/redir/\\1' target='_blank'>\\1</a>", $s);


Replace with
// Text
  $s = preg_replace(
  "/\[url=((http|ftp|https|ftps|irc):\/\/[^<>\s]+?)\]((\s|.)+?)\[\/url\]/i",
  "<a href='\\1' target='_blank'>\\3</a>", $s);

  // http://www.example.com
  $s = preg_replace(
  "/\[url\]((http|ftp|https|ftps|irc):\/\/[^<>\s]+?)\[\/url\]/i",
  "<a href='\\1' target='_blank'>\\1</a>", $s);


Find
function format_urls($s){
    return preg_replace(
     "/(\A|[^=\]'\"a-zA-Z0-9])((http|ftp|https|ftps|irc):\/\/[^<>\s]+)/i",
     "\\1<a href='http://kpaste.net/redir/\\2' target='_blank'>\\2</a>", $s);
}


Replace with
function format_urls($s){
    return preg_replace(
    "/(\A|[^=\]'\"a-zA-Z0-9])((http|ftp|https|ftps|irc):\/\/[^<>\s]+)/i",
    "\\1<a href='\\2' target='_blank'>\\2</a>", $s);
}
2019-05-17 23:05:03
Thanks you !

...even if she is already on v3 ;)
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728