Forum Replies Created
-
Author
-
psmorrowParticipant
Thanks for the suggestion. The difficulty I’m having with this approach is that the background area increases due to the additional text. Is it possible to set the background color of the tab area to transparent?
If so, using css, is it possible to add an underline below the icon for the active tab?
Thanks again!
psmorrowParticipantPlease see attached screen shot. I’m interested in adding icon title as shown using css. Is it possible?
Many thanks!
Pete
Attachments:
You must be logged in to view attached files.psmorrowParticipantThis seems to work, thanks!
COPY CODE.wpb-js-composer .vc_tta.vc_general .vc_tta-tab { line-height:1.5; font-size: 2em; }
psmorrowParticipantI’ve cleared local cache and sorry to say the css still does not change the font size of the icon. As shown in attached screenshots.
I am able to edit other page elements with css. Wondering if its a syntax issue?
Any other suggestions?
Attachments:
You must be logged in to view attached files.psmorrowParticipantSOrry to say it doesn’t seem to be working. Is there a setting that disables custom css somewhere that might be preventing css edits?
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; }
psmorrowParticipantHi Radu,
I’m convinced that i’m not able to hook into any login / redirect / authentication WP/BP function. My theory is that its due to installing W3 Total Cache. I think it leaves code behind even when uninstalled.
Quite unfortunate for me that I don’t have a backup prior to installing this plugin 🙁
Would you consider installing this plugin and testing if you encounter any issues?
Cheers!
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 );
psmorrowParticipantHi,
Thanks for the reply. Sorry to say that I didn’t have any luck with:– increasing / decreasing priority (tried many different numbers from 0 to 999)
– removed bp-custom.php from pluglins
– removed all other code from functions.php
– deactivated all plugins except for buddypress
– cleared all cache, and disabled W3 Total CacheI have also verified that no errors are being logged in error_log….
Any other suggestions on what else I can try?
I’ll also experiment with Peters-login-redirect….
Many thanks again for your help with this!
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; }
psmorrowParticipantThanks for the reply. I look forward to this enhancement when it becomes available.
Best Regards,
Peter
psmorrowParticipantMarking as resolved:
COPY CODEadd_action( 'bp_directory_members_item', 'my_directory' );
psmorrowParticipantPlease also note that I’m searching members using the visual composer search form.
Thanks!psmorrowParticipantLooks great. Thanks! Will this change be overwritten with Theme updates? Is there a css option available?
Many thanks again!
-
AuthorPosts