Welcome,
Guest
. Please
login
or
register
.
03-20-2010, 17:06:22
TorrentFlux Home
|
TorrentFlux Hosting
TorrentFlux Forums
Code Hacks and Tools
TorrentFlux 2.1 Hacks
XML Output
« previous
next »
Pages:
[
1
]
Author
Topic: XML Output (Read 2729 times)
darknite
Newbie
Offline
TF Base: Linux 2.x
Posts: 39
XML Output
«
on:
05-04-2006, 06:05:46 »
IHateMyISP had coded this little hack up for 2.0, and I finally got around to updating it to work with 2.1..
It's very messy, seeing how I'm not a php expert by any means, I just hacked his hack to make it work..
add to
config.php
Code:
/**************************************************************************/
// Define if you want XML-like output of information pertaining to your
// TF install and torrents
$cfg["xmlinfo"] = true;
/**************************************************************************/
then use the attached xmlout.php
Logged
SERVER: Slackware-current | AMD Athlon 1Ghz | 512MB | Apache 1.3 | PHP 4.4.1 | MySQL 4.1.14 | TF 2.1 | NAS: AMD AthlonXP 2800+ | 1024MB| 1.12TB Storage | TF: 2.1 Mod/Hacks: Realname Links/Multi-upload/multi-search/Transfer stats/Cookied Login/Ajax Details
ramninja
Newbie
Offline
Posts: 30
Re: XML Output
«
Reply #1 on:
05-06-2006, 08:08:16 »
Cheers!
Logged
Hostname - Kain | Linux 2.6.15-gentoo-r1 | Pentium3 (Coppermine) 1Ghz | 256mb Sdram | Torrentflux2.0b | lighttpd-1.4.10 | PHP 5.1.2-gentoo | python 2.3.5 | hda: WDC WD1200JB-00CRA1 (Capacity: 111.79 GB) |-| Perfect TF system
http://ramninja.deviantart.com/
Rebel
Newbie
Offline
Posts: 8
Re: XML Output
«
Reply #2 on:
05-07-2006, 18:07:09 »
oh joy, i was waiting for this to hit 2.1, thanks a bunch darknite,
anyone got any mirc script code for this?
Logged
khr0n0s
Jr. Member
Offline
TF Base: Linux 2.x
Posts: 66
Re: XML Output
«
Reply #3 on:
06-15-2006, 23:33:12 »
This isn't working for me. I am getting the following error:
XML Parsing Error: no element found
Location:
http://domain.com/torrentflux/xmlout.php
Line Number 7, Column 27:base class -- dont do this
--------------------------^
Logged
FreeBSD 6.0 | torrentflux_2.1-b4rt-93
darknite
Newbie
Offline
TF Base: Linux 2.x
Posts: 39
Re: XML Output
«
Reply #4 on:
06-17-2006, 11:05:04 »
Quote from: khr0n0s on 06-15-2006, 23:33:12
This isn't working for me. I am getting the following error:
XML Parsing Error: no element found
Location:
http://domain.com/torrentflux/xmlout.php
Line Number 7, Column 27:base class -- dont do this
--------------------------^
yeah, apparently this doesn't play nice with b4rt's installbase. I might visit this issue later, but right now, unless I get a bunch of free time, I don't know if I'll be able to fix it
Logged
SERVER: Slackware-current | AMD Athlon 1Ghz | 512MB | Apache 1.3 | PHP 4.4.1 | MySQL 4.1.14 | TF 2.1 | NAS: AMD AthlonXP 2800+ | 1024MB| 1.12TB Storage | TF: 2.1 Mod/Hacks: Realname Links/Multi-upload/multi-search/Transfer stats/Cookied Login/Ajax Details
b4rt
Hero Member
Offline
TF Base: Linux 2.x
Posts: 543
Re: XML Output
«
Reply #5 on:
06-17-2006, 11:21:40 »
Quote from: darknite on 06-17-2006, 11:05:04
Quote from: khr0n0s on 06-15-2006, 23:33:12
This isn't working for me. I am getting the following error:
XML Parsing Error: no element found
Location:
http://domain.com/torrentflux/xmlout.php
Line Number 7, Column 27:base class -- dont do this
--------------------------^
yeah, apparently this doesn't play nice with b4rt's installbase. I might visit this issue later, but right now, unless I get a bunch of free time, I don't know if I'll be able to fix it
hacks using hardcoded torrent-clients wont work on my version.
i was thinking of adding features like different output-formats as well... but did nothing in that direction so far but xml would be the first beside html i would add
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
darknite
Newbie
Offline
TF Base: Linux 2.x
Posts: 39
Re: XML Output
«
Reply #6 on:
06-17-2006, 16:02:12 »
okay..
once again, this is a dirty hack of a hack..
change
Code:
$af = new AliasFile($dirName.$alias, null);
to
Code:
$af = AliasFile::getAliasFileInstance($cfg["torrent_file_path"].$alias, $torrentowner, $cfg);
from my 5 mins of testing, this should fix the problem with b4rt's codebase
*NOTE* this has not been tested other than "okay, it displays"..
Logged
SERVER: Slackware-current | AMD Athlon 1Ghz | 512MB | Apache 1.3 | PHP 4.4.1 | MySQL 4.1.14 | TF 2.1 | NAS: AMD AthlonXP 2800+ | 1024MB| 1.12TB Storage | TF: 2.1 Mod/Hacks: Realname Links/Multi-upload/multi-search/Transfer stats/Cookied Login/Ajax Details
b4rt
Hero Member
Offline
TF Base: Linux 2.x
Posts: 543
Re: XML Output
«
Reply #7 on:
06-17-2006, 16:10:59 »
Quote from: darknite on 06-17-2006, 16:02:12
okay..
once again, this is a dirty hack of a hack..
change
Code:
$af = new AliasFile($dirName.$alias, null);
to
Code:
$af = AliasFile::getAliasFileInstance($cfg["torrent_file_path"].$alias, $torrentowner, $cfg);
from my 5 mins of testing, this should fix the problem with b4rt's codebase
*NOTE* this has not been tested other than "okay, it displays"..
yeah but with eventual wrong values as different torrent-clients and different stat-file-formats are not handled different ~
this "might" work if you only use tornado-clients and have tornado-client as default bt-client.
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
khr0n0s
Jr. Member
Offline
TF Base: Linux 2.x
Posts: 66
Re: XML Output
«
Reply #8 on:
06-17-2006, 22:51:22 »
Quote from: b4rt on 06-17-2006, 16:10:59
yeah but with eventual wrong values as different torrent-clients and different stat-file-formats are not handled different ~
this "might" work if you only use tornado-clients and have tornado-client as default bt-client.
Well since I mostly use transmission these days, I guess it isn't worth me trying it out.
The reason I use this is that I reformat the xml into an rss compatable format, then I use the rss reader on my phone/xbox and other devices to check on my torrent status. It's easier than booting my computer, and I can do it at the pub/work...
Thanks darknite and b4rt for taking a look at this. I hope the problems on b4rts release can be resolved sometime soon, I know he is a very busy man
Logged
FreeBSD 6.0 | torrentflux_2.1-b4rt-93
b4rt
Hero Member
Offline
TF Base: Linux 2.x
Posts: 543
Re: XML Output
«
Reply #9 on:
06-17-2006, 23:17:51 »
just overflew the code and this uses stat-files with lower-case-chars only.
(file has copy-pasted functions from tf with a suffix "2", dunny why ~)
-> this probably will behave bogus in its current form on tf-b4rt-8(+).
the file may be ported to tf-b4rt quite easy so i am thinking of merging this into the next release (not as single file but as "outputformat"-case (very low) of index-page)
as i made further mods on index-page already and my transfer-process-functions are already splitted into more granular functions this may be done easier and with less to none copy-pasted code at all.
EDIT: integrated rss-feed-feature in tf-b4rt. will be in next release
regards,
b4rt
«
Last Edit: 06-18-2006, 15:49:12 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
khr0n0s
Jr. Member
Offline
TF Base: Linux 2.x
Posts: 66
Re: XML Output
«
Reply #10 on:
06-20-2006, 06:57:22 »
Quote from: b4rt on 06-17-2006, 23:17:51
EDIT: integrated rss-feed-feature in tf-b4rt. will be in next release
You are my hero!
Thanks
Logged
FreeBSD 6.0 | torrentflux_2.1-b4rt-93
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
TorrentFlux
-----------------------------
=> TorrentFlux News
=> TorrentFlux Search Engine Modules and Updates
=> Forum/Website Problems
-----------------------------
TorrentFlux Support
-----------------------------
=> Linux Installations Support
=> Windows Installations (Limited Support)
=> International Support
-----------------------------
Bugs, Fixes, and Feature Requests
-----------------------------
=> Linux Bugs
=> Windows Bugs
=> Feature Requests
-----------------------------
Code Hacks and Tools
-----------------------------
=> TorrentFlux Tools
=> TorrentFlux 2.3 Hacks
=> TorrentFlux 2.1 Hacks
=> TorrentFlux 2.0 Hacks
=> TorrentFlux 1.x Hacks
=> TorrentFlux Themes (skins)
-----------------------------
Off The Wall
-----------------------------
=> Off Topic Discussion
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Powered by SMF 1.1.1
|
SMF © 2006, Simple Machines LLC