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. :)
 
Top Bottom