-
GRAQ posted on the forum topic Creating large dropdowns in profile admin in the group How-To and Troubleshooting: 13 years, 7 months ago
It has indeed worked a treat. Seems very possible for someone to extend this into a csv-style upload (as there once was, by the looks of my searching).
I am vaguely interested in how ‘uploading a spreadsheet into a database’ works 🙂
-
GRAQ posted on the forum topic X Profile Field Drop Downs do not work (not selected) in Edit Profile page. in the group How-To and Troubleshooting: 13 years, 7 months ago
This does mean, however, that (as the search is in a side bar widget), those values a preselected in the search on the profile page.
-
GRAQ posted on the forum topic X Profile Field Drop Downs do not work (not selected) in Edit Profile page. in the group How-To and Troubleshooting: 13 years, 7 months ago
Just for now, I have edited bp-profile-search bps_field_options filter function, adding:
if( is_user_logged_in() )
if( bp_is_home() )
return $html; -
GRAQ posted on the forum topic X Profile Field Drop Downs do not work (not selected) in Edit Profile page. in the group How-To and Troubleshooting: 13 years, 7 months ago
Looking through the code it appears to be the bp-profile-search plugin that causes a conflict. profile/edit.php –
$html .= apply_filters( 'bp_get_the_profile_field_options_select', ' name ) ) . '">' . stripslashes( esc_attr( $options->name ) ) . ' ', $options );
bps-functions.php ` add_filter (‘bp_get_the_profile_field_options_select’,…[Read more] -
GRAQ posted on the forum topic X Profile Field Drop Downs do not work (not selected) in Edit Profile page. in the group How-To and Troubleshooting: 13 years, 7 months ago
Running WP 3.1 BP 1.2.8
Have installed a search plugin where the drop downs are working. -
GRAQ started the forum topic [RESOLVED(ish)] Update avatar automagically in the group How-To and Troubleshooting: 13 years, 7 months ago
I am trying to fetch a file from an external resource and set it as a user’s avatar.
I’m using cURL to fetch the image. I have looked through bp_core_avatar_handle_upload() but this is geared towards a form post from the user’s hdd. Is there a way that I can do this? -
GRAQ posted on the forum topic Update avatar automagically in the group How-To and Troubleshooting: 13 years, 7 months ago
@r-a-y I decided to munge in the external image file (continued in another topic)
https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/load-external-file-as-avatar -
GRAQ started the forum topic X Profile Field Drop Downs do not work (not selected) in Edit Profile page. in the group How-To and Troubleshooting: 13 years, 7 months ago
I have some drop down fields. When a user goes to edit them, the data is saved correctly. However, when they revisit the edit profile tab, none of the drop downs show as selected. Is this a bug? Or have I broken something?
-
GRAQ posted on the forum topic Creating large dropdowns in profile admin in the group How-To and Troubleshooting: 13 years, 7 months ago
@ultimateuser Do you mean write values directly into bp_xprofile_fields ? I wrote some dirty SQL to do just that. ` $insertsql = $wpdb->prepare(“INSERT INTO {$tablename} (group_id, parent_id, type, name, description, is_required, order_by, field_order, is_default_option, option_order ) VALUES (%d, %d, %s, %s, %s, %d, %s, %d, %d, %d )”, $group_id,…[Read more]
-
GRAQ started the forum topic Creating large dropdowns in profile admin in the group How-To and Troubleshooting: 13 years, 7 months ago
It’s a big manual job to create drop downs for countries, zip codes, towns, postcodes (and so on). I have a spreadsheet/table with all the values in that I want to add to the dropdown option. Can anyone point me in the right direction for the admin functions I could call to do this programmatically? […]
-
GRAQ posted on the forum topic Load external file as avatar in the group How-To and Troubleshooting: 13 years, 7 months ago
Super, so I’m now pulling it in with imagecreatefromjpeg(‘http://…’); and saving it with imagejpeg().
Anyway to auto crop to get the images into a nice square shape? -
GRAQ posted on the forum topic Load external file as avatar in the group How-To and Troubleshooting: 13 years, 7 months ago
The files are not loaded into the media library, but stored in wp-content/uploads/avatars/USER_ID/-
I can do that. Is there a way I can make BP create the various sizes? -
GRAQ started the forum topic Load external file as avatar in the group How-To and Troubleshooting: 13 years, 7 months ago
Is there a way to load a file from an external site (cURL?) and assign that as a member’s avatar? There must be other ways to do than just manually via the avatar edit form page?
-
GRAQ posted on the forum topic Update avatar automagically in the group How-To and Troubleshooting: 13 years, 7 months ago
Tanks ray. That sets a default across the board. There is no way to point to individually sourced external images.
-
GRAQ started the forum topic Stop ’small carousel’ members list on profile page displaying ’friends only’ in the group How-To and Troubleshooting: 13 years, 7 months ago
A fairly normal page loop in the header might do something like:
bp_has_members("type=random&per_page=12&max=12&user_id=false")
Looking through the code, the small carousel of members ultimately callsbp_has_members()
inplugins/buddypress/bp-core/bp-core-templatetags.php
This over rides any user_id arguments with this line:if ( !empty(…
[Read more] -
GRAQ joined the group How-To and Troubleshooting 13 years, 7 months ago
-
GRAQ started the forum topic Put Profile Field (Groups) in Member Home Nav and Search Results as Search Links in the group How-To and Troubleshooting: 13 years, 11 months ago
I would like add 2 new profile fields (either in Base or as a new Field Groups, doesn’t matter). I’d like these fields to be displayed in the member profile pages and search results so they can be searched on directly. E.G. Dave has noted himself as a ‘Plumber’ in the profile field ‘Profession’. Search […]
-
GRAQ started the forum topic Installing on WPMU 2.9.1 in the group Installing BuddyPress: 14 years ago
Hi I have been tasked with installing BuddyPress on a WordPress MU 2.9.1 site. It has many custom plugins built for it that are making upgrading to WP3 an unlikely event at this stage. Can someone point me in the right direction to get a version of BP that will work with a MU 2.9.1 […]
@graq
Not recently active