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 jincesoft
~ New Today: 0
~ New Yesterday: 0
~ Overall: 4306

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

aikons.net
Search in FeedsShow\Hide
Search in feeds
HistoryShow\Hide
On 21 May


Speed Up   Pause   Speed Down
DictionaryShow\Hide
Enter the word

Romanian users only

- aikons.net - PHP-Nuke Services Forum Index


Reply to topic Page 1 of 1
Search block etc
Message Author
Reply with quote
Post Posted: Sunday 23 July, 2006 12:59

how can i change the search block to search all without options "cat, title & description"?

I have tried removing this code but that stoped it searching anything and now i'm stuck
Code:
.make_select_cat("0","")."";
   if ($conf["fullview"]=="full")  {
      $content .= "   <select name=\"search_where\" onChange=\"MM_jumpMenu('parent',this,0)\">
                                     <option value=\"1\">"._MH_TITLE."</option>
                                     <option value=\"2\">"._MH_DESCR."</option>
                                     <option value=\"3\" selected>"._MH_BOTH."</option>
                                   </select>";
   }


View user's profile Send private message
Reply with quote
Post Posted: Wednesday 26 July, 2006 17:01

Sorry for late reply.

You want to do the search everywhere? [I mean in the title & description & all categories?]

If yes, then open block-Multiheadlines-search.php from /blocks folder and replace the following code:
Code:
$conf = $db->sql_fetchrow($db->sql_query("SELECT * FROM ".$prefix."_multiheadlines_config"));
$content = "<form name=\"search_news\" method=\"post\" action=\"modules.php?name=$module_name&rss=SearchNews\">";
   $content .=    "<table width=\"100%\">";   
   $content .= "      <tr><td><b>"._MH_SEARCHINFEEDS."</b></td><tr>
                        <tr><td>".make_select_cat("0","")."</td></tr>";
   if ($conf["fullview"]=="full")  {
      $content .= "   <tr><td>
                                 <select name=\"search_where\" onChange=\"MM_jumpMenu('parent',this,0)\">
                                     <option value=\"1\">"._MH_TITLE."</option>
                                     <option value=\"2\">"._MH_DESCR."</option>
                                     <option value=\"3\" selected>"._MH_BOTH."</option>
                                   </select>
                          </td></tr>";
   }
   $content .= "      <tr><td><input type=\"text\" name=\"searchnews\"></td></tr>
                          <tr><td align=\"center\"><input type=\"submit\" name=\"Submit\" value=\""._MH_SEARCHF."\"></td></tr>";
   $content .= "</table>";
   $content .= "</form>";
with

Code:
$content = "<form name=\"search_news\" method=\"post\" action=\"modules.php?name=$module_name&rss=SearchNews\">";
$content .='<input name="select_categ" type="hidden" value="0">';
$content .='<input name="search_where" type="hidden" value="3">';
$content .=    "<table width=\"100%\">";   
$content .= "      <tr><td><b>"._MH_SEARCHINFEEDS."</b></td><tr>";
$content .= "      <tr><td><input type=\"text\" name=\"searchnews\"></td></tr>
                         <tr><td align=\"center\"><input type=\"submit\" name=\"Submit\" value=\""._MH_SEARCHF."\"></td></tr>";
$content .= "</table>";
$content .= "</form>";


View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Wednesday 26 July, 2006 19:54

Quote:
Sorry for late reply

No probs

Just what I wanted, perfect.
Thanks

View user's profile Send private message
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.53 Seconds