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 |
tells me on browse.php
PHP Code:
|
Quote:
Code:
torrents.poster, Code:
Code:
$res1 = mysql_query("SELECT torrents.id, torrents.size, torrents.name, torrents.filename, 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"); Code:
$res1 = mysql_query("SELECT torrents.id, torrents.size, torrents.name, torrents.filename, , 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"); |
Can you explain it more easy.. (im litle indian :D)
btw i use code in takeupload.php PHP Code:
|
Well recommend must be afther type
Code:
$ret = mysql_query("INSERT INTO torrents (search_text, filename, owner, visible, info_hash, name, size, numfiles, type, recommend, descr, ori_descr, description, category, save_as, added, last_action, nfo, poster, ori_descr, recommend) VALUES (" . |
Nao works :) but when i edit torrent it dissapears and i have 2 click on recomended again (btw i use Torrentstrike Fullymodded v1.0)
http://img130.imageshack.us/img130/2050/herejq.jpg can it be made to look like this: http://img94.imageshack.us/img94/5015/recomendedn.jpg |
Take a look in edit & takeedit maybe you do something wrong,end for screenshot 2 it looks like a normal torrent, but with some modifcation end put it on recommeded , maybe some one have the code . any way , good luck with your tracker :drink:
|
All times are GMT +2. The time now is 09:21. |
Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.