Closed Thread
Results 1 to 4 of 4

Thread: Ad Code Problems

  1. #1
    DryIce is offline x10Hosting Member DryIce is an unknown quantity at this point
    Join Date
    Apr 2006
    Posts
    12

    Ad Code Problems

    I updated all of my site's pages with the required PHP Ad code, but the ads are not showing up. Is this a problem I should be worried about, or is it already being taken care of?

  2. #2
    Goten X's Avatar
    Goten X is offline x10 Sophmore Goten X is an unknown quantity at this point
    Join Date
    Apr 2005
    Location
    Buffalo, NY
    Posts
    168

    Re: Ad Code Problems

    It could be possible that you have some kind of software that blocks ads. Or that you have the ad in a place that won't allow it to show on the screen. Could you post your source code? If so, maybe I can help.

    |Gx


  3. #3
    DryIce is offline x10Hosting Member DryIce is an unknown quantity at this point
    Join Date
    Apr 2006
    Posts
    12

    Re: Ad Code Problems

    Right, heres snippets of the source code in use:

    Ad in the /index.php file
    Code:
    <td class="row2"><? include('http://staff.x10hosting.com/adCode.php?ad=corporate'); ?></td>


    It's returning some PHP debugging messages:
    Code:
    Warning: main(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /backup/home/dryice/public_html/index.php on line 101
     
    Warning: main(http://staff.x10hosting.com/adCode.php?ad=corporate): failed to open stream: Success in /backup/home/dryice/public_html/index.php on line 101
    Ad in the /bbs/includes/page_tail.php file (Designed to parse to a Smarty template, not sure if this code is right)
    Code:
    $template->assign_vars(array(
    'X10_ADVERTISMENT' => include('http://staff.x10hosting.com/adCode.php?ad=corporate'))
    );
    Simply returning a boolean result of 1

  4. #4
    Goten X's Avatar
    Goten X is offline x10 Sophmore Goten X is an unknown quantity at this point
    Join Date
    Apr 2005
    Location
    Buffalo, NY
    Posts
    168

    Re: Ad Code Problems

    I think you should save the ad code in a file (call it something lie ad.php) then upload it. Then use the link to the ad.php instead of trying to call the ad from the X10 sever. Try that. If I've said something that is hard to understand, let me know, I could have mistyped something.

    I know I would get that error when I typed the wrong url for the ad code.

    |GX
    Last edited by Goten X; 04-15-2006 at 03:04 PM.


Closed Thread

Similar Threads

  1. Hybrid's HTML Lessons
    By Hybrid in forum Tutorials
    Replies: 18
    Last Post: 11-28-2009, 02:12 PM
  2. Ad Code and Updates
    By Bryon in forum News and Announcements
    Replies: 1
    Last Post: 07-08-2007, 04:14 PM
  3. Ad Code Question
    By reiterb in forum Free Hosting
    Replies: 1
    Last Post: 08-18-2005, 09:29 AM
  4. Ad Code Problems Solution
    By Jim in forum Free Hosting
    Replies: 48
    Last Post: 05-14-2005, 12:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers