Jump to content

(NB41) Enhanced Advertisements


Recommended Posts

Yep rookie error by me that I realised after posting.

So in theory, the defualt positions can't be used for clicks protection and only those in CSS locations?

So would it be possible to activate click protection for the advert currently in the built-in header location?

Edited by LemonGrenade
Link to comment
12 hours ago, LemonGrenade said:

So in theory, the defualt positions can't be used for clicks protection and only those in CSS locations?

 

12 hours ago, LemonGrenade said:

So would it be possible to activate click protection for the advert currently in the built-in header location?

You can.

The application add extra attributes to advert code.

position.jpg.f8ccc8a6bf33bca0e23abb315add53f4.jpg

html.jpg.64326a8433b894fd017ed425e0c58a57.jpg

If you check the source code you will see 

<div class="ipsMessage ipsMessage_info" data-nbEnhAdv="" data-nbEnhAdvId="152">Just below the page header</div>

So you can use the data-nbEnhAdv attribute to protect ads

css.jpg.b189becf6d281db4a703792e4f8c1277.jpg

Edited by newbie LAC
Link to comment

Thanks, I'm slowly understanding it a bit more.

I've noticed that the attribute is the same even on the ads using your other addon 'ads after x posts'. Would I need to add the ID too.

Here is what I have within the default header ad and the settings in the addon. I'm trying to see whats wrong.

 

click1.png

click2.png

Link to comment

HI,
I'm thinking of buying this plug in but am a total novice when it comes to programming/coding.

Here is what I need to achieve - is this possible with this plug in?

1 - To have adverts after/in the 8th post in a topic

2 - Adding an adhesion unit to both mobile and desktop

3 - Moving the standard Invisionboard bottom advert up to appear between the last post on a page and the navigation

 

Link to comment

Hello,

3 minutes ago, Sheffielder said:

1 - To have adverts after/in the 8th post in a topic

Yes.

9 minutes ago, Sheffielder said:

2 - Adding an adhesion unit to both mobile and desktop

18 minutes ago, Sheffielder said:

3 - Moving the standard Invisionboard bottom advert up to appear between the last post on a page and the navigation

 

You can use css selector to add your advert where you want

code.jpg

Link to comment
2 minutes ago, Sheffielder said:

after the 8th post in a topic?

 

2 minutes ago, Sheffielder said:

in the 8th post in a topic?

Just change the index in css selector to

:eq(7)

After 8th post

article.cPost:eq(7)

Inside 8th post

div[data-role="commentContent"]:eq(7)

 

Link to comment
4 minutes ago, Sheffielder said:

Do you know how I can create an adhesion unit to show on both mobile and desktop?

I think you should read the docs of advert system which you will use.

I did not work with adhesion.

I can help with application if you have any issues

Link to comment
  • Recently Browsing   0 members

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