Форуми / Cotonti / Extensions / Highlight for forums, pages plugin

oc
#1 14.09.2008 22:34
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
#2 15.09.2008 13:58
can you be more specific on what it exactly highlights?
Perl - the only language that looks the same before and after RSA encryption.
oc
#3 15.09.2008 21:08
It highlights the specified text :) I didn't understand what you meant, actually.
Trustmaster
#4 15.09.2008 21:28
It's to highlight search words, right?
May the Source be with you!
oc
#5 15.09.2008 21:41
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
#6 15.09.2008 23:14
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
#7 16.09.2008 00:45
It should be forums and pages only, I did for forums, if responds will be positive, I'll implement this to search plugin.
Kilandor
#8 17.09.2008 14:28
Yea include it in search its a common feature, and should be there.