Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
May 17, 20195 yr Author Hello, Node? Yes. {{$show = true;}} {{if $item = \IPS\Output::i()->hiddenElements['nbenhadverts_item_item'] and ($item->mapped('pinned') or $item->mapped('featured'))}} {{$show = false;}} {{elseif $club = \IPS\Output::i()->hiddenElements['nbenhadverts_club'] and $club->featured}} {{$show = false;}} {{endif}} {{if $show}} Show advert everywhere except of pinned and featured items {{endif}}
May 17, 20195 yr Perfect! It is even valid for the featured club features, not only for the club's homepage.
June 3, 20195 yr Hi @newbie LAC I'm expirimenting with Google Automatic advertisement placing. For this i just would need 1 location inside the <head>tag I prefer not to edit my Theme directly. Can i create it with a custom location set by your mod?
June 4, 20195 yr Author Hello, Can i create it with a custom location set by your mod? The post above is correct
July 9, 20195 yr Type of advertisement: Supply HTML Code Show the advertisement: Just below the page header HTML code: <script type="text/javascript"> if(window.innerWidth > 1019) { var forums = ["83", "84", "85", "86"]; var forum_id = request.id; if (forums.includes(forum_id) { // Desktop tag/code 1 } else { // Desktop tag/code 2 } } else { var forums = ["83", "84", "85", "86"]; var forum_id = request.id; if (forums.includes(forum_id)) { // Mobile tag/code 1 } else { // Mobile tag/code 2 } } </script> There is JavaScript in the field of HTML code.. not even know if it's working but it's the best I can make. 1. The first "if" = Desktop or mobile. 2. The second "if" = Two tags available and the forum id defines which one is in use. Now I don't know how to get "request.id" so do you have an idea how to solve this? Maybe Extra Condition field would work better? @newbie LAC Fixed version: <script type="text/javascript"> if(window.innerWidth > 1019) { var forums = [83, 84, 85, 86]; var forum_id = {expression="(request.app == 'forums' and request.module == 'forums'and request.controller == 'forums' and isset(request.id)) ? request.id : 0"}; if (forums.includes(forum_id)) { // Desktop tag/code 1 } else { // Desktop tag/code 2 } } else { var forums = [83, 84, 85, 86]; var forum_id = {expression="(request.app == 'forums' and request.module == 'forums'and request.controller == 'forums' and isset(request.id)) ? request.id : 0"}; if (forums.includes(forum_id)) { // Mobile tag/code 1 } else { // Mobile tag/code 2 } } </script> Edited July 16, 20195 yr by sulervo
July 10, 20195 yr Author Hello, Now I don't know how to get "request.id" so do you have an idea how to solve this? Maybe Extra Condition field would work better? var forum_id = {expression="(request.app == 'forums' and request.module == 'forums'and request.controller == 'forums' and isset(request.id)) ? request.id : 0"};
July 16, 20195 yr Do you know is it possible to get forum ID in topic view? @newbie LAC Edited July 16, 20195 yr by sulervo
July 16, 20195 yr Author Hello, Do you know is it possible to get forum ID in topic view? @newbie LAC
July 17, 20195 yr Author Hello, How about JavaScript solution? Sorry I forgot told it. Thank you. // Topic view var forum_id = {expression="(request.app == 'forums' and request.module == 'forums'and request.controller == 'topic') ? \IPS\Output::i()->hiddenElements['nbenhadverts_node_id'] : 0"}; Edited July 17, 20195 yr by newbie LAC
September 1, 20195 yr Just so you know, i have 2 ads in the sidebar with your app, and for some reason i wasn't able to edit or move any block in the sidebar, any move just would not be saved. I was able to do it disabling your app and re-enabling it once mu changes were made.
September 2, 20195 yr Author Hello, Just so you know, i have 2 ads in the sidebar with your app, and for some reason i wasn't able to edit or move any block in the sidebar, any move just would not be saved. I was able to do it disabling your app and re-enabling it once mu changes were made. I need more information to reproduce - Adverts settings - Widgets locations
September 2, 20195 yr Here is a screenshot, if i try to move (or remove) any widget in the sidebar, the move just isn't saved. I have 2 ads block (basic div) in the sidebar, both are configured like this :
September 2, 20195 yr Author Here is a screenshot, if i try to move (or remove) any widget in the sidebar, the move just isn't saved. Thanks. I'll look into that Upd. Fixed for next release. Edited September 2, 20195 yr by newbie LAC
September 11, 20195 yr This looks really nice, but there is one thing stopping me from moving from Google Ad Manager. I need the ability to automatically generate click and impression reports and have them sent to different emails addresses. Question: Is this possible with enhanced advertisements?
September 20, 20195 yr Does anyone know if I can use this plugin to put an add on a specific thread and only there?
September 20, 20195 yr Author Hello, Does anyone know if I can use this plugin to put an add on a specific thread and only there? Yes using condition or css selector Edited September 20, 20195 yr by newbie LAC
October 1, 20195 yr Hi @newbie LAC Just to make sure I understand correctly 🙂 I want on my Forum to add space for Google Adsense between posts in topic view. Every Topic, every page. For example, after every 7th and 15th post (I have 20 post per page in topic view). This application of yours can enable this?
October 2, 20195 yr Author Hello, I want on my Forum to add space for Google Adsense between posts in topic view. Every Topic, every page. For example, after every 7th and 15th post (I have 20 post per page in topic view). This application of yours can enable this? Yes I want on my Forum to add space for Google Adsense between posts in topic view. Every Topic, every page. For example, after every 7th and 15th post (I have 20 post per page in topic view). You can also use
October 2, 20195 yr @newbie LAC Thanks a lot for advice. 👍I bought (NB40) Ads After X Posts, easily installed, set it up and everything works fine. 🙂
October 13, 20195 yr @newbie LAC With the plugin I can display a banner in a particular forum? If so, could you give an example of how to do this? Thanks!