Search Results for 'profile fields'
-
Search Results
-
I’ve been playing around with my Buddypress installation, trying to understand the system. One thing I don’t really understand is the concept behind the WP vs. BP profiles. I understand that BP profiles are public and WP profile fields are private, and that some information, like the main account email is mirrored between the two. I suppose that back when BP was born there wasn’t much to do with the WP profile information, but now there are appparently core functions allowing the extension of the standard profile fields. Since the BP-members are necessarily WP members, I think that the user management should be integrated, with BP-xprofiles offering a front end UI fpr profile editing and a way to make the information public.
So, basically, I guess my question is – does anyone know of documents explaing how and why the current x-profile/WP-structure is done the way it is, and, possibly, how it is done in a bit more detailed way. I couldn’t find anything.
Thanks!
I’d like to add fields to the activity stream. I’m a relatively new coder so any help would be appreciated.
I have studied this post and copied it to a tee but can’t seem to get it to work properly.
What I am looking to do is to have 6 fields to every activity post: Post Title; Description; Make; Price; Model; and Location.
I have added the fields to the form in the post-form.php as so.
`
@
<input type="submit" name="aw-whats-new-submit" id="aw-whats-new-submit" value="” />`
It looks great. Next I added this to my functions.
`/**
* This captures additional info at update.
*/
function add_equipmentmeta_to_activity( $content, $user_id, $activity_id ) {
bp_activity_update_meta( $activity_id, ‘equip’, ($_POST) );
}add_action( ‘bp_activity_posted_update’, ‘add_equipmentmeta_to_activity’, 10, 3 );
function my_equipmentmeta() {
$my_equipmentmeta = bp_activity_get_meta( bp_get_activity_id(), ‘equip’ );
//if (is_user_logged_in()) : {
echo ‘(‘ . $my_equipmentmeta . ‘)‘;
//}
//endif;
}
add_action( ‘bp_activity_entry_meta’, ‘my_equipmentmeta’ );`Which was based on the previous post I mentioned above. I have been testing the ‘add_post_model’ to see if I could get just one to work.
Lastly I changed the global.js like this.
`/* Default POST values */
var object = ”;
var item_id = jq(“#whats-new-post-in”).val();
var content = jq(“textarea#whats-new”).val();
var title = jq(“input#add_post_title”).val();
var make = jq(“input#add_post_make”).val();
var model = jq(“input#add_post_model”).val();
var price = jq(“input#add_post_price”).val();
var location = jq(“input#add_post_location”).val();/* Set object for non-profile posts */
if ( item_id > 0 ) {
object = jq(“#whats-new-post-object”).val();
}jq.post( ajaxurl, {
action: ‘post_update’,
‘cookie’: encodeURIComponent(document.cookie),
‘_wpnonce_post_update’: jq(“input#_wpnonce_post_update”).val(),
‘content’: content,
‘title’: title,
‘make’: make,
‘model’: model,
‘price’: price,
‘location’: location,
‘object’: object,
‘item_id’: item_id
},
`I do not get any errors but I cannot get any data to show up. The holder for the meta tags shows up but it doesn’t contain any data. I’m not entirely sure where I am going wrong. Is this the best solution for my problem or is there something else I am missing?
Thanks ahead of time for any help…
Hi there, I wonder if anyone knows how I can edit each members page to show their profile as well as theiir activity stream? I did this using the old theme structure but for the life of me can’t figure how to do it now.
Thanks a lot for any help!!
Topic: Modify profile edit screen
Hello,
I am working on my BP child theme and I would like to modify the profile edit.php file. My project requires more extensive formatting of the profile edit page, so rather than using the profile loop, I was hoping to call profile fields individually, along with additional markup (More titles, divs, etc)
Clearly I am a php novice- Could someone give me a hint on how I would call an individual field for the profile edit page?
Also, any opinions on whether or not this is the best way to get to my goal of having more formatting on the profile edit screen? Any other ideas?
I want to do this on the header of profile page—
if user ID is 1 or 2, display
ABCinstead of
“last update’, “mention this user”….if user is anybody else, display item-meta as normal.
How to do this?
in members-header.php, can comment out a line to display some fields, but that changes for all. I want to change for only several member’s profile page.