MemHT Portal is a Free PHP CMS and Blog
It permit the creation and the management online of websites with few and easy steps.
It's completely customizable, expandable and suitable for all needs.
A2Hosting
Moderators: Moderators
Page 2/2 < 1 2
Forum RSS feedReply
YouTube videos in Forums
AuthorText
afaaro
Junior Member

Posts: 22
Contributes: 22

Gender: _MALE_
Online: No

Languages: English, Arabic, Somali
Date: 22/08/2010 08:52
Re: YouTube videos in Forums
#post24218
Dear MEM

till now I don't understand I tried but it isn't working this is the way i did

$patterns = array('{{W}}','{{H}}','{{VIDEOID}}'Smile;
$replaces = array($width,$height,$videoid);
$player = str_replace($patterns,$replaces,outCode($config['code']));

$blip = str_replace($patterns,$replaces,outCode($config['blip']));

echo $player or $blip;

thats what I mean.

Many thanks for your support
Delete Edit Quote
 
afaaro
Junior Member

Posts: 22
Contributes: 22

Gender: _MALE_
Online: No

Languages: English, Arabic, Somali
Date: 14/10/2010 05:58
Re: YouTube videos in Forums
#post24384
Is there still any possibilty for that
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

mem

Posts: 7243
Contributes: 4800

Gender: _MALE_
Online: No

Languages: English, Italiano, Македонски, Српски
Date: 14/10/2010 13:55
Re: YouTube videos in Forums
#post24386


Test of
[*yt=425,344]PDztCvdsv5g[/yt*]
Follow me on twitter if you want to be updated on the MemHT 5 development.
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

mem

Posts: 7243
Contributes: 4800

Gender: _MALE_
Online: No

Languages: English, Italiano, Македонски, Српски
Date: 14/10/2010 13:56
Re: YouTube videos in Forums
#post24387
Here you are (in attachment) the inc/inc_bbcode.php file with vimeo and yt tags

Vimeo:
code
[vimeo=400,293]7102089[/vimeo]


YouTube (with url code):
code
[yt=425,344]PDztCvdsv5g[/yt]
Follow me on twitter if you want to be updated on the MemHT 5 development.
Delete Edit Quote
 
afaaro
Junior Member

Posts: 22
Contributes: 22

Gender: _MALE_
Online: No

Languages: English, Arabic, Somali
Date: 14/10/2010 20:07
Re: YouTube videos in Forums
#post24389
Dear mem


I need to figure youtube addon how to add blip.tv embed code same as youtube

Many thanks MEM for your hardwork.
Delete Edit Quote
 
afaaro
Junior Member

Posts: 22
Contributes: 22

Gender: _MALE_
Online: No

Languages: English, Arabic, Somali
Date: 16/10/2010 06:09
Re: YouTube videos in Forums
#post24395
Hello mem

I am here again, is it possible to use for multi streaming player.

I tried this but is not working


$r = substr($videoid, -3, 3);

if ($r=="wmv") {
echo "<div align='left'>";
echo "<embed src='$videoid' flashvars='gcode=482CD697' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/' width='425' height='355' autostart='1' showcontrols='1' showstatusbar='1' showdisplay='0' autorewind='0' enablecontextmenu='0'></embed><br><br>";

}elseif ($r=="mpg") {
echo "<div align='left'>";
echo "<embed src='$videoid' flashvars='gcode=482CD697' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/' width='425' height='355' autostart='1' showcontrols='1' showstatusbar='1' showdisplay='0' autorewind='0' enablecontextmenu='0'></embed><br><br>";

}elseif ($r=="asx") {
echo "<div align='left'>";
echo "<embed src='$videoid' flashvars='gcode=482CD697' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/' width='425' height='355' autostart='1' showcontrols='1' showstatusbar='1' showdisplay='0' autorewind='0' enablecontextmenu='0'></embed><br><br>";


}elseif ($r=="swf") {
echo "<div align='left'>";
echo "<object width='425' height='344'><param name='movie' value='$videoid=en&fs=1'></param><param name='allowFullScreen' value='true'></param><embed src='$videoid' type='application/x-shockwave-flash' width='425' height='344'></embed></object>";

}elseif ($r=="flv") {
echo "<div align='left'>";
echo"<embed src='http://hamarey.com/news/flvplayer.swf?file=$videoid&autoStart=TRUE' width='425' height='355' quality='high' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed>";

}elseif ($r=="avi") {
echo "<div align='left'>";
echo "<embed src='$videoid' flashvars='gcode=482CD697' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/' width='425' height='355' autostart='1' showcontrols='1' showstatusbar='1' showdisplay='0' autorewind='0' enablecontextmenu='0'></embed><br><br>";

}else{
echo "<div align='left'>";
echo '<object type="application/x-shockwave-flash" data="http://blip.tv/scripts/flash/showplayer.swf?file=http%3A//blip.tv/rss/flash/$videoid&autostart=false" width="360" height="318" allowfullscreen="true" id="showplayer"><param name="movie" value="http://blip.tv/scripts/flash/showplayer.swf?file=http%3A//blip.tv/rss/flash/$videoid&autostart=false" /><param name="quality" value="best" /></object>';
}
Edited: 16/10/2010 06:10
Delete Edit Quote
 
afaaro
Junior Member

Posts: 22
Contributes: 22

Gender: _MALE_
Online: No

Languages: English, Arabic, Somali
Date: 21/12/2010 01:13
Re: YouTube videos in Forums
#post24625
Hello MeM

Again still asking same question how to play different providers in youtube addon, the one i mentioned above

thanks for your help
Delete Edit Quote
 
Reply
Page 2/2 < 1 2
Tags Cloud
Twitter updates...
Help MemHT Portal
Navigator
Users Block
Hi Guest
IP: 38.107.179.231

Username
Password
MemHT Wiki
Language
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo