TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 629
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 467
  • Total: 467

Adsense...

Started by voyager, July 06, 2009, 03:25:11 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ZarPrime

Zetan is correct.  If you turn the editor off for articles, it turns it off for blocks as well.

If you want to turn it off, you do it here ...
Admin --> TinyPortal --> Articles and Categories --> Settings --> Use the WYSIWYG editor?

ZarPrime

voyager

Nope, you can't turn it off.

I'll try the default theme.

voyager

The HTML works on the default theme, but still no adsense. I'm starting to think the block isn't ready because it still shows the code for it.

Freddy

#33
There's another option.

You could create an HTML article and just make it so it doesn't show all the usual information - I mean so it's just plain - then put your adsense code into that.

Then use a block and from the drop-down set to show a single article - meaning the one with the adsense code in it.

I find the editor to be a bit buggy (so which ones are not!?).  Like when I save sometimes it duplicates the code, so in this case I had two adsense slots showing, meaning I had to go back and re-enter just the one block of code.

Zetan

The other way I thought of as I walked out the door earlier would be to simply use a PHP Block, for now, and just echo the code.. If it works.

Code (PHP block) Select


echo '

<google code here>

';


voyager

#35
So nothing I've tried here works, and I'm still having the same problem. When you go to the forum, only this code shows up:

<script type="text/javascript"><!--
google_ad_client = "pub-1226564767153163";
/* 728x90, Erstellt 05.07.09 */
google_ad_slot = "8101615957";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

Update: I tried it on another one of my SMF forums, both are using 1.1.4 and the other forum didn't show anything at all when I put the code in.

Zetan

Well, we're all out of ideas then, because most people seem to be able to get Google Adsense to work, among other ads, Amazon for example forks fine on my site and happily sits next to Adsense in a rotating banner.

Have you tried a simple html page, just to test the code?

voyager

Yep, it works perfectly in a tester. I wonder if it's because the width of the ad is too large for the width of the theme? I would think that the code would still show up though.

Zetan

I have no idea what the problem might be.

Freddy

#39
Quote from: voyager on July 23, 2009, 09:38:43 AM
I wonder if it's because the width of the ad is too large for the width of the theme? I would think that the code would still show up though.

If the ad is too large, it normally just get's cut off and you only see part of it - I don't think that is causing your problem.

Did you try the plain HTML page idea and echoing too then ?

How about if you look at the source of the page the advert is on ?  Does it look the same as the code you pasted in the script block or wherever ?

This website is proudly hosted on Crocweb Cloud Website Hosting.