Adding Google AdSense after first post

Discussion forum for MOD Writers regarding MOD Development.
bna
Registered User
Posts: 15
Joined: Thu Apr 30, 2009 3:07 pm

Re: Adding Google AdSense after first post

Post by bna »

Two years later, but thanks motzned. This has worked well for me on 3.0.9
It is a more attractive and less disruptive solution for adding text based ads.

I made slight alteration as I wanted the ads only shown to people not registered, ie. visitors

instead of this in your first line of new code:
if($i == 1)

I used:
if($i == 1 && $user->data['user_id'] == ANONYMOUS)


--

Next task, after reviewing performance, is to add another ad block, eg, after 10 posts and I hope to use the existing function to also place this. Any ideas how to modify?
User avatar
mrgtb
Registered User
Posts: 603
Joined: Wed Oct 03, 2007 10:51 am

Re: Adding Google AdSense after first post

Post by mrgtb »

Is there no way to add a user called "Advertising", then have an avatar and such displayed in right column.
User avatar
katecoors
Registered User
Posts: 2
Joined: Sun Dec 16, 2012 9:32 pm
Location: Colorado, USA
Name: Kate Coors
Contact:

Re: Adding Google AdSense after first post

Post by katecoors »

Is there any update on this? I would really like to display Google ads as user so I can display them with an avatar, and only when users are not logged in as too much ads get annoying. I would like ads in the header, after the first post, and in the footer. This is what my ads look like now: http://novawarp.com/viewtopic.php?f=5&t=59
User avatar
Hennie vd Walt
Registered User
Posts: 22
Joined: Wed Jul 23, 2014 9:17 am
Location: Cape Town South Africa
Contact:

Re: Adding Google AdSense after first post

Post by Hennie vd Walt »

any more about this i see it can also be done in viewforum just don't know how?
User avatar
5hocK
Registered User
Posts: 3011
Joined: Wed Nov 23, 2011 7:00 pm
Location: England

Re: Adding Google AdSense after first post

Post by 5hocK »

Anything of use here? Advertisements in phpBB3
A thread is pretty much a topic. Stop with the pedantics will ya.
User avatar
Hennie vd Walt
Registered User
Posts: 22
Joined: Wed Jul 23, 2014 9:17 am
Location: Cape Town South Africa
Contact:

Re: Adding Google AdSense after first post

Post by Hennie vd Walt »

what i want is similar to this
Image
Locked

Return to “[3.0.x] MOD Writers Discussion”