by
apeccms » Tue May 30, 2017 4:47 pm
hi KK
I have changed it back to the original, so it lists it in one ong list. I removed the "list error" msg from the if statement then put the code inline with the input box label as suggested on the the how to.
- Code: Select all
<?php require_once( 'acc/cms.php' ); ?>
<cms:template title='Registration' hidden='1' />
<cms:if k_logged_in >
<!-- what is an already logged-in member doing on this page? Send back to homepage. -->
<cms:redirect k_site_link />
</cms:if>
<cms:embed 'template/header.html'/>
<cms:embed 'template/title_bar_noban.html'/>
<div class="bblocknotice">
<div class="container >
<div class="notice">
<br>
<!-- are there any success messages to show from previous actions? -->
<cms:set success_msg="<cms:get_flash 'success_msg' />" />
<cms:if success_msg >
<cms:if success_msg='1' >
Your account has been created successfully and we have sent you an email.<br>
Please click the verification link within that mail to activate your account.
<cms:else />
Activation was successful! You can now log in!<br>
<a href="<cms:login_link redirect=k_site_link />">Login</a>
</cms:if>
<cms:else />
<!-- now the real work -->
<cms:set action="<cms:gpc 'act' method='get'/>" />
<!-- is the visitor here by clicking the account-activation link we emailed? -->
<cms:if action='activate' >
<h1>Activate account</h1><br>
<cms:process_activation />
<cms:if k_success >
<cms:set_flash name='success_msg' value='2' />
<cms:redirect k_page_link />
<cms:else />
<cms:show k_error />
</cms:if>
<cms:else />
<br>
<!-- show the registration form -->
<p class="txt_111 s32">Create an account</h1><br>
<p>To create an account please enter details below. You will be contacted shortly via email to activate account.</p><br>
<cms:form
masterpage=k_user_template
mode='create'
enctype='multipart/form-data'
method='post'
anchor='0'
>
<cms:if k_success >
<cms:check_spam email=frm_extended_user_email />
<cms:db_persist_form
_invalidate_cache='0'
k_page_name = "<cms:random_name />"
k_publish_date = '0000-00-00 00:00:00'
/>
<cms:if k_success >
<cms:send_mail from="<cms:php>echo K_EMAIL_FROM;</cms:php>" to=frm_extended_user_email subject='New Account Confirmation' debug='1'>
Please click the following link to activate your account:
<cms:activation_link frm_extended_user_email />
Thanks,
Website Name
</cms:send_mail>
<cms:set_flash name='success_msg' value='1' />
<cms:redirect k_page_link />
</cms:if>
</cms:if>
<cms:if k_error >
<span class="txt_llblu s18"><cms:each k_error ><cms:show item /><br><br></cms:each></font>
</cms:if>
</div>
</div>
</div>
<div class="bblock1 " style="height:34px">
<div class="containerb">
<div class="bodymainMaxS">
<div class='tabbed_content'>
<div class='tabs'>
<div class='moving_bg'> </div>
<span class='tab_item noselect showlist regtarget1 tab_item_color'> User Information</span>
<span class='tab_item noselect showlist regtarget2'>Billing Address</span>
<span class='tab_item noselect showlist regtarget3'>Delivery Address</span>
<span class='tab_item noselect showlist regtarget4'>Complete</span>
</div>
</div>
</div>
</div>
</div>
<div class="bblock3">
<div class="containerb">
<div class="bodymainMaxS">
<div class='slide_content'>
<ul class='tabslider'>
<!--1st SLIDE -->
<li>
<div class="bblock3">
<div class="containerb">
<br>
<p class="txt_111 s28 f1 regt">Account Information</p>
<p class="txt_444 s14 regt">Please enter a username and password below. You must enter a valid email address for the account to be verified.</p>
<br>
<div class="regblock"><br>
<p class="txt_555 s18 f1"><i class="fa fa-user"></i> User Name:</p>
<cms:input class="profile-input" name='k_page_title' type="bound" /><br><br>
<p class="txt_555 s18 f1"><i class="fa fa-key"></i> Password:</p>
<cms:input class="profile-input" name='extended_user_password' type="bound" /><br><br>