Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
iframe search bar
Goto page Previous  1, 2
 
Reply to topic    Forum Index » Additional Downloads View previous topic
View next topic
iframe search bar
Author Message
scottdallas



Joined: 04 May 2006
Posts: 2027
Location: US

Post Reply with quote
Quote:
Well, I did. But now I've overwritten it with this search.php file. So now it is not possible anymore Razz




lol man I didn't think of that. I downloaded the boolean search and coded it the same way. I updated everything above. Here's what's changed though:



Open search.css and change the font properties.

- - 'fontyfont' is formatting for the words 'Search for:'

- - 'fontyfont-search' is formatting for text in search box.

- - 'fontyfont-dropdown' is formatting for text in both drop downs.



The only thing I can't figure out that would really make this better is how to make it search the {title}. After playing with it I saw it only searches {short-story} and maybe {full-story}, I didn't look that far. Anybody know how to make it {title}+{short-story}? Any ideas for other things that would make it better?

_________________
www.scodal.com is an example of cnr as a social forum - www.scottdizzle.com is an example of cnr as a personal website to share whatever cool stuff i feel like. i have another, but it's nsfw. pm me Wink
Wed May 09, 2007 7:05 pm View user's profile Send private message Visit poster's website AIM Address
Guest








Please login to hide the ads.

astrostart



Joined: 11 Feb 2007
Posts: 124
Location: The Netherlands

Post Reply with quote
By the way, the skip search works! Great! Thanks Scott & FI-DD! Very Happy

_________________
My site: http://www.astrostart.nl | Thanks to everyone here who has helped me!
Wed May 09, 2007 7:05 pm View user's profile Send private message Visit poster's website
scottdallas



Joined: 04 May 2006
Posts: 2027
Location: US

Post Reply with quote
Man I played with this some more and I realized this has a built in template for search results. How can I make boolean search use a cutenews.ru template?

_________________
www.scodal.com is an example of cnr as a social forum - www.scottdizzle.com is an example of cnr as a personal website to share whatever cool stuff i feel like. i have another, but it's nsfw. pm me Wink
Wed May 09, 2007 7:22 pm View user's profile Send private message Visit poster's website AIM Address
yesitsfree



Joined: 03 May 2007
Posts: 89

Post Reply with quote
as you have seen I have had problems with my database

So now have a fresh install and tried to put the files in you have supplied.



Again I have had to take the following out to make it work



Code:
//Search history start

$file_path = "../data/search-history.txt";



if(!file_exists($file_path)) touch($file_path);



$search_file = file($file_path);



if($search){



function plus_one(){

global $search_file, $search, $file_path;



$file = fopen($file_path, w);



   foreach($search_file as $line){

      $line_arr = explode("|", $line);

      if(trim($line_arr[1]) == trim($search)){

         $count = $line_arr[0]+1;

         fwrite($file, $count."|".$line_arr[1]);

      }

      else fwrite($file, $line);

   }

fclose($file);

}



foreach($search_file as $line){

   $line_arr = explode("|", $line);

   $all_words[] = trim($line_arr[1]);

}





   if(in_array($search, $all_words)){

      plus_one();

   }

   else {

      $add_file = fopen($file_path, a);

      fwrite($add_file, "1|".$search."\n");

      fclose($add_file);

   }





}

//Search history end



$file_path = "../data/search-history.txt";







Due to I think this





Code:


$file_path = "../data/search-history.txt";







Its looking for a file in the data folder called search-history.txt and because there is not one I get the error



goto my site and put a search in and you will get a load of errors and then the item its found.



www.security4free.co.uk only one listing on home page

_________________
yesitsfree freeware http://www.yesitsfree.co.uk
Security4free http://www.security4free.co.uk
UK community website directory http://www.wvis.co.uk
Holiday Lets Directory ttp://www.holidayletsdirectory.com
Wed May 09, 2007 7:29 pm View user's profile Send private message Visit poster's website
Display posts from previous:    
Reply to topic    Forum Index » Additional Downloads All times are GMT + 1 Hour
Goto page Previous  1, 2
Page 2 of 2

 
Jump to: 
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
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.