an
groups-icon

want to change a little setting of terms and condition plugin

Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
  • Version 9
    Muhammad Ammad Siddique
    0 points
    Beginner

    Hay i want to change the setting of terms and conditions plugin on ad listing page its showing below the submission button i want to show it before submission button can anyone suggest me here is the plugin code below

    <?php
    /*
    Plugin Name: [MISC] – Terms & Conditions
    Plugin URI: https://www.premiumpress.com
    Description: This plugin will add a terms and conditions box to your registration, login and add-listing page.
    Version: 1.2
    Author: Mark Fail
    Author URI: https://www.premiumpress.com
    License:
    */

    function wlt_terms_and_conditions_new_page_list($c){

    $c[‘terms’] = array(“name” => “Terms & Conditions”);
    return $c; }

    add_action(‘hook_admin_1_tab1_subtab2_pagelist’,’wlt_terms_and_conditions_new_page_list’);

    function wlt_register_tos(){

    global $PPT;
    ?>
    <script type=”text/javascript”> jQuery(document).ready(function() {

    jQuery(‘form .btn-primary’).attr(‘disabled’, true); });

    function UnDMe(){

    if ( jQuery(‘form .btn-primary’).is(‘:disabled’) === false) {

    jQuery(‘form .btn-primary’).attr(‘disabled’, true); jQuery(‘form .btn-primary’).removeClass(‘green’); jQuery(‘form .btn-primary’).addClass(‘gray’);

    } else {

    jQuery(‘form .btn-primary’).attr(‘disabled’, false); jQuery(‘form .btn-primary’).addClass(‘green’);

    }
    }
    </script>
    <div class=”clearfix”></div>
    <hr />
    <!– START TERMS BOX –>
    <div class=”alert alert-success”>
    <input type=”checkbox” id=”agreeTC” name=”interests” class=”radio” tabindex=”8″ onclick=”javascript:UnDMe();”>
    I agree to the website ” style=”color:blue; text-decoration:underline;” target=”_blank”>terms and conditions

    </div>
    <!– END TERMS BOX –>
    <?php
    }
    add_action(‘register_form’,’wlt_register_tos’);
    add_action(‘login_form’,’wlt_register_tos’);
    add_action(‘register_form’,’wlt_register_tos’);
    if(!isset($_GET[‘eid’])){
    add_action(‘hook_add_form_bottom’,’wlt_register_tos’);
    }

    ?>

    June 10, 2014 at 2:16 pm
  • Muhammad Ammad Siddique
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    June 10, 2014 at 2:17 pm

447

Views

1

Replies