PHP-Nuke Services - Addons, Modules, Blocks Vizitati www.westdesign.ro Select Interface Language:EnglishRomanian
  Login or Register HomeForumsDownloadsYour AccountWeb LinksContact   
SectionsShow\Hide
MultiheadlinesShow\Hide
LoginShow\Hide
~ Welcome, alien
Nickname Password
(Register)

~ Membership:

Greetings to the newest member Quattro25
~ New Today: 2
~ New Yesterday: 1
~ Overall: 3710

~ People Online:
~ Visitors: 10
~ Members: 0
~ Total: 10
~Aikon is offline
on Yahoo Msg.
Link to meShow\Hide

aikons.net
Search in FeedsShow\Hide
Search in feeds
HistoryShow\Hide
On 7 January


Speed Up   Pause   Speed Down
DictionaryShow\Hide
Enter the word

Romanian users only

Situl personal NICU RANCOV Forum Index


Reply to topic Page 1 of 1
Search all or any
Message Author
Reply with quote
Post Posted: Monday 13 November, 2006 17:52

Can the search be changed from search all words to search any?

View user's profile Send private message
Reply with quote
Post Posted: Monday 13 November, 2006 22:21

Hi Stephane,

I'm not sure I understand you. Could you be more specific, maybe an example?

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Monday 13 November, 2006 22:45

If i do a search for pots and pans
it will only return articles with pots and pans
I would like it to return articles with pots and or pans

View user's profile Send private message
Reply with quote
Post Posted: Tuesday 14 November, 2006 13:50

Right now the queries are made to search for entire word. But can be done.
If you have some coding skills you could play with the SearchNews() function from index.php. There is the place where the queries are made.

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Wednesday 15 November, 2006 14:52

Unfortunately beyond my capabilities at present.
If you do have any time for this it would be great.

View user's profile Send private message
Reply with quote
Post Posted: Thursday 16 November, 2006 02:18

I'll look over....soon.

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Tuesday 28 November, 2006 21:41

I thought i'd have a crack at this and allthough I couldn't get my head around the searchnews in index.php, I have been able via a tutorial to get a search block going.

It has a few problems I hope you can help me with,

1, I cant get it to find and display the site's image .$image["urls_image"].
2, href=\"".$row["news_link"]."\" should give the link url but gives my domain url
3, I cant get the input form to display within php

this search block also gives me the ability to use search strings like http://www.mydomain/searchtest.php?search=pots+pans Very Happy


here's the block

How do I post the code?

View user's profile Send private message
Reply with quote
Post Posted: Wednesday 29 November, 2006 14:40

I took a step back after being unsuccessful with the block and at trying to add it as a function in MH index.php.
So far I have it running as a stand alone program, take a look http://www.ontheball.info/searchtest.php

If you like it, have any idea's, let me know.

I'm curently thinking it could be a used as a MH addon module, maybe.

View user's profile Send private message
Reply with quote
Post Posted: Thursday 30 November, 2006 03:13

I really don't know what is there.
I told you on the queries are made SearchNews().
The principle to create a query to look after all[any of] the words from one sentences [2,3 words] is to explode [using the space] the search text and look for individual parts of exploded string:
something like:
Code:
$string=" WHERE news_title LIKE '%$part1%' OR '%$part2%' OR '%$part3%'........";

and later:
Quote:
$sql = "SELECT * FROM ".$prefix."_multiheadlines_news".$string." AND....other things


Unfortunatelly right know I don't have time for modding this.
Maybe you should have reported this on "Features requests" topic so when I'm gonna release the next vers. I'll include it.

View user's profile Send private message Visit poster's website
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Page Generation: 0.41 Seconds