bbcodes
ik zoek me nog steeds wezenloos naar een aantal bbcodes
wie kan me helpen?
hoe moet zon embed code worden geschreven voor 18+ videosite's?
of wie heeft ze toevallig liggen?
betreft 3 xxxrated videosite's waarvan ik de bbcode wil hebben om video's in te voeren op mn forum.
wie wil weten welke site pm me maar ff.
lijkt me niet zon goed idee die site's hier te melden. ;-)
Ik kan mijn code wel delen waarmee ik Youtube en Google Video kan embedden op mijn site:
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
// youtube
$patterns[] = "#\[video\]http://www.youtube.com/watch\?v=(.*)\[/video\]#Smi";
$replacements[] = '<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/\1&hl=nl_NL&fs=1&hd=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/\1&hl=nl_NL&fs=1&hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="350"></embed></object>';
$patterns[] = "#\[video\]http://youtube.com/watch\?v=(.*)\[/video\]#Smi";
$replacements[] = '<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/\1&hl=nl_NL&fs=1&hd=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/\1&hl=nl_NL&fs=1&hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="350"></embed></object>';
$patterns[] = "#\[video\]http://nl.youtube.com/watch\?v=(.*)\[/video\]#Smi";
$replacements[] = '<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/\1&hl=nl_NL&fs=1&hd=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/\1&hl=nl_NL&fs=1&hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="350"></embed></object>';
//video tags google
$patterns[] = "#\[video\]http://video.google.com/videoplay\?docid=(.*)\[/video\]#Smi";
$replacements[] = '<object width="425" height="350"><param name="movie" value="http://video.google.com/googleplayer.swf?docId=\1"></param><param name="wmode" value="transparent"></param><embed src="http://video.google.com/googleplayer.swf?docId=\1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>';
$patterns[] = "#\[video\]http://video.google.nl/videoplay\?docid=(.*)\[/video\]#Smi";
$replacements[] = '<object width="425" height="350"><param name="movie" value="http://video.google.nl/googleplayer.swf?docId=\1"></param><param name="wmode" value="transparent"></param><embed src="http://video.google.com/googleplayer.swf?docId=\1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>';
$waarde = preg_replace($patterns, $replacements, $waarde);
?>
// youtube
$patterns[] = "#\[video\]http://www.youtube.com/watch\?v=(.*)\[/video\]#Smi";
$replacements[] = '<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/\1&hl=nl_NL&fs=1&hd=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/\1&hl=nl_NL&fs=1&hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="350"></embed></object>';
$patterns[] = "#\[video\]http://youtube.com/watch\?v=(.*)\[/video\]#Smi";
$replacements[] = '<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/\1&hl=nl_NL&fs=1&hd=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/\1&hl=nl_NL&fs=1&hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="350"></embed></object>';
$patterns[] = "#\[video\]http://nl.youtube.com/watch\?v=(.*)\[/video\]#Smi";
$replacements[] = '<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/\1&hl=nl_NL&fs=1&hd=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/\1&hl=nl_NL&fs=1&hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="350"></embed></object>';
//video tags google
$patterns[] = "#\[video\]http://video.google.com/videoplay\?docid=(.*)\[/video\]#Smi";
$replacements[] = '<object width="425" height="350"><param name="movie" value="http://video.google.com/googleplayer.swf?docId=\1"></param><param name="wmode" value="transparent"></param><embed src="http://video.google.com/googleplayer.swf?docId=\1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>';
$patterns[] = "#\[video\]http://video.google.nl/videoplay\?docid=(.*)\[/video\]#Smi";
$replacements[] = '<object width="425" height="350"><param name="movie" value="http://video.google.nl/googleplayer.swf?docId=\1"></param><param name="wmode" value="transparent"></param><embed src="http://video.google.com/googleplayer.swf?docId=\1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>';
$waarde = preg_replace($patterns, $replacements, $waarde);
?>
Gewijzigd op 27/05/2012 01:14:22 door - Ariën -
lijkt erop dat sommige tubes andere codes gebruiken dan waar youtube mee werkt.
Gewijzigd op 27/05/2012 17:34:54 door - Ariën -
ik stuur je even een pb met de adressen
Ik ga niet zomaar op 18+ sites kijken.....
Dus geef a.u.b. een gecensureerde HTML-code van zo'n video, en ik kan eens kijken.
Gewijzigd op 27/05/2012 18:00:14 door - Ariën -
oke geen probleem ik ga zo even kijken hoe ik datr het beste kan doen