|
#11
|
|||
|
|||
Quote:
PHP Code:
|
#12
|
||||
|
||||
Code:
$s = preg_replace("/\[video=\bhttps?:\/\/www\.youtube\.com\/watch\?v=([\w\d]+?)\]/i","<iframe width=" . "\"420\" " . "height=\"315\"" . "src=\"http://www.youtube.com/embed/" . "\\1\"" . "frameborder=\"0\"" . "allowfullscreen>" . "</iframe>", $s); [video=https://www.youtube.com/watch?v=IfR_DOb1TLI]
__________________
Please Support Majority Report You can contact me on Skype live:phesadent.elect but please let me know first. If you are ever need me desperately then please email me at dan.oak44@gmail.com and I will contact u within a week. Due to free time I'm able to help interested member's with their tracker. Please Note! Depending on your requests I will charge you for my assistance for Tracker installs and mods. All my mods are custom and prices will very depending on the request. I'm able to install any tracker and mods including themes. Please PM me |
#13
|
|||
|
|||
Quote:
doesnt work |
#14
|
|||
|
|||
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", "<object width=\"500\" height=\"410\"><param name=\"movie\" value=\"http://www.youtube.com/v/\\1\"></param><embed src=\"http://www.youtube.com/v/\\1\" type=\"application/x-shockwave-flash\" width=\"500\" height=\"410\"></embed></object>", $s);
__________________
Need HELP!? I can install:
|
#15
|
|||
|
|||
i try http and https
@DND slso your code doesnt work (look screen) Bump: I finally managed to solve the problem Solution Functions.php - find this: Code:
function format_urls($text, $newWindow = false) { return preg_replace("/((https?|ftp|gopher|news|telnet|mms|rtsp):\/\/[^()\[\]<>\s]+)/ei", "formatUrl('\\1', ".($newWindow==true ? 1 : 0).", '', 'faqlink')", $text); Code:
function format_urls($s) { return preg_replace( "/(\A|[^=\]'\"a-zA-Z0-9])((http|ftp|https|ftps|irc):\/\/[^()<>\s]+)/i", "\\1<a target=_blank href=\"http://anonym.to?\\2\">\\2</a>", $s); } Example: [video=https://www.youtube.com/watch?v=njU1O1jCTHY] Code:
$s = preg_replace("/\[video=[^\s'\"<>]*youtube.com.*v=([^\s'\"<>]+)\]/ims", "<object width=\"640\" height=\"480\"><param name=\"movie\" value=\"http://www.youtube.com/v/\\1\"></param><embed src=\"http://www.youtube.com/v/\\1\" type=\"application/x-shockwave-flash\" width=\"640\" height=\"480\"></embed></object>", $s); |
The Following 2 Users Say Thank You to mpx For This Useful Post: | ||
Johnny Utah (28th January 2016),
nicukent (27th January 2016)
|
Tags |
15 , beta , code , nexusphp |
|
|