Forum Replies Created
Viewing 6 posts - 1 through 6 (of 6 total)
-
Author
-
psmorrowParticipant
This seems to work, thanks!
COPY CODE.wpb-js-composer .vc_tta.vc_general .vc_tta-tab { line-height:1.5; font-size: 2em; }
psmorrowParticipanthere 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; }
psmorrowParticipantAlso note, that this snippet doesn’t work either? Any connection you can think of?
COPY CODEfunction 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 );
psmorrowParticipantThanks!
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 CODEadd_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; }
psmorrowParticipantMarking as resolved:
COPY CODEadd_action( 'bp_directory_members_item', 'my_directory' );
-
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)