phpLD 2.1 Coding help required

Discussion in 'Directories' started by jhnrang, Sep 11, 2008.

  1. #1
    As old timers know - I am a complete noob to coding.:(

    I have a directory using phpLD2.1 Free version.

    I want to put some text on header.tpl - that will only show on home-page and not on any other single page of the directory.

    I'll be glad - if someone can give me the code and help me.

    Regards.:)
     
    jhnrang, Sep 11, 2008 IP
  2. jwp

    jwp Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    look at the phpld forum they can help
     
    jwp, Sep 11, 2008 IP
  3. dog222

    dog222 Active Member

    Messages:
    446
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    70
    #3
    I'm not familiar with phpld but if they use Smarty you could try:
    {if $category.id == 0}
    This link and text will only show on your main page.
    {/if}
    Code (markup):
     
    dog222, Sep 11, 2008 IP
  4. deluxdon

    deluxdon Catch Me If You Can...!!!™ Staff

    Messages:
    25,481
    Likes Received:
    1,943
    Best Answers:
    32
    Trophy Points:
    480
    #4
    Use below given if you want to show text only on homepage not on any other single page of directory.

    {if $category.ID eq 0 and not $qu}
    Your text
    {/if}
    Code (markup):
    DON.
     
    deluxdon, Sep 11, 2008 IP
  5. amenda

    amenda Banned

    Messages:
    778
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Open header.tpl with dreamweaver or frontpage, and then edit it.
     
    amenda, Sep 11, 2008 IP
  6. mikey1090

    mikey1090 Moderator Staff

    Messages:
    15,869
    Likes Received:
    1,055
    Best Answers:
    0
    Trophy Points:
    445
    Digital Goods:
    2
    #6
    DON got it spot on :) Let me know if you need the code for 3.3, it's slightly different.
     
    mikey1090, Sep 12, 2008 IP