How can I mad This?

Art

Well-known member
Registered
Joined
Jun 26, 2020
Messages
48
Points
28

Reputation:

How can I add or edit before User register In forum Notice like this
InkedNotice1_LI.jpg


How can I add or change Menus in Vertical Forum Like This


menuy Notice.png
 

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
19,151
Points
823

Reputation:

Images 1:
You have two ways to do that
1- Through Template modification option under Appearance in your ACP
2- Direct edit of reigester_macros template which I do not recommend because every time you are going to upgrade to newest xf version your edit will be overwritten.

To do step 1 first you have to enable development mode by adding this to your config file $config['development']['enabled'] = true;
A- Navigate to Apperance> Template modification> add template modifcation.
B- in Template field call the template you are going to modify in this case register_macros
C- in Modification key which is the second field > add something that identifies your modification of your choice for example lets put: email_notice
D- scroll down to the (find) box and place this code
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>
E- go to the replace box and add this code. Change this sentence
put your notice here.
with your notice. Make sure not to remove the brackets.
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') }}"
        explain="{{ ('put your notice here.') }}"/>
</xf:macro>
$1
hit save and you are good to go.

Method number 2

go to template register macros and find this
HTML:
        label="{{ phrase('email') }}"
        hint="{{ phrase('required') }}" />
replace with this. do not forget to replace this sentence put your notice here with your notice.
HTML:
        label="{{ phrase('email') }}"
        hint="{{ phrase('required') }}"
        explain="{{ ('put your notice here.') }}"/>
save.

if you choose method 1 do not forget to disable development mode after you are done by removing $config['development']['enabled'] = true; from your config file.
Images 2: Send me link forum, I'll check it
 
Top