Jump to content

(NB41) Enhanced Advertisements

Featured Replies

  • Author

Hello,

15 minutes ago, Unlucky said:

does this app provide clickbombing protection for adsense?

Not tested.

27 minutes ago, Unlucky said:

So can I add adverts anywhere?

Yes.

31 minutes ago, Unlucky said:

I tend to have a 300x250 followed by 300x600 adverts and have different sets for forum sidebar, calendar sidebar, football sidebar etc. I currently use IP custom blocks to place these so will this give me the ability to replace those?

You can add adverts based on location:

Topic #1, member #2, football league #1, activity stream etc

34 minutes ago, Unlucky said:

3 - I also name my ads for the location I place them so I know which ones are performing in adsense. Can I make sure for example, advert 1 in a forum / topic that is in position after 3rd topic / post is a specific advert, then the advert that is after position 5 in a topic post / forum is another specific advert?

Doesn't matter how you name your ads. You will work with css selectors.

  • Replies 509
  • Views 52.8k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Right...I think we all understand this. He's not been heard from since Jan 2021. Unfortunately I'm unable to wait until he's back here to update this application, as I need it updated for 4.6 and

  • newbie LAC
    newbie LAC

    Hello again You can add in your code data-excludequote Example <div style="float:right; position:relative; padding: 0 0 0 5px;" data-excludequote> Google ads code </div&gt

  • Hello, 1. https://invisionpower.com/forums/topic/429838-nb41-enhanced-advertisements/?do=findComment&comment=2638531 2. HTML  {{if (\IPS\Request::i()->app == 'forums' and \IPS\R

Posted Images

2 hours ago, newbie LAC said:

Not tested.

Does prevent multiple clicks from the same IP address?

If so then that should work ok for adsense

On 5/26/2016 at 7:03 AM, newbie LAC said:

Firebug + phpquery selectors.

I have installed firebug but can't seem to see what you posted in your example.

When you say the above, do I need to add a plugin into firebug called phpquery selectors?

Do you have screen capture software where you could do a quick example?

  • Author

Hello,

11 hours ago, Unlucky said:

When you say the above, do I need to add a plugin into firebug called phpquery selectors?

No.

11 hours ago, Unlucky said:

Do you have screen capture software where you could do a quick example?

http://www.screencast.com/t/Ce6B9UZO

4 hours ago, newbie LAC said:

Many thanks - I have managed to add one.

What exactly do I need to put in the field CSS selectors for the click counter protect for it and how can I find it?

When I look at the ad placement in firebug it just says

<div data-nbenhadv="" data-nbenhadvid="46">

  • Author
1 minute ago, Unlucky said:

What exactly do I need to put in the field CSS selectors for the click counter protect for it and how can I find it?

Try

[data-nbenhadvid="46"]

 

Hi,

Have only added that 1 advert

Just tried to do a search in a forum and the site has gone down with this error

Fatal error: Method IPS\core\Advertisement::__toString() must not throw an exception, caught Error: Cannot use object of type IPS\GeoLocation as array in /home/badhabi5/public_html/init.php(448) : eval()'d code on line 0

have disabled the ads app and the site has come back online

  • Author

Hello,

8 minutes ago, Unlucky said:

Just tried to do a search in a forum and the site has gone down with this error

Try now

ok that worked - did you apply a fix?

 

  • Author
Just now, Unlucky said:

ok that worked - did you apply a fix?

Yes.

This was fixed in 2.0.6. Not released yet.

 

Is there a way to add an advert after the 3rd topic in every forum or does that require your other plugin?

19 minutes ago, newbie LAC said:

I wrote about that in the topic :) Please search

Thanks.

so it should just be this:-  article.cPost:eq(2)

It's confusing because that code is so much shorter to the advert after every 3rd topic in every forum one which is a lot longer

[data-pageapp="forums"][data-pagemodule="forums"][data-pagecontroller="forums"] .cTopicList .ipsDataItem:eq(9)

will give it a go now

  • Author
3 minutes ago, Unlucky said:

It's confusing because that code is so much shorter to the advert after every 3rd topic in every forum one which is a lot longer

You can use 

[data-pageapp="forums"][data-pagemodule="forums"][data-pagecontroller="topic"] article.cPost:eq(2)

to be sure what it topic view location

  • Author
3 minutes ago, Unlucky said:

Can you just confirm what that should be and I think I have got it.

Do you need a selector?

[data-pageapp="cjmedia"][data-pagemodule="media"][data-pagecontroller="browse"] .cjmediaMediaCat:eq(4)

 

2 minutes ago, newbie LAC said:

Do you need a selector?

not sure? as to?

  • Author
3 minutes ago, Unlucky said:

not sure? as to?

 

13 minutes ago, Unlucky said:

If I wanted an advert after every 5 videos

I gave you css selector.

I see you added an advert

  • Author

Hello,

8 minutes ago, Unlucky said:

I thought the Custom CSS  should be .ipsBox ipsPad_half ipsSpacer_bottom

 

Classes should start with dot.

Also element has all these classes. So you should remove spaces

.ipsBox.ipsPad_half.ipsSpacer_bottom

Be careful. If these classes used somewhere else the advert will be displayed there.

[data-pageapp="calendar"][data-pagemodule="calendar"][data-pagecontroller="event"] .ipsBox.ipsPad_half.ipsSpacer_bottom

 

Edited by newbie LAC

thank you

Hi,

I added the code that was suggested in a reply to Hugo_S4 who asked Hello. Please help. How to insert an ad after the second search result

which was

#elSearch_main [data-role="resultsContents"] .ipsStreamItem:eq(1

 

It works lovely on the search results but I have just noticed it also appears incorrectly when clicking the members icon which takes you to:

https://www.walkingfootball.com/search/?type=core_members

  • Author

Hello,

14 hours ago, Unlucky said:

It works lovely on the search results but I have just noticed it also appears incorrectly when clicking the members icon which takes you to:

Add in Extra condition field 

{{if request.type != 'core_members'}}1{{endif}}

 

Recently Browsing 0

  • No registered users viewing this page.