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.

linkzy
No pressure, no diamonds
Level:
0
Reputation:
181
Posts:
5.34K
Likes:
341
Credits:
54
21-06-2015, 11:11 AM
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.

Akay
We are!
Level:
0
Reputation:
28
Posts:
946
Likes:
109
Credits:
2.05K
21-06-2015, 12:09 PM
#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
22-06-2015, 03:44 AM
#4
already done all of that. doesn't work.

RE: Disable highlight on all threads.

Gods Hand
Member
Level:
0
Reputation:
0
Posts:
178
Likes:
5
Credits:
1
23-06-2015, 02:28 PM
#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.

Aoki
retired
Level:
83
Reputation:
348
Posts:
7.89K
Likes:
2.3K
Credits:
1.7K
23-06-2015, 02:33 PM
#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.

Gods Hand
Member
Level:
0
Reputation:
0
Posts:
178
Likes:
5
Credits:
1
23-06-2015, 02:34 PM
#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.

Aoki
retired
Level:
83
Reputation:
348
Posts:
7.89K
Likes:
2.3K
Credits:
1.7K
23-06-2015, 02:55 PM
#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
23-06-2015, 04:05 PM
#9
Guys I already fixed it. Close thread plz.

Users browsing this thread: 1 Guest(s)