Suggestions & Feedback
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsForum InformationSuggestions & Feedback

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old September 1st, 2003, 09:20 AM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,320 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 10987 Folding Title: Novice Folder
Time spent in forums: 6 Days 8 h 49 m 26 sec
Reputation Power: 4
Higlight after searching

After you search it would be nice if the searched word(s) would be highlighted. Example: I do a search for "search" on forums. It gives me 200 results. I click on one. When I see the thread it shows the thread normally except that all the "search" words are highlighted. Of course this would also be nice when searching from tutorials and code

Reply With Quote
  #2  
Old September 1st, 2003, 04:41 PM
Coopercentral Coopercentral is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 224 Coopercentral User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to Coopercentral
RE: Higlight after searching

I actually downloaded this same forum on my site, and am doing that as well. On the search page, where it shows all the links, Matt would have to add another variable on it, something like:

?word=search

then in the code, say something like:

$content = str_replace("$word", "<font color="orange"><b>$word</b></font>", $content);

I'm trying to do that to, but have to figure out where to put it. I'm sure he'll do it, and yes, it's a great idea!!

Ken Cooper

Reply With Quote
  #3  
Old September 1st, 2003, 04:52 PM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,320 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 10987 Folding Title: Novice Folder
Time spent in forums: 6 Days 8 h 49 m 26 sec
Reputation Power: 4
RE: Higlight after searching

Coopercentral: I'd suggest the process() function in funcs.forum.php. I'm adding this too ;)

Reply With Quote
  #4  
Old September 1st, 2003, 06:51 PM
Coopercentral Coopercentral is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 224 Coopercentral User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to Coopercentral
RE: Higlight after searching

tkarkkainen: Your site looks a lot like Codewalkers, and I think that's awesome. I noticed you use the same forum, so I assume you're going to do this too? Thanks for the help!!

Ken Cooper

Reply With Quote
  #5  
Old September 2nd, 2003, 10:10 AM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,320 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 10987 Folding Title: Novice Folder
Time spent in forums: 6 Days 8 h 49 m 26 sec
Reputation Power: 4
RE: Higlight after searching

Actually I can share the code for highlighting it. This is what I coded for the article page on my site. Tha page gets the highlighted words via ?highlight=words to be highlighted:

php Code:
Original - php Code
  1.  
  2. if(isset($highlight))
  3. {
  4.     $words=explode(" ",$highlight);
  5.     for($i=0;$i<count($words);$i++)
  6.       article=str_replace($words[$i],"<font color="#FF0000">$words[$i]</font>",$article);
  7. }


It can be easily adapted to anything.

Reply With Quote
  #6  
Old September 2nd, 2003, 11:17 AM
Coopercentral Coopercentral is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 224 Coopercentral User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to Coopercentral
RE: Higlight after searching

Ya thanks!! I tryed something like that, but it didn't work, but I'll see what I can do. Thanks a lot!!

Ken Cooper

Reply With Quote
Reply

Viewing: Codewalkers ForumsForum InformationSuggestions & Feedback > Higlight after searching


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway