donmik
Forum Replies Created
-
Hi,
The answer options are displayed in upper or lower case, it depends how you write them in the administration. If you want to use css you have to apply this css:
text-transform: lowercase;
or
text-transform: uppercase;Refer to this link.
If you want to make the text bold, just apply a font-weight: bold instruction over the label.
You need to get author id using this code:
$author = get_user_by( 'slug', get_query_var( 'author_name' ) ); echo $author->ID;Then you can use bp_get_profile_field_data or xprofile_get_field_data with the ID of author.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Specific urlIf you know some javascript and regular expressions this should be pretty easy. You need to check the content of the field when the user submits the form.
I don’t have this issue on my test site.
Please give me access to your website and I can see what happens. You can send me an email if you don’t want to make it public.
Thanks!
Is this ticket what you were looking for?
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Remove Birthday fieldYou can modify the registration template of buddypress or your theme, inside the loop used to display the fields. You will need some php code.
The other way is to save this field outside the default group of xprofile fields.
For now, the only way to do this is with javascript and save all data inside one field.
I’m working on a plugin for repeatable fields but I don’t know when I will finish it.
I’ve just sent an email to you and @svenl77. If you need anything please contact me and I’ll try to answer ASAP.
Hi,
First, I’m really sorry about my late answer. I’ve been working on this several days but lately I’m not able to work long enough on it.
I’ve been digging into this and this is what I got. I wrote some javascript to upload files just before the checkout form is sent. Woocommerce checkout.js triggers a handler so gateways can manipulate the checkout. I’m using it to upload my files using ajax to a temporary folder. The problem is images are not being uploaded. I’ve been trying to debug this to see where is the error but I couldn’t find enough time to do it.
I was going to use a hook after checkout is done (I hope woocommerce have some hook, wordpress have one for sign up so I guess we can use anything). Using, this hook I will move the files uploaded from my “tmp” folder to a proper location.
So if you want to follow my work if you think this could be a solution, I will be glad to send you by email, to you or Themekraft or both of you. I made the changes inside “wc4pb-xprofile-checkout.php” because I think this is where it belongs.
You can create a custom filter using bxcft_show_field filter. You can see an example of how using it in my FAQ.
Hi,
Please check this thread.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Any Plans or Phone Field?A better way would be:
/** Phone field clickable */ add_filter( 'bxcft_show_field_value', 'my_show_field_value', 10, 4); function my_show_field_value($value_to_return, $type, $field_id, $value) { if ($field_id == 10 || $field_id == 18) { $value_to_return = sprintf('<a href="tel:%1$s">%1$s</a>', strip_tags($value_to_return)); } return $value_to_return; }|| means OR.
You’re welcome!
Hi,
I have no issues like this in my test site.
What versions of wordpress, buddypress and my plugin are you using?
Have you changed the name of buddypress folder?Thanks!
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Any Plans or Phone Field?Have you tried to use “bxcft_show_field_value” filter?
Create a textbox field for your phone number. Try to put the following code inside your functions.php:
/** Phone field clickable */ add_filter( 'bxcft_show_field_value', 'my_show_field_value', 10, 4); function my_show_field_value($value_to_return, $type, $field_id, $value) { if ($field_id == XXX) { $value_to_return = sprintf('<a href="tel:%1$s">%1$s</a>', strip_tags($value_to_return)); } return $value_to_return; }Replace “XXX” with the id of your phone field.
This should work.
Hi,
I think so. I believe this link will help you.