Jump to content

Community

newbie LAC

(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)

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

I'm looking to purchase this with the next/upcoming version.

As you know Newbie, I have your x posts per topic and post plugins - this will work fine with them? Thank you for considering my suggestions.

Share this post


Link to post
Share on other sites

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

ads.png.9b1583296afaa7484d9643d77347724c.png

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?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Hello,

21 minutes ago, EricT said:

No icon app for me too : 

Here?

ai.jpg.1d8f93d222f38fa5f846d145afbf5a8f.jpg

Its not important and I didn't add an icon.

25 minutes ago, EricT said:

How can I create an advert ? I can't see a New button or Add button on ACP

As usual. ACP - System - Site Promotion - Advertisements

Share this post


Link to post
Share on other sites

@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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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" :)

 

Share this post


Link to post
Share on other sites
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. :(

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

Maybe I'll add code boxes in the next release.

15 minutes ago, Joey_M said:

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.

What's the block? Pages app?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...