Jump to content
View in the app

A better way to browse. Learn more.

Дизайн и модификация Invision Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Три дополнительных поля редактора в форме

Возможно это конечно и бред, но очень нужно что бы в форме отправки публикации в одном из приложений, было не одно поле редактора, а ещё три дополнительных.

Вот типа такого:

post-31497-0-36225900-1570275063_thumb.jpg

 

В базе данных создал три идентичных поля к полю description.

 

В шаблоне формы добавил такое:

 

<fieldset><h3 class='bar'>Описание мода (Обязательно)</h3>{$game[ 'editor' ]}</fieldset>

<fieldset><h3 class='bar'>Ссылки на закачку (Обязательно)</h3>{$game[ 'editor1' ]}</fieldset>

<fieldset><h3 class='bar'>Скриншоты мода (Обязательно)</h3>{$game[ 'editor2' ]}</fieldset>

<fieldset><h3 class='bar'>Видео мода (Обязательно)</h3>{$game[ 'editor3' ]}</fieldset>

 

 

В самом файле приложения кое что подшаманил, однако при отправке сообщения, все четыре поля выводят один и тот же контент.

 

Вот файл (не правленный)

games.zip

 

Буду очень благодарен за помощь и совет.

Featured Replies

Нужно было приложить 2 файла

  • Author

Нужно было приложить 2 файла

Прикрепляю всё приложение (оно не большое):

IP Games 3.2.2.zip

Я имел ввиду оригинальный файл и с правками.

  • Author

Я имел ввиду оригинальный файл и с правками.

games.zip

 

 

1.

			$game[ 'editor1' ]			= IPSText::getTextClass( 'editor' )->showEditor( $game[ 'game_description1' ], 'Post' );
		$game[ 'editor2' ]			= IPSText::getTextClass( 'editor' )->showEditor( $game[ 'game_description2' ], 'Post' );
		$game[ 'editor3' ]			= IPSText::getTextClass( 'editor' )->showEditor( $game[ 'game_description3' ], 'Post' );

Замените на

			$game[ 'editor1' ]			= IPSText::getTextClass( 'editor' )->showEditor( $game[ 'game_description1' ], 'Post1' );
		$game[ 'editor2' ]			= IPSText::getTextClass( 'editor' )->showEditor( $game[ 'game_description2' ], 'Post2' );
		$game[ 'editor3' ]			= IPSText::getTextClass( 'editor' )->showEditor( $game[ 'game_description3' ], 'Post3' );

2.

			$game[ 'editor1' ]			=	IPSText::getTextClass( 'editor' )->showEditor( '', 'Post' );
		$game[ 'editor2' ]			=	IPSText::getTextClass( 'editor' )->showEditor( '', 'Post' );
		$game[ 'editor3' ]			=	IPSText::getTextClass( 'editor' )->showEditor( '', 'Post' );

замените на

			$game[ 'editor1' ]			=	IPSText::getTextClass( 'editor' )->showEditor( '', 'Post1' );
		$game[ 'editor2' ]			=	IPSText::getTextClass( 'editor' )->showEditor( '', 'Post2' );
		$game[ 'editor3' ]			=	IPSText::getTextClass( 'editor' )->showEditor( '', 'Post3' );

3.

		$gameDesc1		=	IPSText::getTextClass( 'editor' )->processRawPost( 'Post' );
	$gameDesc2		=	IPSText::getTextClass( 'editor' )->processRawPost( 'Post' );
	$gameDesc3		=	IPSText::getTextClass( 'editor' )->processRawPost( 'Post' );

замените на

		$gameDesc1		=	IPSText::getTextClass( 'editor' )->processRawPost( 'Post1' );
	$gameDesc2		=	IPSText::getTextClass( 'editor' )->processRawPost( 'Post2' );
	$gameDesc3		=	IPSText::getTextClass( 'editor' )->processRawPost( 'Post3' );

 

 

  • Author

@newbie,

Спасибо, то что надо.

 

Чёто Post не продублировал я.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.