Highlight search results

Discuss phpBB 3.0.x in general.
Forum rules
Please post any phpBB 3.1.x related topics in the forum.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
femu
New member
New member
Posts: 19
Joined: 26 Jul 2006, 08:08
Location: Pfaffenhofen
Contact:

Highlight search results

Postby femu » 11 Feb 2007, 06:27

Hi Guys,

I'm pretty sure, I saw it over here, but I can't find it anymore. I'm looking for the code, which highlights the search result words in another color (different background and text color).

Would you please be so kind and help me out?

Thanks,
femu

User avatar
drathbun
Member
Member
Posts: 156
Joined: 26 Jul 2006, 00:02
Contact:

Postby drathbun » 11 Feb 2007, 06:38

That's a standard feature. Are you trying to add it? Modify it? Remove it?

Look in viewtopic.php at the $highlight variables. There is $highlight_match and $highlight_active and there's a bunch of code related to highlighting matching search words.

femu
New member
New member
Posts: 19
Joined: 26 Jul 2006, 08:08
Location: Pfaffenhofen
Contact:

Postby femu » 11 Feb 2007, 06:41

Thanks, that was it!
Kind regards,
femu

User avatar
drathbun
Member
Member
Posts: 156
Joined: 26 Jul 2006, 00:02
Contact:

Postby drathbun » 11 Feb 2007, 06:48

Happy to assist. :)

User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Postby igorw » 12 Feb 2007, 17:01

Nice, you can also find it here: http://www.phpbb.com/phpBB/viewtopic.php?t=389868 ;)

- we're poor!


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “phpBB 3.0.x "Olympus" discussion”

Who is online

Users browsing this forum: No registered users and 4 guests