Photos in a directory - How to do it.

Discussion in 'PHP' started by Jamie Lister, May 13, 2006.

  1. #1
    I just set up an Indexscripts directory, but have a few problems and your help is needed. The directory is a simple one. Here's the link

    Now I want to create a special "featured members" category which goes above the rest (as shown on picture).
    Each featured listing will include a photo, the link and text.
    How do i do this?

    I will upload photos myself manually as opposed to allowing members to do it.

    Your feedback will be much appreciated.

    .
     

    Attached Files:

    Jamie Lister, May 13, 2006 IP
  2. daboss

    daboss Guest

    Messages:
    2,249
    Likes Received:
    151
    Best Answers:
    0
    Trophy Points:
    0
    #2
    in a nutshell...

    1. edit the index.php and show_cat.php files - look for the code that displays the featured listings and put it above the code that displays regular categories and listings
    2. edit the dir_urls table and add a field for the path to the individual images
    3. edit the settings.php table to allow the admin to edit the field
    4. in the code in index.php and show_cat.php, add the path to the image url

    :D
     
    daboss, May 13, 2006 IP
  3. Jamie Lister

    Jamie Lister Peon

    Messages:
    421
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I'm on my own here, new to php and on a tight budget.
    if any kind soul cares to expand on the above, I'd be ever so grateful.
     
    Jamie Lister, May 13, 2006 IP