Search Results for 'profile fields'
-
AuthorSearch Results
-
April 4, 2010 at 7:46 am #71667
In reply to: Importing data from Excel, CSV sheet
Paul Wong-Gibbs
KeymasterA quick google reveals several bulk-import scripts and plugins for WordPress/MU. Have a look at http://www.dagondesign.com/articles/import-users-plugin-for-wordpress/.
Regarding bulk import of xprofile data: Manjor Kumar had done some BuddyPress-specific import plugins for a very early version, but I can’t vouch for if they still work:
https://wordpress.org/extend/plugins/bulk-import-members-users/
and
https://wordpress.org/extend/plugins/user-import-for-buddypress-all-fields/
April 3, 2010 at 10:28 pm #71631In reply to: Profile fields (drop down) problem with apostrophe
Gianfranco
ParticipantOk, DJPaul, I just did: https://trac.buddypress.org/ticket/2283
April 3, 2010 at 10:20 pm #71628In reply to: Profile fields (drop down) problem with apostrophe
Paul Wong-Gibbs
KeymasterConfirmed; please report this as bug on http://trac.buddypress.org, using your username and password from this site. It affects both the Profile Fields UI, both backend and frontend (missing a stripslashes call).
April 3, 2010 at 5:50 pm #71597In reply to: Profile Fields Questions
Gianfranco
Participantjivany, thanks a lot for taking an interest in this. I appreciate.
I eventually ended up re-arranging things to have the best with what BP provides (limitations?).
But I will test the above code and see if I get want I wanted.
I’ll report later.
Thanks.
April 3, 2010 at 5:26 pm #71592In reply to: Profile Fields Questions
jivany
Participant@gian-ava: For your second question, check out this post https://buddypress.org/forums/topic/faq-how-to-code-snippets-and-solutions#post-13243
I haven’t tried this but it would suggest you could do something like:
<?php if ( bp_has_profile('profile_group_id=9') || bp_has_profile('profile_group_id=7') ) : ?>
<?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
<div id="widget1">
<?php if (bp_the_profile_group() == "9") : ?>
// Do whatever you want with group 9
<?php endif; ?>
<?php if (bp_the_profile_group() == "7") : ?>
// Do whatever you want with group 7
<?php endif; ?>
</div>
<? endwhile; ?>
<?php endif; ?>The only part I’m not sure about is if you need the first call to bp_the_profile_group() on the second line (after the start of the while loop).
April 3, 2010 at 11:00 am #71561In reply to: Badge Maker
Bowe
ParticipantIt’s not been made yet.. but it would be great if someone made it
I think you should have a box on your profile page. I’ve made an example of how it could look an a profile page (the initial badge creation box like on facebook).http://emberapp.com/bowromir/images/untitled-9/sizes/o
Colors are a bit bright, but it should give you an idea.. If you user clicks on “edit this badge” he should be able to choose which profile fields he who like to show.. I hope this helps
April 3, 2010 at 1:44 am #71535In reply to: Profile Fields Questions
jivany
ParticipantI took another look at this and I think I have a potential solution.
You can filter xprofile_get_field_data and make sure that the return value is not a blank or some other non value. The downside of this method is I think you would need to then set the returned string to a known value that indicates it is not populated. The only reason I say this is ideally, you probably want to make bp_custom_get_member_list_xprofile_data return FALSE if the string is blank but I don’t think you can do this within the filter.
As for your second issue, a really hallf-assed way to do it is with two loops. I’m sure there’s a more elegant way but I’ve never written elegant code.
That said, I don’t see a way to dump out two groups in one loop but I’m not very familiar with this code.
April 2, 2010 at 9:48 pm #71507In reply to: Profile Fields Questions
jivany
ParticipantYes, but your custom_xprofile call just does an “echo”. echo will always return something. Something might be a string or it might be a blank but it will always return something. You can’t test a function return value if you aren’t returning a value. Inside custom_xprofile, you need a “return TRUE” or something like that to be able ot use it in a boolean logic check that the if does.
April 2, 2010 at 12:14 pm #71428In reply to: Profile Fields Questions
Gianfranco
ParticipantIt’s really just tjis that I need for problem #1:
<?php if (custom_xprofile('About me') ) : ?>
<h3>About me:</h3>
<?php custom_xprofile('About me'); ?>
<?php endif; ?>
If the About me field is filled, it should display
<h3>About me:</h3>if it is not filled in, it shouldn’t display the h3 heading.
And with the above snippet, it always displays it. It’s the conditional statement that I cannot get right.
April 2, 2010 at 11:30 am #71422In reply to: Profile Fields Questions
jivany
ParticipantI think you need to look at what @DJPaul said. If your function always returns true then you’re always going to output something, even if that something is blank.
function custom_xprofile( $field ) {
echo bp_custom_get_member_list_xprofile_data( $field );
}That echo will always return something. You need to dig into bp_custom_get_member_list_xprofile_data and see if there’s a way to determine if $field exists.
April 2, 2010 at 9:41 am #71411In reply to: Profile Fields Questions
Gianfranco
ParticipantAnd another thing I am trying know (Question #2) is if it is possible to use a conditional statement to check if more than 1 group has fileds that has been filled in and return something accordingly:
<?php if ( bp_has_profile('profile_group_id=9') || bp_has_profile('profile_group_id=7') ) : ?>
<?php while ( bp_profile_groups() ) : bp_the_profile_group(); if ( bp_profile_group_has_fields() ): //groups loop ?>
<div id="widget1">
(stuff from group 9)
(stuff from group 7)
</div>
<?php endif; endwhile; ?>
<?php endif; ?>After experimenting, I couldn’t make it work.
I need that because in my design I’d like to output a “Personal stuff” widget that has a graphic title and background, and it should display only if some fields from groups 9 and 7 are filles in, otherwise it should’t.
Is that achievable?
That is a guru question, isn’t it?
April 2, 2010 at 9:17 am #71409In reply to: Profile Fields Questions
Gianfranco
ParticipantThanks jivany. I corrected that.
However, that is not the source of the porblem.
I am trying to achieve different things.
One is to say, if that field is not filled in, don’t output this block.
Something like:
<?php if (custom_xprofile('About me') ) : ?>
<h3>About me:</h3>
<?php custom_xprofile('About me'); ?>
<?php endif; ?>
But as simple as it is, sometimes I am lost on PHP basics.
April 2, 2010 at 9:05 am #71408In reply to: Profile Fields Questions
Paul Wong-Gibbs
KeymasterNah, you can leave semi-colons off the end of lines when it’s used like that. Good spot though. It’s because your function just retrieves the value from the database, and if it’s blank, then it’s blank. Problem is, you are printing the <h3> regardless.
April 2, 2010 at 1:35 am #71382In reply to: Profile Fields Questions
jivany
ParticipantYou’re missing a semi-colon after the custom_xprofile call. That will likely bugger up PHP and might be the source of your issue.
April 1, 2010 at 2:20 pm #71263Gianfranco
ParticipantOne thing that the code doesn’t do is turning off auto links for url’s.
I want members to fill some fields with their personal social profiles links: Facebook, Twitter, Personal Homepage.
I’d like to link it from the words: “Facebook”, “Twitter”, “Personal Homepage”, without having http://facebook.com/user, ect.
Now, I tried something like this within the profile fields loop:
<li><a href="<?php echo bp_the_profile_field_value() ?>"><?php bp_the_profile_field_name() ?></a></li>But of course it messes everything up because the function “bp_the_profile_field_value()” generates a
<a href="...">itself.Is there a workaround for this?
April 1, 2010 at 6:16 am #71220In reply to: Profile field setup for groups?
Paul Wong-Gibbs
KeymasterTo answer your second question, no, there’s no plugin available to add custom fields to groups (that I’m aware of).
April 1, 2010 at 12:43 am #71191In reply to: How to get rid of autolinking on profile fields
r-a-y
KeymasterPlease refrain from bumping similar threads.
You also posted in:
https://buddypress.org/forums/topic/words-in-user-profile-some-are-linked-some-are-not
All replies should be made in the above thread.
April 1, 2010 at 12:20 am #71187In reply to: How to get rid of autolinking on profile fields
Gianfranco
ParticipantI’d like to remove auto links for profile fields. I retrieve their values and dispaly it on a sidebar, but don’t find any use in linking any word to nothing.
That is really an annoying feauture that should be turned on and off at will.
The above code doesn’t seem to work anymore with the latest version of BP.
Is there a way to turn auto links off?
March 31, 2010 at 11:17 pm #71175In reply to: Profile field setup for groups?
Matthew
ParticipantThis is a ‘Field Group’ or fieldset for the profile. It is not a way to create extra fields for groups.
March 31, 2010 at 11:22 am #71029In reply to: BuddyPress Multilingual
jozik
ParticipantThis can be added, we will try to include it in next release (before that we’re waiting for some more feedback).
I guess best would be to check if user is coming from some outside URL, if so – to redirect him to preferred language, otherwise let him switch languages as usual.
Thanks for valuable feedback.
BP is not wrapping extra profile fields (title and description) in textdomain – you can’t get it translated (for now). We will try to add support for this – to register extra field’s titles and labels (descriptions), so it can be translated via WPML’s ‘string translation’.
March 31, 2010 at 6:22 am #70989Paul Wong-Gibbs
KeymasterJust rename those fields in the Profile Field Setup in wp-adminb
March 31, 2010 at 2:56 am #70976In reply to: BuddyPress Multilingual
sannymedia
ParticipantHi jozik,
I’m dealing with a big problem regarding Buddypress multlingual: no matter what I do, I can’t figure out how to make the BP Registration page multilingual, since the Registration/ Sign Up Fields are dynamic I guess, I don’t know how to translate them from EN to IT once I set them up??? Also because at the moment my Italian version is a mixture of the following fields to name just the first 2 that can’t be translated:
Dettagli Account (obbligatorio) –> is fine
Indirizzo Email (obbligatorio) –> is fine
Scegli una Password (obbligatorio) –> is fine
Conferma Password (obbligatorio) –> is fine
Dettagli Profilo –> is fine
Name (obbligatorio) –> here its starts since Name is set in “general settings”
Last Name (obbligatorio) –> and Last Name was added by me in “profile field setup”
…
.
.
Do you have an idea how to solve this problem? Or am I missing something? Please help!
Thanks & Grazie!!!
Sanny
(my site: WPMU 2.9.1, Buddypress 1.1.3, WPML 1.7.1. & Buddypress Multilingual 0.9.2 )
March 31, 2010 at 2:07 am #70971sannymedia
ParticipantHey everyone,
I’m dealing with a similar problem: no matter what I do, I can’t figure out how to make the BP Registration page multilingual, since the Registration/ Sign Up Fields are dynamic I guess, I don’t know how to translate them from EN to IT once I set them up??? Also because at the moment my Italian version is a mixture of the following fields to name just the first 2 that can’t be translated:
Dettagli Account (obbligatorio) –> is fine
Indirizzo Email (obbligatorio) –> is fine
Scegli una Password (obbligatorio) –> is fine
Conferma Password (obbligatorio) –> is fine
Dettagli Profilo –> is fine
Name (obbligatorio) –> here its starts since Name is set in “general settings”
Last Name (obbligatorio) –> and Last Name was added by me in “profile field setup”
Does anyone have an idea how to hack the register.php? Or am I missing something? Please help!
Thanks & Grazie!!!
(my site: WPMU 2.9.1, Buddypress 1.1.3, WPML 1.7.1. & Buddypress Multilingual 0.9.2 )
March 30, 2010 at 5:29 pm #70857In reply to: Simple BuddyPress Profile Privacy
Mark
Participant@mrjarbenne – Good point.
To set a default privacy level that ensures no one inadvertently exposes info, open the file simple-buddypress-privacy.php using a basic plain text editor like Notepad on Windows (do not use Microsoft Word to edit code). Find this line near the top somewhere:
define( ‘CPT_BP_XPROFILE_PRIVACY_FIELD_DEF_VALUE’, ‘3’ );
Change the number 3 to 0 (zero). Save the file, then upload the plugin and activate it. By changing 3 to 0 the plugin will default to making all profile fields invisible to everyone except the profile owner. Then students can edit their profile and intentionally choose which fields to expose.
That’s the quick fix for your particular situation.
Of course that still doesn’t allow you to force any permanent settings since students ultimately get control. But I see your point – I just don’t agree with it entirely even in the case of elementary school students.
As a parent, I advocate teaching along with careful monitoring – the two go hand in hand. Of course being taught involves the student making mistakes – granted. So, if you really want to ensure that no student exposes sensitive information then consider not providing a mechanism for such information to be put into a Web site – particularly since unless you put those computers in a vault at night then you have no idea who is really accessing that information nor when it is accessed. For example, what if your school is burglarized and the computer(s) stolen? Or if your site is not hosted in the school itself, then you have no total control whatsoever over what happens to the information in the site.
March 29, 2010 at 8:05 am #70623In reply to: Plugin: BP Blog Author Link
@mercime
Participanthttps://wordpress.org/extend/plugins/bp-profile-widget-for-blogs/
– enables blog admins to show their BuddyPress avatar with link to BP profile page plus own xprofile fields
-
AuthorSearch Results