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
search for a torrent
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Support

2024-01-20 09:47:38
Hello, I am looking to modify the code below to search for a torrent because when you search for 1 torrent, several torrent pages are displayed and I would like only the title of the torrent you are looking for to be visible without having to search in several pages ??

thank you in advance for your help



Bonjour je cherche a modifier le code ci-dessous pour la recherche d'un torrent car quand on recherche  1 torrent c'est plusieurs page de torrents qui s'affiche et je voudrais que seule le titre du torrent rechercher soit visible sans avoir a rechercher dans plusieurs page ??

merci d'avance pour votre aide






<?php

if ( get_user_class() >= 1 ) {
begin_block(T_("Rechercher un Torrent"));
?>
<center>
<form method="get" action="torrents-search.php"><br />
<input type="text" name="search" size="20" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
   
<br>
&nbsp;&nbsp;


<input type="submit" value="Recherche" />
</form>
</center><br />
<?php

end_block();

}
?>
2024-01-25 21:47:19
Hi niki, in this case need SQL_Query_exec
2024-01-30 07:27:17
maybe try this

<?php
if (!$site_config["MEMBERSONLY"] || $CURUSER) {
begin_block(T_("SEARCH"));
?>
<center>
<form method="get" action="torrents-search.php"><br />
   <img src="images/blocks/headersearch.png">
<input type="text" name="search" size="30" value="<?php echo htmlspecialchars($_GET["search"]); ?>" />
   <img src="images/blocks/in.png"> <select name="cat">
<option value="0">(<?php echo T_("ALL_TYPES"); ?>)</option>
<?php


$cats = genrelist();
$catdropdown = "";
foreach ($cats as $cat) {
$catdropdown .= "<option value=\"" . $cat["id"] . "\"";
if ($cat["id"] == $_GET["cat"])
$catdropdown .= " selected=\"selected\"";
$catdropdown .= ">" . htmlspecialchars($cat["parent_cat"]) . ": " . htmlspecialchars($cat["name"]) . "</option>\n";
}
?>
<?php echo $catdropdown; ?>
</select>
   <img src="images/blocks/&.png"> <select name="incldead">
<option value="1"><?php echo T_("INCLUDE_DEAD"); ?></option>
<option value="0"><?php echo T_("ACTIVE"); ?></option>

<option value="2"><?php echo T_("ONLY_DEAD"); ?></option>
</select>
<?php if ($site_config["ALLOWEXTERNAL"]){?>
<select name="inclexternal">
<option value="0"><?php echo T_("LOCAL"); ?>/<?php echo T_("EXTERNAL"); ?></option>
<option value="1"><?php echo T_("LOCAL_ONLY"); ?></option>
<option value="2"><?php echo T_("EXTERNAL_ONLY"); ?></option>
</select>
<?php } ?>
<input type="submit" value="<?php echo T_("SEARCH"); ?>" />
</form>
</center>
<?php
end_block();
}
?>


but you need to edit torrents_search.php thats why you have more than 1 when you search i had the same problem
This is how i have it
Last edited by djlive on 2024-01-30 07:28:53
2024-01-31 17:51:37
Thank you for sharing  ðŸ˜‰
2024-02-01 12:24:45
@niki welcome
when you search and have more than 1 torrents in search . Just leave your search-torrents.php here and i will look at it
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