Jump to content

(NB40) Ads After X Posts

Featured Replies

  • Author
3 hours ago, Joey_M said:

 

Hello,

Not sure what you mean.

What I'll need add? Examples please :)

 

  • Replies 198
  • Views 18.4k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

Posted Images

I mean separate ad units per allocated 'after x posts/topics'.

Show after 1,12,19

1 - Separate ad unit
2 - Separate ad unit
3 - separate ad unit

Of course some may prefer it to be a single unit as default.

Yet this could allow us to sell banner spaces or use ad companies which require different units per placement.

  • Author
Just now, Joey_M said:

I mean separate ad units per allocated 'after x posts/topics'.

Like this

adpp.thumb.jpg.4994e17965936ff3423e1fcfa

6 hours ago, newbie LAC said:

Like this

adpp.thumb.jpg.4994e17965936ff3423e1fcfa

Yes Newbie, that would be perfect.

  • Author
13 hours ago, Joey_M said:

Yes Newbie, that would be perfect.

I think mission impossible. I can't use ips stack in stack

Ah, it would have been useful - no other way around it?

  • Author
4 hours ago, Joey_M said:

Ah, it would have been useful - no other way around it?

There are many work What the goal? Display the same information differently

19 hours ago, newbie LAC said:

There are many work What the goal? Display the same information differently

Different information, different ad unit.

We could stick google in the top one, in-house beneath and another ad company at the bottom. I know many people mix, yet I hope to go all in-house soon enough, so having the ability to show different banners would be great.

@newbie LAC I've seen the thread with you talk through the code to exclude if on a certain page

Is it possible to add a setting to this plugin so only ads after X posts are shown if it is in X forum? would be a nice addition to your other plugin ads after x topics.

I'm using both this and your ads after x topics plugin, to keep Google happy I'm trying to remove all ads from one board so I can make it private.

If I add 

{{if ( \IPS\Request::i()->controller == 'forums' AND isset( \IPS\Request::i()->id ) AND ! in_array( \IPS\Request::i()->id, array( 9 ) ) ) }}

{{endif}}

 

Around the custom ad key for the header ads in forumDisplay and into your nbAdsAfterXTopics template it works fine, ads show in all but this one board. But if I add it in to the topic template and nbAdsAfterXPosts it removes ads from posts within all boards.

 

 

  • Author
Just now, daveoh said:

But if I add it in to the topic template and nbAdsAfterXPosts it removes ads from posts within all boards.

Hello,

For topic view 

{{if \IPS\Request::i()->app == 'forums' and \IPS\Request::i()->module == 'forums' and \IPS\Request::i()->controller == 'topic'}}
	{{$forumId = 0; try { $topic = \IPS\forums\Topic::loadAndCheckPerms( \IPS\Request::i()->id ); $forumId = $topic->forum_id; } catch( \Exception $e ) {};}}
{{endif}}

{{if !in_array($forumId, array(9))}}
    code
{{endif}}

 

Just now, daveoh said:

Is it possible to add a setting to this plugin so only ads after X posts are shown if it is in X forum? would be a nice addition to your other plugin ads after x topics.

Yes.

Would it be possible to have multiple installations to resolve my request @newbie LAC?

If it's not possible to apply changes to the plugin itself, perhaps I could install three different version (with your permission) and then I can set it to show one per area. Would this work?

3 minutes ago, newbie LAC said:

Hello,

For topic view 


{{if \IPS\Request::i()->app == 'forums' and \IPS\Request::i()->module == 'forums' and \IPS\Request::i()->controller == 'topic'}}
	{{$forumId = 0; try { $topic = \IPS\forums\Topic::loadAndCheckPerms( \IPS\Request::i()->id ); $forumId = $topic->forum_id; } catch( \Exception $e ) {};}}
{{endif}}

{{if !in_array($forumId, array(9))}}
    code
{{endif}}

 

Yes.

Wow wow wow, you're a superstar, works a treat!! Many many thanks, if this could be included in the next plugin update to save template edits that would be super awesome.

  • Author
Just now, Joey_M said:

Would it be possible to have multiple installations to resolve my request @newbie LAC?

No.

I really don't understand why yours is better than mine. locations -> pids vs. pids -> locations

I need to show separate ad units (different one's).

Myself, I will be using the 'in-house' system. I have people who have paid me money, yet I would like to display.

Banner 1
Banner 2
Banner 3

Currently it would only show just one.

  • Author
Just now, Joey_M said:

Currently it would only show just one.

Hmmm...

I created 3 ads.

3ads.thumb.jpg.f8ec9152a484f1239cb6f3c32

Plugin settings

adsettings.thumb.jpg.ae5311329c7cc513ada

Result

adresult.thumb.jpg.0ef5405d2fe0f0927698d

5 minutes ago, newbie LAC said:

Hmmm...

I created 3 ads.

3ads.thumb.jpg.f8ec9152a484f1239cb6f3c32

Plugin settings

adsettings.thumb.jpg.ae5311329c7cc513ada

Result

adresult.thumb.jpg.0ef5405d2fe0f0927698d

@newbie LAC: One banner per location.

After post x - Banner1
After post x5 - Banner 2
After post x10 - Banner 3

Sorry for the confusion.

  • Author
Just now, Joey_M said:

@newbie LAC: One banner per location.

After post x - Banner1
After post x5 - Banner 2
After post x10 - Banner 3

Sorry for the confusion.

hello.thumb.jpg.108eddfe48489f9247493405

3adsr.thumb.jpg.505831f9f844f1f08fc44bac

  • 2 months later...

Hello

This mod is really interesting,

Can you modify the location to "inside the post" ? So we can see for a example a banner inside the 1st post, inside the 3rd post etc?

  • Author
10 hours ago, Karel Beuckelaere said:

Hello

This mod is really interesting,

Can you modify the location to "inside the post" ? So we can see for a example a banner inside the 1st post, inside the 3rd post etc?

Hello,

I have separate custom plugin made by request.

Ad show inside the post above the text.

  • 3 weeks later...

Hi newbie LAC

Works perfect! fully expirmenting with it now.

Can you advise how we can center the advertisements instead of left alligned.
Also its seems to allign left top, leaving space under it. (not sure how i can fix it)

  • Author
13 hours ago, Karel Beuckelaere said:

Hi newbie LAC

Works perfect! fully expirmenting with it now.

Can you advise how we can center the advertisements instead of left alligned.
Also its seems to allign left top, leaving space under it. (not sure how i can fix it)

Hello,

Try to use css class ipsPos_center

More info here 

 

Hello Newbie_Lac

We are trying to implement advertisement after 1 and 3rd post, for normal topic this is working perfectly, however for QA forum its not working as intended.
We defined
- Custom Location PID 1 - each page
- Custom Location PID 3 - each page

As the Question is split from the replys, we see:
- first page:
 * banner above first reply or something under the first reply
 * banner after second reply (?)
- Second page:

 * only 1 banner shown after first

Any advise on that?

Thanks

  • Author
2 minutes ago, Karel Beuckelaere said:

Hello Newbie_Lac

We are trying to implement advertisement after 1 and 3rd post, for normal topic this is working perfectly, however for QA forum its not working as intended.

Hello,

Not tested with QA. Give me some time.

  • Author
1 hour ago, Karel Beuckelaere said:

 * banner after second reply (?)

second reply + question = 3 posts. The following question appears. Incude or exclude question (first post) in QA forums? Exclude.

1 hour ago, Karel Beuckelaere said:

 * only 1 banner shown after first

I can't reproduce. Can you give me acp access?

1 hour ago, Karel Beuckelaere said:

As the Question is split from the replys, we see:

Confirmed. I excluded first post (question). Ad shows after answers.

Edited by newbie LAC

On 10/12/2015 at 1:09 AM, newbie LAC said:

Support topic

 

 

 

I purchased this plugin and it seems to work great. However, I have a very important question. 

 

I am using adsense with this plugin and the active viewable percentage is awful for the ads in the middle or towards the end of topics. 

 

Does this plugin force the ads to load for each page but only display them if X amount of posts are reached according to the plugin settings? If so, this is a big flaw and could get people in trouble with adsense for hidden ads. 

Recently Browsing 0

  • No registered users viewing this page.