Jump to content
Дизайн и модификация Invision Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Trotor

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

Recommended Posts

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

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

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

 

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

Share this post


Link to post

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

Share this post


Link to post

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

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

IP Games 3.2.2.zip

Share this post


Link to post

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

Share this post


Link to post

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

games.zip

Share this post


Link to post

 

 

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' );

 

 

  • Upvote 3

Share this post


Link to post

@newbie,

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

 

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

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...