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
[HACK] Image categorie
Controls ·  Search New posts · Mark unread

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

2010-11-02 04:26:59
VLA un petit hack pour ceux qui aimerais mettre l'image de ca catégorie dans la description du torrent.

~~~~~~~~~~~~~~//

VLA a little hack for those who like to put image of AC class in describing the torrent.





Open torrents-details.php search:
Ouvrir torrents-details.php et chercher:


AS cat_name,

follows:
après:

categories.image AS cat_pic,

Search:
Chercher:

print("<tr><td align='left'><b>" .T_("CATEGORY"). ":</b></td><td>" . $row["cat_parent"] . " > " . $row["cat_name"] . "</td></tr>n");

Replace:
Remplacer:

print("<tr><td align=left><b>" .T_("CATEGORY"). ":</b></td><td><a href="torrents.php?cat=" . $row["category"] . ""><img border="0"src="" . $site_config['SITEURL'] . "/images/categories/" . $row["cat_pic"] . "" alt="" . $row["cat_name"] . "" /></td></tr>n");

FONCTIONNE AVEC V2.06, 07, 08
@+
Capture.PNG
Capture.PNG

Unknown User
2010-11-02 11:32:21
Thanks for this hack
Unknown User
2010-11-08 17:42:43
Thaanks!
2010-11-09 01:39:08
Cool
Unknown User
2010-11-13 01:06:46
thanks
Unknown User
2011-03-02 16:49:50
Thanx ;)
Unknown User
2012-08-26 17:38:20
j'ai essayé avec la version 2.0.8 et le TTYP est CATEGORY et ca ne fonctionne pas...que dois je changer???merci!

I tried with version 2.0.8 and is ttyp CATEGORY and it does not work ... what should I change??? thank you!
2012-08-26 18:18:05
Vous avez pas installer[size=24px] /[/size] You have to install

categories.image AS cat_pic,

print("<tr><td align=left><b>" .T_("CATEGORY"). ":</b></td><td><a href=\"torrents.php?cat=" . $row["category"] . "\"><img border=\"0\" src=\"" . $site_config['SITEURL'] . "/images/categories/" . $row["cat_pic"] . "\" alt=\"" . $row["cat_name"] . "\" /></td></tr>\n");
or subcategory..






print("<tr><td align=left><b>" .T_("CATEGORY"). ":</b></td><td><a href=\"torrents.php?cat=" . $row["category"] . "\">" . $row["cat_name"] . " <img border=\"0\" src=\"" . $site_config['SITEURL'] . "/images/categories/" . $row["cat_pic"] . "\" alt=\"" . $row["cat_name"] . "\" /></td></tr>\n");



Capture.PNG
Capture.PNG
Capture2.PNG
Capture2.PNG

Unknown User
2012-08-29 12:40:28
thank you, but everything is already done ... in fact it 2.0.8.En version I just had to go in the db torrent (categories) and put the name of every

images corresponding to the class! Thank you anyway Tiloup!  ;)

merci,mais tout est déjà fait...dans la version 2.0.8.En fait il fallait juste que j'aille dans la bdd torrent (categories) et mettre le nom de chaques images correspondant à la catégorie!!

Merci tout de même tiloup! ;)
Unknown User
2012-08-29 13:37:20
Merci Tiloup, mais comment mettre les images catégories et sous catégories ? ;)
2012-08-30 00:25:52
"ValVanDeCamp, post: 85140":
Merci Tiloup, mais comment mettre les images catégories et sous catégories ?

ValVanDeCamp ta réponse est surment là!
******************************************************
ValVanDeCamp surment your answer is here!

[url="http://devscorner.xyz/index.php?/topic/16554-double-categorie/"]ICI/Here[/url]
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