TorrentFlux.com Welcome, Guest. Please login or register.
03-20-2010, 17:03:18
Home Help Search Login Register donate
TorrentFlux Home | TorrentFlux Hosting

+  TorrentFlux Forums
|-+  Code Hacks and Tools
| |-+  TorrentFlux 2.1 Hacks
| | |-+  TorrentFlux 2.1-b4rt [Current: 2.1-b4rt-98]
« previous next »
Pages: 1 ... 30 31 [32] 33 34 ... 58 Go Down Print
Author Topic: TorrentFlux 2.1-b4rt [Current: 2.1-b4rt-98]  (Read 165319 times)
b4rt
Hero Member
*****
Offline Offline

TF Base: Linux 2.x
Posts: 543



View Profile WWW
« on: 04-24-2006, 11:08:10 »



moved...

since version 2.1-b4rt-94 this version is moved to :




Do you plan to update tf-b4rt with TF2.3 as a base?

the old 2.1-branch of tf-b4rt (2.1-b4rt-xxx) is not actively developed (only fixes, minors and updates) but should be still an alternative for official 2.2/2.3.
all things from the changelogs of 2.2/2.3 are ported to both tfb-branches (except the image-vali which is only in torrentflux-b4rt but there in an extended implementation)
so old branch has "all" (except the image-vali) from 2.2/2.3 already in v98.

"torrentflux-b4rt" (which will be renamed to a real different name before going final) is a new thing and has nothing to do with the official tf-lines. only thing you can do is upgrade from official tfs to torrentflux-b4rt (check the INSTALL-doc how to do that). just check out the latest alpha, its installed "in a minute" (web-based setup + upgrade).

« Last Edit: 02-02-2007, 10:16:42 by b4rt » Logged

torrentflux-b4rt svn-trunk
Linux 2.4.34.1, Apache 2.0.59, PHP 4.4.5, Perl 5.8.8, Python 2.5, MySQL 4.1.22
 
b4rt
Hero Member
*****
Offline Offline

TF Base: Linux 2.x
Posts: 543



View Profile WWW
« Reply #466 on: 06-15-2006, 15:13:09 »

hmm... it's not a timeout because the page refresh is 90s and the login timeout is 3mins. And a Plugin couldn't be the Problem, because i've opend TF in IE 6, for testing and there was nearly the same Problem Sad. An extra Window was opened but TF is shown, that's like with FF Wink. Now i've opened by myself an extra window for the dereferrer link and too only TF loaded.

I've changed a little bit the index.php, but i only made a new column for the online/offline users. But the dereferrer has'nt somthing to do with this Huh?.

then i guess this is not a browser problem at all but something different.
on the dereferrer page, what link do you see ? your wanted target or tfs index.php ?
(you could increase the time in dereferrer.php from 0 to n to debug this)

regards,
b4rt
Logged

torrentflux-b4rt svn-trunk
Linux 2.4.34.1, Apache 2.0.59, PHP 4.4.5, Perl 5.8.8, Python 2.5, MySQL 4.1.22
PiForever
Full Member
***
Offline Offline

TF Base: Linux 2.x
Posts: 144





View Profile
« Reply #467 on: 06-15-2006, 16:58:01 »

When I use the new feature (upload+start), the torrent does not die when the max limit is reached!! I tested this several times, using both the button on the main page, and the multi upload page also. I hope I am not doing something wrong...

thanx,

P.S. i am using v85
Logged

Apache 2.0.54-MySQL 4.1.19-PHP 2.0.4-Perl 5.8.6-Fedora 4
TorrentFlux.2.1-b4rt
b4rt
Hero Member
*****
Offline Offline

TF Base: Linux 2.x
Posts: 543



View Profile WWW
« Reply #468 on: 06-15-2006, 17:27:58 »

When I use the new feature (upload+start), the torrent does not die when the max limit is reached!! I tested this several times, using both the button on the main page, and the multi upload page also. I hope I am not doing something wrong...

