donmik
Forum Replies Created
-
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Description layoutUnfortunately, I can’t do anything here. My plugin can only display the field, but where the description of the field is displayed is buddypress responsibility or your theme. You can change the location of description editing your theme files. Look for /your-theme/members/profile/edit.php.
I’m afraid you can only put description above visibility settings. If you want to put under the title of the field you need to do more changes in my plugin surely or do it with css…
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] TagsHi,
You can create a list of checkboxes, a multi select box or use my field’s type: Custom Post Type Multiselector. In the first two cases, you need to write all possible tags when you create the field. In the last cases, you need to create a custom post type and create tags as posts. Then you select this custom post type you created and users should be able to pick the tags they want.
Is some of those solutions useful for you?
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Field "Telephone number"I’m not sure this is what you want but if you want to show a field like this:
Phone: + | _ _ | | _ _ _ | | _ _ _ _ _ |
So, a “+”, 2 digits, 3 digits and then 5 digits? If you want to do this, you can use a textbox and with javascript do something like this:
<script> var field_1 = '', field_2 = '', field_3 = ''; // Check if the field is not empty. if (jQuery('#field_15').val() != '') { // Writing the value of field in vars. field_1 = (jQuery('#field_15').val()).substring(1,3); field_2 = (jQuery('#field_15').val()).substring(3,6); field_3 = (jQuery('#field_15').val()).substring(6,11); } // We hide the original field and append 3 dynamic fields we create on the fly with the // values we pick up above. jQuery('#field_15').hide() .parent().append('+ <input type="text" name="field_15_1" id="field_15_1" class="auxfield" maxlength="2" size="5" value="'+field_1+'" /> <input type="text" name="field_15_2" id="field_15_2" class="auxfield" maxlength="3" size="10" value="'+field_2+'" /> <input type="text" name="field_15_3" id="field_15_3" class="auxfield" maxlength="5" size="15" value="'+field_3+'" />'); // We save the values of fields in the original field every time we write a number. jQuery('.auxfield').keyup(function() { jQuery('#field_15').val('+'+jQuery('#field_15_1').val()+jQuery('#field_15_2').val()+jQuery('#field_15_3').val()); }); </script>Tell me if this helps or not.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Field "Telephone number"Hi,
I’m not sure you’re aware that my plugin only adds new field’s types to xprofile module of buddypress. I’m saying this because reading your final request, I don’t think this request can be satisfied by my plugin… The core of xprofile is from Buddypress.
To do this, I think you can use javascript to format the fields with the same layout maybe.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] add custom field typeIf you want to do this, you will need to change my code but I’m not saying you to do this.
I’m saying you need to use xprofile basics you don’t need my plugin to achieve what you want….
And new version released with your filter. I called it “bxcft_show_download_file_link”.
Get in touch if you need help.
Thanks!!!
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Limit uploaded file size and scaleFor now there is no way to do this. If you need now, you will need to modify my plugin, the function “bxcft_updated_profile” is responsible of uploading the image. There you can find the image size and returning an error if you want.
Anyway, I take a note of this request, and I think about it for future releases…
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] add custom field typeHi,
Maybe you can do this, creating a field with textbox and here you can save the rating in number. To display the rating visually as star image, if I were in your case, I will code it with javacsript and updating the field with javascript.
There is no way you can do it this with my plugin and I don’t think you will need it because textbox type field is from buddypress not from my plugin.
Hope this helps a bit…
Hi,
There is no limit made by my plugin, but I don’t know if buddypress have a filter for this. Maybe you can ask in their forums.
Sorry I can’t help you much.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Show empty fieldsHi,
Sorry for the delay. I think this post will help you.
You can do this in the profile-loop, doing this:
<?php if ( bp_has_profile(array('hide_empty_fields' => 0)) ) : ?>It will show all your fields even if they are empty.
You need also to delete the if you commented
<?php if ( bp_field_has_data() ) : ?>In the next release I will add this. Thanks!
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Some issuesHi,
Sorry but I have no idea. Check your theme files and look for the hooks or see if the hook is placed above the code of visibility. You need to check your theme files with buddypress default theme because it works great with buddypress default theme.
Hi,
Sorry for the delay. The two functions will return the “same thing” but apply different filters on it.
The first “bp_get_member_profile_data” applies “bp_get_member_profile_data” filter and sends only one argument that is the value: “1983-07-24 00:00:00”. So in my plugin I need to know what field is and with this data I can’t guess what field it is and I can’t decide to return the age or the birthdate. This is why I don’t use this filter and you can’t use this function to return values from fields created with my plugin.
In the second function “xprofile_get_field_data”, it applies a filter “xprofile_get_field_data” who sends the value and the id of the field. With this data, I can look what field is and know if you want to display age or only birthdate.
I hope I explained correctly.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Age not formatted rightHi,
Sorry for the delay. If you delete the “<p>” tag in this code, I think it will work. The rest of fields should stay the same.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Use HTML / class in Checkbox field?Hi,
I was looking for a thread in support forum, because I remember I talk about this with someone before but I don’t find the thread.
Buddypress has a filter that is filtering your code, so you can’t put this code. Yes, I know, it sucks…xD.
If you remove this filter, maybe you can write your code.