Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Free Torrent Source
Reply
  #1  
Old 3rd February 2010, 13:29
Storm6699 Storm6699 is offline
Member
 
Join Date: Dec 2009
Croatia
Posts: 9
Default Youtube Embed link in forum
how to make that when I put the youtube embed link in the forum post show youtube video window
and not only embed code

PHP Code:
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/yGSkjGJAyVM&hl=en_US&fs=1&"></param><param name="allowFullScreen" value="true"></param>

<
param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/yGSkjGJAyVM&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>
When you put youtube embed link to the forum instead to show youtube window shows me only the code
Reply With Quote
  #2  
Old 4th February 2010, 17:34
elvira's Avatar
elvira elvira is offline
Senior Member
 
Join Date: Jan 2008
Slovenia
Posts: 172
Default
open include/globalfuctions.php

find
PHP Code:
reset$smilies ) ; 
add before this
PHP Code:
// Video tag [video=url]
// YouTube Vids
$s preg_replace("/\[video=[^\s'\"<>]*youtube.com.*v=([^\s'\"<>]+)\]/i""<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);
// Google Vids
$s preg_replace("/\[video=[^\s'\"<>]*video.google.com.*docid=(-?[0-9]+).*\]/i""<embed style=\"width:500px; height:410px;\" id=\"VideoPlayback\" align=\"middle\" type=\"application/x-shockwave-flash\" src=\"http://video.google.com/googleplayer.swf?docId=\\1\" allowScriptAccess=\"sameDomain\" quality=\"best\" bgcolor=\"#ffffff\" scale=\"noScale\" wmode=\"window\" salign=\"TL\"  FlashVars=\"playerMode=embedded\"> </embed>"$s); 
Reply With Quote
The Following User Says Thank You to elvira For This Useful Post:
Storm6699 (4th February 2010)
  #3  
Old 4th February 2010, 23:18
Storm6699 Storm6699 is offline
Member
 
Join Date: Dec 2009
Croatia
Posts: 9
Default
now working
THNX elvira :-D

Last edited by Storm6699; 5th February 2010 at 10:45.
Reply With Quote
Reply

Tags
embed , forum , link , youtube

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Magnet link integration HelixiR Torrent Trader 2 15th February 2010 12:01
[FTS 1.1] Make usernames by whats going on a clickable link Edgein Mods & Themes 1 28th December 2009 11:56
embed radio wMan Community Cafe 0 16th August 2009 19:27
download link tunad TBDev 2 28th December 2008 14:34
Hard link count is wrong Fynnon Community Cafe 1 4th November 2008 18:55



All times are GMT +2. The time now is 20:39. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.