oc |
|
---|---|
With minimum php code run, I prepared a highlight plugin, uses JQuery.
http://www.cotonti.com/datas/users/12-fphighlight.rar You need to edit your forums.posts.tpl and change
<div style="width:550px; overflow-x:auto; overflow-y:visible; margin-bottom:8px;">
with
<div class="fmsg" style="width:550px; overflow-x:auto; overflow-y:visible; margin-bottom:8px;">
No eregi replace or something, uses users computer to paint text. (note: you should add a class higlight to your skin like this: )
.highlight { background: yellow; }
Usage: add this ending of the url: &highlight=TEXT note: text must be always uppercase. |
Orkan |
|
---|---|
can you be more specific on what it exactly highlights?
Perl - the only language that looks the same before and after RSA encryption.
|
oc |
|
---|---|
It highlights the specified text :) I didn't understand what you meant, actually.
|
Trustmaster |
|
---|---|
It's to highlight search words, right?
May the Source be with you!
|
oc |
|
---|---|
Yeah, I actually want to import this to the search plugin but I wanted to hear your ideas first.
Uses JS, so helps server. Actually this may be future of Seditio-N. JQuery can make pages much much faster. |
Orkan |
|
---|---|
Thanks Trustmaster for clarifying this. My English could be better I know, but in this case it was difficult to figure out why to highlight text in forums?
![]() So, why this is for forums only? ..and it could be nice to have a button to switch this off at any time, IMO Perl - the only language that looks the same before and after RSA encryption.
|
oc |
|
---|---|
It should be forums and pages only, I did for forums, if responds will be positive, I'll implement this to search plugin.
|
Kilandor |
|
---|---|
Yea include it in search its a common feature, and should be there.
|