Hey,
OppTupacShakur
, you have
11 messages
, 0 are new.
05-07-2007, 12:45:06
News:
TorrentFlux Forums
TorrentFlux
TorrentFlux Search Engine Modules and Updates
(Moderator:
kboy
)
[Private] OinkMe Search Engine Module v1.20
« previous
next »
Pages:
[
1
]
Author
Topic: [Private] OinkMe Search Engine Module v1.20 (Read 2893 times)
Anglachel
Newbie
Offline
TF Base: Linux 2.x
Posts: 35
[Private] OinkMe Search Engine Module v1.20
«
on:
06-03-2006, 09:20:41 »
This is a Private Site.
This is where you will find updates for OinkMe Search module.
see attached for latest version
Author: Anglachel
Current Version: 1.20
-- Version History --
v 1.30 - April 28, 07
Included bryanli's Patch (required for changes to oink.) *THANKS*
Added quick dirty code to notify people the cookie information is wrong, (more or less broken from first release, more so after oink changed site)
v 1.20 - Aug 4, 06
Categories are pulled automatically and stored in a table in the database, reduces need for code maintenance.
v 1.11 - Jun 03, 06
Changes are simple just grabbed the new categories, and put in the ratio, uploaded, downloaded bits at the top of the table. Cleaned up the code a bit, made the tables line up better also.
OinkMeEngine.php
(24.06 KB - downloaded 16 times.)
«
Last Edit: 04-28-2007, 22:36:37 by Anglachel
»
Report to moderator
Logged
gringo
Full Member
Offline
TF Base: Linux 1.x
Posts: 110
Re: [Private] OinkMe Search Engine Module v1.11
«
Reply #1 on:
07-05-2006, 22:24:48 »
Awesome, OinkMe made it? How is this to be used though? I've tried:
1. with incorrect cookie info (from previous attempts) and got login info which directed me to oink.me.uk when i hit login.
2. with correct cookie info in the format of uid=xxxxxx;pass=xxxxxxxx;secure=xxxxxxxxxx
3. with correct cookie info in the format of uid=xxxxxx;pass=xxxxxxxx
I don't want to keep trying and lock myself out atm.
Note: The cookie was generated on my home desktop and TF is running on a box at a datacenter.
Thanks!
«
Last Edit: 07-05-2006, 22:27:27 by gringo
»
Report to moderator
Logged
P4 2.8 | CentOS-4.2 | 1024MB RAM | 10 mb/s Connect
Apache 2.0.52 | PHP 4.3.9 | MySQL 4.1.12 | Python 2.3.4
TF 2.1b4rt with cosmetic changes.
Anglachel
Newbie
Offline
TF Base: Linux 2.x
Posts: 35
Re: [Private] OinkMe Search Engine Module v1.11
«
Reply #2 on:
07-05-2006, 23:22:16 »
As I understand it from the previous thread cookies are generated based on the IP of the computer that your at. So the one from your desktop machine won't work on the datacenter box.
I do have a work around I posted in the Hacks a while back,
http://www.torrentflux.com/forum/index.php/topic,1543.0.html
that will let you generate a cookie via a proxy from the datacenter box. From there you can get the information (with the hack) easily into your torrentflux database. Alternately you can simply browse to the site from your remote server and login that way (if possible)
I tested the proxy method from a different IP address to make sure that it works, Though I have the good (or bad) fortune of having my torrent flux box on the same IP as everything else in my apartment, so it wasn't tested all that extensively...
Also just an FYI, The cookie is of the form
id=123456;password=abc12345678901234567891234567890;secure=ea123456789012345678912345678910
Domain is "oink.me.uk"
Other then that should be all the information you need to get setup and working.
Report to moderator
Logged
gringo
Full Member
Offline
TF Base: Linux 1.x
Posts: 110
Re: [Private] OinkMe Search Engine Module v1.11
«
Reply #3 on:
07-08-2006, 17:23:08 »
Thanks for the info, I'll check it out when I have some time. None of my remote servers run X so running a anything other than text browsers won't work
Report to moderator
Logged
P4 2.8 | CentOS-4.2 | 1024MB RAM | 10 mb/s Connect
Apache 2.0.52 | PHP 4.3.9 | MySQL 4.1.12 | Python 2.3.4
TF 2.1b4rt with cosmetic changes.
Anglachel
Newbie
Offline
TF Base: Linux 2.x
Posts: 35
Re: [Private] OinkMe Search Engine Module v1.20
«
Reply #4 on:
08-04-2006, 20:33:48 »
I'm putting it out as a beta because I changed the code to parse out the categories, and store them in a table (that it will create if it doesn't exist, but you need to have access to create tables in your database)
Database was needed because torrent flux posts the categories, before it gets the search page.
so with no more further Ado... 1.2(beta release)
leaving 1.11 up for people who don't necessarily have permissions to create the table.
OinkMeEngine.php
(25.68 KB - downloaded 144 times.)
Report to moderator
Logged
dcash
Newbie
Offline
Posts: 2
Re: [Private] OinkMe Search Engine Module v1.20
«
Reply #5 on:
03-05-2007, 16:32:41 »
I don't know if anybody still uses this or not, but I installed it and it didn't pull down the categories correctly due to an update of OiNK's code. Here's an updated diff that makes it work:
Code:
--- OinkMeEngine.php 2007-03-05 07:17:54.000000000 -0600
+++ /home/httpd/tflux/searchEngines/OinkMeEngine.php 2007-03-05 07:17:37.000000000 -0600
@@ -724,9 +724,9 @@
//parse cats and add to db
- $startcats = "<tr valign=\"top\" height=\"32\">";
+ $startcats = "<td class=bottom style=\"padding-bottom:2px; padding-left:7px; white-space:nowrap; vertical-align:top\">";
- $endcats = "<td class=bottom rowspan=3> </td>";
+ $endcats = "<td class=bottom rowspan=1> </td>";
$handle = substr($thing, strpos($thing,$startcats)+strlen($startcats));
@@ -744,7 +744,7 @@
$desc = substr($cat,strpos($cat,">")+1);
- $cat = substr($cat,0,strpos($cat,">"));
+ $cat = substr($cat,0,strpos($cat,">")-1);
$desc = trim(str_replace("'", "`", substr($desc,0,strpos($desc,"<"))));
Report to moderator
Logged
basic
Newbie
Offline
Posts: 1
Re: [Private] OinkMe Search Engine Module v1.20
«
Reply #6 on:
03-20-2007, 18:30:26 »
I'm getting the following error when searching with the oinkme search module:
Code:
Debug SQL is on.
SQL: INSERT INTO tf_searchengine_cats (engine,cat,catnum) VALUE
Database error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Always check your database variables in the config.php file.
I have the supertorrents module working correctly, and the bitmetv working correctly (except for the sections), not sure what the problem is or where to start with fixing it..
Report to moderator
Logged
bryanli
Newbie
Offline
Posts: 1
Re: [Private] OinkMe Search Engine Module v1.20
«
Reply #7 on:
03-21-2007, 19:52:43 »
Like the poster above stated, Oink has changed their layout. Well, they've changed it again, so here's a diff that should fix it...
Code:
--- OinkMeEngine.php 2007-03-21 16:47:47.000000000 -0700
+++ OinkMeEngine.php 2007-03-21 16:46:42.000000000 -0700
@@ -361,9 +361,9 @@
showError($db,$sql);
//parse cats and add to db
- $startcats = "<tr valign=\"top\" height=\"32\">";
- $endcats = "<td class=bottom rowspan=3> </td>";
- $handle = substr($thing, strpos($thing,$startcats)+strlen($startcats));
+ $startcats = "<td class=bottom style=\"padding-bottom:2px; padding-left:7px; white-space:nowrap; vertical-align:top\"><input name=c41 type=\"checkbox\" value=\"1\">";
+ $endcats = "<td class=bottom style=\"padding-left: 5px\">";
+ $handle = substr($thing, strpos($thing,$startcats)+strlen($startcats));
$handle = substr($handle,0,strpos($handle,$endcats)+strlen($endcats));
$tmpListArr = split("</td>",$handle);
//Country</a>
@@ -371,7 +371,7 @@
foreach($tmpListArr as $value) {
$cat = substr($value,strpos($value,"?cat=")+strlen("?cat="));
$desc = substr($cat,strpos($cat,">")+1);
- $cat = substr($cat,0,strpos($cat,">"));
+ $cat = substr($cat,0,strpos($cat,">")-1);
$desc = trim(str_replace("'", "`", substr($desc,0,strpos($desc,"<"))));
//echo "$desc<BR>$cat<BR><BR>\n";
if($cat != "" && strpos($value,"?cat=")){
Or I've attached the patched file below....
OinkMeEngine.php
(25.79 KB - downloaded 77 times.)
«
Last Edit: 03-21-2007, 19:55:30 by bryanli
»
Report to moderator
Logged
cinchel
Newbie
Offline
Posts: 2
Re: [Private] OinkMe Search Engine Module v1.20
«
Reply #8 on:
04-27-2007, 14:08:52 »
i have started to have problems with oinksearch. the following is what i get when i type in a seach.
Code:
Debug SQL is on.
SQL: INSERT INTO tf_searchengine_cats (engine,cat,catnum) VALUE
Database error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Always check your database variables in the config.php file.
only happens with oink search. let me know if there is more info i should provide
thanks
cinchel
Report to moderator
Logged
Anglachel
Newbie
Offline
TF Base: Linux 2.x
Posts: 35
Re: [Private] OinkMe Search Engine Module v1.20
«
Reply #9 on:
04-28-2007, 22:29:34 »
cinchel your cookie information is wrong.
I'm posting version 1.3 right now based off of bryanli's patch above that should also alert you when your cookie information is expired, or incorrect... Maybe some day I'll get around to fixing it with a php proxy to allow you to log in from torrentflux and have it store your cookie info for you. In the mean time 1.3 will bluntly say your cookies are wrong.
«
Last Edit: 04-28-2007, 22:37:04 by Anglachel
»
Report to moderator
Logged
cinchel
Newbie
Offline
Posts: 2
Re: [Private] OinkMe Search Engine Module v1.20
«
Reply #10 on:
04-29-2007, 10:34:48 »
cool...thanks...it must be becuase my ip address changed since my server is running on my dsl connection...logging in through torrentflux would be great..but now that i know that this is the cause its not a huge problem to fix myself..
thanks again...great module!
Report to moderator
Logged
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
TorrentFlux
-----------------------------
=> TorrentFlux News
=> TorrentFlux Search Engine Modules and Updates
=> Forum/Website Problems
-----------------------------
TorrentFlux Support
-----------------------------
=> Linux Installations Support
=> Windows Installations (Limited Support)
=> International Support
-----------------------------
Bugs, Fixes, and Feature Requests
-----------------------------
=> Official TorrentFlux Fixes
=> Linux Bugs
=> Windows Bugs
=> Feature Requests
-----------------------------
Code Hacks and Tools
-----------------------------
=> TorrentFlux Tools
=> TorrentFlux 2.1 Hacks
=> TorrentFlux 2.0 Hacks
=> TorrentFlux 1.x Hacks
=> TorrentFlux Themes (skins)
-----------------------------
Off The Wall
-----------------------------
=> Off Topic Discussion
Powered by SMF 1.1.1
|
SMF © 2006, Simple Machines LLC