collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Update to Nano.php pls?  (Read 4200 times)

0 Members and 1 Guest are viewing this topic.

Offline Daynjer

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Update to Nano.php pls?
« on: April 04, 2008, 01:47:23 pm »
Basically just an update from the 0.4.x Nano.php to work with the current SVN version. I have tried it in the past few hours with Temar's 0.4 to 0.5 module, but no matter what I type, I am just given the help page for Nano.php. That would be awesome and very widely used IMHO! 8)

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Update to Nano.php pls?
« Reply #1 on: April 04, 2008, 05:51:29 pm »
that is prob caused by commpre as its on longer passed to modules. I have already fixed mine and will post later when i get home.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Update to Nano.php pls?
« Reply #2 on: April 05, 2008, 02:37:11 am »
here u go


Edit: Posted Wrong 1 (old 1 from dif directory)
« Last Edit: April 05, 2008, 03:30:55 am by Temar »

Offline Daynjer

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: Update to Nano.php pls?
« Reply #3 on: April 05, 2008, 03:07:45 am »
Thanks a million Temar! dbl-bump

Edit: Working great now! Org is feelin the lub.  ;D
« Last Edit: April 05, 2008, 05:01:52 am by Daynjer »

Offline clashbot

  • BeBot Expert
  • ****
  • Posts: 295
  • Karma: +0/-0
    • Ascension's Home
Re: Update to Nano.php pls?
« Reply #4 on: April 05, 2008, 03:38:16 am »
search routine still acts bugged....

To [tunderclash]: nano anima
Tunderclash: 9 nano formulas found :: click to view
To [tunderclash]: "anima of maddening wrath"
Tunderclash: /tell tunderclash .help
To [tunderclash]: nano "anima of maddening wrath"
Tunderclash: 585 nano formulas found (displaying only 1-200) :: click to view (page 1 of 4)
Tunderclash: 585 nano formulas found (displaying only 1-200) :: click to view (page 2 of 4)
Tunderclash: 585 nano formulas found (displaying only 1-200) :: click to view (page 3 of 4)
Tunderclash: 585 nano formulas found (displaying only 1-200) :: click to view (page 4 of 4)


any ideas?
and this is using yours, no mods done...

Offline Daynjer

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: Update to Nano.php pls?
« Reply #5 on: April 06, 2008, 05:12:28 am »
A few orgmates have told me that they have seen similar problems with the search.  I personally haven't seen it, but from the explanations I have heard, sounds like same results as clash.  :-\

Offline redmagician

  • BeBot Rookie
  • *
  • Posts: 13
  • Karma: +0/-0
Re: Update to Nano.php pls?
« Reply #6 on: April 07, 2008, 02:14:35 am »
Hi everyone.
I took a look at the search function and noticed that the current implementation is doing a "contains any of these words" search.
So technically clashbot's lookup is good because the results either contain "anima", "of", "maddening", or "wrath".

I think what you're looking for is more along the lines of a "contains all of these words" search.
In that type of search clashbot's example would return just one item, the one that matched all the words.

If that's what you want then its a simple change in one line.

Change
$ftext = (!$ftext ? "name like '%$ip%'" : $ftext." or name like '%$ip%'");

To
$ftext = (!$ftext ? "name like '%$ip%'" : $ftext." and name like '%$ip%'");

Offline clashbot

  • BeBot Expert
  • ****
  • Posts: 295
  • Karma: +0/-0
    • Ascension's Home
Re: Update to Nano.php pls?
« Reply #7 on: April 07, 2008, 02:57:57 am »
tried what you suggested, new results:
To [tunderclash]: nano anima
Tunderclash: 9 nano formulas found :: click to view
To [tunderclash]: nano "Anima of Maddening Wrath"
Tunderclash: No matches found.


Offline clashbot

  • BeBot Expert
  • ****
  • Posts: 295
  • Karma: +0/-0
    • Ascension's Home
Re: Update to Nano.php pls?
« Reply #8 on: April 07, 2008, 03:03:20 am »
ok, removing the quotes on that one, caused it to work correctly..thanks

To [tunderclash]: nano anima
Tunderclash: 9 nano formulas found :: click to view
To [Tunderclash]: nano "anima of"
Tunderclash: No matches found.
To [Tunderclash]: nano 'anima of'
Tunderclash: No matches found.
To [Tunderclash]: nano anima of
Tunderclash: 9 nano formulas found :: click to view
To [Tunderclash]: nano anima of maddening
Tunderclash: 1 nano formulas found :: click to view
To [Tunderclash]: nano anima of maddening wrath
Tunderclash: 1 nano formulas found :: click to view

Offline Wolfbiter

  • Contributor
  • *******
  • Posts: 149
  • Karma: +0/-0
    • KAZE
Re: Update to Nano.php pls?
« Reply #9 on: April 07, 2008, 12:45:16 pm »
I took a look at the search function and noticed that the current implementation is doing a "contains any of these words" search.
Not if they use "" around the search words, then it'll match the whole string instead of each word. Unless someone decided to remove that bit from the script, but that's how it works in the original.

One issue (been mentioned before here, search is Your friend) could be the problem with the ยค I used in the first script. It doesn't work properly on some system, replace it with @ and see if it helps.
Too many toons.

Offline clashbot

  • BeBot Expert
  • ****
  • Posts: 295
  • Karma: +0/-0
    • Ascension's Home
Re: Update to Nano.php pls?
« Reply #10 on: April 07, 2008, 10:29:30 pm »
yeah wolf, I tried that first. That did not change anything, and had quite a big post in the original thread that you mentioned that on. The quotes did not matter before or after, changing that search routine from "or" to "and" and removing the quotes fixed the problem in my case.

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 207
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal