Results 1 to 9 of 9

Thread: Hot, New and Editor Picks Text...

  1. #1
    Join Date
    Aug 2001
    Posts
    38

    Default Hot, New and Editor Picks Text...

    Where do I change the New, Hot or editor picks details listed in rows. I want to use images rather than text.

    Thanks

  2. #2
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    Edit /lib/link.class.php line 55-59

    PHP Code:
      var $icon_new "<b><font size=2 color=Blue>New</font></b>";
      var 
    $icon_updated "<b><font size=2 color=Green>Updated</font></b>";
      var 
    $icon_top_rated "<b><font size=2 color=Maron>Top Rated</font></b>";
      var 
    $icon_hot "<b><font size=2 color=Red>Hot</font></b>";
      var 
    $icon_pick "<b><font size=2 color=gray>Pick</font></b>"

  3. #3
    Join Date
    Oct 2001
    Posts
    94

    Default

    Amanda,

    Did you succeed with this? Please let me know the syntax.

    Thank you
    Binto

  4. #4
    Join Date
    Aug 2001
    Posts
    38

    Cool

    Yep Binto, it works!!

  5. #5
    Join Date
    Oct 2001
    Posts
    94

    Default

    Please how did you add the img src tag?
    I get a parser error message saying expecting `'," or `';" .....

    Thank you

  6. #6
    Join Date
    Aug 2001
    Posts
    4

    Default

    Binto, be careful with " and ' characters, you may have like this:
    PHP Code:
    var $icon_new "<b><font size="2" color="Blue">New</font></b>"
    Last edited by dody; 11-29-2001 at 05:32 PM.

  7. #7
    Join Date
    Oct 2001
    Posts
    94

    Default

    Thank you very much but I want to replace the word 'New' with an image file like <'img src="xyz.gif">
    I am please asking for the correct syntax.

  8. #8
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    Here is, the safest is by using fill http:// address for image location

    PHP Code:
    var $icon_new 
    "<img src=http://yourdomain.com/images/new.gif"

  9. #9
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    Here is, the safest is by using full http:// address for image location

    PHP Code:
    var $icon_new 
    "<img src=http://yourdomain.com/images/new.gif"

Posting Permissions

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