Change Search Highlight?

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
AndrewB
Posts: 171
Joined: Fri Aug 22, 2003 11:15 pm
Contact:

Change Search Highlight?

Post by AndrewB »

Is there anyway to change the way search words are highlighted?

I just started using phpMyFAQ 1.3.4

I see in the notes that this has been improved? I would just rather have a background color - like a highlighter rather than the red dotted box.

Or can someone explain why the red dotted box is better?

TIA
Thorsten
Posts: 15568
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi Andrew,

just edit the function searchEngine() in the functions.php:

Change this CSS code:

Code: Select all

$thema = preg_replace("/(".$begriff.")/umis", "<span style=\"color: #FF0000; border: 1px dotted #FF0000;\">\\1</span>", $thema);
			$content = preg_replace("/(".$begriff.")/umis", "<span style=\"color: #FF0000; border: 1px dotted #FF0000;\">\\1</span>", $content);
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
AndrewB
Posts: 171
Joined: Fri Aug 22, 2003 11:15 pm
Contact:

Post by AndrewB »

thanks. I'll give it a try.

BTW - thanks for such a great FAQ manager :)
Thorsten
Posts: 15568
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

AndrewB wrote:BTW - thanks for such a great FAQ manager :)
Thanks for using it! :)

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
AndrewB
Posts: 171
Joined: Fri Aug 22, 2003 11:15 pm
Contact:

Post by AndrewB »

worked great :)

I also had to change the highlight_no_links function in the same way.


Off topic: Do you know of a good php software that I could use to organize files on the internet? I want to store files for people to download. I want to have a description, small image (icon), and the ability to search and sort the list.

thanks again
Thorsten
Posts: 15568
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi Andrew,

good. :)
AndrewB wrote:Off topic: Do you know of a good php software that I could use to organize files on the internet? I want to store files for people to download. I want to have a description, small image (icon), and the ability to search and sort the list.
sorry, I don't know such a software. :(

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply