Jump to content

Search the Community

Showing results for tags 'youtube'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 8 results

  1. hey w3s... so i have this code: <div class="container-fluid"> <div class="row"> <div class="col-md-12"> <h2 class="font-weight-bold text-center">WORK</h2> <div class="border"></div> <br /> </div> </div> </div> <div class="container main_wrapper"> <section> <div class="container"> <div class="row" id="work-grid"> <?php $query_1 = "SELECT * FROM admvideo ORDER BY video_id DESC"; $result_1 = mysqli_query($dblink, $query_1) or die(mysqli_error($dblink)); if( mysqli_num_rows($result_1) > 0 ) { while( $row_1 = mysqli_fetch_array($result_1) ) { $video_id = $row_1['video_id']; $video_title = $row_1['video_title']; $video_link = $row_1['video_link']; $video_director = $row_1['video_director']; $video_text = $row_1['video_text']; ?> <div class="col-sm-4 col-xs-12 work_panels"> <div class="panel panel-default Panel_ModalVideoID-<?php echo $video_id; ?>"> <div class="panel-thumbnail"> <a href="#" title="Video" class="thumb"> <img src="https://img.youtube.com/vi/<?php echo $video_link; ?>/0.jpg" class="img-responsive img-rounded" data-toggle="modal" data-target=".modalVideo"> </a> </div> <div class="panel-body"> <p class="work-name"><?php echo $video_director; ?></p> <p class="work-video-text"><?php echo $video_text; ?></p> </div> </div> </div> <?php } } else { // hvis der ikke er EN række i udtrækket, vises en fejlbesked echo 'Ingen videoer at vise i nu.'; } ?> </div> </div> </section> <div class="modal fade customModal_1 modalVideo" tabindex="-1" role="dialog" aria-labelledby="modalVideo_LabelledBy" aria-hidden="true"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> <h3 class="modal-title customModal_2">Video Title 1</h3> <button class="close" type="button" data-dismiss="modal">×</button> </div> <div class="modal-body"></div> <div class="modal-footer"> <h4 class="customModal_3">Video Title 2</h4> <p class="customModal_4"> Video in here. </p> <!--<iframe width="100%" height="350" src="" frameborder="0" allowfullscreen></iframe>--> </div> </div> </div> </div><!-- //.modal-Youtube_1 --> </div> <script> $('[class^=Panel_ModalVideoID-]').click(function(event) { event.preventDefault(); // Step 1 - The Variables //----------------------------------------------- var e = $(this); // e = event of the function happening via class/id "class^=Panel_ModalVideoID-*" (working?) var modal = $('.customModal_1'); var modalTitle = $('.customModal_2'); var videoTitle = $('.customModal_3'); var videoEmbed = $('.customModal_4'); var modal_body = $('.modal-body'); var INSERTDATA_modalTitle; $('a.thumb').click(function() { INSERTDATA_modalTitle = $(this).Attr( 'title' ); }); //var INSERTDATA_modalTitle = e.$('a.thumb').Attr("title"); // working? // Step 2 - Clear different areas //----------------------------------------------- modal_body.empty(); // empty area // Step 3 - insert data into different areas //----------------------------------------------- $(modalTitle).html(INSERTDATA_modalTitle); // Step 4 - show the modal //----------------------------------------------- $(".customModal_1").modal({ show: true; }); }); </script> Currently i'm using bootstrap 4 and trying to make a modal appear. So far it is working BUT i am trying to edit the following inside of the modal: Modal title, and the 2 <p> items inside modal-footer for youtube embed and youtube title etc. All of the replacements at different areas should come from the "while loop" at the upper of the page coding with php. Can you help me somehow? Not sure what to do with js/jquery really, a little bit of a newbie... even after years, i still dont get much of it :/ Hoping you guys can help me out a bit. If more information is needed, please ask. Using jQuery 3.2.1, included ALL of the bootstrap 4 bundle etc, so i know that is not the problem here. Maybe it is the way i am using my JS/jQuery code. Thanks a lot. And ohh... the title should be from the "a.thumb -> title attribute", saying video... will edit it later with php so that it will be dynamic. Hope you can help. Thanks!
  2. Help me Obi-Wan you are my only hope. I am trying to and an embedded YouTube video into an email that I am sending out to clients. The issue I have is that when the video doesnt render (pretty much all email clients) I cannot get the background image to display. So far I have tried <iframe>, <object> and now I am trying <embed>. From what I understand Gmail doesnt support iframe or object tags, which has left me attempting to use embed. I am aware that YouTube videos will not appear in the majority of email clients, which is why I am trying to specify that a fall back image appears, currently it is just showing a blank space where the image should be! I have attached the code I have been using and would appreciate any help I can get! aza video.html
  3. I used PHP MyAdmin to create a database catalog now I want to add a Youtube video to each item but I don't know how because is a dynamic database. So how do I make it know all video come from Youtube and how do I make to configure the register form so when I add a new item it know what video it is? Does is true when I add a new item I only insert the video code, not the entire address? How do I do that? I'm using Dreamweaver CC+PHP.
  4. hey i wanted to add to my site a background music from youtube so i did and its working fine but there only one problem i have no idea why but the youtube player leaving me a black line on the top of the page for some reason i tried to use some factions and some codes to remove it but i couldnt even when i putted the width and height to 1 or 0 its still stays the same heres my site http://niggazone.allalla.com/loadingtaiv/loading.html (look at the top theres a black line there and the thing is its making my page scroll) and heres the code that im using var gtavid='<div class="video"><iframe width="1" height="1" src="http://www.youtube.com/watch?v=S70-qOCg1FY?hd=1&autoplay=1&loop=1&playlist=S70-qOCg1FY" frameborder="0" allowfullscreen></iframe></div>';document.write(gtavid);
  5. I currently have a javascript slider in place. It's on autoplay at 5 seconds per slide. The second slide has an iframe youtube video.Unfortunately, if I click play, 5 seconds later, the slider autplays to the next slide.Is there any way to get the slider to recognize the video is playing, for example? Or are there any other ways around this that anyone can think of?The JS code is simple, I'm using http://jquery.malsup.com/cycle/ for my slider. <script type='text/javascript'> jQuery('#slider-1').cycle({ next: '#next-1', prev: '#prev-1', fx: 'fade', timeout: 30000000, pause: 1, pager: '#slider-nav-pager-1', height: '433px', width: '960px' })</script>If you need more code, let me know. It's just a simple iframe.Thanks!
  6. Hello Friends, Below is the URL through which i can upload upload single video on youtube.<removed> I want to multiple upload video at the time using drag & drop or multiple file upload. As i have obeserved when we upload video then on completion of that youtbe on back url gives video id. so we can see. Is it possible for multiple videos? Below is the script <?php$youtube_email = "a@a.com"; // Change this to your youtube sign in email.$youtube_password = "XXXXX"; // Change this to your youtube sign in password. $postdata = "Email=".$youtube_email."&Passwd=".$youtube_password."&service=youtube&source=Example";$curl = curl_init("https://www.google.com/youtube/accounts/ClientLogin");curl_setopt($curl, CURLOPT_HEADER, "Content-Type:application/x-www-form-urlencoded");curl_setopt($curl, CURLOPT_POST, 1);curl_setopt($curl, CURLOPT_POSTFIELDS, $postdata);curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 1);$response = curl_exec($curl);curl_close($curl);list($auth, $youtubeuser) = explode("\n", $response);list($authlabel, $authvalue) = array_map("trim", explode("=", $auth));//list($youtubeuserlabel, $youtubeuservalue) = array_map("trim", explode("=", $youtubeuser)); $youtube_video_title = "Example"; // This is the uploading video title.$youtube_video_description = "Example"; // This is the uploading video description.$youtube_video_category = "News"; // This is the uploading video category.$youtube_video_keywords = "example, video"; // This is the uploading video keywords. $data = '<?xml version="1.0"?> <entry xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" xmlns:yt="http://gdata.youtube.com/schemas/2007"> <media:group> <media:title type="plain">'.$youtube_video_title.'</media:title> <media:description type="plain">'.$youtube_video_description.'</media:description> <media:category scheme="http://gdata.youtube.com/schemas/2007/categories.cat">'.$youtube_video_category.'</media:category> <media:keywords>'.$youtube_video_keywords.'</media:keywords> </media:group> </entry>'; $key = "Your key"; // Get your key here: http://code.google.com/apis/youtube/dashboard/. $headers = array("Authorization: GoogleLogin auth=".$authvalue, "GData-Version: 2", "X-GData-Key: key=".$key, "Content-length: ".strlen($data), "Content-Type: application/atom+xml; charset=UTF-8"); $curl = curl_init("http://gdata.youtube.com/action/GetUploadToken");curl_setopt($curl, CURLOPT_USERAGENT, $_SERVER["HTTP_USER_AGENT"]);curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);curl_setopt($curl, CURLOPT_TIMEOUT, 10);curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);curl_setopt($curl, CURLOPT_POST, 1);curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);curl_setopt($curl, CURLOPT_POSTFIELDS, $data);curl_setopt($curl, CURLOPT_REFERER, true);curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);curl_setopt($curl, CURLOPT_HEADER, 0); $response = simplexml_load_string(curl_exec($curl));curl_close($curl);?><script type="text/javascript"> function checkForFile() { if (document.getElementById('file').value) { return true; } document.getElementById('errMsg').style.display = ''; return false; }</script> <?php$nexturl = "http://localhost/abc.php"; // This parameter specifies the URL to which YouTube will redirect the user's browser when the user uploads his video file.?> <form action="<?php echo($response->url); ?>?nexturl=<?php echo(urlencode($nexturl)); ?>" method="post" enctype="multipart/form-data" onsubmit="return checkForFile();"> <input id="file" type="file" name="file"/> <div id="errMsg" style="display:none;color:red"> You need to specify a file. </div> <input type="hidden" name="token" value="<?php echo($response->token); ?>"/> <input type="submit" value="go" /> </form>
  7. Hello everyone,I recently created a blog on tumblr to showcase video contributions for a project I launched. I was intending to have the videos loop once played and I am struggling. I looked online and found all the appropriate codes to create loops and although the videos obediently follow instructions when played in my browser they refuse to loop once I embed them in the blog.I am very new to HTML and was advised to "use the Plain Text Editor to create or edit advanced post embeds or to control element formatting via HTML" I really don't know what that means. My blog sits here: www.thenonresidents.tumblr.comand the first video in question is: Within the HTML editor for the theme I assume this is the relevant bit for me /* Video Entry Markup */ .video {width: 250px;margin: 0 0 10px -30px;{block:PermalinkPage}width: 500px;margin: 0;{/block:PermalinkPage}} /* End Video Entry Markup * Could someone please help me with the code and let me know just what I need to edit to allow the videos to loop.Thank you so much for your time.
  8. I would like to show my results like youtube...i know that it uses <div> inside a <div> and then align them with css BUT ! im not sure if it uses the " $row['file_link'] " way or if there is a better way ! thank you
×
×
  • Create New...