Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка 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.

Как добавить текст в форму для регистрации?

Featured Replies

Только что, AlphaStar сказал:

aLEX49566 Спасибо, но мне таv буквально одну строчку текста добавить, можно и без плагинов.

Файл нашел, themes/1/html/core/front/system/register.phtml

Могу позже сказать как я себе делала если нужно

Для мобильной версии тоже желательно 

  • Author

aLEX49566 Было бы здорово, а то походу еще нужно на быструю регистрацию сделать, так как добавленный текст отображается только на странице /register/

AlphaStar тут можно и блоком вставить текстом site.ru/register/

Я себе тут делал : core - front - forms - popupRegisterTempla

Спойлер
{{if \IPS\Request::i()->isAjax() AND $buttonMethods = $login->buttonMethods()}}
	<div id='elRegisterSocial'>
    <p class="AMB_Message AMB_Message_information" style="line-height: 18px;margin-bottom: 9px;">
    Текст. <u><a href="ссылка"><span style="color:#ffffff;">ссылка</span></a></u>
     </p>
		<div class='ipsPadding'>
			<h2 class='ipsType_sectionHead'>{lang='reg_start_faster'}</h2>
			<p class='ipsType_normal ipsType_reset ipsType_light'>{lang='reg_connect'}</p>
				<form data-bypassValidation='true' accept-charset='utf-8' method='post' action='{$login->url}'>
				<input type="hidden" name="csrfKey" value="{expression="\IPS\Session::i()->csrfKey"}">
				<div class='ipsGap:2 ipsMargin_top:half'>
					{{foreach $buttonMethods as $method}}
						<div class='ipsType_center'>
							{$method->button()|raw}
						</div>
					{{endforeach}}
				</div>
			</form>
		</div>
	</div>
	<hr class='ipsHr'>
{{endif}}

<form accept-charset='utf-8' class="ipsForm {$class}" action="{$action}" method="post" {{if $uploadField}}enctype="multipart/form-data"{{endif}} {{foreach $attributes as $k => $v}}{$k}="{$v}"{{endforeach}} data-ipsForm>
	<input type="hidden" name="{$id}_submitted" value="1">
	{{foreach $hiddenValues as $k => $v}}
		{{if \is_array($v)}}
			{{foreach $v as $_k => $_v}}
				<input type="hidden" name="{$k}[{$_k}]" value="{$_v}">
			{{endforeach}}
		{{else}}
			<input type="hidden" name="{$k}" value="{$v}">
		{{endif}}
	{{endforeach}}
	{{if $uploadField}}
		<input type="hidden" name="MAX_FILE_SIZE" value="{$uploadField}">
		<input type="hidden" name="plupload" value="{expression="md5( mt_rand() )"}">
	{{endif}}
	{{if \count( $form->elements ) < 2}}
		<div class="ipsPadding">
			{{if !empty( $sidebar )}}
				<div class='ipsGrid ipsGrid_collapsePhone'>
					<div class='ipsGrid_span8'>
			{{endif}}
				<ul class='ipsList_reset'>
					{{foreach $elements as $collection}}
						{{foreach $collection as $input}}
							{{if \is_object( $input ) }}
								{$input->rowHtml($form)|raw}
							{{else}}
								{$input|raw}
							{{endif}}
						{{endforeach}}
					{{endforeach}}
				</ul>
			{{if !empty( $sidebar )}}
					</div>
					<div class='ipsGrid_span4'>
						{expression="array_pop( $sidebar )" raw="true"}
					</div>
				</div>
			{{endif}}
		</div>
	{{else}}
		<div class='ipsTabs ipsClearfix ipsJS_show' id='tabs_{$id}' data-ipsTabBar data-ipsTabBar-contentArea='#ipsTabs_content_{$id}'>
			<a href='#tabs_{$id}' data-action='expandTabs'><i class='fa fa-caret-down'></i></a>
			<ul role='tablist'>
				{{foreach $elements as $name => $content}}
					<li>
						<a href='#ipsTabs_tabs_{$id}_{$id}_tab_{$name}_panel' id='{$id}_tab_{$name}' class="ipsTabs_item {{if $name == request.tab}}ipsTabs_activeItem{{endif}}" role="tab">
							{{foreach $content as $element}}{{if !\is_string( $element ) and $element->error}}<i class="fa fa-exclamation-circle"></i> {{break;}}{{endif}}{{endforeach}} {lang="$name"}
						</a>
					</li>
				{{endforeach}}
			</ul>
		</div>
		<div id='ipsTabs_content_{$id}' class=''>
			{{foreach $elements as $name => $content}}
				<div id='ipsTabs_tabs_{$id}_{$id}_tab_{$name}_panel' class="ipsTabs_panel ipsPad" aria-labelledby="{$id}_tab_{$name}" aria-hidden="false">
					<ul class='ipsList_reset'>
						{{foreach $content as $input}}
							{{if \is_object( $input ) }}
								{$input->rowHtml($form)|raw}
							{{else}}
								{$input|raw}
							{{endif}}
						{{endforeach}}
					</ul>
				</div>
			{{endforeach}}
		</div>
	{{endif}}
	<ul class="ipsPadding ipsList_reset ipsClearfix ipsBorder_top">
		<li>{template="button" group="forms" app="core" location="global" params="'register_button', 'submit', null, 'ipsButton ipsButton_primary ipsButton_large ipsButton_fullWidth', array( 'tabindex' => '2', 'accesskey' => 's' )"}</li>
		{{if $postBeforeRegister}}
		<li class='ipsPadding_top:half'><a href="{url="app=core&module=system&controller=register&do=cancelPostBeforeRegister&id={$postBeforeRegister['id']}&pbr={$postBeforeRegister['secret']}" csrf="true" seoTemplate="register"}" class='ipsButton ipsButton_veryLight ipsButton_large ipsButton_fullWidth' data-ipsPbrCancel="true">{lang="post_before_register_delete_submission"}</a></li>
		{{endif}}
	</ul>
