donmik
Forum Replies Created
-
Try this:
jQuery('p.description').each(function() { // Clone description. // Looking for parent div. // Looking for label of checkbox field or radio field first. var desc = jQuery(this).clone(), parent = jQuery(this).parent(), label = parent.find('span.label'); // If there is no label of checkbox field or radio field, we look for normal labels. if (!label.length) { label = parent.find('label:first'); } // If there is a label. if (label.length) { // Putting the description after the label. label.after(desc); // Removing the original description. jQuery(this).remove(); } });I’ve changed this line
label = parent.find(‘label:first’);
This will take only the first label instead of all labels.You can add javascript at the bottom of file, no problem.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] profile field links not workingOk. Solved in version 2.0.3, please update.
Hi,
Put the javascript in edit.php or where you need it. I can’t see it in html code. I revised edit profile form and other group fields. It should work so maybe it’s a javascript error.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Image field – no upload option!Check the template of buddypress and your template. edit.php and register.php should be different probably.
Have you read the changelog before updating? I recommend you start reading changelog before update plugins to avoid this type of problems…
The checkbox acceptance since v2.0 needs you to fill the textarea with the text you want. Before v2.0 I was using description field, now I use this new textarea field.
If the field doesn’t show, maybe it’s because your theme is not updated with the latest features of buddypress 2.0.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Fields not showing upI can’t help you with a premium theme, sorry. If you change to buddypress default theme, the file should work like it works in my test site, so probably your theme miss something new in buddypress 2.0.
You should do it inside single.php inside the loop of posts.
XXX is the name or ID of the custom field you want to filter.
YYY is the value of this custom field you want to filter.I don’t know what you want to do. If you want to hide the link of post, you should do this and instead “display post” print the link. But if you want to hide the post, you have to do it in single.php and redirect user to homepage for example if he doesn’t have the value you need… It depends what you need to do.
You can check it inside the template responsible of display the post. Something like this:
if (xprofile_get_field_data('XXX', bp_loggedin_user_id() === 'YYY'): display post else: don't display post endif;Replace “XXX” with the name or ID of your field. Replace “YYY” with the value you want.
The solution I put in the FAQ is very dependent of html code, so probably the other groups of fields are different. Send me a link yo see it and I try to check it when I have time if you want.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] profile field links not workingSend me a screenshot or a link to see it or explain a bit more? What links have you lost?
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Image field – no upload option!I believe it’s a theme issue, check your theme files with buddypress theme.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] checkbox aceptance field doesnt workHi,
If you read my changelog… I’ve written this:
2.0
UPDATE CAREFULLY !!! Completely rewritten using new features of Buddypress 2.0. Maybe something from previous versions stop working in 2.0.
This version should work ONLY with Buddypress 2.0 or later.
Checkbox Acceptance: I’ve added a field where you can write the text of this field. You can also add links to the text. You should not use the description field like previous releases.
Filter “bxcft_field_input” has been removed for all types except image and file. You can use Buddypress filter “bp_xprofile_field_edit_html_elements” to add properties.In version 2.0, I completely rewritten the plugin and I’m using the new features introduced with buddypress 2.0. If your theme is not updated, it should not work, so you have to update your theme or compare your theme files with buddypress template files to see what you are missing. If you use buddypress default theme it’s working so it’s a theme issue I think.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Fields not showing upThe plugin works perfectly if you use a theme updated. So talk with your theme support and ask them for help… If they can’t provide you support, you need to think about changing your theme or not use this plugin. Sorry.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Fields not showing upI don’t believe it’s only a line of code, if you compare the file edit.php original from buddypress and your file you should see more than one line different I think. The problem is on php code, you don’t need to care about html.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Fields not showing upHi,
Sorry, the FAQ is not updated yet, I will try to do ASAP. You need to check your template with the files of buddypress buddypress/bp-templates/bp-legacy/buddypress/…