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
[4 Fun] Graphical Torrents Categories
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2008-02-14 04:12:15
Hi dudes !

ok here its a graphical mod to apply to torrents categories,

it removes links and replace by icons and pic title on mouse over

IF U've got a fresh Install or Still using Original TT categories, dont brain storming, use dat :

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

--

-- Structure de la table `categories`

--

DROP TABLE IF EXISTS `categories`;



CREATE TABLE `categories` (

`id` int(10) unsigned NOT NULL auto_increment,

`name` varchar(30) NOT NULL default '',

`sort_index` int(10) unsigned NOT NULL default '0',

`image` varchar(255) NOT NULL default '',

`subcat` char(3) NOT NULL default 'no',

`parent_cat` varchar(15) NOT NULL default '',

`sub_sort` char(3) NOT NULL default '',

PRIMARY KEY  (`id`)

) TYPE=MyISAM AUTO_INCREMENT=111114 ;

--

-- table `categories`

--

INSERT INTO `categories` VALUES (1, 'All', 0, 'Anime.gif', 'yes', 'Anime', '1');
INSERT INTO `categories` VALUES (2, 'Divx_Xvid', 8, 'Divx_Xvid.gif', 'yes', 'Movies', '2');

INSERT INTO `categories` VALUES (3, 'Movies_SVCD_VCD', 8, 'Movies_SVCD_VCD.gif', 'yes', 'Movies', '3');

INSERT INTO `categories` VALUES (4, 'Movies_Other', 8, 'Movies_Other.gif', 'no', 'Movies', '4');

INSERT INTO `categories` VALUES (5, 'TVDVD', 5, 'TVDVD.gif', 'yes', 'TV', '5');

INSERT INTO `categories` VALUES (6, 'TV_Divx_Xvid', 5, 'TV_Divx_Xvid.gif', 'yes', 'TV', '6');

INSERT INTO `categories` VALUES (7, 'SVCD_VCD', 5, 'SVCD_VCD.gif', 'yes', 'TV', '7');

INSERT INTO `categories` VALUES (9, 'All', 2, 'Documentaries.gif', 'yes', 'Documentaries', '9');

INSERT INTO `categories` VALUES (10, 'PC', 4, 'PC.gif', 'yes', 'Games', '10');

INSERT INTO `categories` VALUES (11, 'PS2', 4, 'PS2.gif', 'yes', 'Games', '11');

INSERT INTO `categories` VALUES (12, 'PSP', 4, 'PSP.gif', 'yes', 'Games', '12');

INSERT INTO `categories` VALUES (13, 'Xbox', 4, 'Xbox.gif', 'yes', 'Games', '13');

INSERT INTO `categories` VALUES (14, 'Xbox360', 4, 'Xbox360.gif', 'yes', 'Games', '14');

INSERT INTO `categories` VALUES (15, 'PS1', 4, 'PS1.gif', 'yes', 'Games', '15');

INSERT INTO `categories` VALUES (16, 'Dreamcast', 4, 'Dreamcast.gif', 'yes', 'Games', '16');

INSERT INTO `categories` VALUES (17, 'Other', 4, 'Other.gif', 'yes', 'Games', '20');

INSERT INTO `categories` VALUES (18, 'PC', 1, 'PC.gif', 'yes', 'Apps', '18');

INSERT INTO `categories` VALUES (19, 'Mac', 1, 'Mac.gif', 'yes', 'Apps', '19');

INSERT INTO `categories` VALUES (20, 'Linux', 1, 'Linux.gif', 'yes', 'Apps', '20');

INSERT INTO `categories` VALUES (21, 'Other', 1, 'Other.gif', 'yes', 'Apps', '21');

INSERT INTO `categories` VALUES (22, 'MP3', 9, 'MP3.gif', 'yes', 'Music', '22');

INSERT INTO `categories` VALUES (23, 'Lossless', 9, 'Lossless.gif', 'yes', 'Music', '23');

INSERT INTO `categories` VALUES (24, 'Music_DVD', 9, 'Music_DVD.gif', 'yes', 'Music', '24');

INSERT INTO `categories` VALUES (25, 'Music_Video', 9, 'Music_Video.gif', 'yes', 'Music', '25');

INSERT INTO `categories` VALUES (26, 'Music_Radio', 9, 'Music_Radio.gif', 'yes', 'Music', '26');

INSERT INTO `categories` VALUES (27, 'Music_Other', 9, 'Music_Other.gif', 'yes', 'Music', '27');

INSERT INTO `categories` VALUES (33, 'Emulation', 10, 'Emulation.gif', 'yes', 'Other', '33');

INSERT INTO `categories` VALUES (34, 'PPCPDA', 10, 'PPCPDA.gif', 'yes', 'Other', '34');

INSERT INTO `categories` VALUES (35, 'Sounds', 10, 'Sounds.gif', 'yes', 'Other', '35');

INSERT INTO `categories` VALUES (37, 'Images', 10, 'Images.gif', 'yes', 'Other', '37');

