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
AJAX search as-you-type
Controls ·  Search New posts · Mark unread

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

Unknown User
2009-06-15 12:49:47


torrents-search.php:

find:

<input type="text" name="search" size="40" value="<?= stripslashes(htmlspecialchars($searchstr)) ?>" />
change to:


<input type="text" id="searchinput" name="search" autocomplete="off" style="width: 240px;" ondblclick="suggest(event.keyCode,this.value);" onkeyup="suggest(event.keyCode,this.value);" onkeypress="return noenter(event.keyCode);" value="<?= htmlspecialchars($searchstr) ?>" />





find :





<input type="submit" value="<? print("" . SEARCH . "\n"); ?>" />

<br>

</form>





change to :



<input type="submit" value="Search!" />

</form>

<script language="JavaScript" src="suggest.js" type="text/javascript"></script>

<div id="suggcontainer" style="text-align: left; width: 520px; display: none;">

<div id="suggestions" style="cursor: default; position: absolute; background-color: #FFFFFF; border: 1px solid #777777;"></div>

</div>













Simple Search Block

Ajaxsimplesearch_block.php





<?

begin_block("Search");

?>

<CENTER>

<form method="get" action="torrents-search.php"><br />

<input type="text" id="searchinput" name="search" autocomplete="off" style="width: 240px;" ondblclick="suggest(event.keyCode,this.value);" onkeyup="suggest(event.keyCode,this.value);" onkeypress="return noenter(event.keyCode);" value="<?= htmlspecialchars($searchstr) ?>" />



<BR><BR>

<input type="submit" value="Search!" />

</form>

<script language="JavaScript" src="suggest.js" type="text/javascript"></script>

<div id="suggcontainer" style="text-align: left; width: 520px; display: none;">

<div id="suggestions" style="cursor: default; position: absolute; background-color: #FFFFFF; border: 1px solid #777777;"></div>

</div>

</form>

</CENTER>

<?

end_block();

?>




upload  suggest.js suggest.php in your torrent script

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=3784"]suggest.php[/url]

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=3785"]suggest.js[/url]
suggest.php
Download
suggest.js
Download
Unknown User
2009-06-22 12:00:17
Thanks!!!

width: 520px;
... :)
Unknown User
2009-06-26 17:29:29
where i must this 2 upload:

suggest.php

suggest.js

root?

right now don
Unknown User
2009-06-26 19:35:50
I uploaded the files to the trackers root folder and all is working fine.

I would like a scroll function and it to include more torrents suggestions if possible.

Also it would be awesome if it would take you directly to that torrents details if you clicked on the suggestion when you clicked on it.

The search function on my 2.03 tracker isnt good enough to filter if I put the whole filename for some reason. The fewer keywords the better. So if I just click it and then search for the whole filename it gives me a lot of hits with torrents that have one of the words included in my title. Last search gave me over 300 hits.

I dont know if this is a problem only I have or if its general but as I said it would be awesome if a click on a suggestion took you directly to that torrents details.

Big thank you for this mod :)
Unknown User
2009-07-10 00:00:41
thx m8 :)
Unknown User
2009-07-16 14:28:44
Thanks ! Very cool  :)

the only problem is that the search will show ALL torrent which contain these words !

Not the sentence only.

It's due to the torrents-search.php search system :/

Bye, the way, is it possible to add a button at the right of all suggestion in the box ?! Just like [url="http://www.mangafox.com"]MangaFox[/url]

And when we click on it, we arrive directly on the torrent detail ?!

exemple :



And the letters wrote can they be bold like on the picture ?

Thanks :)
Unknown User
2010-10-30 14:51:26
Hey Guys,

Why is the SEARCH so low!  ( See Attachment ).  It's not supose to be DIRECTLY UNDER the search box?

Thanx. Regards.

Final.jpg
Final.jpg
Unknown User
2010-10-30 18:09:46
if you want search in index then use that:

//search



begin_frame("Advanced Search");



?>



<CENTER>

<form method="get" action="torrents-search.php"><br />

<input type="text" id="searchinput" name="search" autocomplete="off" style="width: 240px;" ondblclick="suggest(event.keyCode,this.value);" onkeyup="suggest(event.keyCode,this.value);" onkeypress="return noenter(event.keyCode);" value="<?= htmlspecialchars($searchstr) ?>" />





