L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 04, 2008, 03:31:42 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Development > Module Requests > Topic: Update to Nano.php pls?
Pages: [1]   Go Down
« previous next »
Print
Author Topic: Update to Nano.php pls?  (Read 566 times)
0 Members and 1 Guest are viewing this topic.
Daynjer
Freshman
*
Offline Offline

Posts: 8


Update to Nano.php pls?
« on: April 04, 2008, 06:47:23 AM »

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! Cool
Logged
Temar
BeBot Developer
Grandmaster
********
Online Online

Gender: Male
Posts: 887



WWW
Re: Update to Nano.php pls?
« Reply #1 on: April 04, 2008, 10:51:29 AM »

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.
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Temar
BeBot Developer
Grandmaster
********
Online Online

Gender: Male
Posts: 887



WWW
Re: Update to Nano.php pls?
« Reply #2 on: April 04, 2008, 07:37:11 PM »

here u go


Edit: Posted Wrong 1 (old 1 from dif directory)
« Last Edit: April 04, 2008, 08:30:55 PM by Temar » Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Daynjer
Freshman
*
Offline Offline

Posts: 8


Re: Update to Nano.php pls?
« Reply #3 on: April 04, 2008, 08:07:45 PM »

Thanks a million Temar! dbl-bump

Edit: Working great now! Org is feelin the lub.  Grin
« Last Edit: April 04, 2008, 10:01:52 PM by Daynjer » Logged
clashbot
Experienced
****
Online Online

Gender: Male
Posts: 193



Re: Update to Nano.php pls?
« Reply #4 on: April 04, 2008, 08:38:16 PM »

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...
Logged
Daynjer
Freshman
*
Offline Offline

Posts: 8


Re: Update to Nano.php pls?
« Reply #5 on: April 05, 2008, 10:12:28 PM »

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.  Undecided
Logged
redmagician
Freshman
*
Offline Offline

Posts: 7


Re: Update to Nano.php pls?
« Reply #6 on: April 06, 2008, 07:14:35 PM »

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%'");
Logged
clashbot
Experienced
****
Online Online

Gender: Male
Posts: 193



Re: Update to Nano.php pls?
« Reply #7 on: April 06, 2008, 07:57:57 PM »

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.

Logged
clashbot
Experienced
****
Online Online

Gender: Male
Posts: 193



Re: Update to Nano.php pls?
« Reply #8 on: April 06, 2008, 08:03:20 PM »

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
Logged
Wolfbiter
BeBot Contributor
Apprentice
*******
Offline Offline

Posts: 141



WWW
Re: Update to Nano.php pls?
« Reply #9 on: April 07, 2008, 05:45:16 AM »

Quote from: redmagician on April 06, 2008, 07:14:35 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.
Logged

220 Doctor | 220 Adventurer | 220 Shade
clashbot
Experienced
****
Online Online

Gender: Male
Posts: 193



Re: Update to Nano.php pls?
« Reply #10 on: April 07, 2008, 03: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.
Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Development > Module Requests > Topic: Update to Nano.php pls?
« previous next »
 
Jump to:  

Recent
online not working after ...
by clashbot
[Today at 03:06:06 PM]

Bot not working after tod...
by Alreadythere
[Today at 01:04:41 PM]

Tokens Calulator
by Temar
[December 03, 2008, 01:09:03 PM]

Bebot does not work with ...
by IKShadow
[December 03, 2008, 08:54:04 AM]

!items database
by Temar
[December 03, 2008, 07:27:59 AM]

massive_pvp_time_table 1
by Sudoka
[December 03, 2008, 06:49:07 AM]

Log playtime from buddys ...
by IKShadow
[December 02, 2008, 06:48:12 AM]

[request] Raid timers
by Elesar1
[December 01, 2008, 04:41:09 PM]

Shared DB online list
by Temar
[December 01, 2008, 01:55:47 AM]

relay colors
by Temar
[December 01, 2008, 01:54:56 AM]
Stats
Members
Total Members: 1246
Latest: Vingus
Stats
Total Posts: 11191
Total Topics: 1508
Online Today: 21
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 5
Guests: 16
Total: 21
Vingus
vikor
clashbot
Stealth
Temar

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.212 seconds with 29 queries. (Pretty URLs adds 0.027s, 4q)
Loading...