Jump to content

TheDutchBeast

Members
  • Posts

    31
  • Joined

  • Last visited

About TheDutchBeast

  • Birthday 04/16/1991

Profile Information

  • Gender
    Male
  • Location
    Netherlands
  • Interests
    Information Technology and Programming

TheDutchBeast's Achievements

Member

Member (2/5)

1

Reputation

  1. Hello fellow prgrammers. I have a simple question. I am making a system which changes to display a fullscreen youtube link when the database says so. But I cant seem to get the new frame fully shown, just as 1 of 4 screens in a display page. what am i doing wrong with target top? elseif($type == "youtube"){ print "<meta http-equiv=\"refresh\" content=\"15;URL=../uitvoeryoutube.php\"TARGET=\"_top\"\" />"; Let me know! Greetings. Dave Thanks in advance !
  2. I understand that. Do you have a javascript solution, or is this not the place to be for that?
  3. You have any idea how I can do that? So its not possible with php?
  4. Hello follow programmers, I have a little question regarding my PHP code. I now have a perfect working code that takes my frame heigth and width and adjusts the image to the frame. Works great. The issue now is, I have multiple images in my dolder, how can I play them with a delay of say.. 10 seconds? Here is the piecer of my code that matters: Of course I have to count the images in the folder but how do I play them with a short break in it. <?php $img_folder = "../fotos/"; $imgs = dir($img_folder); while ($file = $imgs->read()) { $lengte = (strlen($file)-3); $extentie = substr($file,$lengte,3); //print "extentie $lengte = $extentie <br>"; if($extentie == "jpg" || $extentie == "JPG" || $extentie =="jpeg" || $extentie =="gif" || $extentie =="bmp"){ //print "tada<br>"; $size = getimagesize($img_folder.$file); $hoog = $size[1]; $breed = $size[0]; if(($breed/$screenW)>($hoog/$screenH)){ print"<img src=\"$img_folder$file\" width=\"$screenW\">"; }else{ print"<img src=\"$img_folder$file\" height=\"$screenH\">"; } } } closedir($imgs->handle); } ?> Thanks in advance! Dave
  5. Haha I will dude, thanks. I have found a solution via javascript. Thanks and have a great day!
  6. I am working in an extern company for a school project, So i have a boss here who tells me what to do.
  7. I have no choice, my boss told me so. I have only one week to finish the project for my school, or else I have a huge problem
  8. Dear fellow php programmers. Ik have 4 frames in an page and one contains pictures. I managed to get the pictures fullscreen, yet it does not resize when the index page is shown. It looks like this: And the goal is to make the picture fit perfect, so not half the picture, and adjust to its resolution. How can i fix this? Thanks in advance Dave
  9. Hello fellow programmers, I have a little, yet innoying issue. My code does not send my hidden IFRAME. The row LINK in my database doesn't get completely filled due to my hidden filmdef value. This is my database result: 1325372460 1325459400 12 <iframe width= youtube This has a begin and end timestamp of the youtube link and an ID(12) it also contains the iframe, with the youtube link fileld in in the first page. Everything works properly accept for the iframe passing with the hidden variable. How can I fix this and what am I missing or doing wrong. Heres my code: <?php include '../databaseconnectie/DBconnection2.php'; // connectie toevoegen via include if(isset($_POST['status'])){ $status = $_POST['status']; }elseif(isset($_GET['status'])){ $status = $_GET['status']; }else{ $status = ""; } if(isset($_POST['startmaand'])){ $startmaand = $_POST['startmaand']; }else{ $startmaand = ""; }if(isset($_POST['startdag'])){ $startdag = $_POST['startdag']; }else{ $startdag = ""; }if(isset($_POST['startuur'])){ $startuur = $_POST['startuur']; }else{ $startuur = ""; }if(isset($_POST['startjaar'])){ $startjaar = $_POST['startjaar']; }else{ $startjaar = ""; }if(isset($_POST['startminuut'])){ $startminuut = $_POST['startminuut']; }else{ $startminuut = ""; } if(isset($_POST['eindmaand'])){ $eindmaand = $_POST['eindmaand']; }else{ $eindmaand = ""; } if(isset($_POST['einddag'])){ $einddag = $_POST['einddag']; }else{ $einddag = ""; } if(isset($_POST['eindjaar'])){ $eindjaar = $_POST['eindjaar']; }else{ $eindjaar = ""; } if(isset($_POST['einduur'])){ $einduur = $_POST['einduur']; }else{ $einduur = ""; } if(isset($_POST['eindminuut'])){ $eindminuut = $_POST['eindminuut']; }else{ $eindminuut = ""; } if(isset($_POST['filmdef'])){ $filmdef = $_POST['filmdef']; }else{ $filmdef = ""; } ?> <html> <head> <link rel="stylesheet" href="../opmaak/opmaak.css" type="text/css"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>De Nassau Infosys YOUTUBE Opdracht Invoeren</title> <link rel="stylesheet" href="opmaak.css" type="text/css"> </head> <body> <h1> <img src="http://denassau.nl/templates/nassau-home/images/denassau-logo.jpg" border="0" width="60" height="35"> De Nassau Infosys YOUTUBE Opdracht Invoeren <img src="http://denassau.nl/templates/nassau-home/images/denassau-logo.jpg" border="0" width="60" height="35"> </h1> <?php if($status == ""){ ?> <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" ENCTYPE="multipart/form-data"> <table> <tr> <td> <?php echo "<b>Voer uw youtube link hieronder in:</b>"; ?> </td> </tr> <tr> <td><b>Youtube Link: </b></td> <td> <input size="50" type="text" name="uploadedyoutube" value=""> </td> </tr> <tr> <td> <input type="submit" name="xsubmit" value="Opslaan en Verzenden"> </td> </tr> <input type="hidden" name="status" value="controle"> </table> </form> <?php } if($status == "controle"){ $youtubelink=$_POST['uploadedyoutube']; echo"<b>Uw ingevulde youtube link is</b>: <br />"; echo "$youtubelink<br />"; echo"<b>Hieronder is uw filmpje zichtbaar:<br />"; $pos = strrpos($youtubelink, "="); $link = substr($youtubelink, ($pos+1)); print "link: $link<br>"; $film = "<iframe width=\"560\" height=\"315\" src=\"http://www.youtube.com/embed/".$link."?fs=1&autoplay=1&loop=1\" frameborder=\"0\" allowFullScreen=></iframe>"; $filmdef = '<iframe width="560" height="315" src="http://www.youtube.com/embed/'.$link.'?fs=1&autoplay=1&loop=1" frameborder="0" allowFullScreen=></iframe>'; print "$film"; ?> <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" ENCTYPE="multipart/form-data"> <table> <tr> <td> <input type="submit" name="xsubmit" value="Opslaan en Verzenden"> </td> </tr> <input type="hidden" name="status" value="tijdcontrole"> <?php print "<input type=\"hidden\" name=\"filmdef\" value=\"$filmdef\">"; print "</form>"; } if($status == "tijdcontrole"){ $huidigjaar = date("Y"); $nieuwjaar = $huidigjaar + 1 ; $nieuwjaar2 = $huidigjaar + 2 ; ?> <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" ENCTYPE="multipart/form-data"> <table> <tr> <br> <td>Start tijd:</td> <td> Uur: <select name="startuur"> <?php for ($i=0; $i<=23; $i++) { echo "<option value='$i'>$i</option>"; } ?> </select> Minuten: <select name="startminuut"> <?php for ($i=0; $i<=59; $i++) { echo "<option value='$i'>$i</option>"; } ?> </select> </td> </tr> <tr> <td>Eind tijd:</td> <td> Uur: <select name="einduur"> <?php for ($i=0; $i<=23; $i++) { echo "<option value='$i'>$i</option>"; } ?> </select> Minuten: <select name="eindminuut"> <?php for ($i=0; $i<=59; $i++) { echo "<option value='$i'>$i</option>"; } ?> </select> </td> </tr> <tr> <td> <?php echo "<b>Deze tijden zijn voor de volgende dagen:</b>"; ?> </td> </tr> <tr> <tr> <td>Start datum:</td> <td> Maand: <select name="startmaand" > <option value="1">Januari</option> <option value="2">Februari</option> <option value="3">Maart</option> <option value="4">April</option> <option value="5">Mei</option> <option value="6">Juni</option> <option value="7">Juli</option> <option value="8">Augustus</option> <option value="9">September</option> <option value="10">Oktober</option> <option value="11">November</option> <option value="12">December</option> </select> Dag: <select name="startdag"> <?php for ($i=1; $i<=31; $i++) { echo "<option value='$i'>$i</option>"; } ?> </select> Jaar: <select name="startjaar"> <?php echo "<option value='$huidigjaar'>$huidigjaar</option>"; echo "<option value='$nieuwjaar'>$nieuwjaar</option>"; echo "<option value='$nieuwjaar2'>$nieuwjaar2</option>"; ?> </select> </td> </tr> <td>Eind datum:</td> <td> Maand: <select name="eindmaand"> <option value="1">Januari</option> <option value="2">Februari</option> <option value="3">Maart</option> <option value="4">April</option> <option value="5">Mei</option> <option value="6">Juni</option> <option value="7">Juli</option> <option value="8">Augustus</option> <option value="9">September</option> <option value="10">Oktober</option> <option value="11">November</option> <option value="12">December</option> </select> Dag: <select name="einddag"> <?php for ($i=1; $i<=31; $i++) { echo "<option value='$i'>$i</option>"; } ?> </select> Jaar: <select name="eindjaar"> <?php echo "<option value='$huidigjaar'>$huidigjaar</option>"; echo "<option value='$nieuwjaar'>$nieuwjaar</option>"; echo "<option value='$nieuwjaar2'>$nieuwjaar2</option>"; ?> </select> </td> </tr> <tr> <td> <input type="submit" value="Opslaan en Verzenden"> </td> </tr> <input type="hidden" name="status" value="done"> <?php print "<input type=\"hidden\" name=\"filmdef\" value=\"$filmdef\">"; ?> </form> </table> <?php } if($status == "done"){ ?> <h2> Uw YOUTUBE opdracht wordt opgeslagen </h2> <br /> <b> Uw afspeeltijden Betreffen: </b> <br /> <b>Start tijd betreft:</b> UUR:<?php echo $_POST["startuur"]; ?> MINUUT:<?php echo $_POST["startminuut"]; ?> <br> <b>Eind tijd betreft:</b> UUR:<?php echo $_POST["einduur"]; ?> MINUUT:<?php echo $_POST["eindminuut"]; ?> <br> <b>Start datum betreft:</b> DAG:<?php echo "$startdag"; ?> MAAND:<?php echo $_POST["startmaand"]; ?> JAAR:<?php echo $_POST["startjaar"]; ?>. <br> <b>Eind datum betreft:</b> DAG:<?php echo $_POST["einddag"]; ?> MAAND:<?php echo $_POST["eindmaand"]; ?> JAAR:<?php echo $_POST["eindjaar"]; ?>. <br> <b>Complete afspeelcode:</b> <?php echo "$filmdef"; ?> <br> <?php $begindatum = mktime($startuur, $startminuut, 0, $startmaand, $startdag, $startjaar);//($startuur, $startminuut, 0, $startmaand, $startdag, $startjaar); $einddatum = mktime($einduur, $eindminuut, 0, $eindmaand, $einddag, $eindjaar); //($einduur, $eindminuut, 0, $eindmaand, $einddag, $eindjaar); echo "<br />"; echo "TIMESTAMPS<b>(voor administrator gebruik)</b>:<br />"; echo "<b>BEGIN: </b>$begindatum <br />\n"; echo "<b>EIND : </b>$einddatum<br /> <br />\n"; echo "$begindatum <br />"; echo "$einddatum <br />"; mysql_query("INSERT INTO youtube (starttijd,eindtijd,link,type) VALUES ('$begindatum','$einddatum','$filmdef','youtube')") or die("foutje: ".mysql_error()); } And the error should be somewhere in here: print "<input type=\"hidden\" name=\"filmdef\" value=\"$filmdef\">"; Thanks in advance. Greetings, Dave!
  10. Okay i've found a solution and I'm now busy with php, and in need of some help. I want the link I fill in to end in my embed code but I just cant get it right. The video just stays blank And then for example this as a link : http://www.youtube.com/watch?v=xRx8lmKub_Y Im here so far now: <?php include '../databaseconnectie/DBconnection2.php'; // connectie toevoegen via include if(isset($_POST['status'])){ $status = $_POST['status']; }elseif(isset($_GET['status'])){ $status = $_GET['status']; }else{ $status = ""; } ?> <html> <head> <link rel="stylesheet" href="../opmaak/opmaak.css" type="text/css"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>De Nassau Infosys FOTO Opdracht Invoeren</title> <link rel="stylesheet" href="opmaak.css" type="text/css"> </head> <body> <h1> <img src="http://denassau.nl/templates/nassau-home/images/denassau-logo.jpg" border="0" width="60" height="35"> De Nassau Infosys YOUTUBE Opdracht Invoeren <img src="http://denassau.nl/templates/nassau-home/images/denassau-logo.jpg" border="0" width="60" height="35"> </h1> <?php if($status == ""){ ?> <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" ENCTYPE="multipart/form-data"> <table> <tr> <td> <?php echo "<b>Voer uw youtube link hieronder in:</b>"; ?> </td> </tr> <tr> <td><b>Youtube Link: </b></td> <td> <input size="50" type="text" name="uploadedyoutube" value=""> </td> </tr> <tr> <td> <input type="submit" name="xsubmit" value="Opslaan en Verzenden"> </td> </tr> <input type="hidden" name="status" value="controle"> </table> </form> <?php } if($status == "controle"){ $youtubelink=$_POST['uploadedyoutube']; echo"<b>Uw ingevulde youtube link is</b>: <br />"; echo "$youtubelink<br />"; echo"<b>Hieronder is uw filmpje zichtbaar:<br />"; ?> <object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/OdT9z-JjtJk&autoplay=1"></param> <embed src="<?php $youtubelink ?>" type="application/x-shockwave-flash" width="425" height="350"> </embed> </object> <?php }
  11. You are partially right indeed. And I apologize, is there any way I can post this on the forum or ask you guys for help"on this subject?
  12. Fellow programmers! I have a simple yet for me inpossible question. I have an embedded youtube video and I added autoplay, but now I want it to play fullscreen automatically without the press of a button. I want to open the page and KABOOM, youtube movie fullscreen and autoplay. My question is how do I add the fullscreen function? Here's my code so far: <html> <head> <title> Youtube! </title> </head> <body> <object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/OdT9z-JjtJk&autoplay=1"></param><embed src="http://www.youtube.com/v/OdT9z-JjtJk&autoplay=1" type="application/x-shockwave-flash" width="425" height="350"></embed></object> </body> </html>
  13. I have a picture display code. But the picture is not vertically aligned and I just can't get it to work. What am I doing wrong? One of the last rules contains the vallign; print"<img src=\"$foto\" width=\"$screenW\" heigth=\"$screenH\" valign=\"middle\">"; Thanks in advance. Dave <?php include '../databaseconnectie/DBconnection2.php'; // connectie toevoegen via include if(isset($_POST['check'])){ $check = $_POST['check']; } elseif(isset($_GET['check'])){ $check = $_GET['check']; } else { $check = "";} if(isset($_POST['screenW'])){ $screenW = $_POST['screenW']; } elseif(isset($_GET['screenW'])){ $screenW = $_GET['screenW']; } else { $screenW = "";} if(isset($_POST['screenH'])){ $screenH = $_POST['screenH']; } elseif(isset($_GET['screenH'])){ $screenH = $_GET['screenH']; } else { $screenH = "";} if(isset($_POST['teller'])){ $teller = $_POST['teller']; } elseif(isset($_GET['teller'])){ $teller = $_GET['teller']; } else { $teller = "";} if(isset($_POST['cycle'])){ $cycle = $_POST['cycle']; } elseif(isset($_GET['cycle'])){ $cycle = $_GET['cycle']; } else { $cycle = "";} if(isset($_POST['seconde'])){ $seconde = $_POST['seconde']; } elseif(isset($_GET['seconde'])){ $seconde = $_GET['seconde']; } else { $seconde = "";} if(isset($_POST['eindtijd'])){ $eindtijd = $_POST['eindtijd']; } elseif(isset($_GET['eindtijd'])){ $eindtijd = $_GET['eindtijd']; } else { $eindtijd = "";} if(isset($_POST['arrayfoto'])){ $arrayfoto = $_POST['arrayfoto']; $fotoresultaat = explode("-,-,-,",$arrayfoto); } elseif(isset($_GET['arrayfoto'])){ $arrayfoto = $_GET['arrayfoto']; $fotoresultaat = explode("-,-,-,",$arrayfoto); } else { $fotoresultaat = "";} ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251" /> <?php if($check == "" && $teller==""){ ?> <form name="detect" method='post' action=" <?php echo $_SERVER['PHP_SELF']; ?>"> <input type='hidden' name='screenW' value='screenW'/> <input type='hidden' name='screenH' value='screenH'/> <input type='hidden' name='check' value='check'/> </form> <SCRIPT language="javascript"> var screenW = 640, screenH = 480; var Check = "check"; if (parseInt(navigator.appVersion)>3) { screenW = screen.width; screenH = screen.height; } else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)==3 && navigator.javaEnabled() ) { var jToolkit = java.awt.Toolkit.getDefaultToolkit(); var jScreenSize = jToolkit.getScreenSize(); screenW = jScreenSize.width; screenH = jScreenSize.height; } window.document.detect.screenW.value=screenW; window.document.detect.screenH.value=screenH; window.document.detect.check.value=Check; window.document.forms['detect'].submit(); </SCRIPT> <?php } $tijd = time(); if($teller ==""){ $result = mysql_query("SELECT * FROM opdrachten WHERE starttijd < '$tijd' AND eindtijd > '$tijd' AND type = 'foto'") or exit(mysql_error()); while ($row = mysql_fetch_array($result)) { $fotoresultaat[] = $row['bestand']; $leeg = "iets"; $starttijd = $row['starttijd']; $eindtijd = $row['eindtijd']; $cycle = "nee"; $seconde ="10"; $teller=0; } } if($cycle=="nee"){ $aantal = count($fotoresultaat); if($tijd<$eindtijd){ if($teller < $aantal){ $foto = $fotoresultaat[$teller]; $teller++; $arrayfoto = implode('-,-,-,',$fotoresultaat); print "<meta http-equiv=\"refresh\" content=\"$seconde;URL=fotoshow.php?teller=$teller&&eindtijd=$eindtijd&&cycle=$cycle&&seconde=$seconde&&arrayfoto=$arrayfoto&&screenW=$screenW&&screenH=$screenH\" />"; }else{ $foto = $fotoresultaat[0]; $teller=1; $arrayfoto = implode('-,-,-,',$fotoresultaat); print "<meta http-equiv=\"refresh\" content=\"$seconde;URL=fotoshow.php?teller=$teller&&eindtijd=$eindtijd&&cycle=$cycle&&seconde=$seconde&&arrayfoto=$arrayfoto&&screenW=$screenW&&screenH=$screenH\" />"; } }else{ print "<meta http-equiv=\"refresh\" content=\"0;URL=../index.php\" />"; } } elseif($cycle == "ja"){ } else{ print "<meta http-equiv=\"refresh\" content=\"0;URL=../index.php\" />"; } ?> <title>Image</title> <?php ?> <style type="text/css"> html { overflow-x: hidden; overflow-y: auto; background-color : orange; } img{ margin-left: -8px; margin-top: -8px; align : center; } </style> </head> <body> </body> </html> <?php if($cycle !=""){ print"<img src=\"$foto\" width=\"$screenW\" heigth=\"$screenH\" valign=\"middle\">"; } ?> </body> </html>
  14. My boss just told me another solution. Passing array's via a session. Any one familiar with this?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.