Skip to main content
Topic: An empty line below the agreement checkbox (Read 1515 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

An empty line below the agreement checkbox

Hello!
Can I somehow put an empty line below the agreement checkbox with the "I accept the terms of the agreement" text in the Register.template.php?
I want to have some space before the privacy policy text begins.
Does it work with a  < br /> somewhere in between?

Code: [Select]
	if (!empty($context['agreement']))
{
echo '
<h2 class="category_header">', $txt['registration_agreement'], '</h2>
<div class="well">
<p>', $context['agreement'], '</p>
</div>';
}

if (!empty($context['privacy_policy']))
{
echo '
<h2 class="category_header">', $txt['registration_privacy_policy'], '
</h2>
<div class="well">
<p>', $context['privacy_policy'], '</p>
</div>';
}
 
Last Edit: June 27, 2018, 05:22:56 am by Mrs. Chaos
ElkArte version: 1.1.8 / Theme: BeSocial / PHP 8.0

Re: An empty line below the agreement checkbox

Reply #1

Code: [Select]
		echo '
<br />
<h2 class="category_header">', $txt['registration_privacy_policy'], '
Should do.
Not nice, but should work.
Bugs creator.
Features destroyer.
Template killer.

Re: An empty line below the agreement checkbox

Reply #2

No, it doesn't work.
I even tried it with two line breaks.
ElkArte version: 1.1.8 / Theme: BeSocial / PHP 8.0

Re: An empty line below the agreement checkbox

Reply #3

If you have it in place, could you send me a link?
Bugs creator.
Features destroyer.
Template killer.

Re: An empty line below the agreement checkbox

Reply #4

Ahhh... you are showing agreement and privacy policy in the same page as the registration form, the one you posted above if the one that shows agreement and PP on a page before the registration form!
For that you have to work on:
Code: [Select]
					', $txt['checkbox_agreement'], '
</label>
<div id="privacypol_box">
', $context['privacy_policy'], '
between the closing label and opening div.

Actually, though, you could even just use some css:
Code: [Select]
#privacypol_box {
    margin-top: 2em;
}
or something like that.
Bugs creator.
Features destroyer.
Template killer.

Re: An empty line below the agreement checkbox

Reply #5

Thank you!  I did it with the css.
In the  index.css  I found this part and added the  margin-top: 2em;  into it.

Code: [Select]
#agreement_box, #privacypol_box {
overflow-y: scroll;
margin-bottom: 2em;
margin-top: 2em;
padding: 8px;
height: 180px;
border: 1px solid;
text-align: justify;
}
ElkArte version: 1.1.8 / Theme: BeSocial / PHP 8.0

Re: An empty line below the agreement checkbox

Reply #6

I would always suggest to use custom.css instead of editing index.css, but at least it works. :)
Bugs creator.
Features destroyer.
Template killer.