thanx,

P.S. i am using v85


hmm this may be based in the changes i made because of the "transmission-issue". didnt retest the share-kill feature after fixing totals-stuff. (that feature is a pain to really test and needs time ~)
you sure its only with the instant-start ? maybe its also when you use the normal interactive start.
also what client is it ? a transmission or a tornado ? (need to know that because as i know now they are different internal concerning totals (-> sharekill))

regards,
b4rt
Logged

torrentflux-b4rt svn-trunk
Linux 2.4.34.1, Apache 2.0.59, PHP 4.4.5, Perl 5.8.8, Python 2.5, MySQL 4.1.22
PiForever
Full Member
***
Offline Offline

TF Base: Linux 2.x
Posts: 144





View Profile
« Reply #469 on: 06-15-2006, 18:12:13 »

Not sure about the normal interactive one. In my global settings, the share is set at 120% and it always dies successfully, but when I use the new upload+start it does not. I will do more testing. And BTW, I am not using transmission.

Thanx for the quick response,
Logged

Apache 2.0.54-MySQL 4.1.19-PHP 2.0.4-Perl 5.8.6-Fedora 4
TorrentFlux.2.1-b4rt
PiForever
Full Member
***
Offline Offline

TF Base: Linux 2.x
Posts: 144





View Profile
« Reply #470 on: 06-16-2006, 05:48:51 »

Hi,

Yes both do not work. Setting the max share in the  interactive mode (the start page) and starting by the “Upload+Start” do not work. However, seeding up to the default setting w/o changing it in the start page does work.

Regards,
« Last Edit: 06-16-2006, 06:07:13 by PiForever » Logged

Apache 2.0.54-MySQL 4.1.19-PHP 2.0.4-Perl 5.8.6-Fedora 4
TorrentFlux.2.1-b4rt
b4rt
Hero Member
*****
Offline Offline

TF Base: Linux 2.x
Posts: 543



View Profile WWW
« Reply #471 on: 06-16-2006, 07:48:58 »

Hi,

Yes both do not work. Setting the max share in the  interactive mode (the start page) and starting by the “Upload+Start” do not work. However, seeding up to the default setting w/o changing it in the start page does work.

Regards,

thanks for testing, i will look into the code tonight and search for what is the problem with sharekill.
posting it here if i find out anything new.

regards,
b4rt
Logged

torrentflux-b4rt svn-trunk
Linux 2.4.34.1, Apache 2.0.59, PHP 4.4.5, Perl 5.8.8, Python 2.5, MySQL 4.1.22
mb.Tab
Hero Member
*****
Offline Offline

TF Base: Linux 2.x
Posts: 574


Gotta love my Avatar !!





View Profile WWW
« Reply #472 on: 06-16-2006, 08:18:37 »

Hey B4rt,

Hope you´re doin well Smiley. I got a little nice addition that would be great to have, could you pls look into this and add it to your to-do-list, would be nice Smiley

Thanks Smiley
Logged

b4rt
Hero Member
*****
Offline Offline

TF Base: Linux 2.x
Posts: 543



View Profile WWW
« Reply #473 on: 06-16-2006, 11:33:36 »

Hey B4rt,

Hope you´re doin well Smiley. I got a little nice addition that would be great to have, could you pls look into this and add it to your to-do-list, would be nice Smiley

Thanks Smiley

already on it with a low prio as this can be done with multi-delete from dropdown as long as torrents are not deleted.

my time for new things is low to null as i am busy with "support-requests" much time...
"it doesnt work" makes me sad... its no error report.. its nothing Wink
it only costs loads of my time to "research" those "problems"...

regards,
b4rt
« Last Edit: 06-16-2006, 11:39:05 by b4rt » Logged

torrentflux-b4rt svn-trunk
Linux 2.4.34.1, Apache 2.0.59, PHP 4.4.5, Perl 5.8.8, Python 2.5, MySQL 4.1.22
mb.Tab
Hero Member
*****
Offline Offline

