SitePoint Sponsor

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 25 of 37
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lightbulb dynamic page problem

    i am making a dynamic page to embeding videos, but i want help

    i want something like this
    http://sdafdsfds.comuf.com/videos/nowvideo.php?id= 3viebgyywmc7w

    i creat
    http://sdafdsfds.comuf.com/videos/nowvideo.php
    now can any one help me that how i can make this dynamic and it detects the id of the video and play the video pleaseeeeeeeeeeeeeeeeeeeee help me

    here is working demo : http://www.webvideoshare.com/videos/...=3viebgyywmc7w


    HTML Code:
    <!doctype html>
    <!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
    <!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
    <!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
    <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
    <head>
    	<link rel="shortcut icon" href="http://www.webvideoshare.com/favicon.ico" type="image/icon" /> <link rel="icon" href="http://www.webvideoshare.com/favicon.ico" type="image/icon" />
    		<title>http://embed.nowvideo.eu/ - WebVideoShare.com</title>
    		<meta charset="utf-8">
           
    	<link rel="stylesheet" href="http://www.webvideoshare.com/css/style.css">
    	<link rel="stylesheet" href="http://www.webvideoshare.com/css/navigation-narrow.css">
    	<script src="http://www.webvideoshare.com/js/plugins.js"></script>
    	<script src="http://www.webvideoshare.com/js/script.js"></script>
    
    </head>
    <body>
    	<header>
    		
    		<!-- close #header-top-container -->
    		
    		
    		
    		<div id="header-gradient">
    			
    			
    	
    	<div id="main" role="main">	
    		
    		
    		<div class="bread-crumbs"><span>You are here:</span>  <a href="../index.php">Home</a> &rsaquo; Videos</div>
    		
    		
    		<div class="content-container">
    			<br>
    			<div class="container_24" style="width:1024px">
           <div class="grid_16 suffix_1" style="width:1024px">        
           	<center>
    								<script type="text/javascript"><!--
    	google_ad_client = "ca-pub-2419487760378836";
    	/* Raheel */
    	google_ad_slot = "4037408005";
    	google_ad_width = 728;
    	google_ad_height = 90;
    	//-->
    	<!--</script>
    	<script type="text/javascript"
    	src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>							</center><br>
    								
    								<div style="margin-left:5%;float:left;margin-top:20px;">
    								
    								<script type="text/javascript"><!--
    	google_ad_client = "ca-pub-2419487760378836";
    	/* 160 600 wide skyscraper */
    	google_ad_slot = "9935456174";
    	google_ad_width = 160;
    	google_ad_height = 600;
    	//-->
    	</script>
    	<script type="text/javascript"
    	src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>								</div>
    								<div style="margin-left:10px;float:left;margin-top:20px;">
    								<iframe width="540" height="400" frameborder="0" src="http://embed.nowvideo.eu/embed.php?v=&width=600&height=480" scrolling="no"></iframe>
    								<br>
    								<p style="background-color:#CC0000; width:530px;height:50px; padding:5px; font:10px Verdana; color:#FFF;"><b> Disclaimer:Webvideoshare.com is only videos embedded website.Every video is found here from Third party videos hosting website .We donot host any of this video part.Video Part is embedded here from Youtube,Dailymotion and other video hosting website.Contact to these video hosting website for any video removal.</b></p>
    								</div>
    								<div style="margin-left:10px;float:left;margin-top:20px;">
    									<script type="text/javascript"><!--
    	google_ad_client = "ca-pub-2419487760378836";
    	/* 160 600 wide skyscraper */
    	google_ad_slot = "9935456174";
    	google_ad_width = 160;
    	google_ad_height = 600;
    	//-->
    	</script>
    	<script type="text/javascript"
    	src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>								</div></center>
    
        <div class="clear"></div>
        </div>
      </div>
    			
    			
    			
    			
    			
    			<div class="clearfix"></div>
    				
    			
    		</div><!-- close .content-container -->
    		
    	</div><!-- close #main -->
    	
    	
    	
    	<div id="footer-gradient"></div>
    	<footer>
    		<div id="footer-base">
    			<div id="footer-base-content">
    
    				
    			
    			<div class="clearfix"></div>
    			</div><!-- close #footer-base-content -->
    			
    		</div>
    		
    	</footer>
    	
    </body>
    </html>

  2. #2
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Add these lines at the top of a php file:

    PHP Code:
    <?php
    var_dump
    ($_GET);
    ?>
    Now access that page and add this to the url ?id=cuckoo, and hit enter.

  3. #3
    SitePoint Enthusiast
    Join Date
    Mar 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i try this but its showing
    array(1) { ["id"]=> string(6) "cuckoo" }

  4. #4
    SitePoint Enthusiast
    Join Date
    Mar 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i want to make a page with swfobject.js and then make it dynamic .
    as http://www.webvideoshare.com/videos/nowvideo.php
    now when i put id of nowvideo in the end of the url it does'nt detects the video.

    this is an example and its working fine
    http://www.webvideoshare.com/videos/...=3viebgyywmc7w

    please help me

  5. #5
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,143
    Mentioned
    152 Post(s)
    Tagged
    0 Thread(s)
    Where in the code provided do you expect that ID to be outputted on your page? I don't see where you are even attempting to use it.

  6. #6
    SitePoint Enthusiast
    Join Date
    Mar 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lightbulb who will solve this

    i am working on this but
    i post this somewhere but no one know how we can make this . its not so complicated.

    let's see if some one resolve this.


    i want to make a dynamic page, to embed multiple videos (dailymotion,youtube,etc) i want to make a page that when we put video id of the site it detects the video .
    some where i read that i can do this with api , or swfobject.js

    here is demo:

    this site has a pre-embed player here :http://veedio.info/dailymotion.php

    only what if we want to embed a video just change the id of the video in the end of the url

    http://veedio.info/dailymotion.php?url=k3g6iiAEAuyt1N3TPDF


    would you please give me the solution:

  7. #7
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,143
    Mentioned
    152 Post(s)
    Tagged
    0 Thread(s)
    To start off, you never answered my original reply, so why don't we start there?

  8. #8
    SitePoint Enthusiast
    Join Date
    Mar 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    page is using iframe, and when we put id of video in the very end of the url player detects the video automatically

  9. #9
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,143
    Mentioned
    152 Post(s)
    Tagged
    0 Thread(s)
    Copy/Paste the iframe and the code that does that, as from the code I've seen, there is no way that happens.

  10. #10
    SitePoint Enthusiast
    Join Date
    Mar 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i dont know , http://veedio.info/dailymotion.php here you will find embeded player of dm
    now when http://veedio.info/dailymotion.php?url=k3g6iiAEAuyt1N3TPDF

    put this video works , i did the same make a dynamic page, etc but only player show it does not detect the id in the url

  11. #11
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,143
    Mentioned
    152 Post(s)
    Tagged
    0 Thread(s)
    So what exactly is the problem as appending the id allowed the video to load... so I'm not sure what you are claiming is wrong...

  12. #12
    SitePoint Enthusiast
    Join Date
    Mar 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i only want to embed video , but when i manuaaly embed any video of dm,youtube,etc i creat a page for it and then put embed code in that page. this is waisting of time, then i hear about swfobject.js as this site is using this. with this just make page and embed the player , then when you want to share a video just put the id of the video and no need to make a new page for it etc etc

  13. #13
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,143
    Mentioned
    152 Post(s)
    Tagged
    0 Thread(s)
    Well with swfobject, it is a JavaScript solution, you simply need to build the URL to the movie and give it to the swfobject loader in JavaScript.

    Take the following code from their documentation:
    Code JavaScript:
    <script type="text/javascript">
        swfobject.embedSWF("myContent.swf", "myContent", "300", "120", "9.0.0");
        </script>

    You will be replacing the myContent.swf with the correct movie file.

    However, if you only have a link to the movie and not a swf, you will have more work ahead of you. You will need to use something like jwplayer which costs money to use commercially

  14. #14
    SitePoint Enthusiast
    Join Date
    Mar 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks i really understand , but i want to embed dailymotion video, then could you explain that how i can use dailymmotion player with this code

    Code:
    <script type="text/javascript">
        swfobject.embedSWF("myContent.swf", "myContent", "300", "120", "9.0.0");
        </script>

  15. #15
    SitePoint Enthusiast
    Join Date
    Mar 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile simple php page

    this is a forum bbcode for dailymotion
    Code:
    <center><div><object width="700" height="530"><param name="movie" 
    
    value="http://www.dailymotion.com/swf/{param}&v3=1&related=1"></param><param 
    
    name="allowFullScreen" value="true"></param><param name="allowScriptAccess" 
    
    value="always"></param><embed src="http://www.dailymotion.com/swf/{param}&v3=1&related=1" 
    
    type="application/x-shockwave-flash" width="700" height="530" allowFullScreen="true" 
    
    allowScriptAccess="always"></embed></object></div>
    You can post your dailymotion by [daily]4132xi[/daily]

    how we can make a simple php page with this code and how it will be accessable with url

    i mean www.domain.com/?????:)

  16. #16
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,143
    Mentioned
    152 Post(s)
    Tagged
    0 Thread(s)
    Unfortunately, I know nothing about how dailymotion defines their videos, whether they are already swf files or mpeg, mp4, etc. You would need to know that before you could possible integrate anything using it.

  17. #17
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,143
    Mentioned
    152 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by bitz View Post
    this is a forum bbcode for dailymotion
    Code:
    <center><div><object width="700" height="530"><param name="movie" 
    
    value="http://www.dailymotion.com/swf/{param}&v3=1&related=1"></param><param 
    
    name="allowFullScreen" value="true"></param><param name="allowScriptAccess" 
    
    value="always"></param><embed src="http://www.dailymotion.com/swf/{param}&v3=1&related=1" 
    
    type="application/x-shockwave-flash" width="700" height="530" allowFullScreen="true" 
    
    allowScriptAccess="always"></embed></object></div>
    You can post your dailymotion by [daily]4132xi[/daily]

    how we can make a simple php page with this code and how it will be accessable with url

    i mean www.domain.com/?????:)
    Replace [param] with the ????? from the URL

  18. #18
    SitePoint Enthusiast
    Join Date
    Mar 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    and the peoples knows abt this doesn't reply , i am in this problem from last 20 days , but no sucess ..................


    but who cares

  19. #19
    SitePoint Enthusiast
    Join Date
    Mar 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    please tell me total path , like it can be domain.com/id ???

  20. #20
    SitePoint Enthusiast
    Join Date
    Mar 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    or it will be use thrugh dynamic page

  21. #21
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,143
    Mentioned
    152 Post(s)
    Tagged
    0 Thread(s)
    Okay, say you have domain.com/id=?????????


    You will want to replace all instances of [param] by reading and sanitizing the $_GET['id'] value

  22. #22
    SitePoint Enthusiast
    Join Date
    Mar 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    please look at this http://utguyiui.webatu.com/index.php?page=dd

    i put this code in dd.php
    and then access this with $_GET['id']

    but still not know where i'll put the id of dm

    bcz if i use this like http://utguyiui.webatu.com/index.php?page=dm id

    then it doesn't access the
    Code:
    <center><div><object width="700" height="530"><param name="movie" value="http://www.dailymotion.com/swf/{param}&v3=1&related=1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.dailymotion.com/swf/{param}&v3=1&related=1" type="application/x-shockwave-flash" width="700" height="530" allowFullScreen="true" allowScriptAccess="always"></embed></object></div>

  23. #23
    SitePoint Enthusiast
    Join Date
    Mar 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    please reply

  24. #24
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,143
    Mentioned
    152 Post(s)
    Tagged
    0 Thread(s)
    Take your html and replace [param] with the use of your $_GET['id'] variable... I'm not sure how I can state that any clearer...

  25. #25
    SitePoint Enthusiast
    Join Date
    Mar 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this is my index.php

    PHP Code:
    <?php
             $p 
    $_GET['page'];
     
            
    $page "sub/".$p.".php";
     
            if(
    file_exists($page))
                include(
    $page);
            elseif(
    $p=="")
                echo 
    "This is Home Page";
            else
                echo 
    "what are you looking for! ?";
     
        
    ?>
      </div>
    i have a folder sub , in sub i make a page dd.php
    in dd.php i put this

    Code:
    <center><div><object width="700" height="530"><param name="movie" value="http://www.dailymotion.com/swf/{param}&v3=1&related=1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.dailymotion.com/swf/{param}&v3=1&related=1" type="application/x-shockwave-flash" width="700" height="530" allowFullScreen="true" allowScriptAccess="always"></embed></object></div>
    then my url will be http://utguyiui.webatu.com/index.php?page=dd

    now it only show me flash player how param will access the id from url and where i'll use the id in url


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •