![]() |
Quote:
PHP Code:
|
Code:
$s = preg_replace("/\[video=\bhttps?:\/\/www\.youtube\.com\/watch\?v=([\w\d]+?)\]/i","", $s);[video=https://www.youtube.com/watch?v=IfR_DOb1TLI] |
Quote:
doesnt work http://shrani.si/f/38/7a/rgpDloJ/untitled.png |
did u tried to use http instead of https for youtube?
or use this Code:
$s = preg_replace("/\[video=[^\s'\"<>]*youtube.com.*v=([^\s'\"<>]+)\]/ims", "", $s); |
i try http and https
http://shrani.si/f/3C/Kl/4mJiVhYp/untitled.png @DND slso your code doesnt work (look screen) Bump: I finally managed to solve the problem :gum: Solution Functions.php - find this: Code:
function format_urls($text, $newWindow = false) {Code:
function format_urls($s)Example: [video=https://www.youtube.com/watch?v=njU1O1jCTHY] Code:
$s = preg_replace("/\[video=[^\s'\"<>]*youtube.com.*v=([^\s'\"<>]+)\]/ims", "", $s); |
Please help!
I want to ask why when I try to log in nexusphp, give me that error: Error Errno 0 SQL. This is on my localhost. |
| All times are GMT +2. The time now is 00:51. |
Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2026, vBulletin Solutions Inc.