php Link Directory help needed

Discussion in 'PHP' started by melaniejk, Feb 3, 2006.

  1. #1
    Hi.
    I installed php Link Directory. I'm having a problem trying to figure out how to put some space between the subcategory listings in a category on the directory homepage.

    I played around with the cellspacing and cellpadding on the main.tpl but that only changed the main categories. I also tried increasing the font which made it a little easier to read but not good enough.

    The problem is that I am listing all the subcategories (states) under the main category of United States. They are listed so close together it's difficult to read and click on the one you want.

    I would also like to put the category "United States" on the top of the list. But, right now it shows the categories in alphabetical order. Is there a way to get this homepage to be in reverse alphabetical order? I can get the subcategories in ASC order but I can't get it to work for the main categories.


    Any suggestions would be greatly appreciated.
    Thank you.

    http://www.genealogygeek.com/index.php
    (haven't removed the old index.html yet)
     
    melaniejk, Feb 3, 2006 IP
  2. Bob_

    Bob_ Peon

    Messages:
    31
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Open main.tpl and look for
    <table border="0" cellpadding="0" cellspacing="2">
    Code (markup):
    and change to
    <table border="0" cellpadding="0" cellspacing="2" width="100%">
    Code (markup):
    It doesn't use the whole table area unless you do this. Once done you'll see it spread out better.

    If you've made chages it may not say the same as the what I said to look for, but it's the only call to <table> in that template and it's around line 34.
     
    Bob_, Feb 4, 2006 IP
  3. melaniejk

    melaniejk Peon

    Messages:
    397
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi Bob.
    Thank you for the reply.

    I added the width="100%" part but it hasn't changed anywhere that I can see.

    The names of the states are still right ontop of each other.
     
    melaniejk, Feb 4, 2006 IP
  4. Bob_

    Bob_ Peon

    Messages:
    31
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yes I saw your post on their forum and it was worded differently so I've answered it there as well and I think it'll help more as I had a look at your link there and now see what your after.
     
    Bob_, Feb 4, 2006 IP
    melaniejk likes this.
  5. melaniejk

    melaniejk Peon

    Messages:
    397
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hi.
    I added the line height attribute but for some reason it's not changing anything.


    Hey, guess what? I tried adding that line attribute to the BODY section of the style.css and it worked!!!

    THank you for your help.
     
    melaniejk, Feb 4, 2006 IP