Google AdSense for content pages

Permalink 2 users found helpful
Hi there

I wrote a simple block to add Google AdSense to your content. If you have trouble with this block, please let me know. I will try to fix them.

You can see a sample onhttp://shv09.ts-management.ch

Tested with c5 5.2.1

Kind regards,
Stefan

1 Attachment

Steff
 
frz replied on at Permalink Reply
frz
http://www.concrete5.org/community/marketplace/addons/banner_ad
Steff replied on at Permalink Reply
Steff
With my block you just can add Google AdSenses. No JavaScript and no HTML code. You just have to fill the Publisher ID and the AdSense ID and you have to select the format.

With Andrews block you can add any JavaScript and HTML code.

That's de difference

Kind regards,
Steff
frz replied on at Permalink Reply
frz
we'll give it a gander for the marketplace then.. thx!
Steff replied on at Permalink Reply 1 Attachment
Steff
I've attached a printscreen from the edit window...

Would be greate if you add this Block to the Marketplace
mickie replied on at Permalink Reply
mickie
Hello,
Your block looks very cool.
I downloaded it, but there are no install instructions included.

How do I go about setting this up?
I have the most current version of C5.
Thank You for Your time
Steff replied on at Permalink Reply 1 Attachment
Steff
Hello mickie

It's very simple. I've added a new zip-archive. Just unpack this archive in to the blocks folder of your C5 installation. Afther that, you should find the Block in the dashboard in the "Add Functionalities" section.

If you have any problems with it, just let me know. I didn't test the Block with the latest C5 version. If it doesn't work. Let me know and give me a couple of days to fix it.

Kind regards,
Steff
chawki replied on at Permalink Reply
chawki
Hey Steff.

Thanks so much for the AdSense block. It'll be nice to have this in the Marketplace. I'll give it a try now.

Cheers,
CJ
Steff replied on at Permalink Reply
Steff
Hello chawki

Yes it would be nice to have this block in the market place.

As I said my last post, if you have any problem with this block, just let me know.

Kind regards, and have a nice weekend...

Steff
mickie replied on at Permalink Reply
mickie
Everything went great
Thank You so much for the block and the help in getting it set up!
LukeH replied on at Permalink Reply
Hi, I can't see this Adsense block in the Marketplace. Can anyone provide me with a link or the code?

Many thanks
Tony replied on at Permalink Reply
Tony
just use the HTML block (comes with the core), and paste you code snippet from google in there.
LukeH replied on at Permalink Reply
Wow - that was fast! many thanks indeed
LYTI replied on at Permalink Reply
Thanks this is great
primewaydesign replied on at Permalink Reply
primewaydesign
I am getting Fatal error.

Fatal error: View::render(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "GoogleAdSenseBlockController" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /customers/oafreelancer.com/oafreelancer.com/httpd.www/concrete/libraries/view.php on line 734

what can i do?
Steff replied on at Permalink Reply
Steff
Hi oafreelancer

Thank you for your replay. I originally wrote this block for C5 5.2.1.

Unfortunately i'm out of time at the moment. As soon as I have more time, I will have a look at the block. Eventually I will rewrite it for the current C5 version.

Kind regards,
steff
jb1 replied on at Permalink Reply
jb1
Sorry for hijacking an old thread, but in case anyone else will find this useful, a new AdSense block is now available on the C5 marketplace. It's super easy to use.

It will be available for download at:
http://www.concrete5.org/marketplace/addons/google-adsense/...

You can also see it in action at:
http://c5extras.com/add-ons/google-adsense/...