It is currently 24 Feb 2018, 04:17

Anything Goesphpbb How I added many placeholders for Ezoic ads. (Showcase | Slideshow)

Anything, almost anything at all
(even advertisement if it's decent, spammers will be banned)
Post Reply
User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 1/1
Posts: 2191
Joined: 26 Sep 2016, 00:16
Cash on hand: 8,236.90 GLP
Bank: 53,924.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1218
x 264
Contact:
Canada

phpbb How I added many placeholders for Ezoic ads.

Post#1 by tim » 12 Nov 2016, 19:41


If you own a website and plan to run ads, you should really sign up to ezoic.com.

If you've signed up for Ezoic.
It is suggested that you ad as many placeholders as you can for ads.
Ezoic will test and use AI (Artificial Intelligence) to find optimal placement/sizes and/or many other factors.
For phpBB.
I already had an ad after first post extension.
But I wanted to have placeholders after each post as well for Ezoic to test.
So this is what i did to have many placeholders.
In viewtopic_body.html file,
before this code.

Code: Select all

<!-- END postrow -->
I added this line, because i only wanted to show ads for Non-members.

Code: Select all

<!-- IF not S_USER_LOGGED_IN--><!-- INCLUDE multiple_ads.html --><!-- ENDIF -->
Then i created a file called multiple_ads.html
and it in I have this code.

Code: Select all

<!-- IF postrow.S_ROW_COUNT == 1 --><div class="post bg2 adsense"><div class="content" align="center"><!-- Ezoic - After 2nd post - mid_content --><div id="ezoic-pub-ad-placeholder-105"></div><!-- End Ezoic - After 2nd post - mid_content --></div></div><!-- ENDIF -->
<!-- IF postrow.S_ROW_COUNT == 2 --><div class="post bg2 adsense"><div class="content" align="center"><!-- Ezoic - after 3rd post - mid_content --><div id="ezoic-pub-ad-placeholder-106"></div><!-- End Ezoic - after 3rd post - mid_content --></div></div><!-- ENDIF -->
<!-- IF postrow.S_ROW_COUNT == 3 --><div class="post bg2 adsense"><div class="content" align="center"><!-- Ezoic - after 4th post - mid_content --><div id="ezoic-pub-ad-placeholder-107"></div><!-- End Ezoic - after 4th post - mid_content --></div></div><!-- ENDIF -->
<!-- IF postrow.S_ROW_COUNT == 4 --><div class="post bg2 adsense"><div class="content" align="center"><!-- Ezoic - after 5th post - mid_content --><div id="ezoic-pub-ad-placeholder-108"></div><!-- End Ezoic - after 5th post - mid_content --></div></div><!-- ENDIF -->
<!-- IF postrow.S_ROW_COUNT == 5 --><div class="post bg2 adsense"><div class="content" align="center"><!-- Ezoic - after 6th post - mid_content --><div id="ezoic-pub-ad-placeholder-109"></div><!-- End Ezoic - after 6th post - mid_content --></div></div><!-- ENDIF -->
<!-- IF postrow.S_ROW_COUNT == 6 --><div class="post bg2 adsense"><div class="content" align="center"><!-- Ezoic - after 7th post - mid_content --><div id="ezoic-pub-ad-placeholder-110"></div><!-- End Ezoic - after 7th post - mid_content --></div></div><!-- ENDIF -->
<!-- IF postrow.S_ROW_COUNT == 7 --><div class="post bg2 adsense"><div class="content" align="center"><!-- Ezoic - after 8th post - mid_content --><div id="ezoic-pub-ad-placeholder-111"></div><!-- End Ezoic - after 8th post - mid_content --></div></div><!-- ENDIF -->
<!-- IF postrow.S_ROW_COUNT == 8 --><div class="post bg2 adsense"><div class="content" align="center"><!-- Ezoic - after 9th post - mid_content --><div id="ezoic-pub-ad-placeholder-112"></div><!-- End Ezoic - after 9th post - mid_content --></div></div><!-- ENDIF -->
<!-- IF postrow.S_ROW_COUNT == 9 --><div class="post bg2 adsense"><div class="content" align="center"><!-- Ezoic - after 10th post - mid_content --><div id="ezoic-pub-ad-placeholder-113"></div><!-- End Ezoic - after 10th post - mid_content --></div></div><!-- ENDIF -->
So if you want to do something similar you can do it like i did.
Of course you'll have to change your Ezoic divs to reflect your own placeholders' code. But I posted it as example so you could see how you can add placeholders into after every post.

Code: Select all

IF postrow.S_ROW_COUNT == 1
is for after 2nd post because it starts counting at zero (0). But because i already have the ad after first post extension working i didn't do it for where S_ROW_COUNT == 0 but you can add that if you like.
0 x



aka Tin
Image gimplearn.net                                              

Registered members enjoy ads-free content
Post Reply

Last 20 Members Who Visited This Topic

  • Similar Topics
    Replies
    Views
    Last post
• Featuring Members' Works (Image Attachments Only) •
1: gnerd
2: Issabella
3: Pat625
4: tim
5: Pat625
6: Issabella
7: Issabella

Who is online

Users browsing this forum: No registered users and 7 guests