x10 Hosting Ad code + Adsense too

Status
Not open for further replies.
Messages
740
Reaction score
1
Points
18
Hey all,

On my website Phoenix Supras I tried adding the x10 hosting ad code.....

Code:
<script type="text/javascript" src="http://x10hosting.com/adserve.js?martin16"></script>

But it wouldn't show up. What's the matter with it?

I tried this on a .php and .html - neither made it show up.

Also trying to ad a google adsense code but for me that won't show up either.

Code:
<script type="text/javascript"><!--
google_ad_client = "pub-5948534846093437";
/* 234x60, created 18/07/08 */
google_ad_slot = "0042624834";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="[URL]http://pagead2.googlesyndication.com/pagead/show_ads.js[/URL]">
</script>

Would it be because they have included, after the first '<' an exclamation mark... '!--', I've even tried removing that but it's not worked. and the '//-->' after google_ad_height = 60;.

What's up and why won't either of these codes work?

Thanks
 
Last edited by a moderator:

tnl2k7

Banned
Messages
3,131
Reaction score
0
Points
0
For some reason the forums BB code got all mucked up on your post, I've fixed that. I'm not sure why your ads won't display right though; have you definitely put the code somewhere in the <body> of your <html>? If yes, do you have JavaScript enabled in your browser? If yes, then I don't know.

-Luke.
 
Messages
740
Reaction score
1
Points
18
Ahh, that may be the problem - javascript being enabled.

I'll have to check it later.

Thanks

Hopefully that's all the problem is.
 

DeadBattery

Community Support Team
Community Support
Messages
4,018
Reaction score
120
Points
0
If that doesn't work, the format should look like this:

:)
 

tnl2k7

Banned
Messages
3,131
Reaction score
0
Points
0
One more potential problem is any ad blocking software you might be using. I know K9 Web Protection is capable of blocking ads, as is AdBlock Plus. Some Symantec firewalls are known to do this too. Disable any firewalls you have and try again, it might help.

-Luke.
 
Messages
740
Reaction score
1
Points
18
The thing is I can see google and other network ads on other websites but I can't get it displaying on mine. I have no blockers. My firewall doesn't/isn't blocking it and, to my knowledge, javascript is indeed enabled on my browser.
 

TechAsh

Retired
Messages
5,853
Reaction score
7
Points
38
Looking in your site's source code I see this:
Code:
<!-- Text container -->
<div class="content1-container-1col">
<div class="content-txtbox-noshade">
<google_ad_client = "pub-5948534846093437";
google_ad_slot = "0042624834";
google_ad_width = 234;
google_ad_height = 60;>
</script>

<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</div>

This is messed up. It should be:
Code:
<!-- Text container -->
<div class="content1-container-1col">
<div class="content-txtbox-noshade">
<script type="text/javascript"><!--
google_ad_client = "pub-5948534846093437";
/* 234x60, created 18/07/08 */
google_ad_slot = "0042624834";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</div>

Try changing that and see what happens.
I couldn't see the x10 ad code in your source.
 
Messages
740
Reaction score
1
Points
18
I removed the x10 code (don't worry - I'm on the ad-free plan but I just wanted to give off a link anyway).

And now the bloody Google Ad does work.

THANK YOU :D :D



{BRB - just going to try the x10 ad code}

EDIT***: x10 ad code now put in there twice. Once before "MultiFlex-2 is an improvement of MultiFlex-1" and then after the Google Ad.
Is it showing for you, it's not showing for me and I've copied and pasted the code from the textfield on x10.
 
Last edited:

TechAsh

Retired
Messages
5,853
Reaction score
7
Points
38
I think I know the reason why you x10 Ad code doesn't work ... you've used the one that shows the correct ads for the plan you're on (the one with your username in), but you are on the Ad-free plan so it doesn't show any ads. Try using one of the other ad codes, for example the one for the Corporate plan.
 

Anna

I am just me
Staff member
Messages
11,752
Reaction score
582
Points
113
Your site looks very disturbed in layout for me using firefox :( nothing seem to be aligned with the other elements really, kind of looks as the css is failing, see attached image
 

Attachments

  • screen.jpg
    screen.jpg
    38.7 KB · Views: 40
Messages
740
Reaction score
1
Points
18
Thanks

That seems to have cleared it up.


Edit:
Your site looks very disturbed in layout for me using firefox :( nothing seem to be aligned with the other elements really, kind of looks as the css is failing, see attached image


I do need to sort some of the CSS out on my version. Can you see if the problem still happens when you visit here.
 
Last edited:

TechAsh

Retired
Messages
5,853
Reaction score
7
Points
38
Must be a DNS issue or something, because I defiantly can't see that website.
 
Messages
740
Reaction score
1
Points
18
It's not mine. That's just how they've got it set up. The reason I ask is that is the original to what I have but I've editted the CSS a little and taken bits out. I just wanted to know whether the layout broke up on if the person viewed that site because on MY site they said it's broken in FF.
 
Messages
740
Reaction score
1
Points
18
Thank you.
I'll have to go through my CSS (which I need to anyway) and sort it out.

Are you sure it wasn't just a 'one-off' where the style sheet didn't load properly?
 

Anna

I am just me
Staff member
Messages
11,752
Reaction score
582
Points
113
it did the same in opera browser... and I did check more then once
 
Status
Not open for further replies.
Top