newbie LAC Posted February 18, 2016 Author Posted February 18, 2016 3 hours ago, Joey_M said: Hello, Not sure what you mean. What I'll need add? Examples please
Joey_M Posted February 19, 2016 Posted February 19, 2016 I mean separate ad units per allocated 'after x posts/topics'. Show after 1,12,19 1 - Separate ad unit 2 - Separate ad unit 3 - separate ad unit Of course some may prefer it to be a single unit as default. Yet this could allow us to sell banner spaces or use ad companies which require different units per placement.
newbie LAC Posted February 19, 2016 Author Posted February 19, 2016 Just now, Joey_M said: I mean separate ad units per allocated 'after x posts/topics'. Like this Joey_M 1
Joey_M Posted February 19, 2016 Posted February 19, 2016 6 hours ago, newbie LAC said: Like this Yes Newbie, that would be perfect.
newbie LAC Posted February 20, 2016 Author Posted February 20, 2016 13 hours ago, Joey_M said: Yes Newbie, that would be perfect. I think mission impossible. I can't use ips stack in stack
Joey_M Posted February 20, 2016 Posted February 20, 2016 Ah, it would have been useful - no other way around it?
newbie LAC Posted February 21, 2016 Author Posted February 21, 2016 4 hours ago, Joey_M said: Ah, it would have been useful - no other way around it? There are many work What the goal? Display the same information differently
Joey_M Posted February 22, 2016 Posted February 22, 2016 19 hours ago, newbie LAC said: There are many work What the goal? Display the same information differently Different information, different ad unit. We could stick google in the top one, in-house beneath and another ad company at the bottom. I know many people mix, yet I hope to go all in-house soon enough, so having the ability to show different banners would be great. MeMaBlue 1
Day_ Posted February 28, 2016 Posted February 28, 2016 @newbie LAC I've seen the thread with you talk through the code to exclude if on a certain page Is it possible to add a setting to this plugin so only ads after X posts are shown if it is in X forum? would be a nice addition to your other plugin ads after x topics. I'm using both this and your ads after x topics plugin, to keep Google happy I'm trying to remove all ads from one board so I can make it private. If I add {{if ( \IPS\Request::i()->controller == 'forums' AND isset( \IPS\Request::i()->id ) AND ! in_array( \IPS\Request::i()->id, array( 9 ) ) ) }} {{endif}} Around the custom ad key for the header ads in forumDisplay and into your nbAdsAfterXTopics template it works fine, ads show in all but this one board. But if I add it in to the topic template and nbAdsAfterXPosts it removes ads from posts within all boards.
newbie LAC Posted February 28, 2016 Author Posted February 28, 2016 Just now, daveoh said: But if I add it in to the topic template and nbAdsAfterXPosts it removes ads from posts within all boards. Hello, For topic view {{if \IPS\Request::i()->app == 'forums' and \IPS\Request::i()->module == 'forums' and \IPS\Request::i()->controller == 'topic'}} {{$forumId = 0; try { $topic = \IPS\forums\Topic::loadAndCheckPerms( \IPS\Request::i()->id ); $forumId = $topic->forum_id; } catch( \Exception $e ) {};}} {{endif}} {{if !in_array($forumId, array(9))}} code {{endif}} Just now, daveoh said: Is it possible to add a setting to this plugin so only ads after X posts are shown if it is in X forum? would be a nice addition to your other plugin ads after x topics. Yes. Day_ 1
Joey_M Posted February 28, 2016 Posted February 28, 2016 Would it be possible to have multiple installations to resolve my request @newbie LAC? If it's not possible to apply changes to the plugin itself, perhaps I could install three different version (with your permission) and then I can set it to show one per area. Would this work?
Day_ Posted February 28, 2016 Posted February 28, 2016 3 minutes ago, newbie LAC said: Hello, For topic view {{if \IPS\Request::i()->app == 'forums' and \IPS\Request::i()->module == 'forums' and \IPS\Request::i()->controller == 'topic'}} {{$forumId = 0; try { $topic = \IPS\forums\Topic::loadAndCheckPerms( \IPS\Request::i()->id ); $forumId = $topic->forum_id; } catch( \Exception $e ) {};}} {{endif}} {{if !in_array($forumId, array(9))}} code {{endif}} Yes. Wow wow wow, you're a superstar, works a treat!! Many many thanks, if this could be included in the next plugin update to save template edits that would be super awesome.
newbie LAC Posted February 28, 2016 Author Posted February 28, 2016 Just now, Joey_M said: Would it be possible to have multiple installations to resolve my request @newbie LAC? No. I really don't understand why yours is better than mine. locations -> pids vs. pids -> locations
Joey_M Posted February 28, 2016 Posted February 28, 2016 I need to show separate ad units (different one's). Myself, I will be using the 'in-house' system. I have people who have paid me money, yet I would like to display. Banner 1 Banner 2 Banner 3 Currently it would only show just one.
newbie LAC Posted February 28, 2016 Author Posted February 28, 2016 Just now, Joey_M said: Currently it would only show just one. Hmmm... I created 3 ads. Plugin settings Result
Joey_M Posted February 28, 2016 Posted February 28, 2016 5 minutes ago, newbie LAC said: Hmmm... I created 3 ads. Plugin settings Result @newbie LAC: One banner per location. After post x - Banner1 After post x5 - Banner 2 After post x10 - Banner 3 Sorry for the confusion. MeMaBlue 1
newbie LAC Posted February 28, 2016 Author Posted February 28, 2016 Just now, Joey_M said: @newbie LAC: One banner per location. After post x - Banner1 After post x5 - Banner 2 After post x10 - Banner 3 Sorry for the confusion. Joey_M 1
PCHelpforumBE Posted May 18, 2016 Posted May 18, 2016 Hello This mod is really interesting, Can you modify the location to "inside the post" ? So we can see for a example a banner inside the 1st post, inside the 3rd post etc?
newbie LAC Posted May 19, 2016 Author Posted May 19, 2016 10 hours ago, Karel Beuckelaere said: Hello This mod is really interesting, Can you modify the location to "inside the post" ? So we can see for a example a banner inside the 1st post, inside the 3rd post etc? Hello, I have separate custom plugin made by request. Ad show inside the post above the text. PCHelpforumBE 1
PCHelpforumBE Posted June 8, 2016 Posted June 8, 2016 Hi newbie LAC Works perfect! fully expirmenting with it now. Can you advise how we can center the advertisements instead of left alligned. Also its seems to allign left top, leaving space under it. (not sure how i can fix it)
newbie LAC Posted June 9, 2016 Author Posted June 9, 2016 13 hours ago, Karel Beuckelaere said: Hi newbie LAC Works perfect! fully expirmenting with it now. Can you advise how we can center the advertisements instead of left alligned. Also its seems to allign left top, leaving space under it. (not sure how i can fix it) Hello, Try to use css class ipsPos_center More info here
PCHelpforumBE Posted June 9, 2016 Posted June 9, 2016 Hello Newbie_Lac We are trying to implement advertisement after 1 and 3rd post, for normal topic this is working perfectly, however for QA forum its not working as intended. We defined - Custom Location PID 1 - each page - Custom Location PID 3 - each page As the Question is split from the replys, we see: - first page: * banner above first reply or something under the first reply * banner after second reply (?) - Second page: * only 1 banner shown after first Any advise on that? Thanks
newbie LAC Posted June 9, 2016 Author Posted June 9, 2016 2 minutes ago, Karel Beuckelaere said: Hello Newbie_Lac We are trying to implement advertisement after 1 and 3rd post, for normal topic this is working perfectly, however for QA forum its not working as intended. Hello, Not tested with QA. Give me some time.
newbie LAC Posted June 9, 2016 Author Posted June 9, 2016 (edited) 1 hour ago, Karel Beuckelaere said: * banner after second reply (?) second reply + question = 3 posts. The following question appears. Incude or exclude question (first post) in QA forums? Exclude. 1 hour ago, Karel Beuckelaere said: * only 1 banner shown after first I can't reproduce. Can you give me acp access? 1 hour ago, Karel Beuckelaere said: As the Question is split from the replys, we see: Confirmed. I excluded first post (question). Ad shows after answers. Edited June 9, 2016 by newbie LAC
pesci Posted June 12, 2016 Posted June 12, 2016 On 10/12/2015 at 1:09 AM, newbie LAC said: Support topic I purchased this plugin and it seems to work great. However, I have a very important question. I am using adsense with this plugin and the active viewable percentage is awful for the ads in the middle or towards the end of topics. Does this plugin force the ads to load for each page but only display them if X amount of posts are reached according to the plugin settings? If so, this is a big flaw and could get people in trouble with adsense for hidden ads.
Recommended Posts