1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 Reg Form modifcation

Discussion in 'Styling and Customization Questions' started by Codeless, Mar 21, 2016.

  1. Codeless

    Codeless Member

    Hey all
    i want to ask i have a code i want to use it prevent to block spam and get some money too

    here is code


    Insert the following code into the head section of the page.

    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
    <script type="text/javascript" src="https://blockchain.info/Resources/wallet/pay-now-button.js"></script>

    Insert the following html code at the position where you would like the button to appear

    <div style="font-size:16px;margin:0 auto;width:300px" class="blockchain-btn"
    data-address="1AWqYR4CCP5j9GEqMNk8b3ZNPPfG5Jniu1"
    data-shared="false">
    <div class="blockchain stage-begin">
    <img src="https://blockchain.info/Resources/buttons/donate_64.png"/>
    </div>
    <div class="blockchain stage-loading" style="text-align:center">
    <img src="https://blockchain.info/Resources/loading-large.gif"/>
    </div>
    <div class="blockchain stage-ready">
    <p align="center">Please Donate To Bitcoin Address: <b>[[address]]</b></p>
    <p align="center" class="qr-code"></p>
    </div>
    <div class="blockchain stage-paid">
    Donation of <b>[[value]] BTC</b> Received. Thank You.
    </div>
    <div class="blockchain stage-error">
    <font color="red">[[error]]</font>
    </div>
    </div>



    i see in code when payment paid its gives thank you message
    is this possible i can hide thank you button inside thank you message .

    when user click to images he will pay for it and then thank you button apear on screen i tried but something not working

    i put first part of code in PAGE_CONTAINER

    and 2nd part in registration_form templets .



    Please give me any suggestion
     
  2. Codeless

    Codeless Member

    anyone don't know this ?
     
  3. Codeless

    Codeless Member

    i have this bitcoin code here i marked RED code Thank you message can i put there register_form code ???


    <div style="font-size:16px;margin:0 auto;width:300px" class="blockchain-btn"
    data-address="16Z1Z4zQjSxujczCMNDC83VAt8BCHtSgbn"
    data-shared="false">
    <div class="blockchain stage-begin">
    <img src="https://blockchain.info/Resources/buttons/donate_64.png"/>
    </div>
    <div class="blockchain stage-loading" style="text-align:center">
    <img src="https://blockchain.info/Resources/loading-large.gif"/>
    </div>
    <div class="blockchain stage-ready">
    <p align="center">Please Donate To Bitcoin Address: <b>[[address]]</b></p>
    <p align="center" class="qr-code"></p>
    </div>
    <div class="blockchain stage-paid">
    Donation of <b>[[value]] BTC</b> Received. Thank You.
    </div>
    <div class="blockchain stage-error">
    <font color="red">[[error]]</font>
    </div>
    </div>


    ==

    <xen:title>{xen:phrase sign_up}</xen:title>

    <form action="{xen:link 'register/register'}" method="post" class="xenForm AutoValidator"
    data-fieldValidatorUrl="{xen:link register/validate-field}"
    data-normalSubmit="1"
    >
    <xen:if is="{$errors}">
    <div class="errorPanel">
    <h3 class="errorHeading">{xen:phrase please_correct_following_errors}:</h3>
    <div class="baseHtml errors">
    <ol>
    <xen:foreach loop="$errors" value="$error">
    <li>{xen:raw $error}</li>
    </xen:foreach>
    </ol>
    </div>
    </div>
    </xen:if>

    <dl class="ctrlUnit limited">
    <dt><label for="ctrl_username">{xen:phrase name}:</label></dt>
    <dd>
    <input type="text" name="username" value="" class="textCtrl" id="ctrl_username" autocomplete="off" />
    <p class="explain">{xen:phrase please_leave_this_field_blank}</p>
    </dd>
    </dl>

    <dl class="ctrlUnit">
    <dt><label for="ctrl_{$fieldMap.username}">{xen:phrase name}:</label></dt>
    <dd>
    <input type="text" name="{$fieldMap.username}" value="{$fields.username}" class="textCtrl" id="ctrl_{$fieldMap.username}" autofocus="true" autocomplete="off" />
    <p class="explain">{xen:phrase this_is_name_that_will_be_shown_with_your_messages}</p>
    </dd>
    </dl>

    <xen:if is="mt_rand(0, 2) == 1">
    <dl class="ctrlUnit limited">
    <dt><label for="ctrl_{$fieldMap.email_hp}">{xen:phrase email}:</label></dt>
    <dd>
    <input type="email" name="{$fieldMap.email_hp}" value="" dir="ltr" class="textCtrl" autocomplete="off" id="ctrl_{$fieldMap.email_hp}" />
    <p class="explain">{xen:phrase please_leave_this_field_blank}</p>
    </dd>
    </dl>
    </xen:if>

    <dl class="ctrlUnit">
    <dt><label for="ctrl_{$fieldMap.email}">{xen:phrase email}:</label></dt>
    <dd>
    <input type="email" name="{$fieldMap.email}" value="{$fields.email}" dir="ltr" class="textCtrl" id="ctrl_{$fieldMap.email}" />
    </dd>
    </dl>

    <fieldset>
    <xen:if is="mt_rand(0, 2) == 1">
    <dl class="ctrlUnit limited">
    <dt><label for="ctrl_password">{xen:phrase password}:</label></dt>
    <dd>
    <input type="password" name="password" class="textCtrl OptOut" id="ctrl_password" autocomplete="off" />
    <p class="explain">{xen:phrase please_leave_this_field_blank}</p>
    </dd>
    </dl>
    </xen:if>

    <dl class="ctrlUnit">
    <dt><label for="ctrl_{$fieldMap.password}">{xen:phrase password}:</label></dt>
    <dd><input type="password" name="{$fieldMap.password}" class="textCtrl OptOut" id="ctrl_{$fieldMap.password}" autocomplete="off" /></dd>
    </dl>

    <dl class="ctrlUnit">
    <dt><label for="ctrl_{$fieldMap.password_confirm}">{xen:phrase confirm_password}:</label></dt>
    <dd>
    <input type="password" name="{$fieldMap.password_confirm}" class="textCtrl OptOut" id="ctrl_{$fieldMap.password_confirm}" />
    <p class="explain">{xen:phrase enter_your_password_in_first_box_and_confirm_it_in_second}</p>
    </dd>
    </dl>

    <xen:if is="mt_rand(0, 2) == 1">
    <dl class="ctrlUnit limited">
    <dt><label for="ctrl_{$fieldMap.password_confirm_hp}">{xen:phrase confirm_password}:</label></dt>
    <dd>
    <input type="password" name="{$fieldMap.password_confirm_hp}" class="textCtrl OptOut" id="ctrl_{$fieldMap.password_confirm_hp}" />
    <p class="explain">{xen:phrase please_leave_this_field_blank}</p>
    </dd>
    </dl>
    </xen:if>
    </fieldset>

    <dl class="ctrlUnit">
    <dt>{xen:phrase gender}:</dt>
    <dd>
    <ul>
    <li><label><input type="radio" name="{$fieldMap.gender}" value="male" {xen:checked "{$fields.gender} == 'male'"} /> {xen:phrase male}</label></li>
    <li><label><input type="radio" name="{$fieldMap.gender}" value="female" {xen:checked "{$fields.gender} == 'female'"} /> {xen:phrase female}</label></li>
    <li><label><input type="radio" name="{$fieldMap.gender}" value="" {xen:checked "!{$fields.gender}"} /> ({xen:phrase unspecified})</label></li>
    </ul>
    </dd>
    </dl>

    <xen:include template="helper_birthday_row_register" />

    <xen:if is="{$xenOptions.registrationSetup.requireLocation}">
    <dl class="ctrlUnit">
    <dt>
    {xen:phrase location}:
    <dfn>{xen:phrase required}</dfn>
    </dt>
    <dd>
    <input type="text" name="location" value="{$fields.location}" class="textCtrl" />
    </dd>
    </dl>
    </xen:if>

    <xen:set var="$honeyPotPosition" value="{xen:helper rand, 0, 2}" />
    <xen:if is="{$customFieldHoneyPot} && {$honeyPotPosition} == 1">
    <xen:include template="custom_field_edit">
    <xen:set var="$customFieldInputName" value="{$fieldMap.custom_fields}" />
    <xen:set var="$field" value="{$customFieldHoneyPot}" />
    <xen:set var="$customFieldExtraClass" value="limited" />
    </xen:include>
    </xen:if>

    <xen:include template="custom_fields_edit">
    <xen:set var="$customFieldInputName" value="{$fieldMap.custom_fields}" />
    </xen:include>

    <xen:if is="{$customFieldHoneyPot} && {$honeyPotPosition} == 2">
    <xen:include template="custom_field_edit">
    <xen:set var="$customFieldInputName" value="{$fieldMap.custom_fields}" />
    <xen:set var="$field" value="{$customFieldHoneyPot}" />
    <xen:set var="$customFieldExtraClass" value="limited" />
    </xen:include>
    </xen:if>

    <dl class="ctrlUnit" style="display: none">
    <dt><label for="ctrl_{$fieldMap.timezone}">{xen:phrase time_zone}:</label></dt>
    <dd>
    <select name="{$fieldMap.timezone}" class="textCtrl {xen:if $fields.timezoneAuto, 'AutoTimeZone'} OptOut" id="ctrl_{$fieldMap.timezone}">
    <xen:foreach loop="$timeZones" key="$identifier" value="$name">
    <option value="{$identifier}" {xen:selected "{$identifier} == {$fields.timezone}"}>{$name}</option>
    </xen:foreach>
    </select>
    </dd>
    </dl>

    <xen:if hascontent="true">
    <fieldset>
    <xen:contentcheck>
    <xen:include template="helper_captcha_unit" />
    </xen:contentcheck>
    </fieldset>
    </xen:if>

    <dl class="ctrlUnit submitUnit">
    <dt></dt>
    <dd>
    <xen:set var="$timerHtml"><xen:if is="{$xenOptions.registrationTimer}">
    <span id="RegTimer">({xen:phrase please_wait_x_seconds, "seconds=<span>{$xenOptions.registrationTimer}</span>"})</span>
    </xen:if></xen:set>
    <xen:if is="{$tosUrl}">
    <ul>
    <li>
    <div class="text">{xen:phrase i_agree_to_terms_and_rules, 'checkbox=<input type="checkbox" name="agree" value="1" id="ctrl_agree" class="Disabler" />', 'terms_attributes=href="{$tosUrl}" target="_blank"'}</div>
    <ul id="ctrl_agree_Disabler">
    <li><input type="submit" value="{xen:phrase sign_up}" accesskey="s" class="button primary" id="SubmitButton" /> {xen:raw $timerHtml}</li>
    </ul>
    </li>
    </ul>
    <xen:else />
    <input type="submit" value="{xen:phrase sign_up}" accesskey="s" class="button primary" id="SubmitButton" /> {xen:raw $timerHtml}
    </xen:if>
    </dd>
    </dl>

    <input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />
    <input type="hidden" name="reg_key" value="{$regKey}" />
    </form>

    <xen:if is="{$xenOptions.registrationTimer}">
    <script>
    (function($) {
    $(function() {
    var rt = $('#RegTimer'), s = rt.find('span'), t = parseInt(s.text(), 10),
    sub = $('#SubmitButton'),
    i = setInterval(function() {
    t--;
    if (t <= 0) {
    rt.hide();
    clearInterval(i);
    } else {
    s.text(t);
    }
    }, 1000);

    var f = function(e) {
    if (t > 0) {
    e.preventDefault();
    }
    };

    sub.click(f);
    sub.closest('form').submit(f);
    });
    })(jQuery);
    </script>
    </xen:if>


    Please waiting for suggestion
     

Share This Page