![]() |
|
Searching space token problem. - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Searching space token problem. (/thread-5060.html) |
Searching space token problem. - Douten - 2009-04-18 I read in the comment of template-function of getSearchWords() that "If tokens are separated by spaces, the OR function is presumed." That means putting space will be the same as , and | correct? Thanks for any help! Searching space token problem. - sbillard - 2009-04-18 You have read the comment correctly. Unfortunately, it is not correct. Comma or Searching space token problem. - Douten - 2009-04-18 Oh I get it. Tokens are like !, |, etc. so if it's "name & name" it'll be read as "name-or-and-or-name" right? This will require learning on my part right? I'll go look at some php tutorials. Searching space token problem. - sbillard - 2009-04-18 The tokens are As I said, the document you found was not correct. Space is NOT the same as OR. Searching space token problem. - Douten - 2009-04-18 Okay, I think I've got an understanding of how the token works. How would I change it so that space is read as an OR token though? so a search of "Smith Tim" would show "Tim Smith" image up (if I have Tim, Smith for tags of the "Tim Smith" image). Thanks~ : ) Searching space token problem. - sbillard - 2009-04-18 You would have to modify the zenphoto core class-search.php file. Not a recommended tactic. Searching space token problem. - Douten - 2009-04-18 I see. I guess I'll just let the user know about the search tokens then~ Thanks : ) Searching space token problem. - RachelL - 2009-04-18 If anyone does try to modify the class-search file to make this happen it would be beyond amazing, this is a big problem for what I use Zenphoto for as my users are not patient enough to read an explanation on how to search for things Searching space token problem. - sbillard - 2009-04-19 Please give tonight's nightly build a try. There is now an option to treat spaces as the OR operator. Searching space token problem. - RachelL - 2009-05-01 Thank you for that sbillard, can't wait to try it out. -Rachel |