Results 1 to 4 of 4

Thread: Problem with bold_format

  1. #1
    Join Date
    Nov 2003
    Posts
    2

    Default Problem with bold_format

    Hi
    I have a big problem with bold format keyword.

    For example, if I use this $bold_format :
    <b style='color: #000000; border: dotted; border-width: 0px 0px thin; border-color: black black #FF9900'><%keyword%></b>

    If my keyword is something like :
    photo p

    It returns a real mess (see picture). Actually, not only the keyword is replaced by the bold_format, but as well every letter in the style definition that contains the letter "p", that is in the keyword.

    It gives the same resutst if I search photo 0, photo l...

    One word + one letter that is in the style definition = real mess !

    What can I do ??
    thanks

    Fred
    Attached Images Attached Images

  2. #2
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    try do just one part at a time to see what causes the problem...

    start with:
    <b style='color: #000000'><%keyword%></b>

    then try:
    <b style='color: #000000; border: dotted'><%keyword%></b>

    then
    <b style='color: #000000; border: dotted; border-width: 0px 0px thin'><%keyword%></b>

    etc

    it does seem a little strange that you using a border with no width. but it should not give you an error.

    Last edited by esm; 11-18-2003 at 03:39 PM.
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  3. #3
    Join Date
    Nov 2003
    Posts
    2

    Default

    Hi,
    Yes, that's what I did for the moment. But I want to keep this option on.
    Actually the problem comes form the while... loop in category and link class.
    Once you have replaced the first keyword, the style part is included in the string that is being searched and replaced in the second loop. The problem should be the same if you have 2 keywords, with simple words as "style, black.." among them and in second position . So that's quite a problem isn't it ?

    Is there any solution to prevent the script to make the replacements also in the style part ?

    Thanks,

    Fred

  4. #4
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    you could try adding the style to the style section of header.html/cat_header.html. then change as follows:

    <b class=kword><%keyword%></b> or whatever you name the class.
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

Similar Threads

  1. Special letter problem in other languages
    By Frank71 in forum Help Wanted/Job Request
    Replies: 13
    Last Post: 10-03-2006, 06:52 AM
  2. Category Import Problem
    By Hart_House in forum v5.x
    Replies: 2
    Last Post: 04-21-2004, 02:48 AM
  3. User login problem
    By webmasterjr in forum v5.x
    Replies: 3
    Last Post: 12-16-2002, 06:03 AM
  4. create table problem
    By davuart in forum v5.x
    Replies: 2
    Last Post: 06-02-2002, 10:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •