Results 1 to 3 of 3

Thread: Adding Linxad php code to phpLD directory

  1. #1

    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
    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
    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, 06: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, 01: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
  •