MyBB Community Forums
[How To?] Remove highlight addition from search results - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: [How To?] Remove highlight addition from search results (/thread-167045.html)



Remove highlight addition from search results - MonsterMMORPG - 2015-02-14

I had copied my old forum and built another one with domain change

everything works however when an internal search is done it adds &highlight=term at the end of the result link

And this highlight causes redirect to my first forum

So how can i remove this highlight thing?


RE: Remove highlight addition from search results - ThemeFreaknet - 2015-02-14

Quick & Dirty: Find search.php and comment out / remove the following php:

	// Work out if we have terms to highlight
	$highlight = "";
	if($search['keywords'])
	{
		if($mybb->seo_support == true)
		{
			$highlight = "?highlight=".urlencode($search['keywords']);
		}
		else
		{
			$highlight = "&highlight=".urlencode($search['keywords']);
		}
	}



RE: Remove highlight addition from search results - adi19 - 2015-02-15

Try simple method. Open AdminCP/Templates & Styles/You theme/global.css and delete this: 
.highlight {
background: #FFC;
padding-top: 3px;
padding-bottom: 3px;
}