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?
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?
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
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:
Ad in the /bbs/includes/page_tail.php file (Designed to parse to a Smarty template, not sure if this code is right)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
Simply returning a boolean result of 1Code:$template->assign_vars(array( 'X10_ADVERTISMENT' => include('http://staff.x10hosting.com/adCode.php?ad=corporate')) );
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.