INSERT INTO `categories` VALUES (38, 'GSM', 10, 'GSM.gif', 'yes', 'Other', '38');

INSERT INTO `categories` VALUES (39, 'Extra_Pars_Fills', 10, 'Extra_Pars_Fills.gif', 'yes', 'Other', '39');

INSERT INTO `categories` VALUES (40, 'Others', 10, 'Others.gif', 'yes', 'Others', '40');

INSERT INTO `categories` VALUES (41, 'TVHD', 5, 'TVHD.gif', 'yes', 'TV', '6');

INSERT INTO `categories` VALUES (42, 'HD', 8, 'HD.gif', 'yes', 'Movies', '3');

INSERT INTO `categories` VALUES (43, 'PS3', 4, 'PS3.gif', 'yes', 'Games', '12');

INSERT INTO `categories` VALUES (44, 'Wii', 4, 'Wii.gif', 'yes', 'Games', '17');

INSERT INTO `categories` VALUES (45, 'DS', 4, 'DS.gif', 'yes', 'Games', '18');

INSERT INTO `categories` VALUES (46, 'GameCube', 4, 'GameCube.gif', 'yes', 'Games', '19');

INSERT INTO `categories` VALUES (47, 'DVD9', 8, 'DVD9.gif', 'no', 'Movies', '');

INSERT INTO `categories` VALUES (48, 'TV_Series', 5, 'TV_Series.gif', 'no', 'TV', '');

INSERT INTO `categories` VALUES (49, 'Movies_Series', 8, 'Movies_Series.gif', 'no', 'Movies', '');

INSERT INTO `categories` VALUES (50, 'CAM', 8, 'CAM.gif', 'no', 'Movies', '');

INSERT INTO `categories` VALUES (51, 'All', 3, 'Ebooks.gif', 'no', 'Ebooks', '');

INSERT INTO `categories` VALUES (52, 'DVD5', 8, 'DVD5.gif', 'no', 'Movies', '');

INSERT INTO `categories` VALUES (53, 'Anime_Puppets', 0, 'Anime_Puppets.gif', 'no', 'Anime', '');

INSERT INTO `categories` VALUES (54, 'Movies_DVDSCR', 8, 'Movies_DVDSCR.gif', 'no', 'Movies', '');

INSERT INTO `categories` VALUES (55, 'Staff', 99, 'Staff.gif', 'no', 'Staff', '');

Only use dat one if u've not installed VIP Mod !!!!

INSERT INTO `categories` VALUES (56, 'VIP', 80, 'VIP.gif', 'no', 'VIP', ''):
Edit ur Torrent.php and find :


// get all parent cats

echo "<CENTER><B>Categories:</B> ";

$catsquery = mysql_query("SELECT distinct parent_cat FROM categories ORDER BY parent_cat")or die(mysql_error());

echo " - <a href=torrents.php>Show All</a>";

while($catsrow = MYSQL_FETCH_ARRAY($catsquery)){

echo " - <a href=torrents.php?parent_cat=$catsrow[parent_cat]>$catsrow[parent_cat]</a>";

}



//if we are browsing, display all subcats that are in same cat

if ($parent_cat){

echo "<BR><BR><b>You are in:</b> <a href=torrents.php?parent_cat=$parent_cat>$parent_cat</a><BR><B>Sub Categories:</B> ";

$subcatsquery = mysql_query("SELECT id, name, parent_cat FROM categories WHERE parent_cat='$parent_cat' ORDER BY name")or die(mysql_error());

while($subcatsrow = MYSQL_FETCH_ARRAY($subcatsquery)){

$name = $subcatsrow['name'];

echo " - <a href=torrents.php?cat=$subcatsrow[id]>$name</a>";

}

}





And Replace by :



// get all parent cats

echo "<CENTER><B>Categories:</B> ";

$catsquery = mysql_query("SELECT distinct parent_cat FROM categories ORDER BY parent_cat")or die(mysql_error());

echo " <a href=torrents.php><img src=images/categories/Showall.gif title=ShowAll border=0></a>";

while($catsrow = MYSQL_FETCH_ARRAY($catsquery)){

echo " <a href=torrents.php?parent_cat=$catsrow[parent_cat]><img src=images/categories/$catsrow[parent_cat].gif title=$catsrow[parent_cat] border=0></a>";

}



//if we are browsing, display all subcats that are in same cat

if ($parent_cat){

echo "<BR><BR><b>You are in :</b> <a href=torrents.php?parent_cat=$parent_cat><img src=images/categories/$parent_cat.gif title=$parent_cat border=0></a><BR><B>Sub Categories :</B> ";

$subcatsquery = mysql_query("SELECT id, name, parent_cat FROM categories WHERE parent_cat='$parent_cat' ORDER BY name")or die(mysql_error());

while($subcatsrow = MYSQL_FETCH_ARRAY($subcatsquery)){

$name = $subcatsrow['name'];

echo " <a href=torrents.php?cat=$subcatsrow[id]><img src=images/categories/$name.gif title=$name border=0></a>";

}

}





