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?
November 20, 2008, 06:55:12 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 546 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
********
Offline Offline

Gender: Male
Posts: 841



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
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 841



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
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
****
Offline Offline

Gender: Male
Posts: 192



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
****
Offline Offline

Gender: Male
Posts: 192



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
****
Offline Offline

Gender: Male
Posts: 192



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
****
Offline Offline

Gender: Male
Posts: 192



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
Log playtime from buddys ...
by Temar
[Today at 10:33:57 AM]

Vote Core module and Simp...
by Temar
[November 19, 2008, 09:26:52 AM]

Restrict access for one m...
by Organizer
[November 19, 2008, 03:21:19 AM]

Custom / Revised Modules ...
by Elesar1
[November 17, 2008, 03:51:46 PM]

TWC
by Temar
[November 16, 2008, 11:39:12 AM]

Are there any FUN modules...
by Elesar1
[November 15, 2008, 07:39:15 PM]

Call to a member function...
by exxie
[November 15, 2008, 09:29:31 AM]

Ported Modules
by Alreadythere
[November 14, 2008, 06:10:07 PM]

cURL and other non-defaul...
by Temar
[November 14, 2008, 04:11:44 PM]

Delete member from Bot al...
by Alreadythere
[November 14, 2008, 12:17:54 PM]
Stats
Members
Total Members: 1235
Latest: DDDepressionnn
Stats
Total Posts: 11034
Total Topics: 1495
Online Today: 15
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 1
Guests: 14
Total: 15
Threeze

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.374 seconds with 29 queries. (Pretty URLs adds 0.036s, 4q)
Loading...