Hello there.
Mybb has not a feature that when you search and give result, searched keywords show highlighted.
But I made a plugin that do it for you...
http://mods.mybboard.com/view.php?did=357
Read features:
Highlight searched keywords in
thread's show
Highlight searched keywords in
search results' show
Add searched keywords to
navigator of show search results.
Edit Css of highlighted texts(Admins);
download and enjoy it and w8 for next versions and more features...
imei Addmimistrator
It works but your CSS did not added to your master default theme, it is an issue with upgraded forums... just add this at end of extra css of default theme...
.highlight{
background-color: #FF0000;
color: #FFFF00;
}
I search of your forum and give this html result... if you do that it will works fine.
Kom, <span class="highlight" title="highlighted by 'imeiHighLight plugin'">kom</span>,
Still no difference, though.
This is my CSS:
Quote:img {
border: none;
}
.clear {
clear: both;
}
.hidden {
display: none;
float: none;
width: 1%;
}
.float_left {
float: left;
}
.float_right {
float: right;
}
.menu ul {
list-style: none;
margin: 0;
}
.menu li {
display: inline;
padding-left: 5px;
}
.menu img {
padding-right: 5px;
vertical-align: top;
}
#panel .links {
margin: 0;
float: right;
}
.expcolimage {
float: right;
width: auto;
vertical-align: middle;
}
img.attachment {
border: 1px solid #E9E5D7;
padding: 2px;
}
.pagenav {
font-weight: bold;
}
.pagenavbit {
padding-left: 3px;
}
.pagenavbit a {
text-decoration: none;
}
.pagenavcurrent {
font-weight: bold;
padding-left: 3px;
}
hr {
background-color: #000000;
color: #000000;
height: 1px;
border: 0px;
}
#copyright {
font: 11px Verdana, Arial, Sans-Serif;
margin: 0;
padding: 10px 0 0 0;
}
#debug {
float: right;
text-align: right;
margin-top: 0;
}
.quote_header {
background: #fff;
border: 1px dashed #000;
border-bottom: 0;
color: #000;
font-weight: bold;
margin: 8px auto 0 auto;
padding: 4px;
}
.quote_body {
background: #fff;
border: 1px dashed #000;
border-top: 0;
color: #000;
padding: 4px;
margin: 0 auto 8px auto;
}
.code_header {
background: #fff;
border: 1px dashed #000;
border-bottom: 0;
color: #000;
font-weight: bold;
margin: 8px auto 0 auto;
padding: 4px;
}
.code_body {
background: #fff;
border: 1px dashed #000;
border-top: 0;
color: #000;
padding: 4px;
margin: 0 auto 8px auto;
font-family: Monaco, Consolas, Courier, monospace;
font-size: 12px;
}
.usercpnav {
list-style: inside;
padding: 0;
margin: 0;
}
.usercpnav li {
padding: 1px;
font-size:11px
}
.usercpnav .pmfolders {
/* PM folders on the UCP Nav menu */
}
.subforumicon {
border: 0;
vertical-align: middle;
}
.separator {
margin: 5px;
padding: 0;
height: 0px;
font-size: 1px;
list-style-type: none;
}
form {
margin: 0;
padding: 0;
}
.popup_menu .popup_item_container {
margin: 1px;
text-align: left;
}
.popup_menu .popup_item {
display: block;
padding: 3px;
text-decoration: none;
white-space: nowrap;
}
.popup_menu a.popup_item:hover {
text-decoration: none;
}
.autocomplete {
text-align: left;
}
.highlight {
background-color: #FF0000;
color: #FFFF00;
}
It worked after a refresh.. problem solved.
Btw, is it possible to just add it into the search.php so we don't have to type &highlight= after our query?
your search {in post view not topic view} by default have suitable links (pid=xx&highlight=yyyy} btw it is as a feature that I implemented that your stopics also have this ability.
thank you for your response. I change some things in original plugin that i think may solve such a problem...
Well, without adding &highlight to my search line, nothing gets highlighted. o.o