Search Results for 'profile fields'
-
Search Results
-
I’m not sure what cause the problem but on two sites that use xprofile field (some just use minimal profil field) when some users try to edit and update their profil, nothing happen: no change and no message.
What makes me confuse is that on one site, I can make change as the administrator. On the other, I can’t. both use the lattest version of Buddypress (1.5.5) and I’ve tried to diseable other plugins for conflict, used the default theme and used the same name for the primary field (Name) and primary set of fields (base).Any idea someone?
Hi guys,
I run a growing BP site and would like to introduce more than one type of profile for users.
Users would select whether they want to register as a job seeker or an employer for example.
This would lead to different profile fields on the registration page as well as a different profile page.
I really want to get this built and have a BP developer on standby, but I was wondering if anyone has already had experience with this and wondered if it would be something that people would be interested in introducing to BP core?
Is it on the roadmap at all, or would the team be interested in it being so?
Let me know.
Ross
We need to show certain profile fields outside of the bp_has_profile loop.
It seems, in 1.5, you can’t use xprofile_get_field_data() outside of the profile loop without doing your own unserializing.Inside a bp_profile_group_has_fields() loop, serialized fields are handled correctly.
But on a profile page, outside that loop, they are not recognized as being serialized, therefore they are not unserialized.
Example:
$values = xprofile_get_field_data(97); echo $values; //result: Array var_dump($values); //result: array(3) { [0]=> string(7) "Friends" [1]=> string(19) "Business Networking" [2]=> string(21) "Relationship / Dating" } // is_serialized($values) // result: false //so you have to 'manually' unserialize them $all_values = array(); foreach( (array)$values as $value ) { $all_values[] = $value; } $values_str = implode( ', ', $all_values ); echo "<br>" . $values_str . "<br>"; //result: Friends, Business Networking, Relationship / Dating
I have been trying to get rid of (or greatly eliminate) my spammer problem…have installed these plugins:
Buddypress Humanity
Really Simple Captcha
Si Captcha Anti-Spam
Stop Spammer RegistrationsAnd I’m STILL getting spammers! I do currently have 2 fields on my registration form that are supposed to guard against spam…you can see it at http://www.mommychats.com I THINK I have them configured right…But I am still getting people joining that then message me with garbage like this:
“Hello
I saw your profile today and it was so good to me.u know that i am interested to be a friend first.i also believe that coming to you will be a probability of meeting that very love that has been lacking in my entire life. please i will like you to contact me direct to my e-mail address, (grceamslu@yahoo.com) i dont know the posebility of remaing in forum for long time,i will give you a full introduction of my self with my pictures ok. i will be waiting for your mail to my e-mail adsdress(grceamslu@yahoo.com) as you know
there is no age,race,colour n religion bar when it comes to true love,
cares Grace.”ARGH!!!!!!!!!!!!
Is the problem that these freaks that post this sort of stuff are actual PEOPLE, and not spambots? Is there ANY way to guard against this sort of things? Oh I’m SOOO frustrated! My members are getting this sort of message as well and I don’t want them to leave me in droves because of this!
Any tips? I cannot be the only one dealing with this! Sigh!
Tina
I’m using the BuddyPress Default theme (I don’t know if this would make any difference), and when I was testing out the profiles I noticed that whenever you fill in profile fields, it automatically puts links on the field. When you click the link it automatically searches for all members who have the same field, which is great for some fields, but not for others. For example, I have a biography field where people can put multiple lines in, but it makes no sense for there to be links on the bio.
Sorry, I’m not expressing myself very well here, but have a look at this link and click on the text in the bio section: http://words2us.com/members/george/profile/
So is there a relatively quick and easy way to stop the fields being linked automatically? I’m pretty new to html and css.
Topic: API Request
I would like to request a change that would allow me to create a plugin that expands on the extended profile fields.
Where:
Near the end of thesave()
function in/bp-xprofile/bp-xprofile-classes.php
What:
Change the following line:
do_action_ref_array( 'xprofile_field_after_save', array( &$this ) );
to:
do_action_ref_array( 'xprofile_field_after_save', array( &$this, $field_id ) );
Alternatively, you could set
$this->id = $field_id
after an INSERT. That way the I can still access the ID field without needing to alter the behavior of thexprofile_field_after_save
action.This would allow me to write out a field in my custom table that references the newly saved profile field.
Thank you for your time and the great BuddyPress system!
JosephEDIT: For some reason I can’t reply to my topic (white screen so I am guessing there is a fatal error).
Thanks Paul, I will post there. A multiple insert is not an issue as this function only updates or inserts a single row. Here is the current code:
function save() { global $wpdb, $bp; $this->name = apply_filters( 'xprofile_group_name_before_save', $this->name, $this->id ); $this->description = apply_filters( 'xprofile_group_description_before_save', $this->description, $this->id ); do_action_ref_array( 'xprofile_group_before_save', array( &$this ) ); if ( $this->id ) $sql = $wpdb->prepare( "UPDATE {$bp->profile->table_name_groups} SET name = %s, description = %s WHERE id = %d", $this->name, $this->description, $this->id ); else $sql = $wpdb->prepare( "INSERT INTO {$bp->profile->table_name_groups} (name, description, can_delete) VALUES (%s, %s, 1)", $this->name, $this->description ); if ( is_wp_error( $wpdb->query( $sql ) ) ) return false; do_action_ref_array( 'xprofile_group_after_save', array( &$this ) ); if ( $this->id ) return $this->id; else return $wpdb->insert_id; }
Hey guys,
Right this could be a long shot but here goes…I use the S2 Member plugin to limit access on my website and this changes the way that users sign up – It also has it’s own way of adding new information to the BP Profiles and allows the easy importation of a lot of users at once.
The problem this has posed is that I have a massive field called ‘Business Description’ that I would very much like to be included in the search function within buddypress but as it’s been created by s2Member it currently isn’t.
The information is stored in the wp_usermeta table within wordpress and each row has a user_id, a meta_key which for the values I want to be searchable is ‘wp_s2member_custom_fields’ and then the meta_value is stored in this format:
`a:7:{s:20:”business_description”;s:112:”HERE IS THE BUSINESS DESCRIPTION.”;s:12:”telephone_no”;s:13:”TELEPHONE NUMBER”;s:15:”company_website”;s:0:””;s:9:”address_1″;s:17:”ADDRESS 1″;s:9:”address_2″;s:16:”ADDRESS 2″;s:9:”address_3″;s:9:”Sheffield”;s:8:”postcode”;s:6:”POST CODE”;}`
(I’ve copied this straight from database so the CAPITAL LETTERS are where I’ve omitted sensitive information.)
Right now does anybody now how I can modify the buddypress search function to include this data and provide a link to the correct users profile in the search results?
Many thanks in advance,
LaurieHey I’m in a real rut with a site i’m setting up, I have user info for 1100 users. I need to make a directory for all these users that includes, phone numbers, date of birth, full names etc. And if at all possible a photo album aswell. At the moment I was giong to try and do this via making a buddypress profile for everybody since there will be a discussion board aswell.
As far as I can see it’s not possible to do this via CSV and would have to be done by hand.
Is there any way this could be done with some plugin or any other method than by hand?Thanks alot, really stuck here.
Topic: Buddypress Profile Fields
Hello all,
I started a migration of a community website using buddy press, from two different hosts, everything went well, all profiles transferred all groups etc..
in the admin panel, under buddypress–>profile fields I lost all the fields I entered and I have an error message “You have no groups” not even “Base”
Can anyone tell me how to fix this ?
PS ; I went to the database I made a query and I found all the information, they exist in the database, but the information is not displayed in the admin and in users profiles
Thanks for the help
Radovic
Hi!
I am pretty new to this. I have just installed WP 3.3.1 and BP 1.5.4. Fresh installation. Then I inported data from our old site which was like four years old. (The data from wp_users, wp_usermeta, wp_bp_xprofile_data, wp_bp_xprofile_fields, wp_bp_xprofile_groups).
Now I am having sevral problems, all Buddypress related.
1. New users profiles are empty after registraton.
2. PM sends to sevral users. If I want to send to one user, buddypress sends it to 2-3 others also.
3. When users edit and save their profile, the nickname is replaced with userlogin. This problem was fixed if I changed the name of the field back to “Full name”. But I don’t want it like that.What did I do wrong? I don’t know if these problems was there before I inported data from our old site. I tried searching the forums but I cannot se any solutions to my problem.
Running BP 1.5.4 on WP 3.3.1 in the root directory of a site in development at http://www.CompareSelfPublishingCompanies.com hosted by HostGator. I have not changed any BP code; BP installed only recently (no upgrade). The theme is Atahualpa. Also running MyReviewsPlugIn and some minor ones.
On my member profiles, there are unwanted active links for no apparent reason. For example, an ordinary string of text is showing as an active link that produces a search on my site of that same string of text. This problem is random across the test profiles I’ve created and I can’t seem to intentionally replicate the problem. Example: http://compareselfpublishingcompanies.com/members/bodi/profile/
In addition, I need to know how to make the URLs entered into the “website” field into active links that open in a *new* window so this happens automatically. (Member enters website URL and link is created to open in a *new* window.)
Thank you!
This has probably been asked and addressed, so I apologize in advance. I couldn’t find the answer scanning the forums here…
I figured out out to get the custom profile data like Last Name and Company into my members-loop. But now I am stuck on the main Activity Feed and News feed.
I have set up my custom fields already, So, as an example, in my main activity feed, instead of just the First name, I’d like to see First Name, Last Name, Company and whatever other custom fields I want to reference.
Sorry if this is basic, this is my first BP site. I dug through functions.php, entry, entry-wall, activity wall etc… and just keep getting stuck. Can someone help point me in the right direction?
I’d like to exclude a few fields from the user profile output loop, and after digging around, bp_has_profile() takes into account an “exclude_fields” argument, but I can’t figure out how to pass that argument in from the loop that builds the profile page.
Thanks for your help,
-David