Search Results for 'profile fields'
-
AuthorSearch Results
-
February 26, 2018 at 9:27 pm #271054
In reply to: add link to Skype account to user profile
David Cavins
KeymasterBoone wrote something that might be helpful: https://github.com/boonebgorges/bp-social-media-profiles/
It automatically converts some social site links in extended profile fields into the right kind of link.
February 26, 2018 at 9:24 pm #271053In reply to: Set textfield max characters
David Cavins
KeymasterThat depends on where you’re using it. You could use a
bp_signup_validatefilter to check that a username has certain characteristics. But for profile fields or other places, you’d have to enforce it some other way.Here’s an example of how you might disalloe long usernames:
add_action('bp_signup_validate', function() { if ( isset( $_POST[ 'signup_username' ] ) && strlen( $_POST[ 'signup_username' ] ) > 60 ) { $bp = buddypress(); $bp->signup->errors['signup_username'] = 'Geez, your username is really long.'; } } );February 23, 2018 at 7:37 am #270989In reply to: Group user list doesn’t work correctly
redbananasander
ParticipantHmm… Maybe this is normal funcition from buddypress? I have 24 active plug-ins:
– ACF Accordion
– Advanced Custom Fields PRO
– Advanced Custom Fields: Font Awesome
– Advanced Custom Fields: Gravity Forms Field
– Black Studio TinyMCE Widget
– BuddyPress
– BuddyPress Activity Plus
– BuddyPress Admin Only Profile Fields
– BuddyPress Edit Activity
– BuddyPress Global Search
– Colsensation Addons (own plugin)
– Custom Post Type UI
– Export User Data
– Gravity Forms
– Gravity Forms (nl)
– Gravity Forms User Registration Add-On
– GravityView – Gravity Forms Import Entries
– Invite Anyone
– Members Import
– Pronamic Pay
– Warpdrive
– WP Pusher
– WP Sync DB
– Yoast SEOThat’s all đ
February 23, 2018 at 1:08 am #270988amandafrench
ParticipantNever mind! I’ve found a fabulous solution that has gotten me out of SQL query hell. Again, if anyone else is trying to sort a Members Directory, here’s what I did:
1) Put it in a table, not a list (I had done this anyway, since I wanted a single-page directory that displayed xprofile fields horizontally) — make sure it has a <th> table header row;
2) Install the plugin Table Sorter https://wordpress.org/plugins/table-sorter/ and add the class “tablesorter” to the table.Et voilĂ ! I commented out the sort type dropdown in members/index.php starting with
<div class="item-list-tabs" id="subnav" aria-label="<?php esc_attr_e( 'Members directory secondary navigation', 'buddypress' ); ?>" role="navigation">
all the way through<?php /** * Fires inside the members directory member order options. * * @since 1.2.0 */ do_action( 'bp_members_directory_order_options' ); ?> </select> </li> </ul> </div>and I made sure that the default single page list showed all users alphabetically by default in members-loop.php
<?php if ( bp_get_current_member_type() ) : ?> <p class="current-member-type"><?php bp_current_member_type_message() ?></p> <?php endif; ?> <?php if ( bp_has_members( bp_ajax_querystring( 'members' ) . '&per_page=500' . '&exclude=1,2,3,4,6' . '&type=alphabetical') ) : ?>And then all I had to do was add that tablesorter class to the table as required by the tablesorter plugin, and I got a nice dynamic table with sortable columns, which can also be sorted by multiple criteria by holding down the Shift key on the second column. I set the initial sort order with parameters that select the column by number, as described at http://tablesorter.com/docs/example-option-sort-list.html and elsewhere.
<table id="members-list" class="tablesorter {sortlist:[[4,0], [3,0], [2,0], [1,0], [0,0]]}" aria-live="assertive" aria-relevant="all">Yay.
February 22, 2018 at 7:08 pm #270982amandafrench
ParticipantI guess I’m never satisfied, but I do have an additional request / problem, if someone can help (cough @boonebgorges?). Our xprofile fields are geographical: City, State, Country. I’d like to do a sequential sort on them on the Members directory: first ASC by Country (which I’ve now got working, finally, thanks to this post), then second ASC by State, third ASC by City. I’ve mucked around with SQL statements and ORDER BY FIELD and CASE IF THEN, but I can’t get those subsequent sorts to work.
xprofile field_id values: 1 = Name, 8 = Org, 9 = City, 10 = State, 11 = Country
Members loop code:
<?php if ( bp_has_members( bp_ajax_querystring( 'members' ) . '&per_page=500' . '&populate_extras&type=alphabetical' . '&exclude=1,2,3,4,6') ) : ?>Below code in functions.php works – it sorts members by Country ASC
custom_ids = $wpdb->get_col("SELECT user_id FROM {$wpdb->prefix}bp_xprofile_data WHERE field_id = 11 ORDER BY value ASC");Below code in functions.php doesn’t work to sort by Country, State, City ASC – returns an unsorted members list. I think it’s sorting randomly. It isn’t by user id, username, last active, or newest registered. When I apply the default member type sorts, though, with the members-order-select dropdown, that works.
$custom_ids = $wpdb->get_col("SELECT user_id FROM {$wpdb->prefix}bp_xprofile_data WHERE field_id IN ('1', '8', '9', '10', '11') ORDER BY FIELD (field_id, '11', '10', '9', '8', '1')");Any advice for constructing that SQL query? Do I need to look more into bp_parse_args?
February 17, 2018 at 6:25 pm #270837In reply to: Registration for Users with Buddypress
Venutius
ModeratorYep BuddyPress has it’s own registration page, it ususally automatically creates it – register though in reality buddypress does not use this pages content and just uses the pages slug as an anchor. You can go to Dashboard>>Users>>Profile Fields to add additional profile fields to the register page, you just add them to the Main field group. These are added to the right side of the registration page in the same order as viewed in the main profile group page.
February 16, 2018 at 8:04 pm #270815In reply to: Select box value pairs
Venutius
ModeratorI don’t think they work that way, I also looked at BuddyPress Xprofile Custom Fields but that did not allow for that, just a single field to enter the value. You might want to suggest it as a feature request on BuddyPress Trac:
February 13, 2018 at 7:43 pm #270785In reply to: Custom Profile Filters for BuddyPress question
sasenzon
ParticipantThe site is members only so I can’t do that but the url basically saYs:
https://members.institutechiro.com/members/?s=ShermanNow if I click on a field in the profile that is mandatory then the search function works. But this plugin was supposed to turn all fields in the profile to searchable. Thanks.
February 13, 2018 at 3:20 pm #270776yspeo
ParticipantI found it. Thank you. But when I go to Profile>>Edit, there used to be a group just the same as Setting >> General with field that would allow me to change my password. I deleted that group. How can I get the change password fields back under Profile>>Edit?
February 12, 2018 at 6:16 pm #270756In reply to: Create profile fields & groups field with a plugin
Varun Dubey
Participant@tom-corvus You can check codes at
https://plugins.svn.wordpress.org/bp-default-data/tags/1.2.0/process.php with function name bpdd_import_users_profile()
BP Default data plugin have created some fields and field group for BuddyPress.February 12, 2018 at 9:17 am #270744In reply to: How do i get all the xprofile data from only userid?
virajsonagra
ParticipantI am running following plugins in my site.
1. BuddyPress
2. BuddyPress cover
3. BuddyPress NoCaptcha Register Box
4. Buddypress Xprofile Custom Fields Type
5. BuddyPress xProfile Rich Text FieldWordpress version 4.5.1
February 9, 2018 at 10:42 am #270706In reply to: WordPress to BuddyPress profile sync
Henry Wright
ModeratorUnfortunately, the fields are synchronized only when the profile is updated. I do not know how to start mass synchronization
This is likely because you’re hooking to a hook fired at profile update. You’ll need to hook your code to something that gets fired at another point in time.
February 8, 2018 at 1:04 pm #270675Tom Corvus
ParticipantHi,
I develop a plugin based on ACF Pro & BuddyPress. I would like to know if I can create profile fields and group fields with function or method?
Like ACF Pro (acf_add_local_field_group), when the admin activate the plugin, I check if BuddyPress & ACF Pro are installed and activated. Then I create post types, ACF, and I would like to add Xprofile fields on the main profile tab and add a group fields with some fields inside.
How can I do this?
Thanks for your help.
Tom
January 29, 2018 at 6:14 pm #270408In reply to: Profile Links – Removing http/https
David Cavins
KeymasterHi there. If I’m understanding correctly, you’re wanting to modify URLs added to profile fields by your users. The profile fields are analyzed for search links and other links here:
https://buddypress.trac.wordpress.org/browser/tags/2.9.3/src/bp-xprofile/bp-xprofile-filters.php#L326BP uses the WP function
make_clickable()to make links clickable. It doesn’t look like that function is filterable at the moment (there’s a ticket: https://core.trac.wordpress.org/ticket/32787). I guess you could do something using the filter offered on the forum link you reference, but I’m not sure how you’d know which kind of links to modify (it’s not clear from your question what the goal is).January 24, 2018 at 6:10 pm #270290In reply to: IMPORT / EXPORT BUDDYPRESS DATA
Manish Kumar Agarwal
Participant@Onlineplaner BMI/BME plugin can import/export xprofilegroups and xprofilefields.
January 24, 2018 at 10:38 am #270282In reply to: IMPORT / EXPORT BUDDYPRESS DATA
radair2002
Participant@manishkrag: Hi, do your plugins ex-/import xprofilegroups and xprofilefields or just the standard user fields?
January 16, 2018 at 10:39 am #270131In reply to: Can’t import user’s birthday from CSV
leog371
ParticipantHmmmmm, well it simply sounds like the rows and columns might not be lining up exactly. Not sure.
I have worked out many city meta data files the same way for the purpose of importing into WordPress and faced similar issues, it almost always came down to some columns or rows not exactly the same or something like that. I would do an export of your wordpress first and compare the files, if that didn’t get me any closer i might go into php-myadmin in my cpanel and export a copy of the database portion that has all of your users info and compare that to your .net export. I think that table is going to be one of the following : Either “wp_bp_xprofile_fields” or “wp_users”. Maybe if you compare those with your .net export and work them the same in excel it will be easier?
Not really sure without seeing the files your working with.
I will do a tutorial on that within the next day or so, lol.January 11, 2018 at 12:56 pm #270053Peter Hardy-vanDoorn
ParticipantEdit each of the profile fields in turn and change the Visibility setting to Enforce field visibility.
December 30, 2017 at 8:56 am #269844leog371
ParticipantHey Frank, I guess the best question to ask you after all this is how comfortable are you with digging into or working with html, css and basic php?
If a pre made theme is what your looking for, how comfortable are you with taking hours and days looking thru theme demos to find your golden pony or at least making child themes or customizing code?
And then to answer you more specifically to your “How long would it take to develop a theme like the one I described?” , I guess that just depends really. Over the years I have accumulated many libraries of code and theme snippets and I know where everything is in WP/BP core and template files. So for me, A fully custom and dressed out theme might take anywhere from 3 days to 3 weeks if I know exactly what I am working towards at the beginning and have a clear, though out, planned out idea. If I hen peck it or free hand it” like I do from time to time” It may take a day or it might take 8 months, lol.
As a bit of comfort to your quandary, everything you asked for in your opening inquiry is all ready done for you in BuddyPress “for the most part”. A theme like the one you describe sounds like a 3 day to 1 week job to me. Keep in mind however that with me saying that, things always have a way changing and evolving into monsters, lol.
So lets break down your theme and see how it look on paper…. He He, my favorite part…
1. I want users to come to my site, register, and log in…… (Its all ready there) just have to set it up to your liking. It can all be customized quite a bit as well.
2. I would love to be able to customize the way these pages look!(background image, logo, and content inside them)……… (The logo, background and most of the design items are easy breezy as long as your ok with basic html and css and not looking for flying dragons and wizards shooting lightning bolts across the screen. Alas, even those can be done with css, flash and JS, lol. )
3. Iâm not looking for a full-blown social media site (yet)…….No need to have what you dont want to use. BP has a full host of controls to limit what can be done onsite by users or what is implemented frontend in its settings. WP Dash/settings/buddypress. Select what you want to use. You also have the ability to write functions, and use hooks and actions and filters to limit or build on anything you like.
4. I want to build a site that where users can log in, create a âblogâ excerpt with media …… There are several ways to do this in buddypress, just have to plan it out and test the methods and see what works for you. Mu, Activity and Groups/Forums.
5. They should also be able to put a location tag on it. ….. it sounds like this is what x-profile fields are good for. Just create your custom location field and add it with a template tag in the loop you want to use it in. They fill out the filed on their profile page and it will display in that loop.
6. When they post it, the only people I want to see that are the people they added as friends or if they have their profile set to public……BuddyPress frontend “user profile area” has a settings tab, under it are quite a few privacy features, not fully comprehensive in my opinion but there are a few plugins that add on to this and you can code it in as well. either way. Easy task.
7. And when it shows up on their friendâs news feed it should just show a featured image, title, and the beginning of their text with a like counter….. Easy enough, just write the loop that way, lol. Easy to do.
8. When their friends click on that post it brings them to the full blog post, not just the featured image. Their friends can favorite the content or comment on it. …..The natural behavior of WP and BP posts so we are good there.
9. On a users profile, I would like to show their recent posts, and posts theyâve favorited…. Thats what the friends tab shows but you can add custom queries, and stuff and otherwise tear it apart and pick it of the pieces you want and use them in other places to make custom loops and queries and all kinds of goodness, lol. As long as you make sure things are firing in the right places and make sure certain things are in the loops where they belong, No worries.
10. Site homepage is basically just a file called front-page.php. Copy the page.php from the theme root and then customize the heck out it. Work it up however you like.
As far as the themes go, I never use premade themes. I do however make full use of the libraries of code I have accumulated, (_s) and bootstrap for a lot of my work. Cheesy I know but hey, it saves me time and money and gives me freedom. I rarely find the need to actually make a complete custom theme or write much in the way of custom code from scratch anymore. And I certainly never purchase any themes. So I am not the best person to ask about themes really. I know that there are tons of themes that do all kinds of stuff available around the web. Just have to give them the litmus test and see if they fit your project.
Let me know if you have any other questions or what have you. I will be around.
December 25, 2017 at 4:50 pm #269755melhergui
ParticipantHi @edvard1 it’s not your theme. The plugin is broken since BP 2.9.1.
I was having problems with multiple checkboxes and made it work like this:
File: /conditional-profile-fields-for-buddypress/assets/bp-conditional-field.js
line 114: jQuery.each( $selected, function (index, $el ) { to: jQuery.each( [$selected], function (index, $el ) {And…
lines 350 to 369:
var parent_div = jq( jq( element ).parents( '.editfield' ).get(0) ); //;find its parent having class edit field if ( !match ) { //if the condition did not match, reverse visibility condition if ( visibility == 'show' ) { visibility = 'hide'; } else { visibility = 'show'; } } if ( !visible ) { parent_div.show(); } else { parent_div.hide(); }To:
var parent_div = jq( jq( element ).parents( '.editfield' ).get(0) ); visible = jq(parent_div).is(':visible'); //;find its parent having class edit field if ( match ) { //if the condition did not match, reverse visibility condition if ( !visible ) { parent_div.show(); } else { parent_div.hide(); } }Hope it helps!
December 17, 2017 at 2:27 pm #269613Topic: WordPress to BuddyPress profile sync
in forum How-to & Troubleshootingkrioteh
ParticipantIn BuddyPress there is a built-in mechanism for synchronizing profile fields from WordPress.
By default, it synchronizes only the “display_name” field, which is not always sufficient.
Here is an example of the code by which you can synchronize any available fields in the WordPress field with the Buddypress fieldsfunction xprofile_sync_bp_profile2( &$errors, $update, &$user ) { // Bail if profile syncing is disabled. if ( bp_disable_profile_sync() || ! $update || $errors->get_error_codes() ) { return; } // Querying data from a table "usermeta", first we get the value of the custom field "address" and substitute this value for the "Address" field of the xprofile BuddyPress $address = get_user_meta( $user->ID, 'address', 'true' ); xprofile_set_field_data( 'Address', $user->ID, $address ); //Similarly with other fields $firstname = get_user_meta( $user->ID, 'first_name', 'true' ); xprofile_set_field_data( 'Name', $user->ID, $firstname ); $lastname = get_user_meta( $user->ID, 'last_name', 'true' ); xprofile_set_field_data( 'Lastname', $user->ID, $lastname ); $description = get_user_meta( $user->ID, 'description', 'true' ); xprofile_set_field_data( 'Bio', $user->ID, $description ); // Querying data from a table "user" xprofile_set_field_data( 'E-mail', $user->ID, $user->user_email ); xprofile_set_field_data( 'Site', $user->ID, $user->user_url ); } add_action( 'user_profile_update_errors', 'xprofile_sync_bp_profile2', 10, 3 );Unfortunately, the fields are synchronized only when the profile is updated. I do not know how to start mass synchronization đ
I hope someone will find this information useful.
December 14, 2017 at 3:29 pm #269568In reply to: Creating custom registration page, moving elements
David Cavins
KeymasterHi there,
Here’s an example of adding a custom section to the registration form. All you have to do if it’s static is add it and handle the input:
https://gist.github.com/dcavins/e3e6a702e35d4f9ec8948c920d8b6c03You could similarly add other profile fields/field groups on any of the hooks available on the registration page, though I’d use a profile field group loop to output those items.
December 12, 2017 at 6:01 pm #269539In reply to: Showing groups, filter users
David Cavins
KeymasterHi Marc-
It sounds like you’re just getting started. Custom fields are part of the extended profile component. Read more about it here:
It is not really possible to show groups with any richness outside of the group page. Your best bet is probably to customize your group templates to show what you want. The template hierarchy will help you:
An all-user overview with search and filtering is the members directory available at yoursite.com/members
December 4, 2017 at 11:12 pm #269412In reply to: Custom BuddyPress email not always sending
bcanr2d2
ParticipantI am using WP Mail SMTP to get the mail to send without issues. But it seems to affect this particular email only, I am getting everything else as far as I am aware.
Here are my current active plugins – There is quite a long list.
I do use Autoptimize, so not sure if it’s affecting anything.
One of note, is Social Login, which when logging directs to their site, and redirects back to my site to log the user in via their social network, this is where it falls over and does not send this one email. It manages to send other emails related to the login, but it now gives me an idea to look into the code that sends this social email sign up notification.(BuddyDev) BP Auto Login on Activation (1.0.3)
Advanced Custom Fields (4.4.11)
Allow Multiple Accounts (3.0.4)
Autoptimize (2.2.2)
BP Profile Message UX Free (1.5)
BP xProfile Location (1.2)
BP XProfile WordPress User Sync (0.6.4)
BuddyDev Username Availability Checker (1.1.1)
BuddyExtender (1.0.1)
BuddyPress (2.7.4)
BuddyPress Member Type Generator (1.0.3)
BuddyPress Security Check (2.1.2)
BuddyPress Simple Terms And Conditions (1.3)
BuddyPress Xprofile Custom Fields Type (2.6.3)
BuddyPress Xprofile Member Type Field (1.0.4)
BuddyPress XProfile Validate with RegEx (0.1.2)
Cherry Parallax Plugin (1.1.0)
Cherry Plugin (1.2.8.1)
Child Theme Configurator (2.1.2)
Conditional Profile Fields for BuddyPress (1.1.9)
Contact Form 7 (4.6)
Contact Form 7 – Dynamic Text Extension (2.0.1)
Contact Form 7 Conditional Fields (1.0)
Contact Form 7 Get and Show Parameter from URL (0.9.7)
Contact Form 7 Honeypot (1.10)
Contact Form 7 Modules: Hidden Fields (2.0)
Contact Form 7 Shortcode Enabler (1.1)
Custom Hooks (1.0)
Custom Post Template By Templatic (1.0)
Custom Post Type UI (1.4.3)
Disable Comments (1.6)
Display Posts Shortcode (2.7.0)
FacetWP (2.7.4)
FacetWP – Map (1.0.5)
Flamingo (1.5)
GeoIP Detection (2.7.0)
GEO my WP (2.7)
Google Analytics Dashboard for WP (4.9.6.2)
List Plugins (1.4.4)
Meta Slider (3.4)
Optimize Database after Deleting Revisions (4.2.1)
Page-list (5.1)
PHP Compatibility Checker (1.4.0)
Popup Maker (1.4.20)
Shortcodes in Menus (3.2)
Social Login (5.2)
Stream (3.2.0)
String Locator (2.2.0)
Sucuri Security – Auditing, Malware Scanner and Hardening (1.8.3)
SuitePlugins – Advanced XProfile Fields for BuddyPress (1.0.3)
Theme Check (20160523.1)
Visual Builder for Contact Form 7 (2.0)
WPFront User Role Editor (2.13)
WP Mail SMTP (0.11.1)
WP Private Content Plus (1.13.1)
WP Smush (2.6.1)
Yoast SEO (4.3)December 3, 2017 at 10:05 pm #269398In reply to: Buddypress registration form and profile fields
Henry Wright
ModeratorIf I understand properly, you need conditional profile fields. Try BuddyDev’s Conditional Profile Fields for BuddyPress.
-
AuthorSearch Results