Witam,
mam problem dotyczący tego kodu, a dokładniej podkreślonego elementu:
<?php $jestfilm = get_post_meta($post->ID,'flv', true); ?>
<?php if ($jestfilm != "") echo '
<script type="text/javascript">
document.getElementById("player1").style.display = "";
var s1 = new SWFObject("http://www.hardwork.home.pl/pl/wp-content/plugins/flv-embed/flvplayer.swf","player1","816","379","6");
s1.addParam("wmode","transparent");
s1.addParam("allowscriptaccess","always");
s1.addParam("allowfullscreen","false");
s1.addVariable("height","379");
s1.addVariable("width","816");
s1.addVariable("file","' ?><?php echo "$jestfilm" ?><?php echo '"); s1.addVariable("link","' ?><?php echo "$jestfilm" ?><?php echo '"); s1.write("player1");
</script>' ?>
$jestfilm jest ścieżką do pliku. Powyższy kod wyświetla się tak:
<?php $jestfilm = get_post_meta($post->ID,'flv', true); ?>
<?php if ($jestfilm != "") echo '
<script type="text/javascript">
document.getElementById("player1").style.display = "";
var s1 = new SWFObject("http://www.hardwork.home.pl/pl/wp-content/plugins/flv-embed/flvplayer.swf","player1","816","379","6");
s1.addParam("wmode","transparent");
s1.addParam("allowscriptaccess","always");
s1.addParam("allowfullscreen","false");
s1.addVariable("height","379");
s1.addVariable("width","816");
s1.addVariable("file","http://www.film.pl/film.flv
");
s1.addVariable("link","http://www.film.pl/film.flv
");
s1.write("player1");
</script>' ?>
A powinien wyświetlać się tak:
<?php $jestfilm = get_post_meta($post->ID,'flv', true); ?>
<?php if ($jestfilm != "") echo '
<script type="text/javascript">
document.getElementById("player1").style.display = "";
var s1 = new SWFObject("http://www.hardwork.home.pl/pl/wp-content/plugins/flv-embed/flvplayer.swf","player1","816","379","6");
s1.addParam("wmode","transparent");
s1.addParam("allowscriptaccess","always");
s1.addParam("allowfullscreen","false");
s1.addVariable("height","379");
s1.addVariable("width","816");
s1.addVariable("file","http://www.film.pl/film.flv");
s1.addVariable("link","http://www.film.pl/film.flv");
s1.write("player1");
</script>' ?>
Rozwiązanie jest prawdopodobnie banalne, ale mnie przerasta
Z góry serdecznie dziękuję za pomoc.
Pozdrawiam,
Sebastian