The Box Office Theory Posted May 27, 2017 Share Posted May 27, 2017 20 hours ago, newbie LAC said: Hello, How can I reproduce the problem? Please give me more information. Plugin settings, advert settings, topic count posts etc Thanks for the reply. I woke up this morning and the ad was appearing, so it must have just been a case of Google activating it slower than usual. Sorry for the false alarm. Quote Link to comment Share on other sites More sharing options...
pequeno Posted July 3, 2017 Share Posted July 3, 2017 4.2.X compatible? Thanks. Quote Link to comment Share on other sites More sharing options...
newbie LAC Posted July 4, 2017 Author Share Posted July 4, 2017 10 hours ago, pequeno said: 4.2.X compatible? Thanks. Hello, Yes. pequeno 1 Quote Link to comment Share on other sites More sharing options...
pesci Posted August 5, 2017 Share Posted August 5, 2017 Hello, this is not working with 4.2.1 for me. Quote Link to comment Share on other sites More sharing options...
The Box Office Theory Posted August 5, 2017 Share Posted August 5, 2017 2 hours ago, pesci said: Hello, this is not working with 4.2.1 for me. Thanks for posting this, although I'm sorry to hear you're having issues. We were about to upgrade to 4.2.1 before I saw your post... Quote Link to comment Share on other sites More sharing options...
newbie LAC Posted August 6, 2017 Author Share Posted August 6, 2017 9 hours ago, pesci said: Hello, this is not working with 4.2.1 for me. Hello, Works fine for me. Check the settings. If you give me acp access I'll look into the problem pequeno 1 Quote Link to comment Share on other sites More sharing options...
pequeno Posted August 6, 2017 Share Posted August 6, 2017 36 minutes ago, newbie LAC said: Hello, Works fine for me. Check the settings. If you give me acp access I'll look into the problem Hello, works for me in 4.2.1. Quote Link to comment Share on other sites More sharing options...
mark007 Posted August 17, 2017 Share Posted August 17, 2017 The plugin was working fine all the time ... now IPS 4.2.2 and I can not edit anything .. I always get this message: Something went wrong. Please try again. Quote Link to comment Share on other sites More sharing options...
mark007 Posted August 17, 2017 Share Posted August 17, 2017 By the way: PHP Version7.1.6 MySQL Version5.7.15- Quote Link to comment Share on other sites More sharing options...
newbie LAC Posted August 18, 2017 Author Share Posted August 18, 2017 11 hours ago, mark007 said: I always get this message: Something went wrong. Please try again. Hello, Check the error logs or give me acp access Quote Link to comment Share on other sites More sharing options...
mark007 Posted August 18, 2017 Share Posted August 18, 2017 47 minutes ago, newbie LAC said: Check the error logs #0 /www/xxxxxxx/system/Theme/SandboxedTemplate.php(56): IPS\Theme\class_core_global_plugins->nbAdsAfterXPostsCustom('nbAdsAfterXPost...', Array) #1 /www/xxxxxxx/applications/core/modules/admin/applications/plugins.php(961) : eval()'d code(13): IPS\Theme\_SandboxedTemplate->__call('nbAdsAfterXPost...', Array) #2 [internal function]: IPS\core\modules\admin\applications\_plugins->{closure}(Object(IPS\Helpers\Form\Custom)) #3 /www/xxxxxxx/system/Helpers/Form/Custom.php(48): call_user_func(Object(Closure), Object(IPS\Helpers\Form\Custom)) #4 /www/xxxxxxx/system/Helpers/Form/Stack.php(86): IPS\Helpers\Form\_Custom->html() #5 /www/xxxxxxx/system/Helpers/Form/FormAbstract.php(264): IPS\Helpers\Form\_Stack->html() #6 /www/xxxxxxx/system/Helpers/Form/Form.php(415): IPS\Helpers\Form\_FormAbstract->rowHtml(Object(IPS\Helpers\Form)) #7 /www/xxxxxxx/system/Theme/Theme.php(809) : eval()'d code(276): IPS\Helpers\_Form->__toString() #8 /www/xxxxxxx/system/Theme/SandboxedTemplate.php(56): IPS\Theme\class_core_admin_global->blankTemplate(Object(IPS\Helpers\Form)) #9 /www/xxxxxxx/system/Dispatcher/Dispatcher.php(161): IPS\Theme\_SandboxedTemplate->__call('blankTemplate', Array) #10 /www/xxxxxxx/system/Dispatcher/Standard.php(103): IPS\_Dispatcher->finish() #11 /www/xxxxxxx/system/Dispatcher/Dispatcher.php(148): IPS\Dispatcher\_Standard->finish() #12 /www/xxxxxxx/admin/index.php(13): IPS\_Dispatcher->run() #13 {main} #0 /www/xxxxxxx/init.php(523): IPS\_Log::log('ArgumentCountEr...', 'uncaught_except...') #1 /www/xxxxxxx/system/Helpers/Form/Form.php(432): IPS\IPS::exceptionHandler(Object(ArgumentCountError)) #2 /www/xxxxxxx/system/Theme/Theme.php(809) : eval()'d code(276): IPS\Helpers\_Form->__toString() #3 /www/xxxxxxx/system/Theme/SandboxedTemplate.php(56): IPS\Theme\class_core_admin_global->blankTemplate(Object(IPS\Helpers\Form)) #4 /www/xxxxxxx/system/Dispatcher/Dispatcher.php(161): IPS\Theme\_SandboxedTemplate->__call('blankTemplate', Array) #5 /www/xxxxxxx/system/Dispatcher/Standard.php(103): IPS\_Dispatcher->finish() #6 /www/xxxxxxx/system/Dispatcher/Dispatcher.php(148): IPS\Dispatcher\_Standard->finish() #7 /www/xxxxxxx/admin/index.php(13): IPS\_Dispatcher->run() #8 {main} Quote Link to comment Share on other sites More sharing options...
newbie LAC Posted August 18, 2017 Author Share Posted August 18, 2017 2 hours ago, mark007 said: 1. Open settings file (plugins/nb40adsafterxposts/settings.php) Do you have (compare the sting) return \IPS\Theme::i()->getTemplate( 'plugins', 'core', 'global' )->nbAdsAfterXPostsCustom( $name, $value, $forums->html() ); 2. Open the template nbAdsAfterXPostsCustom (ACP - Customization - Themes - click </> - core - global - plugins - nbAdsAfterXPostsCustom. Click on Variables... How many variables that template has? Quote Link to comment Share on other sites More sharing options...
mark007 Posted August 18, 2017 Share Posted August 18, 2017 4 hours ago, newbie LAC said: Do you have (compare the sting) No, I have the following: return \IPS\Theme::i()->getTemplate( 'plugins', 'core', 'global' )->nbAdsAfterXPostsCustom( $element->name, $element->value ); These are the variables: $name, $value, $forums That's the template: <input type="text" name="{$name}[locations]" id="{$name}_locations" value="{$value['locations']}"> <span class='ipsFieldRow_desc'> {lang='nbAdsAfterXPostsLocations'} </span> <input type="text" name="{$name}[pids]" id="{$name}_pids" value="{$value['pids']}"> <span class='ipsFieldRow_desc'> {lang='nbAdsAfterXPostsPids'} </span> <br> {$forums|raw} <br> <span class='ipsFieldRow_desc'> {lang='nbAdsAfterXPostsForums'} </span> <br> {{$reverse = "{$name}[reverse]";}} {template="checkbox" group="forms" app="core" location="admin" params="$reverse, isset($value['reverse']) ? 1 : 0, false, array(), array(), 'nbAdsAfterXPostsReverse'"} <br> {{$everyName = "{$name}[every]";}} {template="checkbox" group="forms" app="core" location="admin" params="$everyName, isset($value['every']) ? 1 : 0, false, array(), array(), 'nbAdsAfterXPostsEvery'"} Quote Link to comment Share on other sites More sharing options...
newbie LAC Posted August 18, 2017 Author Share Posted August 18, 2017 (edited) 5 minutes ago, mark007 said: No, I have the following: It's wrong. It's from old version. Should be return \IPS\Theme::i()->getTemplate( 'plugins', 'core', 'global' )->nbAdsAfterXPostsCustom( $name, $value, $forums->html() ); Reinstall last version 5 minutes ago, mark007 said: That's the template: Quote This is the full settings.php: No need this information. Please delete this information and below post Edited August 18, 2017 by newbie LAC Quote Link to comment Share on other sites More sharing options...
mark007 Posted August 18, 2017 Share Posted August 18, 2017 This is the full settings.php: //<?php $data = json_decode(\IPS\Settings::i()->nbAdsAfterXPosts, true); $form->add( new \IPS\Helpers\Form\Stack( 'nbAdsAfterXPosts', $data['nbAdsAfterXPosts'] ?: array(), false, array( 'stackFieldType' => 'Custom', 'getHtml' => function( $element ) { return \IPS\Theme::i()->getTemplate( 'plugins', 'core', 'global' )->nbAdsAfterXPostsCustom( $element->name, $element->value ); } ) ) ); if ($values = $form->values()) { // remove empty foreach ($values['nbAdsAfterXPosts'] as $i => $val) { if (!$val['locations'] or !$val['pids']) { unset($values['nbAdsAfterXPosts'][$i]); } } $save['nbAdsAfterXPosts'] = json_encode($values); $form->saveAsSettings($save); return TRUE; } return $form; Quote Link to comment Share on other sites More sharing options...
newbie LAC Posted August 18, 2017 Author Share Posted August 18, 2017 6 minutes ago, mark007 said: This is the full settings.php: Answered above Quote Link to comment Share on other sites More sharing options...
mark007 Posted August 18, 2017 Share Posted August 18, 2017 Ok, I have installed the plugin again ... Now it is not possible to change reverse all forums every page If I click on these options ... nothing happens, even the cheked symbol didn't change. Quote Link to comment Share on other sites More sharing options...
newbie LAC Posted August 18, 2017 Author Share Posted August 18, 2017 3 minutes ago, mark007 said: Ok, I have installed the plugin again ... Now it is not possible to change reverse all forums every page If I click on these options ... nothing happens, even the cheked symbol didn't change. mark007 1 Quote Link to comment Share on other sites More sharing options...
PCHelpforumBE Posted August 20, 2017 Share Posted August 20, 2017 hi @newbie LAC It it save to upgrade our boards to 4.2.x? Not completely sure if your great mod now is working on 4.2.x ? Quote Link to comment Share on other sites More sharing options...
newbie LAC Posted August 20, 2017 Author Share Posted August 20, 2017 3 minutes ago, Karel Beuckelaere said: hi @newbie LAC It it save to upgrade our boards to 4.2.x? Not completely sure if your great mod now is working on 4.2.x ? Hello, Quote Link to comment Share on other sites More sharing options...
PCHelpforumBE Posted August 20, 2017 Share Posted August 20, 2017 Thanks Newbie, you rocks! Just installed on our demo board 4.2.x and confirmed working ! Quote Link to comment Share on other sites More sharing options...
Janyour Posted October 14, 2017 Share Posted October 14, 2017 Hello, any way to show ads in IPS pages after content ? Quote Link to comment Share on other sites More sharing options...
newbie LAC Posted October 15, 2017 Author Share Posted October 15, 2017 14 hours ago, Janyour said: Hello, any way to show ads in IPS pages after content ? Hello, Unfortunately no. This plugin works with topic posts only. You can use another apps from marketplace Quote Link to comment Share on other sites More sharing options...
Janyour Posted October 16, 2017 Share Posted October 16, 2017 On 15/10/2017 at 7:17 AM, newbie LAC said: Hello, Unfortunately no. This plugin works with topic posts only. You can use another apps from marketplace which one ? can you advise ? Quote Link to comment Share on other sites More sharing options...
newbie LAC Posted October 17, 2017 Author Share Posted October 17, 2017 21 hours ago, Janyour said: which one ? can you advise ? Example Janyour 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.