How to insert the code text-link-ads to phpld?

Discussion in 'Directories' started by h4nh4n, Oct 27, 2006.

  1. #1
    The title says it all... Anyone knows how to do it?


    Thank you...
     
    h4nh4n, Oct 27, 2006 IP
  2. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #2
    Edit the template files..(such as header.tpl , footer.tpl,ect.)
     
    Richie_Ni, Oct 27, 2006 IP
    h4nh4n likes this.
  3. h4nh4n

    h4nh4n Peon

    Messages:
    931
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for your reply,

    But when I install ad code, there are 2 option which is "Please use the automated ad generator below or click here for a custom solution for you to code "by hand"."

    Which one should I use? I use option 1 (generate code php) and insert the php code into header tpl, it showed an error message.


    Thanks...
     
    h4nh4n, Oct 27, 2006 IP
  4. SiteExpress

    SiteExpress Well-Known Member

    Messages:
    1,355
    Likes Received:
    153
    Best Answers:
    0
    Trophy Points:
    155
    #4
    Generate php code is what you should use.

    if you have problems, send me a pm and I can help.
     
    SiteExpress, Oct 28, 2006 IP
    h4nh4n likes this.
  5. h4nh4n

    h4nh4n Peon

    Messages:
    931
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hi SiteExpress thanks for your cares :),

    The problem just because tpl files can't read php codes. But I have made some tricks and it works well :)
     
    h4nh4n, Oct 28, 2006 IP
  6. an0n

    an0n Prominent Member

    Messages:
    5,688
    Likes Received:
    915
    Best Answers:
    0
    Trophy Points:
    360
    #6
    When in .tpl files, and you want to script some PHP, use:

    {php}

    your
    php code
    all in here

    {/php}
     
    an0n, Oct 28, 2006 IP
    h4nh4n likes this.
  7. h4nh4n

    h4nh4n Peon

    Messages:
    931
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Exactly what I did :D:D:D
     
    h4nh4n, Oct 28, 2006 IP
  8. arena

    arena Banned

    Messages:
    1,033
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #8
    arena, Oct 28, 2006 IP
  9. arena

    arena Banned

    Messages:
    1,033
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #9
    arena, Oct 28, 2006 IP
  10. h4nh4n

    h4nh4n Peon

    Messages:
    931
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #10
    it's not about adsense....

    thanks anyway :)
     
    h4nh4n, Oct 28, 2006 IP
  11. an0n

    an0n Prominent Member

    Messages:
    5,688
    Likes Received:
    915
    Best Answers:
    0
    Trophy Points:
    360
    #11
    awesome!!! :)

    remember, you can always check the phpld forums for info on stuff like this too

    Rob
     
    an0n, Oct 28, 2006 IP
  12. h4nh4n

    h4nh4n Peon

    Messages:
    931
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #12
    i've been to phpld forums and did some researched but no luck.... :p

    h4nh4n
     
    h4nh4n, Oct 28, 2006 IP
  13. an0n

    an0n Prominent Member

    Messages:
    5,688
    Likes Received:
    915
    Best Answers:
    0
    Trophy Points:
    360
    #13
    You know, I am always inbetween phpld forums and dp forums. my name is 'anon' over on the phpld forums, and if you ever neep help, let me know.

    best of luck with your directory!

    Rob
     
    an0n, Oct 28, 2006 IP
  14. h4nh4n

    h4nh4n Peon

    Messages:
    931
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Thanks I really apreciate it, I'll come to you when I get some problem :)


    h4nh4n
     
    h4nh4n, Oct 28, 2006 IP
  15. praveen

    praveen Notable Member

    Messages:
    1,249
    Likes Received:
    122
    Best Answers:
    0
    Trophy Points:
    205
    #15
    another way is to add the code to a new php file and put that in the root.

    then include the php file in the template(s)

    by this way, u dont ave to edit the tpl's all the time u want to change the code or add something else ;)
     
    praveen, Oct 29, 2006 IP
  16. irka

    irka Well-Known Member

    Messages:
    1,875
    Likes Received:
    183
    Best Answers:
    0
    Trophy Points:
    185
    #16
    Same stuff with what you told me with the Google ads :) till i figure out i just had to add {literal}{/literal} to make them work without all those stuffs,

    Depends on the users point of view anyway :)

    {php}{/php} for all php code
    {literal}{/literal} for all adsense ads
     
    irka, Oct 29, 2006 IP