Removing Categories in Main on phpLD..

Discussion in 'Directories' started by wwws, Jul 8, 2011.

  1. #1
    Does any one know how to not show the Main categories in phpLD? I just want those categories on a side panel (Widget) but not in the homepage. I look into the Main.tpl assuming that is where I should look but just not seeing what I think I should be seeing.
     
    wwws, Jul 8, 2011 IP
  2. dvduval

    dvduval Notable Member

    Messages:
    3,372
    Likes Received:
    356
    Best Answers:
    1
    Trophy Points:
    260
    #2
    I do remember wanting this myself at one point and it being more difficult that I had hoped it to be because it interfered with other code. If I remember, I will ask one of our developers when they return to work next week. One strategy you might want to consider also is using widgets that appear first, and don't show any subcategories on the main categories. Then you can at least get them moved way down on the homepage without having to do anything to the code. For example, this is what we did in both the classified version and the video version of phpLD.
     
    dvduval, Jul 8, 2011 IP
  3. wwws

    wwws Notable Member

    Messages:
    3,385
    Likes Received:
    285
    Best Answers:
    0
    Trophy Points:
    225
    #3
    How did it go David? Got a hold of the developer?
     
    wwws, Jul 14, 2011 IP
  4. an0n

    an0n Prominent Member

    Messages:
    5,688
    Likes Received:
    915
    Best Answers:
    0
    Trophy Points:
    360
    #4
    try something like this

    Find:
    {* Categories *}
    {if !empty($categs)}

    Change:
    {* Categories *}
    {if !empty($categs) && $category.ID ne 0}
     
    an0n, Jul 14, 2011 IP
    wwws and syted like this.
  5. wwws

    wwws Notable Member

    Messages:
    3,385
    Likes Received:
    285
    Best Answers:
    0
    Trophy Points:
    225
    #5
    That did it!,Thanks Rob!
     
    wwws, Jul 15, 2011 IP
  6. syted

    syted Notable Member

    Messages:
    2,086
    Likes Received:
    319
    Best Answers:
    0
    Trophy Points:
    290
    #6
    Ha Ha nice one!
     
    syted, Jul 15, 2011 IP
  7. an0n

    an0n Prominent Member

    Messages:
    5,688
    Likes Received:
    915
    Best Answers:
    0
    Trophy Points:
    360
    #7
    No problem buddy.

    This was the funniest part of this thread:
    Trying to swindle you for $35, for what? 20 characters on ONE LINE? ROFL!

    Pathetic!

    You should all know by now he don't know how to code nor offer any assistance what-so-ever and just spams links all over the place.

    He only knows how to rip people off!
     
    an0n, Jul 15, 2011 IP