CREATE TABLE `youtubevideo` ( `id` BIGINT( 20 ) NOT NULL AUTO_INCREMENT PRIMARY KEY , `link` VARCHAR( 100 ) NOT NULL , `name` VARCHAR( 100 ) NOT NULL , `addedby` VARCHAR( 100 ) NOT NULL , `addtime` DATETIME NOT NULL ) ENGINE = MYISAM;
require_once("include/bittorrent.php"); dbconn(false); loggedinorreturn(); if ($_GET["id"] != ""){ $id = $_GET["id"]; if (get_user_class() >= UC_USER){ mysql_query("DELETE FROM youtubevideo WHERE id= $id") or sqlerr(__FILE__, __LINE__); } else{ stderr("Sorry", "not authorized!"); } } if ($_SERVER["REQUEST_METHOD"] == "POST") { if ($_POST["link"] == "" || $_POST["name"] == "") stderr("Error", "missing form data."); $name = $_POST["name"]; $user = $CURUSER["username"]; $link = "http://youtube.com/v/".$_POST[link].""; mysql_query("INSERT INTO youtubevideo (link, name, addedby, addtime) VALUES('$link', '$name', '$user',NOW())") or sqlerr(__FILE__, __LINE__); } stdhead("Video Clips"); print(""); print(""); print(""); ?> Video Clips Please Choose A Video From The Right. print(""); ?> Liste Have Fun $query = "SELECT * FROM youtubevideo ORDER BY name"; $sql = mysql_query($query); while ($row = mysql_fetch_array($sql)) { $link = $row['link']; $name = $row['name']; print(" ".$name.""); } print(""); print(""); if (get_user_class() >= UC_MODERATOR){ print(" "); begin_frame("New video", FALSE, "100px"); ?> begin_table(TRUE); ?> For URL: "http://youtube.com/watch?v=qppuuQrklHg" just put: qppuuQrklHg in link Link: Name: end_table(); ?> end_frame(); begin_frame('Videos', FALSE, "100%;"); begin_table(TRUE); ?> ID Name Link Added by Added form Delete $query = "SELECT * FROM youtubevideo ORDER BY id"; $sql = mysql_query($query); while ($row2 = mysql_fetch_array($sql)){ $link = $row2["link"]; $name = $row2["name"]; $id = $row2["id"]; $addedby = $row2["addedby"]; $addtime = $row2["addtime"]; ?> =$id?> =$name?> =$link?> =$addedby?> =$addtime?> Delete $nr = $nr+1; } end_table(); end_frame(); } stdfoot(); ?> screenshot: Attachment 405 not working under IE seb35 27th April 2008 13:31 Re: Youtube Original here thank's me nicky=seb35 lol http://www.tbdev.net/index.php?s=&showt ... t&p=101306 snakebite 30th April 2008 09:40 Re: Youtube this works only for TBDev sources? Fynnon 13th July 2008 15:50 Re: Youtube Quote: Originally Posted by snakebite this works only for TBDev sources? I think it should work for others also, need to be tested ! Hardstylerz 11th October 2008 13:35 I cant upload I cant upload video? "The URL contained a malformed video ID." Plz help :wallbash: wMan 11th October 2008 14:06 Board Message http://www.tbdev.net/index.php?showt...162&hl=youtube http://www.tbdev.net/index.php?showt...017&hl=youtube patz 23rd December 2008 03:27 i tink is a bug i cant delete a video from list :((:sos: and when i refresh page add automatical copy of videos :(( Hardstylerz 27th January 2009 02:32 Delete Video :) Find: Code: Delete Replace with: Code: Delete Done! :D I'll hope i've fixed it! :muscle: Night_Owl 24th July 2009 00:20 StrikeMulti works with StrikeMulti here :) :drink: ok my bad its not showin the video :/ with [youtube]video addy[/youtube] or any other url tag ive tryed about every version ive found on here anyone by chance know where i can find one for the strikemulti version JoKeR_3D 9th December 2009 21:11 Help me Parse error: parse error in youtube.php on line 68 PHP Code: print("<tr><td align=left> <a href=".$link." rel="nofollow" target=games>".$name."</td></tr>"); nicholas08 5th May 2010 21:48 fix put \" before and after nofollow to fix the error :) joeroberts 6th May 2010 07:19 Quote: Originally Posted by JoKeR_3D (Post 18207) Help me Parse error: parse error in youtube.php on line 68 PHP Code: print("<tr><td align=left> <a href=".$link." rel="nofollow" target=games>".$name."</td></tr>"); change to this Code: print(" ".$name.""); not sure Y but this post is adding 2 rel="nofollow" in the code I post you only need one the one with the \"nofollow\" SYLEHD 18th August 2013 20:42 Youtube.php NU FUNCTIONEAZA PUR SI SIMPLUNU PLEACA VIDEOURILE DIN LISTA:war: Ripparinn 18th August 2013 23:20 Quote: Originally Posted by SYLEHD (Post 42277) PUR SI SIMPLUNU PLEACA VIDEOURILE DIN LISTA:war: Say what now? DND 19th August 2013 16:49 Quote: Originally Posted by Ripparinn (Post 42282) Say what now? Romanian that doesn't know english ? SYLEHD 19th August 2013 21:17 youtube Video not start that list is blank ... Why? I followed the correct steps ...:sos: firefly007 20th August 2013 13:06 Youtube 1 Attachment(s) Busy working on a better youtube mod... Will post it soon... All times are GMT +2. The time now is 15:07. Powered by vBulletin® Version 3.8.11 Beta 3Copyright ©2000 - 2024, vBulletin Solutions Inc.
Delete
print("<tr><td align=left> <a href=".$link." rel="nofollow" target=games>".$name."</td></tr>");
print(" ".$name."");
Powered by vBulletin® Version 3.8.11 Beta 3Copyright ©2000 - 2024, vBulletin Solutions Inc.