TF Base: Linux 2.x
Posts: 574


Gotta love my Avatar !!





View Profile WWW
« Reply #474 on: 06-16-2006, 11:47:18 »

Hey B4rt,

Hope you´re doin well Smiley. I got a little nice addition that would be great to have, could you pls look into this and add it to your to-do-list, would be nice Smiley

Thanks Smiley

already on it with a low prio as this can be done with multi-delete from dropdown as long as torrents are not deleted.

my time for new things is low to null as i am busy with "support-requests" much time...
"it doesnt work" makes me sad... its no error report.. its nothing Wink
it only costs loads of my time to "research" those "problems"...

regards,
b4rt

Yeah sure thing..It´s just a function i´d like to see in one of the next releases, you know....Smiley
Logged

b4rt
Hero Member
*****
Offline Offline

TF Base: Linux 2.x
Posts: 543



View Profile WWW
« Reply #475 on: 06-16-2006, 12:41:14 »

Hey B4rt,

Hope you´re doin well Smiley. I got a little nice addition that would be great to have, could you pls look into this and add it to your to-do-list, would be nice Smiley

Thanks Smiley

already on it with a low prio as this can be done with multi-delete from dropdown as long as torrents are not deleted.

my time for new things is low to null as i am busy with "support-requests" much time...
"it doesnt work" makes me sad... its no error report.. its nothing Wink
it only costs loads of my time to "research" those "problems"...

regards,
b4rt

Yeah sure thing..It´s just a function i´d like to see in one of the next releases, you know....Smiley

as i wrote in pm it was not targeted at you, just a common "uff".

regards,
b4rt
Logged

torrentflux-b4rt svn-trunk
Linux 2.4.34.1, Apache 2.0.59, PHP 4.4.5, Perl 5.8.8, Python 2.5, MySQL 4.1.22
vasyl83
Newbie
*
Offline Offline

TF Base: Linux 2.x
Posts: 3



View Profile
« Reply #476 on: 06-17-2006, 04:58:40 »

Hello there b4rt I am new here and actually a total noob to L.A.M.P. so I am having difficulty making 2.1-b4rt [Current: v85] run correctly, it all works. I got everything in settings green but for some reason the layout is really crappy, basically I dont see any images its only text and it doesnt want to change themes I was wondering if it could be caused by the fact that I am trying to run vanilla TF and b4rt together (I have them in different folders using different DBs though)
if you could take a look maybe seeing it will help:



or could it be some access problem? I tryed making th hole folder chmoded to 0777 and it still look the same?
If someone already had that problem sorry but I wasnt able to find that thread, so please point me toward a solution if it is known

P.S.: I dont get any errors on from MySQL apache or PHP so its kinda weird that it looks that way without any errors in logs or displayed on the page itself
Logged
CrazyCanuck
Newbie
*
Offline Offline

TF Base: Linux 2.x
Posts: 22




View Profile WWW
« Reply #477 on: 06-17-2006, 05:34:02 »

Hey b4rt,

dop you think you could add in the following? I keep copying and pasting it over across updates, thought others might like it too.

functions.tf.php
find
Code:
// sort the files by date
     krsort($arList);

change to:
Code:
    if ($sortOrder == 'date') {
        // sort the files by date
        krsort($arList);
    } else {
        // sort alphabetically
        natcasesort($arList);
    }

now, $sortOrder could be
Code:
$sortOrder = $_GET['orderBy'];
or it could be part of the admin page (sql), or even part of the main listings under <name>: Torrent File using $_GET['orderBy']

find:
Code:
$output .= "<tr><td background=\"themes/".$cfg["theme"]."/images/bar.gif\" bgcolor=\"".$cfg["table_header_bg"]."\"><div align=center class=\"title\">".$cfg["user"].": "._TORRENTFILE."</div></td>";
Change to:
Code:
$output .= "<tr><td background=\"themes/".$cfg["theme"]."/images/bar.gif\" bgcolor=\"".$cfg["table_header_bg"]."\"><div align=center class=\"title\">".$cfg["user"].": <a href=
\"?orderBy=date\" target=\"_SELF">"._TORRENTFILE."</a></div></td>";

