Fierce God Posted July 4, 2017 Share Posted July 4, 2017 2 minutes ago, TheJackal84 said: Links above but needs approval ok cool!! Link to comment Share on other sites More sharing options...
TheJackal84 Posted July 4, 2017 Share Posted July 4, 2017 11 minutes ago, FGN said: ok cool!! I just noticed the other plugin at the top of this topic, but looking at the screenshot of the settings it's done differently then mine, so hopefully it will be OK Link to comment Share on other sites More sharing options...
Fierce God Posted July 4, 2017 Share Posted July 4, 2017 4 minutes ago, TheJackal84 said: I just noticed the other plugin at the top of this topic, but looking at the screenshot of the settings it's done differently then mine, so hopefully it will be OK Yea, but hopefully they will realize that yours is compatible with 4.2 And the one above doesn't have any type of user warning of what its comp. with Link to comment Share on other sites More sharing options...
TheJackal84 Posted July 4, 2017 Share Posted July 4, 2017 Just now, FGN said: And the one above doesn't have any type of user warning of what its comp. with Nor does mine lol, But its only css and a span class so will work in both, It's all about if Adsense won't give a warning, What will take testing by downloaders Link to comment Share on other sites More sharing options...
Fierce God Posted July 4, 2017 Share Posted July 4, 2017 Ok..will still be on the look out, thanks for still trying to help Link to comment Share on other sites More sharing options...
TheJackal84 Posted July 4, 2017 Share Posted July 4, 2017 I have actually asked a moderator to remove the file as I think its out of order on the other persons work, If I had seen it I wouldn't of uploaded it to the marketplace Hide Adverts On Login & Reg Page.xml try that anyone who wants to, that will hide the adverts on the login and reg page you need to add a span class to your advert example below <span class="HideAd"> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- Homepage Leaderboard --> <ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-1234567890123456" data-ad-slot="1234567890"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </span> Another example <span class="HideAd"> <!-- YOUR CODE HERE --> </span> Link to comment Share on other sites More sharing options...
Mack_au Posted July 6, 2017 Share Posted July 6, 2017 On 22/06/2017 at 2:18 AM, Mack_au said: I just got hit with a violation because of this. This needs to be hard coded into the forum immediately, it should be a major priority to fix. Thankfully that plugin above looks to have fixed the issue (and since that's the case it shouldn't be hard for Invision themselves to fix it for good) for now. Can confirm, the policy violation has now gone away. Should be a simple fix for Invision to add into the next version. Link to comment Share on other sites More sharing options...
David.. Posted July 7, 2017 Share Posted July 7, 2017 18 hours ago, Mack_au said: Can confirm, the policy violation has now gone away. Should be a simple fix for Invision to add into the next version. How do you know when it goes away? Link to comment Share on other sites More sharing options...
Mack_au Posted July 7, 2017 Share Posted July 7, 2017 The policy centre only shows active issues and tells you there's nothing wrong if you don't have any. I even checked the email I got which links you to the policy area, where the warning was before, and now it's blank. Link to comment Share on other sites More sharing options...
TheJackal84 Posted July 7, 2017 Share Posted July 7, 2017 6 hours ago, Mack_au said: The policy centre only shows active issues and tells you there's nothing wrong if you don't have any. I even checked the email I got which links you to the policy area, where the warning was before, and now it's blank. Did you download the plugin in the attachment I uploaded or the one in the marketplace? It's only so I can tell what step to take next with the plugin, If its the attachment one I will message the author of the marketplace one and tell him to replace the code with my one, If you used his one and it's gone then I will leave it be Link to comment Share on other sites More sharing options...
Mack_au Posted July 7, 2017 Share Posted July 7, 2017 It was this marketplace plugin. Link to comment Share on other sites More sharing options...
TheJackal84 Posted July 7, 2017 Share Posted July 7, 2017 8 hours ago, Mack_au said: It was this marketplace plugin. Most will prob just hide the divisions anyway so if google bot is crawling your site, they more than likely will see their script in the html but it's hidden, (Same as if you inspect element the script is there just not in use) I don't use Adsense or any other adverts but I am sure if you do receive this warning, Then tell them to visit said links and see there is no adverts and explain that you are hiding the divisions of it using CSS etc, I am sure they will accept the answer as valid and OK Link to comment Share on other sites More sharing options...
marklcfc Posted August 30, 2017 Share Posted August 30, 2017 How do I hide adverts from the login page? Link to comment Share on other sites More sharing options...
trananhls Posted September 28, 2017 Share Posted September 28, 2017 On 7/5/2017 at 1:02 AM, TheJackal84 said: I have actually asked a moderator to remove the file as I think its out of order on the other persons work, If I had seen it I wouldn't of uploaded it to the marketplace Hide Adverts On Login & Reg Page.xml try that anyone who wants to, that will hide the adverts on the login and reg page you need to add a span class to your advert example below <span class="HideAd"> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- Homepage Leaderboard --> <ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-1234567890123456" data-ad-slot="1234567890"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </span> Another example <span class="HideAd"> <!-- YOUR CODE HERE --> </span> Thanks so much. It works Link to comment Share on other sites More sharing options...
thompsone Posted September 28, 2017 Share Posted September 28, 2017 Google AdSense complains about any page they can't crawl with AdSense Code on it (private forums or places guests can't go) or about AdSense Code being on any pages where personal information, usernames, passwords, credit cards, etc. are exchanged. (membership login) I will share my way of removing ads from forums, site areas, and applications that Google will issue a policy violation for even if they haven't already. I can't offer personal help or support on this fix, use at your comfort level only, improper implementation can cause page load problems and you'll have to revert the template, test check and test after implementation. This fix allows you to wrap the ad location once and be done and requires fewer template changes. This edit allows for removing ads from locked or staff forums (non visible to guests), removing ads from IPS sections (like login and register), and removing ads from applications (non-visible to guests) and is fully configurable. This edit wraps each ad at the template level so if you're not comfortable editing your templates then this fix isn't for you. It is fully configurable to your IPS install and must be configured to your install to work. Replace: forum_id1 with your private forum_id number(s) you want to remove ads from. Example: 3, 27, 43, 51, 52, 53 ... and so on or less. (these are your actual private forum IDs) Replace: app_1 with your app_name you want to remove ads from. Example: nexus, membermap ... and so on or less. (example: membermap) WORKS ON IPS 4.2.3 - Not Supported by IPS or Me - Use at your own risk and experience level with IPS Products. WRAPPING AN {advertisement="KEY"} EXAMPLE --------------------------------- {{$forumId = 0;}} {{if \IPS\Request::i()->app == 'forums' and \IPS\Request::i()->module == 'forums' and \IPS\Request::i()->controller == 'forums'}} {{$forumId = \IPS\Request::i()->id;}} {{endif}} {{if \IPS\Request::i()->app == 'forums' and \IPS\Request::i()->module == 'forums' and \IPS\Request::i()->controller == 'topic'}} {{try { $topic = \IPS\forums\Topic::loadAndCheckPerms( \IPS\Request::i()->id ); $forumId = $topic->forum_id; } catch( \Exception $e ) {};}} {{endif}} {{if ( \IPS\Request::i()->module == 'forums' AND ! in_array( $forumId, array( forum_id1, forum_id2, forum_id3, forum_id4, forum_id5, forum_id6, forum_id7, forum_id8, forum_id9, forum_id10 ) ) ) OR !( in_array( \IPS\Request::i()->controller, array( 'login', 'register', 'lostpass', 'store', 'modcp', 'settings', 'ignore', 'notifications', 'profile', 'messenger', 'forums', 'topic' ) ) OR in_array( \IPS\Request::i()->app, array( 'app_1', 'app_2') ) )}} {advertisement="ad_global_header"} {{endif}} ---------------------------------- WRAPPING AN ADSENSE AD EXAMPLE --------------------------------- {{$forumId = 0;}} {{if \IPS\Request::i()->app == 'forums' and \IPS\Request::i()->module == 'forums' and \IPS\Request::i()->controller == 'forums'}} {{$forumId = \IPS\Request::i()->id;}} {{endif}} {{if \IPS\Request::i()->app == 'forums' and \IPS\Request::i()->module == 'forums' and \IPS\Request::i()->controller == 'topic'}} {{try { $topic = \IPS\forums\Topic::loadAndCheckPerms( \IPS\Request::i()->id ); $forumId = $topic->forum_id; } catch( \Exception $e ) {};}} {{endif}} {{if ( \IPS\Request::i()->module == 'forums' AND ! in_array( $forumId, array( forum_id1, forum_id2, forum_id3, forum_id4, forum_id5, forum_id6, forum_id7, forum_id8, forum_id9, forum_id10 ) ) ) OR !( in_array( \IPS\Request::i()->controller, array( 'login', 'register', 'lostpass', 'store', 'modcp', 'settings', 'ignore', 'notifications', 'profile', 'messenger', 'forums', 'topic' ) ) OR in_array( \IPS\Request::i()->app, array( 'app_1', 'app_2') ) )}} <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- AdSense Ad Title --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-xxxxxxxxxxxxxxxx" data-ad-slot="xxxxxxxxxx" data-ad-format="auto"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> {{endif}} ---------------------------------- Just sharing my way maybe which may not be the best way for you. Link to comment Share on other sites More sharing options...
Sheffielder Posted October 3, 2017 Share Posted October 3, 2017 I've not received a violation warning yet from Adsense but agree with everyone else that it's a pretty major situation if your forums are monetised through Google Link to comment Share on other sites More sharing options...
13. Posted October 15, 2017 Share Posted October 15, 2017 Exceptions for non-content pages should be available in IPS by default. Please support this suggestion: Link to comment Share on other sites More sharing options...
thompsone Posted October 15, 2017 Share Posted October 15, 2017 I believe it is Invision's Policy that they don't want to be involved with your income in any way (read: responsible). They leave it up to publishers to implement the changes necessary to make their product compatible with Google AdSense. I've been a publisher since late 2003 and it's really not that difficult to implement an AdSense compliant IPB Site. Link to comment Share on other sites More sharing options...
Square Wheels Posted October 15, 2017 Share Posted October 15, 2017 2 hours ago, thompsone said: I've been a publisher since late 2003 and it's really not that difficult to implement an AdSense compliant IPB Site. Could you help and provide instructions for how to do that easily? I really wish IPB would help, they created a way to add advertising, but then don't give us a way to block it from prohibited pages. @Charles Link to comment Share on other sites More sharing options...
thompsone Posted October 15, 2017 Share Posted October 15, 2017 If you have a look at my post above it will provide you everything you need. Link to comment Share on other sites More sharing options...
optrexnz Posted October 16, 2017 Share Posted October 16, 2017 I had this too, glad its being looked at. Link to comment Share on other sites More sharing options...
marklcfc Posted October 20, 2017 Share Posted October 20, 2017 On 30/08/2017 at 5:24 PM, marklcfc said: How do I hide adverts from the login page? Still waiting, how do I hide adverts from the login/register page? The @Edward Shephard hook caused a problem, for some reason it made duplicated adverts on normal pages so instead of one advert in the header, two appeared Link to comment Share on other sites More sharing options...
thompsone Posted October 20, 2017 Share Posted October 20, 2017 There are a few examples above and I provided one I use. There's been a lot of activity in this thread so what exactly are you waiting on? Link to comment Share on other sites More sharing options...
marklcfc Posted October 20, 2017 Share Posted October 20, 2017 26 minutes ago, thompsone said: There are a few examples above and I provided one I use. There's been a lot of activity in this thread so what exactly are you waiting on? Something simple that works, no end of code in the above examples. Is there anything just to exclude the login/register pages? Link to comment Share on other sites More sharing options...
Square Wheels Posted October 20, 2017 Share Posted October 20, 2017 38 minutes ago, thompsone said: There are a few examples above and I provided one I use. There's been a lot of activity in this thread so what exactly are you waiting on? In the example you gave, what are the first two if statements doing? Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.