newbie LAC Posted November 7, 2017 Author Share Posted November 7, 2017 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. Link to comment
Unlucky Posted November 7, 2017 Share Posted November 7, 2017 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 Link to comment
Unlucky Posted November 7, 2017 Share Posted November 7, 2017 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? Link to comment
newbie LAC Posted November 8, 2017 Author Share Posted November 8, 2017 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 Link to comment
Unlucky Posted November 8, 2017 Share Posted November 8, 2017 4 hours ago, newbie LAC said: http://www.screencast.com/t/Ce6B9UZO 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"> Link to comment
newbie LAC Posted November 8, 2017 Author Share Posted November 8, 2017 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"] Link to comment
Unlucky Posted November 8, 2017 Share Posted November 8, 2017 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 Link to comment
newbie LAC Posted November 8, 2017 Author Share Posted November 8, 2017 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 Link to comment
Unlucky Posted November 8, 2017 Share Posted November 8, 2017 ok that worked - did you apply a fix? Link to comment
newbie LAC Posted November 8, 2017 Author Share Posted November 8, 2017 Just now, Unlucky said: ok that worked - did you apply a fix? Yes. This was fixed in 2.0.6. Not released yet. Link to comment
Unlucky Posted November 8, 2017 Share Posted November 8, 2017 Is there a way to add an advert after the 3rd topic in every forum or does that require your other plugin? Link to comment
newbie LAC Posted November 8, 2017 Author Share Posted November 8, 2017 4 minutes ago, Unlucky said: or does that require your other plugin? No. 4 minutes ago, Unlucky said: Is there a way to add an advert after the 3rd topic in every forum https://invisioncommunity.com/forums/topic/429838-nb41-enhanced-advertisements/?do=findComment&comment=2701329 Change 9 to 2 Link to comment
Unlucky Posted November 8, 2017 Share Posted November 8, 2017 Bri 12 minutes ago, newbie LAC said: https://invisioncommunity.com/forums/topic/429838-nb41-enhanced-advertisements/?do=findComment&comment=2701329 Change 9 to 2 Brilliant thanks. What do I need to change to do the same for every 3rd post? I guess I need to change this .cTopicList to the post equiv? Link to comment
newbie LAC Posted November 8, 2017 Author Share Posted November 8, 2017 (edited) 6 minutes ago, Unlucky said: What do I need to change to do the same for every 3rd post? I wrote about that in the topic Please search https://invisioncommunity.com/forums/topic/429838-nb41-enhanced-advertisements/?do=findComment&comment=2637329 Edited November 8, 2017 by newbie LAC Link to comment
Unlucky Posted November 8, 2017 Share Posted November 8, 2017 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 Link to comment
newbie LAC Posted November 8, 2017 Author Share Posted November 8, 2017 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 Link to comment
Unlucky Posted November 8, 2017 Share Posted November 8, 2017 OK thanks. Just to confirm I have my head round this for other sections, If I wanted an advert after every 5 videos on https://www.walkingfootball.com/media/category/walking-football-videos-1/ Can you just confirm what that should be and I think I have got it. Link to comment
newbie LAC Posted November 8, 2017 Author Share Posted November 8, 2017 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) Link to comment
Unlucky Posted November 8, 2017 Share Posted November 8, 2017 2 minutes ago, newbie LAC said: Do you need a selector? not sure? as to? Link to comment
newbie LAC Posted November 8, 2017 Author Share Posted November 8, 2017 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 Unlucky 1 Link to comment
Unlucky Posted November 10, 2017 Share Posted November 10, 2017 Hi, I am trying to add an advert under the map on the left hand column on all my event pages such as: https://www.walkingfootball.com/calendar/event/174-sharley-park-leisure-centre-derbyshire/ I thought the Custom CSS should be .ipsBox ipsPad_half ipsSpacer_bottom but nothing is appearing - can you tell me what I have done wrong? Thanks Link to comment
newbie LAC Posted November 10, 2017 Author Share Posted November 10, 2017 (edited) 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 November 10, 2017 by newbie LAC Link to comment
Unlucky Posted November 13, 2017 Share Posted November 13, 2017 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 Link to comment
newbie LAC Posted November 14, 2017 Author Share Posted November 14, 2017 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}} Link to comment
Recommended Posts