Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • in reply to: WPML language selector at header #30826
     alberhd
    Participant

    this is the header.php code

    COPY CODE
    <li class="header-login-button"><a href="#" data-reveal-id="login_panel" class="tiny secondary button radius"><i class="icon-user hide-for-medium-down"></i> <?php _e("LOG IN", 'kleo_framework'); ?></a></li>
    
                                <?php if(get_option('users_can_register')) { ?>
    							<li class="header-register-button"><a href="#" data-reveal-id="register_panel" class="tiny button radius"><i class="icon-group hide-for-medium-down"></i> <?php _e("SIGN UP", 'kleo_framework'); ?></a></li>
    							<?php } ?>
    
    						<?php endif; ?>

    The wpml code should be here?

    COPY CODE
    <li class="header-login-button"><a href="#" data-reveal-id="login_panel" class="tiny secondary button radius"><i class="icon-user hide-for-medium-down"></i> <?php _e("LOG IN", 'kleo_framework'); ?></a></li>
    
                                <?php if(get_option('users_can_register')) { ?>
    							<li class="header-register-button"><a href="#" data-reveal-id="register_panel" class="tiny button radius"><i class="icon-group hide-for-medium-down"></i> <?php _e("SIGN UP", 'kleo_framework'); ?></a>
    <strong><li><?php do_action('icl_language_selector'); ></li></strong>
    </li>
    							<?php } ?>
    
    						<?php endif; ?>
    in reply to: Redirect the logged user to the members page #29527
     alberhd
    Participant

    i found this code at the header and i followed your instructions,but the page gave me a error.

    COPY CODE
    <div class="four columns">
    					<h1 id="logo"><?php bloginfo('name'); ?>
    						<a href="<?php echo get_home_url(); ?>"><img id="logo_img" src="<?php echo sq_option('logo',get_template_directory_uri().'/assets/images/logo.png'); ?>" width="294" height="108" alt="<?php bloginfo('name'); ?>"></a>
    					</h1>
    				</div>
    in reply to: Hide Following/Followers of the users #28816
     alberhd
    Participant
    This reply has been set as private.
    in reply to: What is the file to edit the profile menu? #27646
     alberhd
    Participant

    i should put something like that

    COPY CODE
    function kleo_change_profile_name() {
    global $bp;
    $bp->bp_nav['messages']['name'] = 'Mensajes';
    $bp->bp_nav['notifications']['name'] = 'Notificaciones';
    
     
    }
    add_action( 'bp_setup_nav', 'kleo_change_profile_tab', 999 );
     
    define( 'BP_DEFAULT_COMPONENT', 'profile' );
    in reply to: Hide Following/Followers of the users #26814
     alberhd
    Participant

    I use this css,but does not work

    COPY CODE
    #members-following-personal-li, #members-followers-personal-li {display:none;}
    body.my-account #members-following-personal-li, body.my-account #members-followers-personal-li {display:inline !important;}
    in reply to: Question about CSS #26524
     alberhd
    Participant

    No,does not work sorry,this is the code

    COPY CODE
    
    
    .form-footer {
    background: url(“../images/patterns/gray_pattern.gif”) repeat scroll 0 0 rgba(0,0,0,0.4);
    border-bottom: 10px solid rgba(0,0,0,0.4) !important;
    border-left: 10px solid rgba(0,0,0,0.4) !important;
    border-right: 10px solid rgba(0,0,0,0.4) !important;
    color: #000000 !important;
    }
    .form-search .notch {
    position: absolute;
    bottom: -10px;
    left: 20px;
    margin: 0;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    padding: 0;
    width: 0;
    height: 0;
    }
    .form-search.custom div.custom.dropdown a.selector, .form-search.custom div.custom.dropdown a.current, .form-search.custom select {
    border: 1px solid rgba(0,0,0,0.4);
    }
    .form-search.custom div.custom.dropdown a.current, .form-search.custom input[type="text"], .form-search.custom input[type="password"], .form-search.custom select {
    background-color: rgba(0,0,0,0.4);
    }
    .form-footer, 
    {
    background: url(“../images/patterns/gray_pattern.gif”) repeat scroll 0 0 rgba(0,0,0,0.4) !important;
    border-bottom: 10px solid rgba(0,0,0,0.4);
    }
    
    .form-header, 
    .form-search
    {
       background: url(“../images/patterns/gray_pattern.gif”) repeat scroll 0 0 rgba(0,0,0,0.4) !important;
    }
    
    .form-header
    {
       border-top: 10px solid rgba(0,0,0,0.4) !important;   
       border-left: 10px solid rgba(0,0,0,0.4) !important;
       border-right: 10px solid rgba(0,0,0,0.4) !important;
      background: url(“../images/patterns/gray_pattern.gif”) repeat scroll 0 0 rgba(0,0,0,0.4);
    }
    
    .form-search
    {
         border-left: 10px solid rgba(0,0,0,0.4) !important;
         border-right: 10px solid rgba(0,0,0,0.4) !important;
    }
    
    
    in reply to: Two problems after modify the Profile Fields #26433
     alberhd
    Participant

    No edit option sorry,

    I used this code of other post

    COPY CODE
    add_filter('kleo_extra_tab1', 'custom_tab');
    function custom_tab()
    {
        return 'Looking for';
    }

    And now i have the tab at the english and spanish version,but now how can i do it to change the language without have the same problem?

     alberhd
    Participant

    Ah ok,maybe i know the problem,i enter both codes,confusion! and is just one of them, right?

    COPY CODE
    add_action('user_register', 'kleo_pmpro_default_level');
    function kleo_pmpro_default_level($user_id) {
    	pmpro_changeMembershipLevel(1,$user_id);
    }

    OR

    COPY CODE
    /**
    * When registering, add the member to a specific membership level
    * based on the field value he has selected
    *
    * @global object $wpdb
    * @global object $bp
    * @param integer $user_id
    */
    function kleo_pmpro_default_level($user_id) {
        global $wpdb, $bp;
     
        //Change this with your field name
        $field_name= "I am a";
     
        //Change the field value
        $value_to_match = "Woman";
     
        //Membership level id
        $membership_level = 1;
     
        //Done editing
        $field_id = $wpdb->get_var( $wpdb->prepare( "SELECT id FROM {$bp->profile->table_name_fields} WHERE name = %s", $field_name ) );
        if ($_POST['field_'.$field_id] == $value_to_match) {
                pmpro_changeMembershipLevel($membership_level, $user_id);
        }
    }
     
    function kleo_mu_pmpro_default_level($user_id, $password, $meta) {
        global $bp, $wpdb;
     
        //Change this with your field name
        $field_name= "I am a";
     
        //Change the field value
        $value_to_match = "Woman";
     
        //Membership level id
        $membership_level = 1;
     
        
        //Done editing
        $field_id = $wpdb->get_var( $wpdb->prepare( "SELECT id FROM {$bp->profile->table_name_fields} WHERE name = %s", $field_name ) );
        $field_value = $meta['field_'.$field_id];
        if ( $field_value == $value_to_match ) {
            pmpro_changeMembershipLevel($membership_level, $user_id);
        }
    }
     
    if (is_multisite()) {
        add_action( 'wpmu_activate_user', 'kleo_mu_pmpro_default_level', 10, 3);
    } else {
        add_action('user_register', 'kleo_pmpro_default_level');
    }

    If I understand good the first code,if I create a membership free,that on the list of the plugin is the membership number 1,when the user will enter on the page,automatically they will have this membership right?

Viewing 8 posts - 1 through 8 (of 8 total)

Log in with your credentials

Forgot your details?