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
seedbox in action
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2.08 Mods Completed

2012-07-21 19:27:20
Bonjours a tous, je vous partage un petit mode pour y voir le torrent actif sur une seedbox avec descrtition et image.

..p.s désolé pour mon anglais pourie lol  ^_^

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

Hello everybody, I'll share a little way to see the active torrent on a seedbox with descrtition and image.

... p.s désolé for lun. anglais pourie lol  ^_^

je suis pas un king, vous pouvez me corriger et meme ajouter des lignes de plus!  ;)  :D

*****************************

I am not a king, you can correct me and even add more lines!  ;)  :D

SQL



ALTER TABLE torrents ADD seedbox ENUM ('yes','no') DEFAULT 'no';

Open functions.php and Search


 if ($row["freeleech"] == 1)

$dispname .= " <img src='images/free.gif' border='0' alt='' />";





Add after



 if ($row["seedbox"] == "yes")

$dispname .= " <img src='images/seedbox.png' border='0' alt='' />";







Open torrents-edit.php and Search



 $updateset[] = "anon = '" . ($_POST["anon"] ? "yes" : "no") . "'";





Add after



 //update seedbox

if(get_user_class($CURUSER) > 4) {

if ($_POST["seedbox"] == "yes") {

$updateset[] = "seedbox = 'yes'";

}else{

$updateset[] = "seedbox = 'no'";

}

}





Search



if ($row["external"] != "yes" && $CURUSER["edit_torrents"] == "yes"){

echo "<tr><td align='right'><b>".T_("FREE_LEECH").": </b></td><td><input type="checkbox" name="freeleech"" . (($row["freeleech"] == "1") ? " checked="checked"" : "" ) . " value="1" />&nbsp;".T_("FREE_LEECH_MSG")."<br /></td></tr>";

}





Add before





echo "<tr><td align='right'><b>".T_("SEEDBOX").": </b></td><td><input type="checkbox" name="seedbox"" .

(($row["seedbox"] == "yes") ? " checked="checked"" : "" ) . " value="yes" />&nbsp;" .T_("SEEDBOX_MSG"). "<br/>";








Open torrents-details.php and Search



torrents.freeleech,





Add after



 torrents.seedbox,





Search



 if ($row["external"]!='yes' && $row["freeleech"]=='1'){

print ("<b>".T_("FREE_LEECH").": <img src='images/free.gif' border='0'></b><font color='#ff0000'>".T_("FREE_LEECH_MSG")."</font><br />");

}





Add after



 if ($row["external"]!='yes' && $row["seedbox"]=='yes'){

print ("<b>".T_("SEEDBOX").": <img src='images/seedbox.png' border='0'></b><font color='#ff0000'>".T_("SEEDBOX_MSG")."</font><br />");

}







Open torrents-search.php and Search



torrents.freeleech,





Add after



 torrents.seedbox,





Search



// Include freeleech

if ($_GET["freeleech"] == 1) {

$addparam .= "freeleech=1&amp;";

$thisurl .= "freeleech=1&amp;";

$wherea[] = "freeleech = '0'";

} elseif ($_GET["freeleech"] == 2) {

$addparam .= "freeleech=2&amp;";

$thisurl .= "freeleech=2&amp;";

$wherea[] = "freeleech = '1'";

}





Add after



// Include seedbox

if ($_GET["seedbox"] == 1) {

$addparam .= "seedbox=1&amp;";

$thisurl .= "seedbox=1&amp;";

$wherea[] = "seedbox = '0'";

} elseif ($_GET["seedbox"] == 2) {

$addparam .= "seedbox=2&amp;";

$thisurl .= "seedbox=2&amp;";

$wherea[] = "seedbox = '1'";

}





Search



 <select name="incldead">

<option value="0"><?php echo T_("ACTIVE_TRANSFERS"); ?></option>

<option value="1" <?php if ($_GET["incldead"] == 1) echo "selected='selected'"; ?>><?php echo T_("INC_DEAD");?></option>

<option value="2" <?php if ($_GET["incldead"] == 2) echo "selected='selected'"; ?>><?php echo T_("ONLY_DEAD");?></option>

</select>

<select name="freeleech">

<option value="0">Any</option>

<option value="1" <?php if ($_GET["freeleech"] == 1) echo "selected='selected'"; ?>><?php echo T_("NOT_FREELEECH");?></option>

<option value="2" <?php if ($_GET["freeleech"] == 2) echo "selected='selected'"; ?>><?php echo T_("ONLY_FREELEECH");?></option>

</select>





