Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Youtube in torrents detail
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2008-11-04 15:03:48
works perfectly with v2.05

I think it can be moved to complete mod

If you don't want to see picture "no video"

change

else

print ("<tr><td align=left><b>" . Youtube . ": </b></td><td><img border=\"0\" width=\"200\" height=\"164\" src=".$site_config["SITEURL"]."/images/novideo.jpg></td></tr>");





with



else

print ("");
Unknown User
2008-11-09 11:18:43
Working fine, TY for the info Azuris.
Unknown User
2008-11-09 17:24:34
Edit: got it working.
Unknown User
2009-05-15 15:30:33
This is weird!! XD

In the torrent-details page, insted of showing the video, its shows an empty space, but when i go to the edit page, instead of having a youtube url it has the torrent url LOL

What did i do wrong?
Unknown User
2009-05-15 16:28:58
"mortiscan, post: 57717":
This is weird!! XD
In the torrent-details page, insted of showing the video, its shows an empty space, but when i go to the edit page, instead of having a youtube url it has the torrent url LOL

What did i do wrong?


... many things, lol  :)  ...  post ur file so we can check ur code .....
Unknown User
2009-07-07 04:54:28
Hi,

Can i have this mod in torrent_edit.php??

If yes ; What's the code?? thank yous for all answers!
Unknown User
2009-07-09 16:42:59
read the post, already done
Unknown User
2009-07-13 20:10:00
Thanks for that mod :)
Unknown User
2009-11-18 00:43:39
thanks you so much is work perfect for me ... ;)
Unknown User
2009-11-27 12:48:48
is ther anyway of adding the imdb trailer url in this mod, e.g [url="http://www.imdb.com/video/imdb/vi3896050201/"]http://www.imdb.com/video/imdb/vi3896050201/[/url]
2010-10-16 19:50:49
Merci a tous !

~~~~~~~~~~~~~~~~~//

error v2.6

error here with '".$tube."',  and  tube,

I like asking install:

Quote:
$ret = mysql_query("INSERT INTO torrents (filename, owner, name, tube, descr, descr, image1, image2, category, added, info_hash, size, numfiles, save_as, announce, external, nfo, torrentlang, anon) VALUES (".sqlesc($fname).", '".$CURUSER['id']."', ".sqlesc($name).", ".sqlesc($descr).", '".$inames[1]."', '".$type."', '".$tube."', '" . get_date_time() . "', '" . get_date_time() . "', '".$infohash."', '".$torrentsize."', '".$filecount."', ".sqlesc($fname).", '".$announce."', '".$external."', '".$nfo."', '".$langid."','$anon')");

And it gives me this error, I move it even tube $ tube

:D

Thank you in advance for your help!

~~~~~~~~~~~~~//

J'ai bien install



[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=4246"]torrents_upload.php[/url]
novideo.jpg
novideo.jpg
torrents_upload.php
Download

Unknown User
2010-10-17 21:55:48
if (!empty($row["tube"]))

print ("<tr><td align=left><b>" . Youtube . ": </b></td><td><embed src='". str_replace("watch?v=", "v/", htmlspecialchars($row["tube"])) ."' type=\"application/x-shockwave-flash\" width=\"400\" height=\"310\"></embed></td></tr>");

else

print ("<tr><td align=left><b>" . Youtube . ": </b></td><td><img border=\"0\" width=\"200\" height=\"164\" src=".$site_config["SITEURL"]."/images/novideo.jpg></td></tr>");
it's better delete the 'else' part, because if there's not a video, nothing is shown




if (!empty($row["tube"]))

print ("<tr><td align=left><b>" . Youtube . ": </b></td><td><embed src='". str_replace("watch?v=", "v/", htmlspecialchars($row["tube"])) ."' type=\"application/x-shockwave-flash\" width=\"400\" height=\"310\"></embed></td></tr>");

}


:D
Unknown User
2010-10-17 22:20:51
@tiloup your problem is this query

