XF 2.1 Which template to add a message to the registration form?

Sal Collaziano

Well-known member
I have a bunch of XenForo installations - so this becomes bothersome. I get a few hundred signups daily - and probably 10 of them, each day, use a throw-away email address that works for their sign up - but can't accept my welcome message. It's already dead at that point. I'd really rather just not have the sign up at all.

I'd like to add a message beneath the "email" text box stating that accounts with throw-away email addresses will be rejected.
 
In template register_macros
Find:
HTML:
<xf:macro name="email_row"
    arg-fieldName="email"
    arg-value="">

    <xf:textboxrow name="{$fieldName}" value="{$value}" type="email" autocomplete="email" required="required"
        maxlength="{{ max_length($xf.visitor, 'email') }}"
        label="{{ phrase('email') }}"
        hint="{{ phrase('required') }}" />
</xf:macro>
Replace with:
HTML:
<xf:macro name="email_row"
    arg-fieldName="email"
    arg-value="">

    <xf:textboxrow name="{$fieldName}" value="{$value}" type="email" autocomplete="email" required="required"
        maxlength="{{ max_length($xf.visitor, 'email') }}"
        label="{{ phrase('email') }}"
        explain="Your message goes here"
        hint="{{ phrase('required') }}" />
</xf:macro>

Of course you would need to replace
Your message goes here
With whatever you want the text to be.
 
In template register_macros
Find:
HTML:
<xf:macro name="email_row"
    arg-fieldName="email"
    arg-value="">

    <xf:textboxrow name="{$fieldName}" value="{$value}" type="email" autocomplete="email" required="required"
        maxlength="{{ max_length($xf.visitor, 'email') }}"
        label="{{ phrase('email') }}"
        hint="{{ phrase('required') }}" />
</xf:macro>
Replace with:
HTML:
<xf:macro name="email_row"
    arg-fieldName="email"
    arg-value="">

    <xf:textboxrow name="{$fieldName}" value="{$value}" type="email" autocomplete="email" required="required"
        maxlength="{{ max_length($xf.visitor, 'email') }}"
        label="{{ phrase('email') }}"
        explain="Your message goes here"
        hint="{{ phrase('required') }}" />
</xf:macro>

Of course you would need to replace

With whatever you want the text to be.
Thank you very much! I appreciate your time. :)
 
In template register_macros
Find:
HTML:
<xf:macro name="email_row"
    arg-fieldName="email"
    arg-value="">

    <xf:textboxrow name="{$fieldName}" value="{$value}" type="email" autocomplete="email" required="required"
        maxlength="{{ max_length($xf.visitor, 'email') }}"
        label="{{ phrase('email') }}"
        hint="{{ phrase('required') }}" />
</xf:macro>
Replace with:
HTML:
<xf:macro name="email_row"
    arg-fieldName="email"
    arg-value="">

    <xf:textboxrow name="{$fieldName}" value="{$value}" type="email" autocomplete="email" required="required"
        maxlength="{{ max_length($xf.visitor, 'email') }}"
        label="{{ phrase('email') }}"
        explain="Your message goes here"
        hint="{{ phrase('required') }}" />
</xf:macro>

Of course you would need to replace

With whatever you want the text to be.
I realize this thread is 4 years old, but the post above just helped me add some text to the registration page because our older crowd isn't always email savvy.

new registration form.webp

However, I'd like to make the text I added bold to better get their attention since the text under boxes on the registration page is somewhat faint.

So my question is, can I safely use <b> and </b> to make that text bold, or is there a better/safer way? I'm barely safe and effective with software, much less code changes.

Thanks in advance for the help this forum has given me.
 
Back
Top Bottom