Filesoup
X   Site Message
(Message will auto close in 2 seconds)


> 

If you would like to advertise your Hosting, Services or Products on Filesoup, please contact Geeker for a quote.

3 Pages V   1 2 3 >  
Reply to this topicStart new topic
> T Xore addons
phrostwave
post May 9 2007, 04:09 AM
Post #1


DJ Taktikz / STR Records
Group Icon

Group: Member
Posts: 72
Joined: 7-September 06
From: 407 Area
Member No.: 411,795

System Specs: (show/hide)




these are a few addons ive made for t xore that have proved very useful for me, so i'll share them with anyone else who is looking for more stuff to add onto t xore.

includes:
registration captcha
mininova styled footer and category tabs
'altasearcha' ("0 results for __....try this search on isohunt, torrentspy, mininova, torrentportal")
dehackeds torrent decoder page (prefabbed and working!)
admin search (search for torrents to modify & delete!)

includes separate documentation for installing/hacking each.
you need guibeans 0.4.1 mods already installed (at least for the registration system)!
and if that wasnt enough, you definitely need t-xore 0.4.0 installed AT THE BARE MINIMUM!

you can see a few of these hacks in action here....

Download HERE (TARBALL, 363 KB's)

please post back here if there is anything documentation or code missing, i will redo the package immediately!

This post has been edited by phrostwave: May 9 2007, 04:21 AM


--------------------
:: My side of the internet

AK Nova 1.7.5 :: Source available!
Go to the top of the pageReport Post
+
phrostwave
post May 9 2007, 07:38 PM
Post #2


DJ Taktikz / STR Records
Group Icon

Group: Member
Posts: 72
Joined: 7-September 06
From: 407 Area
Member No.: 411,795

System Specs: (show/hide)




found a little woopsie in the admin search

open up takesearch.php

find:
CODE
echo '<td><a href="../download.php?id='.$hash.'"><img src="images/d.gif" alt="[d]" /></a> '.regicon($registration,$tracker).' '.desc($description).'<a href="details.php?id='.$id.'">'.htmlentities($torrentname).'</a></td>';


replace with
CODE
echo '<td><a href="../download.php?id='.$hash.'"><img src="../images/d.gif" alt="[d]" /></a> '.regicon($registration,$tracker).' '.desc($description).'<a href="../details.php?id='.$id.'">'.htmlentities($torrentname).'</a></td>';


now it should redirect you the details page, i forgot to point it back 1 folder in the details.php
sorry about how it refreshes to the new.php when you delete a torrent, i havent made the code where it refreshes to the same search page with the same term + category. if anyone knows how to do this help me out a little =P


also, i have implemented a way to link back to the uploaders profile when they post a torrent in the details page (like mininova).

open up your database in phpmyadmin, and execute the following sql:

CODE
ALTER TABLE `torrents` ADD `posted_id` varchar(255);


open up upload.php

find:
CODE
if (isset($_COOKIE['username'])&&isset($_COOKIE['userid']))
{
$name=$_COOKIE['username'];
// Drop torrent stats into db
mysql_query("INSERT INTO torrents
(ip,torrentname,hash,maincat,subcat,tracker,size,seeds,peers,added,updated,registration,descripti
on,posted_by) VALUES
('$REMOTE_ADDR','$torrentname','$infohash','$maincat','$subcat','$tracker','$size','$seeds','$peers','$date','$updated','$registration','$desc_enum','$name','$userid')") or die (mysql_error());
}


replace with:
CODE
if (isset($_COOKIE['username'])&&isset($_COOKIE['userid']))
{
$name=$_COOKIE['username'];
// Drop torrent stats into db
mysql_query("INSERT INTO torrents
(ip,torrentname,hash,maincat,subcat,tracker,size,seeds,peers,added,updated,registration,descripti
on,posted_by,posted_id) VALUES
('$REMOTE_ADDR','$torrentname','$infohash','$maincat','$subcat','$tracker','$size','$seeds','$peers','$date','$updated','$registration','$desc_enum','$name','$userid','$posted_id')") or die (mysql_error());
}


now open up details.php

find:
CODE
if (!$posted_by==0)
{
echo '<tr><td>Uploaded by</td><td> '.$posted_by.'</td></tr>';
}


replace with:
CODE
if (!$posted_by==0)
{
echo '<tr><td>Uploaded by</td><td> <a href="profile.php?id='.$posted_id.'">'.$posted_by.'</a></td></tr>';
}


post back if you come across any errors!

This post has been edited by phrostwave: May 9 2007, 08:15 PM
Go to the top of the pageReport Post
+
hustler263
post May 9 2007, 08:09 PM
Post #3


Spam Soup
Group Icon

Group: Admin
Posts: 1,382
Joined: 16-January 04
From: Florida
Member No.: 61,222
 


I think it is great that you are sharing your modifications with everyone, however 1st off the registration mod was one in which from at least what I installed and I believe what is in quibeans code is OT-omer registration code.

So why not just post your modified code as guibean did as it would be more beneficial to those that are more technically challanged and it would make it easier on them to figure out how to add things or change things to suit their site.

Just a suggestion. Again, I think it's great that you was willing to offer these modifications to others! applaud.gif


--------------------

Mini Tracker Public Announce URL: http://hustlers-place.com/sbt/announce.php
Hustler's Place Lite Tracker: http://hustlers-place2.com/ttlite/index.php
Hustler's Place BT Lister using AK Nova: http://hustlers-place.com/mybit/index.php
(New) Hustler's Place Topsites Site: http://hustlers-place.com/topsite/index.php
Hustler's Place VIPTracker: http://hustlers-place2.com/viptracker/index.php This one requires
you to be an active member of our forums!
Go to the top of the pageReport Post
+
phrostwave
post May 9 2007, 08:27 PM
Post #4


DJ Taktikz / STR Records
Group Icon

Group: Member
Posts: 72
Joined: 7-September 06
From: 407 Area
Member No.: 411,795

System Specs: (show/hide)




ive decided to post an entire package to download with all of the mods listed above, plus preconfigured ibitzy, and quite a few other things that were not included in the above package....

the only things you will have to do yourself is edit the config.php file, the ibitzy conf.php (admin/b/conf.php), and if you want to use it, the transbar.php (for intertran service). you also might want to replace/edit the about.php to your own needs.

the last thing i need to emphasize is that you should just make a new folder in your root, and copy your current t-xore installation into there, and then make an entirely new database with the included sql file, and if everything runs smoothly, export your stuff from your old database and insert them into the new one (this make it so that if anything DOES mess up, you can simply delete the modified files/database and resume like nothing happened).

DOWNLOAD HERE (zipped, 5.63 MB)

demo url is still here.

This post has been edited by phrostwave: May 9 2007, 09:54 PM
Go to the top of the pageReport Post
+
hustler263
post May 9 2007, 10:44 PM
Post #5


Spam Soup
Group Icon

Group: Admin
Posts: 1,382
Joined: 16-January 04
From: Florida
Member No.: 61,222
 


Thanks, I will definetly be messing with this one later on after I finish all my other work.

Again thanks for being kind enough to share your work! ThumbsUp.gif
Go to the top of the pageReport Post
+
proxykill
post May 9 2007, 10:53 PM
Post #6


PK-Torrents
Group Icon

Group: BT Community Leader
Posts: 271
Joined: 28-October 06
From: Isle Of Wight,UK
Member No.: 422,304
 
System Specs: (show/hide)




You could also remove all the unwanted trash from the listings using "str_replace"


like:
$torrentname = $r->filename2;
$torrentname = str_replace("_"," ",$torrentname);
$torrentname = str_replace("amp;","",$torrentname);
$torrentname = str_replace("%","",$torrentname);
$torrentname = str_replace("[","",$torrentname);
$torrentname = str_replace("]","",$torrentname);
$torrentname = str_replace(" "," ",$torrentname);
$torrentname = str_replace("avi","",$torrentname);
$torrentname = str_replace("S^M","",$torrentname);
$torrentname = str_replace("com","",$torrentname);
$torrentname = str_replace("mp3","",$torrentname);
$torrentname = str_replace("Lynda","",$torrentname);
$torrentname = str_replace("WWW","",$torrentname);
$torrentname = str_replace("www","",$torrentname);
$torrentname = str_replace("-"," ",$torrentname);
$torrentname = str_replace("(","",$torrentname);
$torrentname = str_replace(")","",$torrentname);
$torrentname = str_replace("net","",$torrentname);
$torrentname = str_replace("co.uk","",$torrentname);


--------------------
Torrent Listers/Crawlers/Trackers/Clients Downloads Get everything in one place

PHP Photo album by me coded for my brother with a p0rnrip.net theme because thats his favorit site. ;~P

PK-Torrents PKTv0.1beta - DEMO

Go to the top of the pageReport Post
+
phrostwave
post May 10 2007, 01:56 AM
Post #7


DJ Taktikz / STR Records
Group Icon

Group: Member
Posts: 72
Joined: 7-September 06
From: 407 Area
Member No.: 411,795

System Specs: (show/hide)




where would i go about putting this proxykill?
Go to the top of the pageReport Post
+
juiced
post May 10 2007, 02:40 AM
Post #8


Vegetable
Group Icon

Group: Member
Posts: 46
Joined: 7-May 07
Member No.: 452,851



Thanks for sharing this dude.
Go to the top of the pageReport Post
+
hustler263
post May 10 2007, 02:57 AM
Post #9


Spam Soup
Group Icon

Group: Admin
Posts: 1,382
Joined: 16-January 04
From: Florida
Member No.: 61,222
 


You could also just add this to your index.php file.

Find :

while ($row = mysql_fetch_array($result))
{
extract($row);

Under that add:

$torrentname = str_replace("_"," ",$torrentname);
$torrentname = str_replace("amp;","",$torrentname);
$torrentname = str_replace("%","",$torrentname);
$torrentname = str_replace("[","",$torrentname);
$torrentname = str_replace("]","",$torrentname);
$torrentname = str_replace(" "," ",$torrentname);
$torrentname = str_replace("avi","",$torrentname);
$torrentname = str_replace("S^M","",$torrentname);
$torrentname = str_replace("com","",$torrentname);
$torrentname = str_replace("mp3","",$torrentname);
$torrentname = str_replace("Lynda","",$torrentname);
$torrentname = str_replace("WWW","",$torrentname);
$torrentname = str_replace("www","",$torrentname);
$torrentname = str_replace("-"," ",$torrentname);
$torrentname = str_replace("(","",$torrentname);
$torrentname = str_replace(")","",$torrentname);
$torrentname = str_replace("net","",$torrentname);
$torrentname = str_replace("co.uk","",$torrentname);

Proxykill, wanted to thank you for all these extras as I only had 3 lines however I removed the very first one that you have listed this one $torrentname = $r->filename2; as what that did was remove the entire description.
Go to the top of the pageReport Post
+
phrostwave
post May 10 2007, 05:38 AM
Post #10


DJ Taktikz / STR Records
Group Icon

Group: Member
Posts: 72
Joined: 7-September 06
From: 407 Area
Member No.: 411,795

System Specs: (show/hide)




no problem juiced, i will post another package soon with more mods that ive made. some of them were too buggy for release, so i didnt include them (modified torrentstrike nzb uploader, user can edit profile fields, built in tracker...)

and thanks to proxykill for that code above and hustler for showing me where to put it, id tryed something very similar within the ibitzy script itself, but it didnt work out to well and ended up spitting out unicode letters (aka boxes)..

hope everyone else enjoys the script =]
Go to the top of the pageReport Post
+
hustler263
post May 10 2007, 06:32 AM
Post #11


Spam Soup
Group Icon

Group: Admin
Posts: 1,382
Joined: 16-January 04
From: Florida
Member No.: 61,222
 


I am enjoying messing with it as it has a different look and feel to it as most of the other T-Xore sites all look the same and I like the addtions and color changes etc.

I will however be working a bit more when I have time on the iBizy part for the sub-cats, I have it working to a certain degree as it was posted before which just gives you for instance a sub-cats of crawled movies and lists all of the movies in there, it's a shame that this hasn't been broken down more and as I said when I have more time to mess with it I will, but the fact is that T-xore has so many sub-cats it will take a while to experiment with to see if I will be able to get them workng close to the way they should.
Go to the top of the pageReport Post
+
phrostwave
post May 10 2007, 06:51 AM
Post #12


DJ Taktikz / STR Records
Group Icon

Group: Member
Posts: 72
Joined: 7-September 06
From: 407 Area
Member No.: 411,795

System Specs: (show/hide)




good point, even though the categories are pretty much mirrors of mininovas - it doesnt have to match it to work perfectly.

i noticed that ibitzy isnt really nice with rebuliding torrents to the proper bencoding sometimes, thats why i turned my website into a magnet hub (i actually rewrote a piece of the details.php to include the .torrent download link when i released this package). i even went so far as to looking through every inch of code and made the script upload them as .torrents instead of .bogtor; but that only solved a few of the bencoding issues, not all of them.

also, i've got a few more stylesheets ive tryed on it, thats the one thing i seem to be able to pull of the best beyond mods and stuff like that. thats probably the reason i like the t-xore script a bunch, its very close to the original mininova source = completely css driven with a few images here and there.

and last...im wanting to pull off mininova like url rewrites...anyone interested? ive got the original .htaccess, it just needs some reworking to match the t-xore file setup.

This post has been edited by phrostwave: May 10 2007, 06:53 AM
Go to the top of the pageReport Post
+
Jaggi
post May 10 2007, 04:28 PM
Post #13


Spam Soup
Group Icon

Group: BT Community Leader
Posts: 802
Joined: 11-August 04
Member No.: 170,409
 


could you explain the problem you having with ibitzy "building benc data for torrents"? and it actually doesn't build torrents it just downloads them from the source site, it all it does wiv benc is read data from the torrents.


--------------------
CODE9 ADMIN
Check out Code9-Group.org for the best stuff around, NOW running my IPBTracker (only IPB forum with a passkey system), membership now open.

IPBTracker (Invision 2.1.* intergrated forum tracker using XBT) going final in nxt release, IPBTracker 2.0 begins development for IPB 2.2 soon.

Check out IBITZY at my IPBTracker site, the best torrent spider around.
Go to the top of the pageReport Post
+
juiced
post May 10 2007, 05:51 PM
Post #14


Vegetable
Group Icon

Group: Member
Posts: 46
Joined: 7-May 07
Member No.: 452,851



Anyone working on a Ibitzy 0.4 + T-Xore 0.4 mod by chance!?!? Also, would anyone be interested in a simple but functional rss only crawler mod for t-xore? After all, crawling a bunch of rss feeds all the time from multiple sites will assure consistent new torrents.
Go to the top of the pageReport Post
+
phrostwave
post May 10 2007, 07:49 PM
Post #15


DJ Taktikz / STR Records
Group Icon

Group: Member
Posts: 72
Joined: 7-September 06
From: 407 Area
Member No.: 411,795

System Specs: (show/hide)




im not sure what is happening with them jaggi, for example if you actually upload a torrent, it'll add it to the database and the torrents folder just fine, but when i make ibitzy crawl for them - it just seems like it isnt able to properly parse a torrent sometimes and it gives the 'invalid bencoding' errors if you open it up in a torrent client. its ALMOST like isohunts (they had this same problem for a while) issue they were having when they first built their crawlers, im sure everyone remembers that.

and juiced, i have integrated 0.4 successfully before, but i need to make a few changes in the conf.php file to match t-xores setup a little better - i'll post it here when i get it working nicely =]
if you have an rss crawler, share share share =D

This post has been edited by phrostwave: May 10 2007, 08:32 PM
Go to the top of the pageReport Post
+

3 Pages V   1 2 3 >
Fast ReplyReply to this topicStart new topic
2 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
2 Members: OPPZeroCool, guibean

 




Celeb Gossip | Milan Hotels | Dubai Property Sale | Mortgages | Loans
-
Lo-Fi Version 0.1471 sec    --    12 queries    GZIP Enabled
Time is now: 30th May 2007 - 06:42 PM