Ad Code Problems

Status
Not open for further replies.

DryIce

New Member
Messages
24
Reaction score
0
Points
0
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?
 

Goten X

New Member
Messages
336
Reaction score
0
Points
0
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
 

DryIce

New Member
Messages
24
Reaction score
0
Points
0
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:
[B]Warning[/B]: main(): php_network_getaddresses: getaddrinfo failed: Name or service not known in [B]/backup/home/dryice/public_html/index.php[/B] on line [B]101[/B]
 
[B]Warning[/B]: main(http://staff.x10hosting.com/adCode.php?ad=corporate): failed to open stream: Success in [B]/backup/home/dryice/public_html/index.php[/B] on line [B]101[/B]

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
 

Goten X

New Member
Messages
336
Reaction score
0
Points
0
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:
Status
Not open for further replies.
Top