for those who don't "get it" it allows the user to change the order of the listings from Alphabetical to Date listings.

it's a pretty rough posting, but you get the drift.
« Last Edit: 06-17-2006, 05:44:57 by CrazyCanuck » Logged

Gentoo Linux 2006.0, Kernel-2.6.17, lighttpd-1.3.16, MySQL 4.1.20, PHP 5.1.4
b4rt
Hero Member
*****
Offline Offline

TF Base: Linux 2.x
Posts: 543



View Profile WWW
« Reply #478 on: 06-17-2006, 07:55:47 »

Hey b4rt,

dop you think you could add in the following? I keep copying and pasting it over across updates, thought others might like it too.

functions.tf.php
find
Code:
// sort the files by date
     krsort($arList);

change to:
Code:
    if ($sortOrder == 'date') {
        // sort the files by date
        krsort($arList);
    } else {
        // sort alphabetically
        natcasesort($arList);
    }

now, $sortOrder could be
Code:
$sortOrder = $_GET['orderBy'];
or it could be part of the admin page (sql), or even part of the main listings under <name>: Torrent File using $_GET['orderBy']

find:
Code:
$output .= "<tr><td background=\"themes/".$cfg["theme"]."/images/bar.gif\" bgcolor=\"".$cfg["table_header_bg"]."\"><div align=center class=\"title\">".$cfg["user"].": "._TORRENTFILE."</div></td>";
Change to:
Code:
$output .= "<tr><td background=\"themes/".$cfg["theme"]."/images/bar.gif\" bgcolor=\"".$cfg["table_header_bg"]."\"><div align=center class=\"title\">".$cfg["user"].": <a href=
\"?orderBy=date\" target=\"_SELF">"._TORRENTFILE."</a></div></td>";

for those who don't "get it" it allows the user to change the order of the listings from Alphabetical to Date listings.

it's a pretty rough posting, but you get the drift.

a part which still really annoys me... the unsortable (fixed date-sort) torrentlist-view. my first idea was to make the whole list meta-info (database) driven and have real indices for torrents (result would be like the link mod, you can reorder rows like you want it).
this needs mod in quite some core-code... i did it already in my current codebase in parts as my current version has already 2 index-pages, 1 in tfs org. design and 1 with alternate list-view ~
nevertheless my new function getTransferList replacing tfs getDirList in new index-page is still based on a stat-file-loop so index-sorting is still not possible...

what i saw lastly is how the azureus-developers solved part of this. (really smart i must admit ~)
they dont sort the rows on the server-side but have all reorder-ops implemented in javascript. (of course they sort things on server before delivering html-content, i mean the interactive resort triggered by user clicking on columns heads)
still no pre-sort possible if you just port this design to tf but i think this is a smart solution as you can reorder without roundtrips.

to the point... yeah of course i will integrate this hack, thanks for providing the code. this is better than nothing for now, we have at least some presorting without refactoring statfile-loop-design Smiley

regards,
b4rt
« Last Edit: 06-17-2006, 08:39:36 by b4rt » Logged

torrentflux-b4rt svn-trunk
Linux 2.4.34.1, Apache 2.0.59, PHP 4.4.5, Perl 5.8.8, Python 2.5, MySQL 4.1.22
b4rt
Hero Member
*****
Offline Offline

TF Base: Linux 2.x
Posts: 543



View Profile WWW
« Reply #479 on: 06-17-2006, 08:18:02 »

