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

Unknown User
2012-12-05 23:48:53
Hi,

"Tiloup, post: 87132":
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,,, torrents-today.php, torrents-search.php, torrents-details.php, torrents-categories.php

Add your own picture if needed!?  :)

Hi,

All the code is written as.... however, there still does not appear on this icon.

If edit torrent details and there mark seedbox box it works and looks index page... The problem started with the exchange server, the old server, the same code worked perfectly. I do not understand what the problem is...?! Freeleech, silver, double_upload  icons works perfectly :wacko:
2012-12-06 00:02:21
Quote:
Hi,
All the code is written as.... however, there still does not appear on this icon.

If edit torrent details and there mark seedbox box it works and looks index page... The problem started with the exchange server, the old server, the same code worked perfectly. I do not understand what the problem is...?! Freeleech, silver, double_upload  icons works perfectly  :wacko:
Sorry I forgot to mantionner who is also a ajoueter index.php (LATEST_TORRENTS) torrents.seedbox, ;)
Unknown User
2013-02-20 11:33:42
Hi

I adjusted my index.php but when trying to attach seedbox flow supported through uploading torrent - on my index there is nothing(no seedbox icon and yes I have it in my /images/)

and when i use edit torrents all is fine

I have added after :

torrents.freeleech,
the


 torrents.seedbox,



in these torrents-today.php, torrents-search.php, torrents-details.php,  torrent.php and in index.php

thanks!
2013-03-07 23:13:27
Vous avez oublier pour /backend/fonction.php lol

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*

You forgot to /backend/fonction.php lol



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

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





c'est de la l'image va se mettre en place!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*

this is the image will be put in place!
Unknown User
2013-03-07 23:43:32
no no I did that and while at it I have added an image new added torrents to...

I simply don't know where I got wrong... what did I miss - I did all that ... what you told to do...
Unknown User
2013-03-08 03:25:06
my guess it might be something to do with this in torrents-upload



//update seedbox

if(get_user_class($CURUSER) > 4) {

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

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

                                }else{

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

                }

}




change to







//update seedbox

if($CURUSER["class") > 4) {

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

                $seedbox = 'yes';

                                }else{

                $seedbox = 'no';

                }

}




an little more work but closer to who has an seed box is to add an new db like



ALTER TABLE `users` ADD `has_seedbox` enum('yes','no') NOT NULL default 'no';




but then you would have to have an way to edit it on account-details.. but its not really that hard lol

then once you set it up with the people that have an seedbox use





 //update seedbox

if($CURUSER["has_seedbox") > 4) {

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

                $seedbox = 'yes';

                                }else{

                $seedbox = 'no';

                }

}

Unknown User
2013-03-08 11:17:03
THANKS it solved my problem...
Unknown User
2013-03-11 05:55:46
it work for me like this in torrent-upload



//update seedbox

if(get_user_class($CURUSER) > 4) {

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

$seedbox = 'yes';

}else{

$seedbox = 'no';

}

Unknown User
2013-04-14 17:53:53
french

ajouter a la racine du site

english

add to the site root

torrents-Seedbox.php


<?php
//
//
//
require_once("backend/functions.php");

$thisurlforme = "";

dbconn(false);

//check permissions
if ($site_config["MEMBERSONLY"]){
loggedinonly();

if($CURUSER["view_torrents"]=="no")
show_error_msg("Error","You do not have permission to view torrents",1);
}


stdhead("Seedbox Torrents");

begin_frame("Torrents seedbox");

$catresult = SQL_Query_exec("SELECT id, name FROM categories ORDER BY sort_index");

while($cat = mysql_fetch_array($catresult))
{
$orderby = "ORDER BY torrents.id DESC"; //Order
$where = "WHERE banned = 'no' AND category='$cat[id]' AND visible='yes'";


$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  AND torrents.seedbox = 'yes' $orderby $limit";

$res = SQL_Query_exec($query) or die(mysql_error());


$numtor = mysql_num_rows($res);

if ($numtor != 0) {
echo "<B><a href=torrents.php?cat=".$cat[id].">$cat[name]</a></B>";
list($pagertop, $pagerbottom, $limit) = pager(1000, $count, "torrents.php?" . $addparam); //adjust pager to match LIMIT
torrenttable($res);
echo "<BR>";
}


}
end_frame();
stdfoot();
?>


navigate_block

add

echo "<li><a href='torrents-Seedbox.php'>".T_("TORRENTS_SEEDBOX")."</a></li>";


french.php  &  english.php

ad

$LANG["TORRENTS_SEEDBOX"] = "Torrents SeedBox";
2013-04-14 17:56:52
"chris-team, post: 89957":


french

ajouter a la racine du site

english

add to the site root

torrents-Seedbox.php

<?php
//
//
//
require_once("backend/functions.php");

$thisurlforme = "";

dbconn(false);

//check permissions
if ($site_config["MEMBERSONLY"]){
loggedinonly();

if($CURUSER["view_torrents"]=="no")
show_error_msg("Error","You do not have permission to view torrents",1);
}


stdhead("Seedbox Torrents");

begin_frame("Torrents seedbox");

$catresult = SQL_Query_exec("SELECT id, name FROM categories ORDER BY sort_index");

while($cat = mysql_fetch_array($catresult))
{
$orderby = "ORDER BY torrents.id DESC"; //Order
$where = "WHERE banned = 'no' AND category='$cat[id]' AND visible='yes'";


$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  AND torrents.seedbox = 'yes' $orderby $limit";

$res = SQL_Query_exec($query) or die(mysql_error());


$numtor = mysql_num_rows($res);

if ($numtor != 0) {
echo "<B><a href=torrents.php?cat=".$cat[id].">$cat[name]</a></B>";
list($pagertop, $pagerbottom, $limit) = pager(1000, $count, "torrents.php?" . $addparam); //adjust pager to match LIMIT
torrenttable($res);
echo "<BR>";
}


}
end_frame();
stdfoot();
?>

Big thanks ! ...a very good idea!

:)
Unknown User
2013-04-16 06:43:38
$res = SQL_Query_exec($query);


instead of

:

$res = SQL_Query_exec($query) or die(mysql_error());

 :)
2013-04-21 16:02:07
"thib, post: 89986":

$res = SQL_Query_exec($query);


instead of

:

$res = SQL_Query_exec($query) or die(mysql_error());

 :)
Thanks thib!  ;)
Unknown User
2013-06-10 02:01:10
hello ArticWolf

were put this ligne code exactly in torrents-upload

after,before,below  :P

//update seedbox
if($CURUSER["class") > 4) {
if ($_POST["seedbox"] == "yes") {
$seedbox = 'yes';
}else{
$seedbox = 'no';
}
}
2013-06-10 20:11:55
@phoenix look at first post  ;)
Unknown User
2013-06-14 22:25:32
thank UFFEN01

dur dur de suivre les instructions

my job is technicien of mainteance network
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