Jump to content

mark007

Clients
  • Posts

    194
  • Joined

  • Last visited

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Posts posted by mark007

  1. Everybody loves quizzes. It is not important to store the score for guests.

    Quizzes are a magnificent way to engage people.  A way to  get in touch and a way to exist in opposite to social media platform, especially Facebook.

    Quizzes for guests a the best thing you can realize.

  2. 4 hours ago, Adriano Faria said:

    No, only members. 

    It would be fantastic to allow guests, to play the quiz. Because I daily have 20.000 guests and maybe 200 members ... so it is a must I think

  3. First of all, the quizzes application is really great!

     

    An improvement suggestion that many of my members have:

    There is a graded mode and a study mode. In the study mode there is a button that shows an explanation of the correct answer. It would be very helpful and an improvement, if in the graded mode at the end of the quiz also a button with explanations of the correct answer would be displayed. Because many members want to know why an answer is right.

     

  4. On 18.1.2017 at 7:17 PM, SecondSight said:

    As for me,  I would like to have an option to choose which forums (and thus topics) can be excluded from the Leaderboard.

    Yes, this would be great. Lot's of users in my community ask for it.

  5. 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;

     

  6. 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'"}

     

  7. 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}

     

×
×
  • Create New...