Hello there b4rt I am new here and actually a total noob to L.A.M.P. so I am having difficulty making 2.1-b4rt [Current: v85] run correctly, it all works. I got everything in settings green but for some reason the layout is really crappy, basically I dont see any images its only text and it doesnt want to change themes I was wondering if it could be caused by the fact that I am trying to run vanilla TF and b4rt together (I have them in different folders using different DBs though)
if you could take a look maybe seeing it will help:

...

this somehow looks like the theme cant be found or accessed (theme includes css + images)
cant think of anything in my code which may cause this so i guess its either permission-related or you have a messed entry for your theme in the database.
check the "themes" dir and its subdirs of your installation if it can be accessed by your webserver. (you said you chmoded to 0777 .. done it recursive so themes are also chmoded ? also i would never chmod anything 0777 where its not a absolute must (which is very very rare..) ...especially not dirs under webroot... 0777 is very bad in any case... use chown + limited rights for this. (chown tfs dir recursive to webserver-user + webserver-group))
example if you have tf in /var/www and webserver-user/-group is www-data/www-data
Code:
chown -R www-data:www-data /var/www
to check what themes you have confed from outside flux you could use something like this :
Code:
echo "use torrentflux; SELECT user_id,theme FROM tf_users ORDER BY user_id ASC;" | mysql -u torrentflux -p

@multiple tfs on one host :
you will always run into problems when you do this as soon as both installs have running torrents. no matter if it are tf-b4rt or multiple tf 2.1 finals. no matter if you use different dbs and folders.. this is based in one of tfs core-designs which uses "process-list parsing". (so even chrooting them wont work... maybe it can be done with bsd-jails if they have separate process-lists for the jails)
(this has nothing to do with your theme-problem, just a generic hint ~)

regards,
b4rt
« Last Edit: 06-17-2006, 08:19:43 by b4rt » Logged

torrentflux-b4rt svn-trunk
Linux 2.4.34.1, Apache 2.0.59, PHP 4.4.5, Perl 5.8.8, Python 2.5, MySQL 4.1.22
b4rt
Hero Member
*****
Offline Offline

TF Base: Linux 2.x
Posts: 543



View Profile WWW
« Reply #480 on: 06-17-2006, 09:15:23 »

When I use the new feature (upload+start), the torrent does not die when the max limit is reached!! I tested this several times, using both the button on the main page, and the multi upload page also. I hope I am not doing something wrong...

thanx,

P.S. i am using v85

Not sure about the normal interactive one. In my global settings, the share is set at 120% and it always dies successfully, but when I use the new upload+start it does not. I will do more testing. And BTW, I am not using transmission.

Thanx for the quick response,
Hi,

Yes both do not work. Setting the max share in the  interactive mode (the start page) and starting by the “Upload+Start” do not work. However, seeding up to the default setting w/o changing it in the start page does work.

Regards,

just looking into this and can confirm this bug. its like PiForever describes. you dont even need to wait until the seeding-percentage has transferred, just look into the process-list and you will see the torrents started with instant-start have a "0" at sharing-percentage which means "seed forever".

will update issues-list with this bug now and update when i have reason + solution for this available.


EDIT: update .. i can only confirm this bug for the case when you are using instant-start (upload+start). share-kill param is passed correct if you use interactive-dialog or start fresh torrent(s) with dropdown-list-start.

EDIT: have found the source of this bug and fixed it. i also altered some of flux behaviour (create initial stat-files on torrent-inject not on index-reload (still done also for "external injects")) when doing this to have 2 things in one go.
will add needed snips to issues when i sorted out what needs to be changed on a v85.

EDIT: added needed changes to fix this bug to issues.

regards,
b4rt
« Last Edit: 06-19-2006, 07:45:45 by b4rt » Logged

torrentflux-b4rt svn-trunk
Linux 2.4.34.1, Apache 2.0.59, PHP 4.4.5, Perl 5.8.8, Python 2.5, MySQL 4.1.22
Pages: 1 ... 30 31 [32] 33 34 ... 58 Go Up Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by SMF 1.1.1 | SMF © 2006, Simple Machines LLC Powered by PHP