Replace



 <select name="incldead">

<option value="0"><?php echo T_("ACTIVE_TRANSFERS"); ?></option>

<option value="1" <?php if ($_GET["incldead"] == 1) echo "selected='selected'"; ?>><?php echo T_("INC_DEAD");?></option>

<option value="2" <?php if ($_GET["incldead"] == 2) echo "selected='selected'"; ?>><?php echo T_("ONLY_DEAD");?></option>

<option value="1" <?php if ($_GET["freeleech"] == 1) echo "selected='selected'"; ?>><?php echo T_("NOT_FREELEECH");?></option>

<option value="2" <?php if ($_GET["freeleech"] == 2) echo "selected='selected'"; ?>><?php echo T_("ONLY_FREELEECH");?></option>

<option value="1" <?php if ($_GET["seedbox"] == 1) echo "selected='selected'"; ?>><?php echo T_("NOT_SEEDBOXLEECH");?></option>

<option value="2" <?php if ($_GET["seedbox"] == 2) echo "selected='selected'"; ?>><?php echo T_("ONLY_SEEDBOXLEECH");?></option>

</select>





OR



 <select name="incldead">

<option value="0"><?php echo T_("ACTIVE_TRANSFERS"); ?></option>

<option value="1" <?php if ($_GET["incldead"] == 1) echo "selected='selected'"; ?>><?php echo T_("INC_DEAD");?></option>

<option value="2" <?php if ($_GET["incldead"] == 2) echo "selected='selected'"; ?>><?php echo T_("ONLY_DEAD");?></option>

</select>

<select name="freeleech">

<option value="0">Any</option>

<option value="1" <?php if ($_GET["freeleech"] == 1) echo "selected='selected'"; ?>><?php echo T_("NOT_FREELEECH");?></option>

<option value="2" <?php if ($_GET["freeleech"] == 2) echo "selected='selected'"; ?>><?php echo T_("ONLY_FREELEECH");?></option>

</select>

<select name="seedbox">

<option value="0">Any</option>

<option value="1" <?php if ($_GET["seedbox"] == 1) echo "selected='selected'"; ?>><?php echo T_("NOT_SEEDBOXLEECH");?></option>

<option value="2" <?php if ($_GET["seedbox"] == 2) echo "selected='selected'"; ?>><?php echo T_("ONLY_SEEDBOXLEECH");?></option>

</select>







Open torrents-index.php and Search



// latest torrents





Add after $query = "SELECT ....



torrents.freeleech,





Add after



 torrents.seedbox,




Langues:

Anglais

$LANG["SEEDBOX_MSG"] = "Torrent flow elevate";

$LANG["SEEDBOX"] = "SeedBox";

$LANG["NOT_SEEDBOXLEECH"] = "Not Seedbox";

$LANG["ONLY_SEEDBOXLEECH"] = "Only Seedbox";

Français

$LANG["SEEDBOX_MSG"] = "Torrent à debit élever";

$LANG["SEEDBOX"] = "SeedBox";

$LANG["NOT_SEEDBOXLEECH"] = "Non Seedbox";

$LANG["ONLY_SEEDBOXLEECH"] = "Seedbox seulement";

NOTE:

Ajouter l'image dans le dossier  /images

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

add the image in the folder /images



seedbox.png
seedbox.png
Y56Yre.PNG
Y56Yre.PNG

Unknown User
2012-07-21 20:37:19
Good job :)
2012-07-21 20:44:43
Woww!! thanks you mostvotedplaya  :D  :D


Unknown User
2012-07-22 08:28:28
what's the difference with highspeed mod ?
2012-07-22 10:48:04
"thib, post: 84307":
what's the difference with highspeed mod ?

I do not know how!
Unknown User
2012-08-20 16:57:47
fix for Open torrents-edit.php



echo "<tr><td class='table_col1' align='right'><b>".T_("SEEDBOX").":  </b></td><td class='table_col2'><input type="checkbox" name="seedbox"" .(($row["seedbox"] == "yes") ? " checked="checked"" : "" ) . " value="yes" />&nbsp;" .T_("SEEDBOX_MSG"). "<br /></td></tr>";








And for languages file is







$LANG["SEEDBOX_MSG"] = "Torrent flow SeedBox";

$LANG["SEEDBOX"] = "SeedBox";

$LANG["NOT_SEEDBOXLEECH"] = "Not Seedbox";

$LANG["ONLY_SEEDBOXLEECH"] = "Only Seedbox";

