Search Engine & Recommended torrents, question
Hello, can someone tell me how to put search engine on torrentstrike
http://img689.imageshack.us/img689/624/searchi.jpg And the other question is, how to make ''Recommended torrents'' on brose.php. Like this: http://img94.imageshack.us/img94/5015/recomendedn.jpg |
1 Attachment(s)
Hi, for search engine , try the file below. Enjoy
|
Quote:
Code:
Fatal error: Call to a member function query() on a non-object in D:\serverr\xampp\htdocs\Upload\browse.php on line 118 |
Please post your browse.php
|
i found it :)
ill share code , here it is: PHP Code:
|
Yes thats it, for those who want to put search in browse, search Code:
|
I translated and edited the code in the forums, when i saw it was on Bulgarian :)
|
cekosexama i found recommend torrents on torrentstrike forum, thanks to nicky, here is the code
sql Code:
ALTER TABLE `torrents` ADD `recommend` ENUM( 'Yes', 'No' ) NOT NULL DEFAULT 'No'; Code:
tr("Recommend torrent","YesNo",1); Code:
type, Code:
recommend, Code:
$type, Code:
$recommend, Code:
tr("Recommend torrent","YesNo",1); Code:
$updateset[] = "category = " . (0 + $type); Code:
$recommend = unesc($_POST['recommend']); Code:
$res1 = mysql_query("SELECT torrents.id, torrents.size, torrents.name, torrents.filename, torrents.poster, torrents.leechers, torrents.seeders, torrents.times_completed, torrents.owner, users.username AS username, users.class AS class FROM torrents INNER JOIN users ON torrents.owner = users.id WHERE torrents.recommend='yes' ORDER BY torrents.times_completed DESC LIMIT 3"); |
From all this i got confuzed, i cant do nothing :lol:
|
Ok , let's try another method,
Step 1: go to your phpmyadmin, then select your database of tracker, then click SQL end run Code:
ALTER TABLE `torrents` ADD `recommend` ENUM( 'Yes', 'No' ) NOT NULL DEFAULT 'No'; Step 2: in your folder tracker,, open upload.php find Code:
tr("Type", $s, 1); Code:
tr("Recommend torrent","YesNo",1); Step 3 : find end open takeupload.php search for Code:
$ret = mysql_query("INSERT INTO torrents: Code:
, type, recommend, descr, ori_descr, description, category Step 4 :find end open edit.php find Code:
tr("Type", $s, 1); Code:
tr("Recommend torrent","YesNo",1); Step 5: find end open takeedit.php find Code:
$updateset[] = "category = " . (0 + $type); Code:
$recommend = unesc($_POST['recommend']); Code:
stdhead("Search results for \"$searchstr\""); Code:
$res1 = mysql_query("SELECT torrents.id, torrents.size, torrents.name, torrents.filename, torrents.poster, torrents.leechers, torrents.seeders, torrents.times_completed, torrents.owner, users.username AS username, users.class AS class FROM torrents INNER JOIN users ON torrents.owner = users.id WHERE torrents.recommend='yes' ORDER BY torrents.times_completed DESC LIMIT 3"); good luck |
All times are GMT +2. The time now is 06:44. |
Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.