$ret = mysql_query("INSERT INTO torrents (filename, owner, name, tube, descr, descr, image1, image2, category, added, info_hash, size, numfiles, save_as, announce, external, nfo, torrentlang, anon) VALUES (".sqlesc($fname).", '".$CURUSER['id']."', ".sqlesc($name).", ".sqlesc($descr).", '".$inames[1]."', '".$type."', '".$tube."', '" . get_date_time() . "', '" . get_date_time() . "', '".$infohash."', '".$torrentsize."', '".$filecount."', ".sqlesc($fname).", '".$announce."', '".$external."', '".$nfo."', '".$langid."','$anon')");





Replace by





$ret = mysql_query("INSERT INTO torrents (filename, owner, name, descr, image1, image2, category, added, info_hash, size, numfiles, save_as, announce, external, nfo, torrentlang, anon, tube) VALUES (".sqlesc($fname).", '".$CURUSER['id']."', ".sqlesc($name).", ".sqlesc($descr).", '".$inames[0]."', '".$inames[1]."', '".$type."', '" . get_date_time() . "', '".$infohash."', '".$torrentsize."', '".$filecount."', ".sqlesc($fname).", '".$announce."', '".$external."', '".$nfo."', '".$langid."','$anon', '".$tube."')");
2010-10-18 00:55:51
"Brayan, post: 66276":
if (!empty($row["tube"]))

print ("<tr><td align=left><b>" . Youtube . ": </b></td><td><embed src='". str_replace("watch?v=", "v/", htmlspecialchars($row["tube"])) ."' type=\"application/x-shockwave-flash\" width=\"400\" height=\"310\"></embed></td></tr>");

else

print ("<tr><td align=left><b>" . Youtube . ": </b></td><td><img border=\"0\" width=\"200\" height=\"164\" src=".$site_config["SITEURL"]."/images/novideo.jpg></td></tr>");
it's better delete the 'else' part, because if there's not a video, nothing is shown




if (!empty($row["tube"]))

print ("<tr><td align=left><b>" . Youtube . ": </b></td><td><embed src='". str_replace("watch?v=", "v/", htmlspecialchars($row["tube"])) ."' type=\"application/x-shockwave-flash\" width=\"400\" height=\"310\"></embed></td></tr>");

}


:D

Brayan thank you for your help, but my disorder is not made to see the video or not!

my mistake just after confirming my upload.

Trunk ... we understand! lol
2010-10-18 01:00:22
"djhowarth, post: 66279":
@tiloup your problem is this query


$ret = mysql_query("INSERT INTO torrents (filename, owner, name, tube, descr, descr, image1, image2, category, added, info_hash, size, numfiles, save_as, announce, external, nfo, torrentlang, anon) VALUES (".sqlesc($fname).", '".$CURUSER['id']."', ".sqlesc($name).", ".sqlesc($descr).", '".$inames[1]."', '".$type."', '".$tube."', '" . get_date_time() . "', '" . get_date_time() . "', '".$infohash."', '".$torrentsize."', '".$filecount."', ".sqlesc($fname).", '".$announce."', '".$external."', '".$nfo."', '".$langid."','$anon')");
Replace by




$ret = mysql_query("INSERT INTO torrents (filename, owner, name, descr, image1, image2, category, added, info_hash, size, numfiles, save_as, announce, external, nfo, torrentlang, anon, tube) VALUES (".sqlesc($fname).", '".$CURUSER['id']."', ".sqlesc($name).", ".sqlesc($descr).", '".$inames[0]."', '".$inames[1]."', '".$type."', '" . get_date_time() . "', '".$infohash."', '".$torrentsize."', '".$filecount."', ".sqlesc($fname).", '".$announce."', '".$external."', '".$nfo."', '".$langid."','$anon', '".$tube."')");




djhowarth I made the Pug you give me and which of gandalf76, but it still gives me the same error!  :D
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728