Results 1 to 3 of 3

Thread: Adding Linxad php code to phpLD directory

  1. #1
    elishevadpw's Avatar
    elishevadpw is offline Net Builder
    Join Date
    Dec 2008
    Location
    under the equator
    Posts
    120
    Thanks
    40
    Thanked 45 Times in 17 Posts

    Adding Linxad php code to phpLD directory

    I am trying to add linxad php code to the sidebar of my phpLD directory here
    Mortgage Corner | World Wide Mortgage Directory

    The code looks like this

    PHP Code:
    <?php
    print @file_get_contents('http://api.linxad.com/links.php?website_key=TKKgPdUAecJTWbCy&request_uri='.$_SERVER['REQUEST_URI'].'&referer='.$_SERVER['HTTP_REFERER'].'&user_agent='.$_SERVER['HTTP_USER_AGENT']);
    ?>
    I put the code on the right sidebar of my directory above (under "Partner Sites") but the code checker of my linxad account couldn't detect it.

    I looked for similar problems in the forum and found this thread
    Adding txtlinkads php code to index page only ? - PHP Link Directory Forum

    I followed the instructions there and what I did was trying to put the tags {php} and {/php} around the code but it still didn't work.

    Also I put the {literal}{/literal} tags around it (because I am using a smarty template as it is with the problem in the thread above) so it looks like this:

    PHP Code:
    {literal}
    {php}
    <?php
    print @file_get_contents('http://api.linxad.com/links.php?website_key=TKKgPdUAecJTWbCy&request_uri='.$_SERVER['REQUEST_URI'].'&referer='.$_SERVER['HTTP_REFERER'].'&user_agent='.$_SERVER['HTTP_USER_AGENT']);
    ?>
    {/php}
    {/literal}
    ...and still didn't work.

    What am I doing wrong?

  2. #2
    dtkguy's Avatar
    dtkguy is offline Still Learnin'
    Join Date
    Dec 2008
    Posts
    391
    Thanks
    7
    Thanked 164 Times in 108 Posts
    Hey try this, for a smarty template you don't need the standard php open and closing tags :
    PHP Code:
    {php}
    print @
    file_get_contents('http://api.linxad.com/links.php?website_key=TKKgPdUAecJTWbCy&request_uri='.$_SERVER['REQUEST_URI'].'&referer='.$_SERVER['HTTP_REFERER'].'&user_agent='.$_SERVER['HTTP_USER_AGENT']);
    {/
    php

  3. #3
    elishevadpw's Avatar
    elishevadpw is offline Net Builder
    Join Date
    Dec 2008
    Location
    under the equator
    Posts
    120
    Thanks
    40
    Thanked 45 Times in 17 Posts
    Thanks for the reply.

    I just tried it but the code checker still can't detect it....

Similar Threads

  1. Admin side of phpld directory is blank page
    By iowadawg in forum Directories
    Replies: 4
    Last Post: 31 December, 2010, 05:49 AM
  2. [WTS] phpLD 4.1 Released
    By dvduval in forum Scripts
    Replies: 0
    Last Post: 4 September, 2010, 03:10 AM
  3. [Free] 3 PHPLD Themes
    By sdscripts in forum Themes
    Replies: 1
    Last Post: 25 June, 2010, 17:25 PM
  4. Replies: 4
    Last Post: 18 February, 2010, 00:03 AM
  5. phpLD 3.4 Released
    By Will.Spencer in forum Directories
    Replies: 4
    Last Post: 21 March, 2009, 20:25 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •