Jump to content

(NB41) Enhanced Advertisements


Recommended Posts

11 minutes ago, Mike_ said:

1. Advert after 3rd post in activity feed

HTML

{{if request.app == 'core' and request.module == 'discover' and request.controller == 'streams' and !isset(request.id)}}
    Activity Stream After 3 post
{{endif}}

Selector 

.ipsStreamItem_contentBlock:eq(2)

Position 

Insert advert after the chosen element(s)

 

12 minutes ago, Mike_ said:

2. Advert after first subcategory in category? 

HTML 

{{if request.app == 'forums' and request.module == 'forums' and request.controller == 'forums' and request.id}}
    Advert after first subcategory in category
{{endif}}

Selector

.cForumList li[data-forumid]:eq(0)

Position 

Insert advert after the chosen element(s)

 

Link to comment

Hello. I added the ad code after 5,20,35 post.

Custom CSS and position:
article.Post:eq(5)
article.cPost: eq (20)
article.cPost: eq (35)

When I go to the second or the next page is an advertisement does not shine. It appears only when you refresh the page.

Thank you for your help

Link to comment
19 minutes ago, Hugo_S4 said:

Hello. I added the ad code after 5,20,35 post.

Custom CSS and position:
article.Post:eq(5)
article.cPost: eq (20)
article.cPost: eq (35)

When I go to the second or the next page is an advertisement does not shine. It appears only when you refresh the page.

Thank you for your help

Hello,

I can't reproduce.

What's the code you use? html, js?

Link to comment

Hi @newbie LAC, it appears your plugin may be what I was looking for here:

So if I download your plugin and want it to show advertisements every X topics & every X posts, what would I need to do?  Thanks in advance.

 

Nevermind, I see you already developed this!

 

 

 

Thanks!

Edited by mwcboard
Link to comment
  • 4 weeks later...

Hello,

56 minutes ago, Joey_M said:

There's no icon Newbie? (Is this supposed to happen?)

Where?

57 minutes ago, Joey_M said:

Does the click protection only work for HTML codes?

Say I wanted to show a banner instead of say Adsense, how would I call one of my banner advertisements to display when someone has clicked to many times?

Do you mean "Type of advertisement (Upload images)"?

I added data-nbenhadvid="X" attribute to this type of ads. X is advert ID

So you can add 

div[data-nbenhadvid="X"]

to CSS selectors setting

Link to comment
  • 2 weeks later...

@newbie LAC: I'm just starting out with using this.

The click protection can you confirm it only applies to HTML ads? (I'd hate any banner advertisements to lose out on impressions).

May I also purpose that the option to show an alternative advert once a HTML ad has been clicked to many times is relocated inside the ad options itself? This would allow us to define separate replacements.

Example - I will be using Amazon Affiliates, so once Adsense an IP triggers to many HTML clicks, I could then display a banner or alternative code that the click protection isn't applied too.

Link to comment

Hello,

4 hours ago, Joey_M said:

The click protection can you confirm it only applies to HTML ads?

No

4 hours ago, Joey_M said:

May I also purpose that the option to show an alternative advert once a HTML ad has been clicked to many times is relocated inside the ad options itself? This would allow us to define separate replacements.

 

What to add and where?

Link to comment
17 hours ago, newbie LAC said:

No

I have some in-house advertisers about to come on board, they will be paying for impressions and if people click this would limit that amount. Would you be able to look into making it HTML only that is protected by the click counter?

17 hours ago, newbie LAC said:

What to add and where?

Somewhere inside the Advertisement configuration page would be awesome.

advert.thumb.png.8d8f0a21f610c5bc6fb9da759827fcc6.png

Inside here would allow for greater control, allowing for more customization with the ads. I can replace ads for like for like, so a in-house banner could be shown when a HTML ad unit is under the click limit.

PS. Would it also be possible to add a setting for a mobile/responsive HTML advert?

Adsense have done a way with their responsive banner adverts, the link version is very uninspiring (almost as poorly designed as Media.net's). If I could add a smaller banner designed for mobiles, I could have a banner showing instead just links.

Link to comment

Hello,

6 hours ago, Joey_M said:

Would you be able to look into making it HTML only that is protected by the click counter?

Have you seen how the app works?

It does not depend on image or html. It check css selectors.

You can use 

<img src="ad.png" class="protect_this_image">

Or 

<div class="protect_this_div">Some text</div>

Then add css selectors .protect_this_image and .protect_this_div

6 hours ago, Joey_M said:

PS. Would it also be possible to add a setting for a mobile/responsive HTML advert?

You mean html ads?

showon.thumb.jpg.fe7168c8a89638a8695c848e7c864116.jpg

 

6 hours ago, Joey_M said:

Somewhere inside the Advertisement configuration page would be awesome.

 

What to add?

Link to comment
5 hours ago, newbie LAC said:

Have you seen how the app works?

Sorry, I'm in the process of settings things up and I find it a little confusing.

6 hours ago, newbie LAC said:

It does not depend on image or html. It check css selectors.

You can use 


<img src="ad.png" class="protect_this_image">

Or 


<div class="protect_this_div">Some text</div>

Then add css selectors .protect_this_image and .protect_this_div

Ads are not protected until code is added? Where would I add the code?

6 hours ago, newbie LAC said:

What to add?

The alternative advert code.

To my understanding currently there is only one available, I think it would be better defined by each advertisement.

Link to comment
1 minute ago, Joey_M said:

Ads are not protected until code is added? Where would I add the code?

No

ACP - Enhanced Adverts - Advertisements - Settings

2 minutes ago, Joey_M said:

To my understanding currently there is only one available, I think it would be better defined by each advertisement.

I asked on PM and you told me "one replaced advert for all adverts" :)

 

Link to comment
15 hours ago, newbie LAC said:

You mean html ads?

showon.thumb.jpg.fe7168c8a89638a8695c848e7c864116.jpg

Yes, sorry - I should make a note to check that I'm being clear enough.

'Show On' - is this what you plan to add? Would it be possible to replicate what the banner element does?advert2.thumb.png.35ff9ff1fdb43caf294077deff08962b.png

Instead of 'upload smaller versions'. Supply mobile and tablet code.

9 hours ago, newbie LAC said:

I asked on PM and you told me "one replaced advert for all adverts" :)

Lack of being clear and probably rushing on my behalf, sorry about this also Newbie. I should have said this but I honestly don't recall. :(

Link to comment
11 hours ago, Joey_M said:

'Show On' - is this what you plan to add?

Added already (version 1.0.4)

11 hours ago, Joey_M said:

Would it be possible to replicate what the banner element does?advert2.thumb.png.35ff9ff1fdb43caf294077deff08962b.png

Instead of 'upload smaller versions'. Supply mobile and tablet code.

No. I added select box not code boxes for devices.

Link to comment
2 hours ago, newbie LAC said:

Added already (version 1.0.4)

No. I added select box not code boxes for devices.

This will require people to have two ads though, perhaps even three.

I will be putting them in blocks, so I'd require two.

-Edit-

Is there a way I may be able to use 1 block but two ad units? (would placing both codes work?) I guess I can try.

Edited by Joey_M
Link to comment
5 hours ago, newbie LAC said:

You can put in the block as many ads as you want.

Yes, this works well for what I wanted to do.

I'm not sure if this is cache or something but at times the first ad inside a block shows on mobiles despite being set for desktop only.

The triggers a bit hit and miss, so it's kinda random.

20170222_153344.thumb.png.49e7ec16891da168e71fa8feb34129c8.png

This is the same block, but then this happens.

20170222_153308.thumb.png.9f2c15f871f03b96cfd18d5e384af45f.png

I've noticed when this happens, the menu tab doesn't work on the page effected. Not sure if this is helpful info? But i tought I'd just pointing this out.

Link to comment
  • 4 weeks later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...