Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=109)
-   -   Youtube (http://www.bvlist.com/showthread.php?t=249)






end_frame();
begin_frame('Videos', FALSE, "100%;");
begin_table(TRUE);
?>

 
 
 
 
 
 


 
 
 
 
 
 


$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"];
?>

 
 
 
 
 
 

$nr = $nr+1;
}
end_table();
end_frame();
}
stdfoot();
?>
screenshot:

Attachment 405

not working under IE
Tarix22 25th April 2008 14:01

Youtube
 
1 Attachment(s)
Credits to seb35 @ tbdev for this mod

Put in db:

Code:

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;

and create file youtube.php and put in you root

Code:


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("
");
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("
");
if (get_user_class() >= UC_MODERATOR){
print("

");
begin_frame("New video", FALSE, "100px");
?>



For URL: "http://youtube.com/watch?v=qppuuQrklHg"


just put: qppuuQrklHg in link



Link:
Name:
ID
Name
Link
Added by
Added form
Delete
Delete

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>"); 



All times are GMT +2. The time now is 11:58.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.