Solved: 6 Years, 7 Months, 4 Weeks ago [How To?] Remove highlight addition from search results
#1
Solved: 6 Years, 7 Months, 4 Weeks ago
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?
Pokemon Style With Lots Of Maps Monster MMORPG Game Developer
Reply
#2
Solved: 6 Years, 7 Months, 4 Weeks ago
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']);
		}
	}
Find me here or at my new blog about MyBB, Web Design, SEO
My Services
MyBB Themes
Reply
#3
Solved: 6 Years, 7 Months, 4 Weeks ago
Try simple method. Open AdminCP/Templates & Styles/You theme/global.css and delete this: 
.highlight {
background: #FFC;
padding-top: 3px;
padding-bottom: 3px;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)