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
category picture
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Mods Requests

2020-02-26 17:25:03
Hello, can you tell me if it is possible to make this module for the v3 thank you in advance.

[URL unfurl="true"]https://www.torrenttrader.xyz/index.php?threads/hack-image-categorie.3038/[/url]
2020-02-26 18:50:45
Easily, and most of it is already implemented in V3. Looks like you just need to upload category images to /images/categories and make the changes 'image' column in 'categories' database table to reflect changes: images/categories/someimage.jpg

If you wish to strip out the parent category and only show the sub category, use this:


$shortcatname = htmlspecialchars(str_replace("Movies:", "", $row["cat_name"]));


Replace Movies with your category name. Useful for clean layouts.
2020-02-26 19:09:13
Thanks for the help, but I'm placing it or that code.  ?? o_O
2020-02-26 19:12:24
You won't focus on the code 'unless you want it'. You want to start by uploading your category images now, into /images/categories and next you want to use admincp (I use database) to update the images so the site can use them.

yourwebsite.com/admincp.php?action=categories&do=view

Then you want to click [EDIT] for each item. In the image field, you want this format:  

images/categories/someimage.jpg

someimage.jpg does not exist, that is a example. Use your own images and save settings. Clear browser cache and refresh.
2020-02-26 19:39:13
???? :unsure:
2020-02-27 23:06:24
Bonsoir moi je cherche le bout de code a mettre dans le fichier torrents-details.php afin que le logo des catégorie s'affiche dans torrents-details.php :(
2020-02-28 02:46:12
"niki, post: 68029, member: 20338":

Bonsoir moi je cherche le bout de code a mettre dans le fichier torrents-details.php afin que le logo des catégorie s'affiche dans torrents-details.php :(

salut niki, vous avez juste a faire le hack ici pour avoir l'image de la catégorie
[URL unfurl="true"]https://www.torrenttrader.xyz/index.php?threads/hack-image-categorie.3038/[/url]
2020-02-28 19:28:19
Merci spititbluee mais comme j'ai déjà modifier beaucoup la pagee du detail du torrent j'ai une page blanche quand je mais ce code et quand je mais seulement ce code

" . $row["cat_pic"] . "


j'ai juste ceci ... movie.jpg qui apparais

et quand je mais ce code a la place de  " . $row["cat_pic"] . "

" . $site_config['SITEURL'] . "/images/categories/" . $row["cat_pic"] . "


j'ai une page blanche d'erreur dans tout les cas je te remercie pour ton aide




voici la partie du code  non modifier sans bug de mon fichier torrent detail et je cherche a modifier pour remplacer l'inscription   movie   par le logo de categorie sur l'image de capture jointe ci-dessous





<table border='0' cellpadding='3' width='100%'>
<td>
<table border='0' cellpadding='1' width='100%'>

<td width=10 class=ttable_col2 align=center><a href=\"download.php?id=$id&amp;name=" . rawurlencode($arr["filename"]) . "\"><img src='" . $site_config['SITEURL'] . "/images/download_torrent3.png
' border='0' title='".T_("DIRECT_DOWN")."' alt=\"Download torrent\" /></a></td>

<td class=ttable_col2 align='center'><b>Lang: </b>
<span style='color:#9E5412'>" . $row["lang_name"] . "</span>


je cherche a mettre le logo des catégorie a la place de movie sur cette image de capture ci-dessous



<td class=ttable_col2 align='center'><b>" .T_("CATEGORY"). " : </b><span style='color:#9E5412'>

<b>" . $row["cat_parent"] . "</b>

</span>

<td class=ttable_col2 align='center'><b>Genre : </b>
<span style='color:#9E5412'>" . $row["cat_name"] . "</span>

<td class=ttable_col2 align='center'>
<b>" .T_("TOTAL_SIZE"). " : </b>
<span style='color:#9E5412'>" . mksize($row["size"]) . "</span></td>

</font>

</b></div></td>
</b></th></tr>
</table>
capture.png
capture.png
2020-02-29 00:43:45
I'll get back to you with all that, I'll test on my test server
====================================
je te reviens avec tout ca, je vais testé sur mon serveur test
2020-02-29 12:00:28
Merci spititblue et c'est quand même mieux en Francais , merci
2020-02-29 14:47:19
"niki, post: 68048, member: 20338":

Merci spititblue et c'est quand même mieux en Francais , merci


oui, je comprend mais par respect de mes confrères de travaille j’aimerais tu écrit tes messages en anglais aussi l'ami.
==================================
yes, I understand but out of respect for my fellow workers I would like you to write your messages in English too, friend.
2020-02-29 14:52:47
Re-salut / re-hello Niki :)