<select name="cat">

<option value="0">(All types)</option>



<?











$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";



}



?>



<?= $catdropdown ?>



</select>



<select name=incldead>

<option value="0">Active</option>

<option value="1">Include Dead</option>

<option value="2">Only Dead</option>

<option value="3">FreeLeech</option>

</select>



<?if ($site_config["ALLOWEXTERNAL"]){?>



<BR><BR>

<select name=inclexternal>

<option value="0">Local/External</option>

<option value="1">Local Only</option>

<option value="2">External Only</option>

</select>



<? } ?>







<input type="submit" value="Search!" />

</form>

<script language="JavaScript" src="suggest.js" type="text/javascript"></script>

<div id="suggcontainer" style="text-align: left; width: 520px; display: none;">

<div id="suggestions" style="cursor: default; position: absolute; background-color: #FFFFFF; border: 1px solid #777777;"></div>

</div>



</CENTER>



<?







end_frame();



//search end

search.png
search.png
Unknown User
2010-10-30 18:50:33
Hi War02,

Thanx for trying but the only thing I meant was this.   Take a look at my SNAPSHOT.  When I do a search, my tracker BOX is about half a inch below the SEARCH BOX!  How can this be possible.!

Thanx. Regards.



Torrent_Search_Good.jpg
Torrent_Search_Good.jpg
Torrent_Search_Wrong.jpg
Torrent_Search_Wrong.jpg
Unknown User
2010-10-30 19:06:08
"rdesormiers, post: 66872":
Hi War02,
Thanx for trying but the only thing I meant was this.   Take a look at my SNAPSHOT.  When I do a search, my tracker BOX is about half a inch below the SEARCH BOX!  How can this be possible.!

Thanx. Regards.


I think it is diffrents of browsers. With IE i have to it is littlebit lower than FF.
Unknown User
2010-11-02 11:44:22
Thanks...work like a charm !!
Unknown User
2010-11-02 13:16:13
"rdesormiers, post: 66859":
Hey Guys,
Why is the SEARCH so low!  ( See Attachment ).  It's not supose to be DIRECTLY UNDER the search box?

Thanx. Regards.

Same problem here with all browsers!
Unknown User
2011-05-04 19:08:34
"Kite, post: 59054":
Thanks ! Very cool  :lol:
the only problem is that the search will show ALL torrent which contain these words !

Not the sentence only.

It's due to the torrents-search.php search system :/

Bye, the way, is it possible to add a button at the right of all suggestion in the box ?! Just like [url="http://www.mangafox.com"]MangaFox[/url]

And when we click on it, we arrive directly on the torrent detail ?!

exemple :



And the letters wrote can they be bold like on the picture ?

Thanks  :D

Hi Guys,

Already tried this MOD a few month ago and I need to say that it DOESN'T WORK PROPERLY under v2.06.   I can't say for other version but v2.06 has weird issues and I will explain. I really would love to have this MOD installed and working 100%.

First, I need to say that the AJAX SEARCH PART is WORKING.  In this way, I mean you can see what you type live from the database!  That part works. Then what doesn't?

I have describe in steps the problem:

1) Let's say I have searched for Harry Potter...  A list will appear under the search box. Basically you just have to select one. Here come's the problem.

2) When you have selected the option, and when you click on the SEARCH BUTTON, the MOD doesn't give you only this SELECTED OPTION but gives you everything.

So I would suggest like Kite to have kind of a GO BUTTON to get directly to what you are looking for.

It's too bad that it doesn't work!

Can anyone can help!

Thanx. Regards.
Unknown User
2011-05-09 15:06:28
Hi guys,

Update On: 9 May 2011.

Take note.  For some obscur reason, if you apply this MOD from djowarth located at [url="http://www.torrenttrader.org/index.php?showtopic=13602&hl=search+engine"]http://www.torrenttrader.org/index.php?sho...l=search+engine[/url], please note this MOD won't work good.

Thanx. Regards.
Unknown User
2011-05-09 17:27:39
$result = mysql_query("SELECT `name` FROM `torrents` WHERE MATCH (`name`) AGAINST ('" . mysql_real_escape_string($_GET['q']) . "' IN BOOLEAN MODE) AND `banned` = 'no' ORDER BY `id` DESC LIMIT 10");
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