Unknown User
2012-09-01 23:34:07
Thanke, good work  :)  Is it not possible to add immediately uploading?
2012-09-02 04:12:26
"PyhaJumal, post: 85227":
Thanke, good work Is it not possible to add immediately uploading?

Yes!

search torrents-upload.php

$language .= "</select>n";

print ("<tr><td align='right'><span style='color:#FF0000'>*</span> ".T_("LANGAUGE").": </td><td align='left'>".$language."</td></tr>");
Add


print ("<tr><td align='right'>".T_("SEEDBOX").":</td><td><input type='checkbox' name='seedbox' " .

(($row["seedbox"] == "yes") ? " checked='checked' " : "" ) . " value='yes'>&nbsp;" .T_("SEEDBOX_MSG"). "<br/>");





search



 //anonymous upload

$anonyupload = $_POST["anonycheck"];

if ($anonyupload == "yes") {

$anon = "yes";

}else{

$anon = "no";

}





Add



 //update seedbox

if(get_user_class($CURUSER) > 4) {

if ($_POST["seedbox"] == "yes") {

$updateset[] = "seedbox = 'yes'";

}else{

$updateset[] = "seedbox = 'no'";

}

}





search



torrentlang,





Add



 seedbox, 





search



',



'".$langid."', '





Add



".$seedbox."',





It should give you the..



 $ret = SQL_Query_exec("INSERT INTO torrents (filename, owner, name, descr, description, image1, image2, category, added, info_hash, size, numfiles, save_as, announce, external, nfo,



torrentlang, seedbox, anon, tube, last_action, imdb, allocine) VALUES (".sqlesc($fname).", '".$CURUSER['id']."', ".sqlesc($name).", ".sqlesc($descr).", ".sqlesc($smalldescr).", '".$inames



[0]."', '".$inames[1]."', '".$catid."', '" . get_date_time() . "', '".$infohash."', '".$torrentsize."', '".$filecount."', ".sqlesc($fname).", '".$announce."', '".$external."', '".$nfo."',



'".$langid."', '".$seedbox."', '$anon', ".sqlesc($tube).", '" . get_date_time().", ".sqlesc($_POST['allocine']).", ".sqlesc($_POST['imdb']).")");



I Did not test if it works well, you have to tell me!? ;)
Unknown User
2012-09-02 08:48:22
Runs without errors but the icon does not appear after upload :wacko:
2012-09-02 13:42:55
"PyhaJumal, post: 85232":
Runs without errors but the icon does not appear after upload

or detail or index!?
Unknown User
2012-09-02 15:52:28
i'm sorry....all is working perfectly  Thanks you so much  :)  :) :)
2012-09-02 18:09:13
Same pleasure! :)
Unknown User
2012-10-20 14:39:25
Hi,

Small problem again. The icon does not appear after upload index page? In upload page i check the checkbox but index page not see icon  :wacko:

index page mysql query



$query = "SELECT torrents.id, torrents.anon, torrents.announce, torrents.category, torrents.leechers, torrents.nfo, torrents.seeders, torrents.name, torrents.times_completed, torrents.size, torrents.added, torrents.comments, torrents.numfiles, torrents.filename, torrents.owner, torrents.external, torrents.freeleech, torrents.seedbox, categories.name AS cat_name, categories.image AS cat_pic, categories.parent_cat AS cat_parent, users.username, users.privacy, IF(torrents.numratings < 2, NULL, ROUND(torrents.ratingsum / torrents.numratings, 1)) AS rating FROM torrents LEFT JOIN categories ON category = categories.id LEFT JOIN users ON torrents.owner = users.id WHERE visible = 'yes' AND banned = 'no' ORDER BY id DESC LIMIT 25";

$res = SQL_Query_exec($query);

Unknown User
2012-12-02 01:17:55
upload the image..

images/free.gif
2012-12-02 04:10:32
Search ../backend/functions.php

 $dispname .= "<img src='images/new_torrent.png' border='0' title='".T_("NEW")."' />";
Add


 if ($row["seedbox"] == "yes")

$dispname .= " <img src='images/seedbox.png' title='Torrent flow raise!' border='0' alt='' />";





Open index.php

Search..



torrents.freeleech,





Add after



 torrents.seedbox,



Make such a,,, index.php(LATEST_TORRENTS), torrents-today.php, torrents-search.php, torrents-details.php, torrents-categories.php

Add your own picture if needed!?  :)

[size=18px]UPDATE LE 5-12-12[/size]

seedbox.png
seedbox.png

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: 3
  • Members: 0
  • Guests online: 3
  • Comments: 3
  • Messages: 1,728