vérifié sur torrents-details a la requête sql que t'es bien ca, pour le reste tous est #1 de mon coté:
==============================================================
checked on torrents-details at the sql request that you are fine, for the rest all is # 1 on my side:
categories.parent_cat as cat_parent, users.username, users.privacy FROM torrents LEFT JOIN categories ON torrents.category = categories.id



Exemple chez moi:
============
Example at home:

//GET ALL MYSQL VALUES FOR THIS TORRENT
$res = SQL_Query_exec("SELECT torrents.anon, torrents.safe, torrents.markedby, torrents.recommended, torrents.exclusif, torrents.thanks, torrents.seeders, torrents.tube, torrents.tube2, torrents.sticky, torrents.banned, torrents.leechers, torrents.info_hash, torrents.filename, torrents.nfo, torrents.last_action, torrents.numratings, torrents.allocine, torrents.name, torrents.likes, torrents.love, torrents.angry, torrents.points, torrents.owner, torrents.save_as, torrents.descr, torrents.visible, torrents.size, torrents.added, torrents.views, torrents.hits, torrents.times_completed, torrents.id, torrents.type, torrents.external, torrents.image1, torrents.image2, torrents.announce, torrents.numfiles, torrents.freeleech, IF(torrents.numratings < 2, NULL, ROUND(torrents.ratingsum / torrents.numratings, 1)) AS rating, torrents.numratings, categories.name AS cat_name, torrentlang.name AS lang_name, torrentlang.image AS lang_image, categories.parent_cat as cat_parent, users.username, users.privacy FROM torrents LEFT JOIN categories ON torrents.category = categories.id LEFT JOIN torrentlang ON torrents.torrentlang = torrentlang.id LEFT JOIN users ON torrents.owner = users.id WHERE torrents.id = $id $wherex");
$row = mysqli_fetch_assoc($res);

2020-02-29 14:58:09
ok merci je vais voir sa

Okay, thanks. I'll check it out.
2020-02-29 16:49:53
Merci spiriblue mais c'est toujours pareille sa marque movie.png pais l'image ne s'affiche pas je te joins le bout de code ci-dessous et j'ai ajouter dedans le code
" . $row["cat_pic"] . "  et le code categories.parent_cat as cat_parent,  est biens présent sur le fichieer torrent detail.php


Thank you spiriblue but it's still the same her brand movie.png but the image is not displayed I join you the code below and I added inside the code
" . $row [ cat_pic ]. " and the code categories.parent_cat as cat_parent, is present on the torrent detail.php file.



[ATTACH type="full" alt="5390"]5390[/ATTACH]


<table border='0' cellpadding='3' width='100%'>

<td>
<table border='0' cellpadding='1' width='100%'>

<td width=10 class=ttable_col2 align=center><a href=\"download.php?id=$id&amp;name=" . rawurlencode($arr["filename"]) . "\"><img src='" . $site_config['SITEURL'] . "/images/download_torrent3.png
' border='0' title='".T_("DIRECT_DOWN")."' alt=\"Download torrent\" /></a></td>



<td class=ttable_col2 align='center'><b>Lang: </b>
<span style='color:#9E5412'><b>" . $row["lang_name"] . "</b></span>

<td class=ttable_col2 align='center'><b>" .T_("CATEGORY"). " : </b><span style='color:#9E5412'><b>
" . $row["cat_parent"] . "</b>  " . $row["cat_pic"] . "  </span>

<td class=ttable_col2 align='center'><b>Genre : </b>
<span style='color:#9E5412'><b>" . $row["cat_name"] . "</b></span>

<td class=ttable_col2 align='center'>
<b>" .T_("TOTAL_SIZE"). " : </b>
<b><span style='color:#9E5412'>" . mksize($row["size"]) . "</b></span></td>

</font>

</b></div></td>
</b></th></tr>
</table>
1582994252480.png
1582994252480.png
2020-02-29 17:33:22
bon début je voie ton alt, donau clique droite sur le nom de l’image pour voir url et test de retirer
" . $site_config['SITEURL'] . "/
il y a ton lien ou le nom de l'image qui faut defaut !?
==============================
good start i see your alt, donau right click on the image name to see url and test to remove
". $site_config ['SITEURL']." /
is there your link or the name of the image that should be missing !?
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: 2
  • Members: 0
  • Guests online: 2
  • Comments: 3
  • Messages: 1,728