Quote:
Originally Posted by Kolbi
Have 2 notices:
The number of keyword replaces seems not to work. Tried 1 or 2 replaces but all keywords (3 times) were replaced...
Another little question perhaps you make it case sensitive?
Because the first word in a sentence is written in big letters for example, but the word in a senctence is written in small letters:
"The school is over! So the pupil are on the way home."
If I now want to replace "the" with "<a hre="/">the</a>" it will be:
"<a hre="/">the</a> school is over! So <a hre="/">the</a> pupil are on <a hre="/">the</a> way home."
So the first word is now written in small letters...
|
1) It's 1 match
per keyword. If your keywords are
red, blue, green and your limit is 1, the sentence: "I like
red,
blue, and
green." will still see 3 links. The sentence "I have a
red hat, a red coat, and red shoes." will have only 1 link.
2) I can probably get it to match the case of the word it was linking, keeping the original case format. It would still be case insensitive when finding words. Actually I can make that an option too.
Quote:
Originally Posted by Kolbi
Third notice (just saw the update):
Why not using the class attribut instead of adding a span?
Instead of:
Code:
<span class="boplink"><a href="'.trim($boplink).'"' . $boptarg . $bopnofollow . ' >' . $bop_find_array[$bopi] .'</a></span>
try:
Code:
<a class="boplink" href="'.trim($boplink).'"' . $boptarg . $bopnofollow . ' >' . $bop_find_array[$bopi] .'</a>
I guess the span tag may be xhtml invalid... (not tested but I guess it can be...)
|
Mostly because putting the class in the
a tag didn't work in my test. Does it work for you?