View Single Post
  #1  
Old 7th March 2010, 17:40
lovebeer's Avatar
lovebeer lovebeer is offline
Senior Member
 
Join Date: May 2009
Romania
Posts: 91
Default Show/Hide Sample in details.php problem
Hi,
I tried to change the show/hide from the poster to show/hide the youtube sample but don't works, now the youtube sample don'w shows, there is just the show/hide icon but don't works

Here is my code from the poster:
Code:
if (!empty($row["poster"]))
tr("Poster", "<a href=\"javascript: klappe_news('a".$array['id']."')\"><img border=\"0\" src=\"pic/plus.gif\" id=\"pica".$array['id']."\" alt=\"Show/Hide\"></a>&nbsp;<u>[Show/Hide]</u><div id=\"ka".$array['id']."\" style=\"display: none;\"><p><img src='".$row["poster"]."' border=\"1\" width=\"400\" ></div>", 1);
else
tr("Poster:", "<img src=poster.jpg>", 1);
Here is the code that Ichanged:
Code:
if (!empty($row["tube"]))
tr("Sample:", "<a href=\"javascript: klappe_news('a".$array['id']."')\"><img border=\"0\" src=\"pic/plus.gif\" id=\"pica".$array['id']."\" alt=\"Show/Hide\"></a>&nbsp;<u>[Show/Hide]</u><div id=\"ka".$array['id']."\" style=\"display: none;\"><embed src='". str_replace("watch?v=", "v/", htmlspecialchars($row["tube"])) ."' type=\"application/x-shockwave-flash\" width=\"500\" height=\"410\"></embed></div>", 1);
else

tr("Sample:", "Sorry, no sample for this!", 1);
Sorry for my english!
__________________

Reply With Quote