Disable highlight on all threads.

by Pirate - 21-06-2015, 05:51 AM
Contact: pirate@undoxable.net
Prime
Posts:
254
Joined:
Mar 2015
Likes:
7
Credits:
93
Reputation:
3
2 Years of Service
#1
OP
Posted: 21-06-2015, 05:51 AM
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?
لا إله إلا الله‎
Posts:
6,330
Joined:
Jan 2015
Likes:
301
Credits:
339
Reputation:
162
2 Years of Service
#2
Posted: 21-06-2015, 11:11 AM (This post was last modified: 21-06-2015, 11:11 AM by linkzy.)
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']);
        }
    } 

| Monopoly- Best forever .. | v4hl - ;) | Addicted | Senpai | Nyan | Sensei | H | fdigl |
[Image: gZD4Fba.png]

We are!
Posts:
1,044
Joined:
Jan 2015
Likes:
108
Credits:
1,914
Reputation:
25
2 Years of Service
#3
Posted: 21-06-2015, 12:09 PM
(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.
Contact: pirate@undoxable.net
Prime
Posts:
254
Joined:
Mar 2015
Likes:
7
Credits:
93
Reputation:
3
2 Years of Service
#4
OP
Posted: 22-06-2015, 03:44 AM
already done all of that. doesn't work.
Member
Posts:
192
Joined:
Jun 2015
Likes:
4
Credits:
1
Reputation:
0
2 Years of Service
#5
Posted: 23-06-2015, 02:28 PM
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!
._.
Posts:
5,262
Joined:
Jan 2015
Likes:
1,427
Credits:
21,326
Reputation:
202
Owner
2 Years of Service
#6
Posted: 23-06-2015, 02:33 PM
(23-06-2015, 02:28 PM)Gods Hand 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.
Send me a message for help. (Read the help docs first)
Steam Wishlist - Anime Watchlist
Member
Posts:
192
Joined:
Jun 2015
Likes:
4
Credits:
1
Reputation:
0
2 Years of Service
#7
Posted: 23-06-2015, 02:34 PM
(23-06-2015, 02:33 PM)Aoki Wrote:
(23-06-2015, 02:28 PM)Gods Hand 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?
._.
Posts:
5,262
Joined:
Jan 2015
Likes:
1,427
Credits:
21,326
Reputation:
202
Owner
2 Years of Service
#8
Posted: 23-06-2015, 02:55 PM
(23-06-2015, 02:34 PM)Gods Hand Wrote:
(23-06-2015, 02:33 PM)Aoki Wrote:
(23-06-2015, 02:28 PM)Gods Hand 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.
Send me a message for help. (Read the help docs first)
Steam Wishlist - Anime Watchlist
Contact: pirate@undoxable.net
Prime
Posts:
254
Joined:
Mar 2015
Likes:
7
Credits:
93
Reputation:
3
2 Years of Service
#9
OP
Posted: 23-06-2015, 04:05 PM
Guys I already fixed it. Close thread plz.
The last reply on this thread is older than a month. Please do not unnecessarily bump it.
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)