Weedpacket;10926436 wrote:Have you tried it?
Yes I have tried it... this is what I have..
<?php
$lines = file('modules/mod_test/files.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
foreach($lines as $line)
{
list($ol, $pic, $vid, $title) = explode('-', $line);
$n++;
echo '<a href="#overlay" rel="#overlay'. $ol.'"><img src="/modules/mod_test/img/'. $pic .'" alt="picture here" /></a> '. $title.' <br />';
}
?>
<!-- overlays for videos -->
<?php
$lines = file('modules/mod_test/files.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
foreach($lines as $line)
{
list($ol, $pic, $vid, $title) = explode('-', $line);
echo "<div class=\"overlay\" id=\"overlay$ol\">";
echo "<a href='http://localhost/clips/$vid'>";
echo "</div>";
}
?>
It shows up fine and the output looks good but it won't fire... the video overlay pops up but no video and won't close the overlay when the X is clicked...
I had it line by line like this...
<?php
If ($v1=="1") {
echo '<a href="#overlay1" rel="#overlay1"><img src="/modules/mod_test/img/'. $pic1 .'" alt="triggers overlay" /></a> '. $title1.' '. $des1 .'<br>
';
}
?>
and the overlay fired and showed the video fine but it was limited to only 10.. I wanted unlimited... so I am trying to write to be able to show as many as I want..
With $v1 being a variable to tell it whether is was on or off... won't need this if I write for unlimited as it will only show however many I put in the files.txt file.
Any help would be great!! Thanks.