Search Results for 'profile fields'
-
AuthorSearch Results
-
April 8, 2010 at 11:47 am #72341
In reply to: Skeleton Key: Login as any user plugin
Mike Pratt
Participant@xezo that is correct. I thought he was talking about access to all profile fields for edit/delete, for which you do have access via the extra Admin bar menus created by BP for admins. Those are the ones I use all the time (fixing avatar crop screw ups, as an example)
So, from that perspective, the only use for Skeleton Key would be for additional stuff introduced by less that robust plugins, no?
April 8, 2010 at 11:13 am #72331rsqst
ParticipantThanks for your help @r-a-y
It’s for the next version of this website: http://www.artmonastery.org
It’s for a network of artists. Each blog will be a specific art project, and each subscriber/author will be an artist participating in that art project. Many artists will be participating in many different art projects, and I’d like their bio information to be publicly displayed on each blog/project.
The blogs will be the public “portal” for each of the art projects, which we will us to promote the projects. The groups that are associated with each blog (with the group blog plugin) will be the internal communication tool for the artists.
I’d like all the subscribers/authors/etc (aka artists) for a given blog (aka art project) to be listed at the top of the blog’s index.php page, with a few fields from the xprofile (bio, specialty, etc.). Ideally, I’d get them to echoed in a way that was easy to feed into a snazzy jquery slider gizmo.
artists.
I’m trying to build a resource for these artists that is really 1 database with many faces, and given that I love wordpress, buddypress seemed like the best way to do that. It’s just stretching my abilities, at the moment
April 7, 2010 at 6:42 am #72150In reply to: Can new users automatically get a set of pages?
5963314
InactiveHi Paul,
I was thinking about that option. Some fields can be very big, what’s the datatype used for multi-line text box? I want to allow my users to add maximum of 1-2 pages worth of text in these fields.
Also, is there a way to enable TinyMCE to format text in multi-line text box?
Final question: If I use a Drop down select box, can I direct users to a different group based on their response.
Lets say I create two groups – Football and Hockey.
I get my user to select their sport, if the select Football, they get directed to Football group to fill out football profile, other wise they get directed to Hockey group to fill out hockey profile.
April 6, 2010 at 10:50 pm #72101In reply to: Advanced Search plugin needed
holdenandmason1
Participant@dre1080, my post was about creating an advanced search page to search members based on the profile fields. Like the original poster said, “For example you could search for members, by age, location, hobby in one search (taking these things from created fields in profile.”
You could use a Google search to do what you’re asking for.
April 6, 2010 at 1:40 pm #72003gabrielcrowe
Membermore experimentation leads me to this solution:
items from the form are passed through global.js
i found and modified the posted items to include /match my new fields:
/* Default POST values */
var object = ”;
var item_id = j(“#whats-new-post-in”).val();
var content = j(“textarea#whats-new”).val();
var artist = j(“input#artist”).val();
var track = j(“input#track”).val();
/* Set object for non-profile posts */
if ( item_id > 0 ) {
object = j(“#whats-new-post-object”).val();
}
j.post( ajaxurl, {
action: ‘post_update’,
‘cookie’: encodeURIComponent(document.cookie),
‘_wpnonce_post_update’: j(“input#_wpnonce_post_update”).val(),
‘content’: content,
‘artist’: artist,
‘track’: track,
‘object’: object,
‘item_id’: item_id
},
and it worked just fine. _POSTed items are now available in my bp-custom.
April 4, 2010 at 8:00 pm #71725In reply to: How to hide "Base" group in the edit profile panel?
Brajesh Singh
Participanthey, you are most welcome.
well, you will need to edit registration.php
here is my take on it.
it will list all the fields from all the profile groups,and allow users to fill them. so please beware of it.
http://bpdev.pastebin.com/RLreXE7X
If you want to restrict to 1 or two profile groups, change the argument from
bp_has_profile( )In my edited code and it will work
And a little bit detail, I have removed the argument for bp_has_profile( ), so it lists all profile groups and then put then collected field ids in an array, which is passed via
hidden field ‘signup_profile_field_ids`
April 4, 2010 at 7:45 pm #71723In reply to: How to hide "Base" group in the edit profile panel?
Gene53
ParticipantHi Brajesh and thanks for the quick response.
I think your code is great but my problem is that the registration page only show whatever fields that are in group 1 (default BP function) and I need a few extra fields to be filled out in the signup page, any way around this such as showing the group 2 fields in register?
Thanks,
Gene
April 4, 2010 at 6:54 pm #71716In reply to: How to hide "Base" group in the edit profile panel?
Gene53
ParticipantDang, I have to reopen this thread, one thing was solved but another problem was created.
Brajesh’s code solved my “user can’t edit his name field” but I then realized that the registration page only showed the profile name field (which I renamed Username) which was the only field I had in profile group 1.
My problem now is that I need extra fields upon registration but I still want the name field hidden or not editable in the edit profile screen.
Is there something I can change in Brajesh’s code (or new code altogether) that will accomplish this?
Thanks,
Gene
April 4, 2010 at 3:18 pm #71700In reply to: Forum size issues
norrismp
ParticipantI changed that to 100% and it still doesn’t change. Here is the Tables/Forum section from default.css:
/* > Data Tables
*/table {
width: 100%;
}
table#message-threads {
margin: 0 -20px;
width: 100%;
}
table.profile-fields { margin-bottom: 20px; }
div#sidebar table {
margin: 0 -16px;
width: 117%;
}
table tr td, table tr th {
padding: 8px;
vertical-align: middle;
}
table tr td.label {
border-right: 1px solid #eaeaea;
font-weight: bold;
width: 25%;
}
table tr td.thread-info p { margin: 0; }
table tr td.thread-info p.thread-excerpt {
color: #888;
font-size: 11px;
margin-top: 3px;
}
div#sidebar table td, table.forum td { text-align: center; }
table tr.alt {
background: #f4f4f4;
}
table.notification-settings {
margin-bottom: 20px;
text-align: left;
}
table.notification-settings th.icon, table.notification-settings td:first-child { display: none; }
table.notification-settings th.title { width: 80%; }
table.notification-settings .yes, table.notification-settings .no { width: 40px; text-align: center; }
table.forum {
margin: -9px -20px 20px -20px;
width: 100%;
}
table.forum tr:first-child {
background: #fafafa;
}
table.forum tr.sticky td {
background: #FFF9DB;
border-top: 1px solid #FFE8C4;
border-bottom: 1px solid #FFE8C4;
}
table.forum tr.closed td.td-title {
padding-left: 35px;
background-image: url( ../images/closed.png );
background-position: 15px 50%;
background-repeat: no-repeat;
}
table.forum td p.topic-text {
color: #888;
font-size: 11px;
}
table.forum tr > td:first-child, table.forum tr > th:first-child {
padding-left: 15px;
}
table.forum tr > td:last-child, table.forum tr > th:last-child {
padding-right: 15px;
}
table.forum tr th#th-title, table.forum tr th#th-poster,
table.forum tr th#th-group, table.forum td.td-poster,
table.forum td.td-group, table.forum td.td-title { text-align: left; }
table.forum td.td-freshness {
font-size: 11px;
color: #888;
}
table.forum td img.avatar {
margin-right: 5px;
}
table.forum td.td-poster, table.forum td.td-group {
min-width: 130px;
}
table.forum th#th-title {
width: 100%;
}
table.forum th#th-postcount {
width: 1%;
}
April 4, 2010 at 7:46 am #71667In 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).
-
AuthorSearch Results