Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
November 7, 20177 yr Author Hello, does this app provide clickbombing protection for adsense? Not tested. So can I add adverts anywhere? Yes. 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 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.
November 7, 20177 yr Not tested. Does prevent multiple clicks from the same IP address? If so then that should work ok for adsense
November 7, 20177 yr 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?
November 8, 20177 yr Author Hello, When you say the above, do I need to add a plugin into firebug called phpquery selectors? No. Do you have screen capture software where you could do a quick example? http://www.screencast.com/t/Ce6B9UZO
November 8, 20177 yr 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">
November 8, 20177 yr Author 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"]
November 8, 20177 yr 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
November 8, 20177 yr Author Hello, Just tried to do a search in a forum and the site has gone down with this error Try now
November 8, 20177 yr Author ok that worked - did you apply a fix? Yes. This was fixed in 2.0.6. Not released yet.
November 8, 20177 yr Is there a way to add an advert after the 3rd topic in every forum or does that require your other plugin?
November 8, 20177 yr Author or does that require your other plugin? No. 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
November 8, 20177 yr Bri 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?
November 8, 20177 yr Author 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, 20177 yr by newbie LAC
November 8, 20177 yr 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
November 8, 20177 yr Author 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
November 8, 20177 yr 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.
November 8, 20177 yr Author 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)
November 8, 20177 yr Author not sure? as to? If I wanted an advert after every 5 videos I gave you css selector. I see you added an advert
November 10, 20177 yr 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
November 10, 20177 yr Author Hello, 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, 20177 yr by newbie LAC
November 13, 20177 yr 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
November 14, 20177 yr Author Hello, 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}}