Edit ur Torrent-search.php and Find :



// get all parent cats

echo "<CENTER><B>Categories:</B> ";

$catsquery = mysql_query("SELECT distinct parent_cat FROM categories ORDER BY parent_cat")or die(mysql_error());

echo " - <a href=torrents.php>Show All</a>";

while($catsrow = MYSQL_FETCH_ARRAY($catsquery)){

echo " - <a href=torrents.php?parent_cat=$catsrow[parent_cat]>$catsrow[parent_cat]</a>";

}



//if we are browsing, display all subcats that are in same cat

if ($parent_cat){

echo "<BR><BR><b>You are in:</b> <a href=torrents.php?parent_cat=$parent_cat>$parent_cat</a><BR><B>Sub Categories:</B> ";

$subcatsquery = mysql_query("SELECT id, name, parent_cat FROM categories WHERE parent_cat='$parent_cat' ORDER BY name")or die(mysql_error());

while($subcatsrow = MYSQL_FETCH_ARRAY($subcatsquery)){

$name = $subcatsrow['name'];

echo " - <a href=torrents.php?cat=$subcatsrow[id]>$name</a>";

}

}





Replace by this :



// get all parent cats

echo "<CENTER><B>Categories:</B> ";

$catsquery = mysql_query("SELECT distinct parent_cat FROM categories ORDER BY parent_cat")or die(mysql_error());

echo " <a href=torrents.php><img src=images/categories/Showall.gif title=\"Show All\" border=0></a>";

while($catsrow = MYSQL_FETCH_ARRAY($catsquery)){

echo " <a href=torrents.php?parent_cat=$catsrow[parent_cat]><img src=images/categories/$catsrow[parent_cat].gif title=$catsrow[parent_cat] border=0></a>";

}



//if we are browsing, display all subcats that are in same cat

if ($parent_cat){

echo "<BR><BR><b>You are in :</b> <a href=torrents.php?parent_cat=$parent_cat><img src=images/categories/$parent_cat.gif title=$parent_cat border=0></a><BR><B>Sub Categories :</B> ";

$subcatsquery = mysql_query("SELECT id, name, parent_cat FROM categories WHERE parent_cat='$parent_cat' ORDER BY name")or die(mysql_error());

while($subcatsrow = MYSQL_FETCH_ARRAY($subcatsquery)){

$name = $subcatsrow['name'];

echo " <a href=torrents.php?cat=$subcatsrow[id]><img src=/images/categories/$name.gif title=$name border=0></a>";

}

}



Now Upload Attachment Icons to ur     /images/categories Folder !

Or use Yours, and rename them using corresponding icon name :

ICON Name MUST BE Same as Categorie or Sub Categorie Name, OK ? very simple, loll

AND ALL PICS MUST use .gif extension !

I choose This according to most icon quality and included animations possibilities.

Cos a very good friend of mine is gonna draw me amazing new categories icons,

I join my old icons, so feel free to use if u dont want to spend time on draws ...

Those "old icons" are segurly 10 times niciest then basics icons ... its coming with nice glass effect  ( :) )

Ohhh by the way, someone think about adding dat to SVN ?   :D  :D :)

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=2027"]00__categories_ok_00.rar[/url]
00__categories_ok_00.rar
Download
Unknown User
2008-02-14 09:48:28
Very good!  ^_^  thank you!!!

Nice work
Unknown User
2008-02-15 21:41:52
[url="http://www.torrenttrader.org/index.php?showtopic=7728"]http://www.torrenttrader.org/index.php?showtopic=7728[/url]

is it possible to put categories like in the post i made in requests
Unknown User
2008-02-15 22:31:25
:D  :D  :D   yes no bleme, very simple, BUT How many categories ? ALL ?

Just Tell me , Gonna make it in a couple of days, bye  :)
Unknown User
2008-02-15 22:45:51
I got *something* working on my test site.. the problem is the subcat distinct query... so if he replies to my post on his request we can get everything sorted out there :)
Unknown User
2008-02-15 23:10:12
allready replied!!

thanks for the attention!!
Unknown User
2008-02-15 23:22:13
BTW, nice job on the icons alamandra.. but your forgot the adult (XXX) sections :)
Unknown User
2008-02-15 23:48:10
:D  :D  :)    hoooo yes its true !! its cose its forbidden on my site, loll, iarf iarf iarf,   :D  :P
Unknown User
2008-02-16 00:18:00
nice  :)  thank you very much
Unknown User
2008-03-31 00:02:11
Great job, can't wait to try this out!
Unknown User
2009-02-21 09:00:50
is it posible to make like this?



If you know how please tell my
Unknown User
2009-02-21 12:04:50
"someoneee, post: 54106":
is it posible to make like this?

If you know how please tell my

your picture is not showing
Unknown User
2009-02-21 14:02:59
mais lol je ne dirai pas d'ou te viens cette id
Unknown User
2009-02-21 14:51:43
it was showin b4 ..all it was ,,was like tbdevs where u get like 4 cats in a row
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: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728