Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Kodel man meto bbcode klaidas kai ijungi

Parašė remuxs· 2015 Lap. 19 21:11:39
#1

pvz parasai i saukykla ka nor ir meta

PERŽIŪRĖTI FAILĄ INCLUDES/BBCODES/URL_BBCODE_INCLUDE.PHP
Detalės
Klaida: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead Eilutė: 22
Failas: includes/bbcodes/url_bbcode_include.php Puslapyje: /new150.php
Vartotojas-Lygis: 103 IP: 78.62.145.39
Data: November 19 2015 21:50:58 Statusas:

Į viršų
Išeities kodas (Eilutė: 12 - 25)
12 | modify it under the terms of this license which you
13 | can read by viewing the included agpl.txt or online
14 | at www.gnu.org/licenses/agpl.html. Removal of this
15 | copyright header is strictly prohibited without
16 | written permission from the original author(s).
17 +--------------------------------------------------------*/
18 if (!defined("IN_FUSION")) { die("Access Denied"); }
19
20 //Url BBCode with auto triming long links
21 $text = preg_replace('#\[url\]([\r\n]*)(http://|ftp://|https://|ftps://)([^\s\'\"]*?)([\r\n]*)\[/url\]#sie', "'<a href=\'\\2\\3\'
target=\'_blank\' title=\'\\2\\3\'>'.trimlink('\\2\\3', 20).(strlen('\\2\\3')>30?substr('\\2\\3', strlen('\\2\\3')-10,
strlen('\\2\\3')):'').'</a>'", $text);
22 $text = preg_replace('#\[url\]([\r\n]*)([^\s\'\"]*?)([\r\n]*)\[/url\]#sie', "'<a href=\'http://\\2\' target=\'_blank\'
title=\'\\2\'>'.trimlink('\\2', 20).(strlen('\\2')>30?substr('\\2', strlen('\\2')-10, strlen('\\2')):'').'</a>'", $text);

23 $text = preg_replace('#\[url=([\r\n]*)(http://|ftp://|https://|ftps://)([^\s\'\"]*?)\](.*?)([\r\n]*)\[/url\]#si', '<a href=\'\2\3\'
target=\'_blank\' title=\'\2\3\'>\4</a>', $text);
24 $text = preg_replace('#\[url=([\r\n]*)([^\s\'\"]*?)\](.*?)([\r\n]*)\[/url\]#si', '<a href=\'http://\2\' target=\'_blank\' title=\'\2\'>\3</a>',
$text);
25



nesuprantu i kiti kodai meto klaidas tik ziurint kur ka rasai tai url code tai email code