</form>

 

 

    <p class="AMB_Message AMB_Message_information" style="line-height: 18px;margin-bottom: 9px;">
    Текст. <u><a href="ссылка"><span style="color:#ffffff;">ссылка</span></a></u>
     </p>
		

 

Только что, AlphaStar сказал:

aLEX49566 У меня ничего не отображается, если вставить конкретно в это место, что указано выше

после <div id='elRegisterSocial'> и перед <div class='ipsPadding'>

я место указал, стиль можете сами для себя придумать. У меня другие шаблоны стиля

Для IPS 4.7.18 :

core > front > system > register:

<div class='ipsPadding ipsBorder_bottom'>
                          
                          
                          
							{{if $postBeforeRegister}}
								<h1 class='ipsType_pageTitle ipsType_reset'>{lang="post_before_register_headline"}</h1>
								{{if !\IPS\Request::i()->hidereminder}}<p class='ipsType_reset ipsType_large ipsType_light'>{lang="post_before_register_subtext"}</p>{{endif}}
							{{else}}
								<h1 class='ipsType_pageTitle ipsType_reset'>{lang='sign_up'}</h1>
								<p class='ipsType_reset ipsType_large ipsType_light'>{lang="existing_user"} <a href='{$login->url}'>{lang="sign_in_short"}</a></p>
							{{endif}}

сразу после этого (перед , </div> )поместите свой код — пример:

 <div class="colbg-lg-6">
      
      <div class="ot-alert ot-alert-success">
        <h4>Добро пожаловать на наш форум!</h4>
        <p>Если у вас есть вопрос или проблема, требующая срочного решения, вы можете приобрести услугу по её решению. Ваши темы видны только вам и администратору.<strong> Зарегистрироваться</strong>. <a href="https://ipbmafia.ru/">IPBMafia.Ru</a></p>
      </div><!-- .ot-alert -->
      
    </div>

css:

.colbg-lg-6 {
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 100%;
    }
.ot-alert-success {
    background-color: #eefdf6;
    border-color: #15cd72;
}
.ot-alert {
    margin: 20px 0;
    padding: 20px;
    border-left: 3px solid #eee;
}
  .ot-alert-success h4 {
    color: #15cd72;
}
.ot-alert h4 {
    margin-top: 0;
    margin-bottom: 5px;
}
  .ot-alert p {
    margin-bottom: 0;
}

reg.thumb.png.7a9e7478c09126e164fde798ae595b17.png

  • Author

Silence Спасибо, я подправил чутка стиль, получилось довольно красиво. :)

.ot-alert-warning {
    background-color: #fff2f2; /* очень светлый красный фон */
    border: 1px solid #ff6666; /* светло-красная граница */
    border-left: 8px solid #ff0000; /* ярко-красная левая граница для акцента */
    border-radius: 5px;
    padding: 18px;
    margin: 20px 0;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

.ot-alert-warning h4 {
    color: #990000; /* глубокий красный цвет заголовка */
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px; /* увеличиваем размер шрифта */
}

.ot-alert-warning p {
    color: #333; /* темно-серый цвет текста для лучшего контраста */
    margin-bottom: 0;
    line-height: 1.5;
}

 

 

9999.png

Edited by AlphaStar

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.

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.