Jump to content

Кто-нибудь может помочь мне обновить этот файл?

Featured Replies

Posted

Я пытаюсь использовать плагин "Raffles". Он работает нормально, но я получаю эту ошибку, когда пытаюсь изменить настройки уведомлений в панели администратора:

Показать контент

Плагин использует устаревшую систему уведомлений. Мне нужно обновить его, и я попробовал. Но я не совсем опытен.

Это проблемный файл:

Показать контент

Вот рабочий файл (уведомление "Загрузки"):

Показать контент

Я попытался сымитировать рабочий файл, но не было трех типов уведомлений, отображался только общий. Во всяком случае, я не мог заставить его работать.

Любая помощь будет оценена по достоинству!

Файл: (SOS44) Raffles System 1.3.0

Пробуйте обновить приложение 1.4.2

1.3.1
Fix:

  • Issues related to Members Shop integration

Enhancements:

  • Adjustment for Lazy Load
  • Adjustment for Post Before Registering

1.3.2

  • Template issue for those who hasn't Commerce installed
  • ReflectionException on Rest API

1.3.3
New Feature:

  • From now on you can convert a review to a comment. A new moderator permission will control who can use the feature.

Enhancements:

  • Added ability to choose extra field position per field (sidebar or below raffle/giveaway description)
  • Script optimization due to new marketplace guidelines
  • drop columns from members table and use own table to store members preferences
  • Random sorting in Raffle feed widget
  • Rework in raffle post screen to make fields (type of payment, money and points) appears only when necessary
  • Rework in some templates

1.3.4
Fix:

  • Can't see all prizes in mobile devices
  • Participants messed up in mobile devices

Fix:

  • Fix issue in generated topic (post where winners are displayed)
  • Delete unused templates

1.3.5

  • Fix hardcoded strings in raffle countdown

1.3.7 

  • Removes number of tickets from giveaways view
  • Additional checking for raffles with "0.00" cost

1.4.0   
New Feature:

  • Add a price filter on category view to filter raffles by price.A new option will show on Admin CP to add your price range. This option will show up only if you have Commerce app installed.

1.4.1
Fix error when trying to delete comments.

1.4.2
Fix integratation with Members Shop

  • Author
  On 09.08.2021 at 12:06, 001 said:

Пробуйте обновить приложение 1.4.2

Я уже использую эту версию. 😕

Разработчик исправил это только в 1.5.2 или около того.

Edited by BlackShot

Fast & dirty

	/**
	 * Get configuration
	 *
	 * @param	\IPS\Member	$member	The member
	 * @return	array
	 */
	public static function configurationOptions( \IPS\Member $member = NULL )
	{
		$return  = array(
			'raffle_payment_done'	=> array(
				'type'				=> 'standard',
				'title'				=> 'Payments done',
				'description'		=> 'Add description 1',
				'default'			=> array( 'inline' ),
				'disabled'			=> array()
			),
			'raffle_winner'	=> array(
				'type'				=> 'standard',
				'title'				=> 'Notify "You Winner!"',
				'description'		=> 'Add description 2',
				'default'			=> array( 'inline' ),
				'disabled'			=> array()
			)
		);
		if ( \IPS\Member::loggedIn()->inGroup( explode( ',', \IPS\Settings::i()->raffles_auto_pick_winners_groups ) ) AND !\IPS\Settings::i()->raffles_auto_pick_winners )
		{
			$return['raffle_expired'] = array(
				'type'				=> 'standard',
				'title'				=> 'Expired',
				'description'		=> 'Add description 3',
				'default'			=> array( 'inline' ),
				'disabled'			=> array()
			);
		}
		return $return;
	}

Добавить это в файл exten../../tickets.php

Дальше протестировать не могу, поскольку не понимаю, что это и как работает. 

  • 3 месяца спустя...

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.

Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.