MyBB Support

Disable highlight on all threads.

Submitted by Pirate, , Thread ID: 4962

Thread Closed
21-06-2015, 05:51 AM
#1
Hi.


I want to disable the highlight feature like:
Code:
example.com/mybb/showthread.php=7432981093312073?highlight="example"

Code:
?highlight="example"

How can I disable this feature?

RE: Disable highlight on all threads.

This post was last modified: 21-06-2015, 11:11 AM by linkzy
#2
remove this code from search.pp
Remember to keep backup atleast
PHP Code:
// 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']);
        }
    } 
| A | v4hl| Addicted | Senpai | Sui | Sensei | H | fdigl |


RE: Disable highlight on all threads.

#3
21-06-2015, 11:11 AM
Mr_Devil Wrote:
remove this code from search.pp
Remember to keep backup atleast
PHP Code:
// 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']);
        }
    } 

This exist on the showthread.php too.

RE: Disable highlight on all threads.

OP
#4
already done all of that. doesn't work.

RE: Disable highlight on all threads.

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

Please let me know if this helps, Pirate!

RE: Disable highlight on all threads.

#6
23-06-2015, 02:28 PM
GodsHand Wrote:
Open AdminCP/Templates & Styles/You theme/global.css and delete this:

Code:
.highlight {
background: #FFC;
padding-top: 3px;
padding-bottom: 3px;
}

Please let me know if this helps, Pirate!

This removes the style of it and not the actual function.

RE: Disable highlight on all threads.

#7
23-06-2015, 02:33 PM
Aoki Wrote:
23-06-2015, 02:28 PM
GodsHand Wrote:
Open AdminCP/Templates & Styles/You theme/global.css and delete this:


Code:
.highlight {
background: #FFC;
padding-top: 3px;
padding-bottom: 3px;
}

Please let me know if this helps, Pirate!

This removes the style of it and not the actual function.

If it removes the style of it completely so nothing appears to be highlighted it would still be 99% the same as the actual function being removed right?

RE: Disable highlight on all threads.

#8
23-06-2015, 02:34 PM
GodsHand Wrote:
23-06-2015, 02:33 PM
Aoki Wrote:
23-06-2015, 02:28 PM
GodsHand Wrote:
Open AdminCP/Templates & Styles/You theme/global.css and delete this:



Code:
.highlight {
background: #FFC;
padding-top: 3px;
padding-bottom: 3px;
}

Please let me know if this helps, Pirate!

This removes the style of it and not the actual function.

If it removes the style of it completely so nothing appears to be highlighted it would still be 99% the same as the actual function being removed right?

No, cause you'd still be able to use the actual system of it.

RE: Disable highlight on all threads.

OP
#9
Guys I already fixed it. Close thread plz.

Users browsing this thread: 2 Guest(s)