Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • in reply to: Add text above Icons #185582
     psmorrow
    Participant
    This reply has been set as private.
    in reply to: Tab Icon Font Size #184596
     psmorrow
    Participant

    This seems to work, thanks!

    COPY CODE
    .wpb-js-composer .vc_tta.vc_general .vc_tta-tab {
    	line-height:1.5;
    	font-size: 2em;
    	}
    
    in reply to: Tab Icon Font Size #184101
     psmorrow
    Participant

    here is the css that I wrote that does not work:

    COPY CODE
    .wpb-js-composer .vc_tta.vc_general {
        font-size: 8em;
        line-height: 1;
        display: inline;
    }
    
    in reply to: Login Redirect Not Working #175037
     psmorrow
    Participant

    Also note, that this snippet doesn’t work either? Any connection you can think of?

    COPY CODE
    function action_bb_user_login ( $user_id ){
    	
    	$promo_field1 = xprofile_get_field_data( 'Earn a percentage of credits received by referrals', 1);	
    	$promo_field2 = xprofile_get_field_data( 'Points earned when you post content on forums', 1);	
    	$promo_field3 = xprofile_get_field_data( 'Points earned when you complete registration', 1);	
    
    	xprofile_set_field_data( 'Earn a percentage of credits received by referrals', $user_id, 100 );
    	xprofile_set_field_data( 'Points earned when you post content on forums', $user_id, 200 );
    	xprofile_set_field_data( 'Points earned when you complete registration', $user_id, 300 );
    	
    }
    
    add_action( 'bb_user_login', 'action_bb_user_login', 10, 1 ); 
    
    in reply to: mycred plugin issues #174443
     psmorrow
    Participant

    Thanks!
    Mycred documenation was out of date. The request array no longer uses the amount key; instead it uses “charge” and “payout”. Posting my new code for anyone else who might trip over this:

    COPY CODE
    add_action( 'mycred_transfer_completed', 'add_bonus_points', 10, 2 );
    function add_bonus_points( $transfer_id, $request ) {
     
        // Amount charged
        $transfer_amt = $request['charge'];
     
        // Amount actually transferred
        $transfer_amt = $request['payout'];
     
        // Senders ID
        $sender = $request['sender_id'];
     
        // Recipients ID
        $recipient = $request['recipient_id'];
     
        // Point Type
        $point_type = $request['point_type'];
     
        mycred_add( 'Transfer Bonus', 3, $transfer_amt, 'Bonus');
       
        return;
    }
    in reply to: member search results #169771
     psmorrow
    Participant

    Marking as resolved:

    COPY CODE
    
    add_action( 'bp_directory_members_item', 'my_directory' );
    
Viewing 6 posts - 1 through 6 (of 6 total)

Log in with your credentials

Forgot your details?