newbie LAC Posted May 17, 2018 Author Posted May 17, 2018 Hello, 20 minutes ago, Sergey_SV said: I set up advertisement, and they dispayed ok in all locations, but then after 1-2 days they stop showing, and only resume is I clear the cache via ACP. Then they again resume for 1-2 days. on 4.1.19 everything worked fine. Do you have idea why this could happend? Do you have same problem with non-app adverts? What caching method do you use?
Sergey_SV Posted May 17, 2018 Posted May 17, 2018 26 minutes ago, newbie LAC said: Hello, Do you have same problem with non-app adverts? What caching method do you use? I am using Memcached I am only distributing the adds only via the app. I also noticed that first the adds placed in sidebar by CSS dissapears. whether the add lpaced above and footer and below the header stays
newbie LAC Posted May 17, 2018 Author Posted May 17, 2018 12 minutes ago, Sergey_SV said: I also noticed that first the adds placed in sidebar by CSS dissapears. whether the add lpaced above and footer and below the header stays So the problem only with sidebar adverts? Show me advert settings (you can only include app fields)
Sergey_SV Posted May 17, 2018 Posted May 17, 2018 (edited) Code is Adsence is this enough? Edited May 17, 2018 by Sergey_SV
newbie LAC Posted May 17, 2018 Author Posted May 17, 2018 5 minutes ago, Sergey_SV said: is this enough? I don't see selectors Please copy them
Sergey_SV Posted May 17, 2018 Posted May 17, 2018 li[data-blockid="plugin_19_nbRecentTopicsPosts_k2ioexj31"] li[data-blockid="plugin_19_nbRecentTopicsPosts_t2i007ymn"] li[data-blockid="app_gallery_galleryStats_xa614lnxo"] div[id="elDownloadsCategoriesBlock"]
newbie LAC Posted May 17, 2018 Author Posted May 17, 2018 Try li[data-blockid^="plugin_19_nbRecentTopicsPosts_"] li[data-blockid^="app_gallery_galleryStats_"]
Sergey_SV Posted May 17, 2018 Posted May 17, 2018 16 minutes ago, newbie LAC said: Try li[data-blockid^="plugin_19_nbRecentTopicsPosts_"] li[data-blockid^="app_gallery_galleryStats_"] works. I will watch and report in couple of days. thanks for support!
Sergey_SV Posted May 18, 2018 Posted May 18, 2018 17 hours ago, newbie LAC said: Try li[data-blockid^="plugin_19_nbRecentTopicsPosts_"] li[data-blockid^="app_gallery_galleryStats_"] nope. this morning all ads dissapear again.
newbie LAC Posted May 18, 2018 Author Posted May 18, 2018 3 minutes ago, Sergey_SV said: nope. this morning all ads dissapear again. There was no need to update the cache. This would allow me to investigate the problem (if you give me credentials).
Federico Ribeiro Posted May 28, 2018 Posted May 28, 2018 Hello, I need to show a grid of X * Y ads at the header, using small images. how would I implement that? Thanks! Federico.
newbie LAC Posted May 28, 2018 Author Posted May 28, 2018 Hello, 20 minutes ago, Federico Ribeiro said: I need to show a grid of X * Y ads at the header, using small images. how would I implement that? You can use next guide Federico Ribeiro 1
Federico Ribeiro Posted May 28, 2018 Posted May 28, 2018 Hello, Thank you very much!! And this I should write in the HTML boxes, right? Thanks again! Federico.
newbie LAC Posted May 29, 2018 Author Posted May 29, 2018 Hello, 14 hours ago, Federico Ribeiro said: And this I should write in the HTML boxes, right? Yes
Optic14 Posted June 4, 2018 Posted June 4, 2018 Hi @newbie LAC, presales question (and I suppose it comes down to whether this is possible in IPS template syntax) Is it possible to wrap a conditional to prevent an advertisement from appearing if page is: A Club Club Type: Private
newbie LAC Posted June 4, 2018 Author Posted June 4, 2018 Just now, Optic14 said: Hi @newbie LAC, presales question (and I suppose it comes down to whether this is possible in IPS template syntax) Is it possible to wrap a conditional to prevent an advertisement from appearing if page is: A Club Club Type: Private Hello, For club pages it will be easy. For club features (topics, files, etc) you should check them separately.
Optic14 Posted June 5, 2018 Posted June 5, 2018 Thanks for your reply. 23 hours ago, newbie LAC said: For club features (topics, files, etc) you should check them separately. I checked Club template, this is the variable and example logic check I want to target: {{if $club->type !== \IPS\Member\Club::TYPE_CLOSED || $club->canRead()}} With your add-on, can I wrap something like this in native IPS advertisement? The logic is, I want to show advertisement to all Club types EXCEPT "Closed" if $club->type !== \IPS\Member\Club::TYPE_CLOSED If so I'll happily purchase. ?
newbie LAC Posted June 5, 2018 Author Posted June 5, 2018 1 minute ago, Optic14 said: The logic is, I want to show advertisement to all Club types EXCEPT "Closed" The club has pages: - Home - Members - Nodes (like forums, castegories etc) - Items (like topics, files etc) Where do you want disable adverts?
Optic14 Posted June 5, 2018 Posted June 5, 2018 (edited) 6 minutes ago, newbie LAC said: Where do you want disable adverts? I need to disable ads for ALL the club pages/features, but only for club type "Closed" / "Private" Edited June 5, 2018 by Optic14
newbie LAC Posted June 5, 2018 Author Posted June 5, 2018 15 minutes ago, Optic14 said: I need to disable ads for ALL the club pages/features, but only for club type "Closed" / "Private" You can do it. But currently it will be very long chain of conditions. Some time ago I added 1 thing to easily determine club and use it the conditions. But I didn't release that version yet. Anyway you should wrap all club adverts.
Federico Ribeiro Posted June 8, 2018 Posted June 8, 2018 Is it possible to configure to show the add depending on the theme? This would be nice in order to use one design or another from Adsense, depending on the theme selected by the user. Thanks!
newbie LAC Posted June 9, 2018 Author Posted June 9, 2018 Hello, 11 hours ago, Federico Ribeiro said: Is it possible to configure to show the add depending on the theme? This would be nice in order to use one design or another from Adsense, depending on the theme selected by the user. You have 2 ways 1. Use in the conditions \IPS\Member::loggedIn()->skin 2. Add unique css selector to each theme. Then use it like .cSkin1 #ipsLayout_mainArea .cSkin2 #ipsLayout_mainArea
Sergey_SV Posted July 19, 2018 Posted July 19, 2018 On 1/5/2017 at 1:32 PM, newbie LAC said: On 1/5/2017 at 1:15 PM, 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) Question: I have the ad after the 5th element in activity stream. It works ok. if the user clicks "load more activity" appears new 25 elements. Is there a way to put the ad after the every 5th element in new batch of activity loaded (30th,60th and etc..)?
newbie LAC Posted July 20, 2018 Author Posted July 20, 2018 Hello, 15 hours ago, Sergey_SV said: Is there a way to put the ad after the every 5th element in new batch of activity loaded (30th,60th and etc..)? No easy way
Silnei L Andrade Posted August 12, 2018 Posted August 12, 2018 Hi @newbie LAC, with this plugin i can remove ADS of certain forums?
Recommended Posts