Results 1 to 4 of 4

Thread: Adding Custom Touches

  1. #1
    Join Date
    Jan 2008
    Posts
    7

    Default Adding Custom Touches

    Hi everyone,

    I am trying to put my own custom code into our lovely directory.

    For each of the main categories on www.edu-sites.com I would like to have a specific advertising banner.

    I am in browse.html, I have tried adding some of my own ASP code but to no avail. Can anyone help me find a way of choosing some set code depending no the category the user is in?

    MANY THANKS

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

    Default

    Quote Originally Posted by carlheaton9898 View Post
    I am in browse.html, I have tried adding some of my own ASP code but to no avail.
    You did mean to say PHP and not ASP, right...???


    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  3. #3
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    You can do it this way, but if you have a lot of categories it will be a large amount of code

    <%if $cat == 1%>
    img src=image1
    <%elseif $cat == 2%>
    img src=image2
    <%elseif $cat == 3%>
    img src=image3
    <%elseif $cat == 4%>
    img src=image4
    <%else%>
    img src=defaultimage
    <%/if%>

  4. #4
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    Just paste the code into the "content"box in the category edit.
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

Similar Threads

  1. Adding custom fields
    By woolfie in forum v5.x
    Replies: 12
    Last Post: 12-13-2007, 04:33 PM
  2. Adding Custom Fields
    By Polo5 in forum v5.x
    Replies: 9
    Last Post: 03-05-2004, 03:04 PM
  3. Adding a Custom Field
    By craven in forum v5.x
    Replies: 1
    Last Post: 07-01-2002, 08:49 AM
  4. Adding custom Field with pictures
    By TheLobo in forum v5.x
    Replies: 0
    Last Post: 10-04-2001, 10:18 PM

Posting Permissions

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