- 
	
	KS Web Designer replied to the topic Display Private Message Time rather than Time Since Sent in the forum How-to & Troubleshooting 12 years ago Perfect, that did the trick. For anyone else following this be sure to add the semi-colon after return $thread_template->message->date_sentso the snippet reads:function absolute_message_sent_date() {
 global $thread_template;
 return $thread_template->message->date_sent;
 }Just one quick follow-up question. How do I change the date…[Read more] 
- 
	
	KS Web Designer started the topic Display Private Message Time rather than Time Since Sent in the forum How-to & Troubleshooting 12 years ago I’m sure the answer to this is fairly simple, just can’t seem to find anyone who knows it… In the messages/single.php template there is this code: 
 <span class="activity"><?php bp_the_thread_message_time_since(); ?></span>This calculates the time since a private message was sent and displays it something like this: “Sent 5 minutes ago”. Is…[Read more] 
- 
	
	KS Web Designer replied to the topic Displaying logged in user profile field value outside the loop in the forum Creating & Extending 12 years ago Thanks again, just needed one slight tweak. Final code is as follows: <?php echo 'Hi ' . bp_core_get_username( bp_loggedin_user_id() ) . ' – Account Type: ' . xprofile_get_field_data( 'FIELD NAME OR ID', bp_loggedin_user_id() ); ?>Didn’t need the “field=” for xprofile… Works using either the field name or the id. 
- 
	
	KS Web Designer replied to the topic Displaying logged in user profile field value outside the loop in the forum Creating & Extending 12 years ago Thanks, it kinda works. Only if I’m viewing my profile page. If I view any other page on the site it doesn’t find the value and just displays: Account: I am trying to run this in the header.php file of my template… 
- 
	
	KS Web Designer started the topic Displaying logged in user profile field value outside the loop in the forum Creating & Extending 12 years ago Hi, in my header file I would like to display the value of one of my xprofile fields for the currently logged in user. The field ID is “11”. Basically I want an output that says something like: 
 “Hi [username] – Account Type: [value of field 11]”No problem getting the username, but I just can’t seem to access the value of field 11? 
- 
	
	KS Web Designer replied to the topic [Resolved] Retrieving username within the members-loop in the forum How-to & Troubleshooting 12 years ago Spot on! Thanks @shanebp 
- 
	
	KS Web Designer started the topic [Resolved] Retrieving username within the members-loop in the forum How-to & Troubleshooting 12 years ago I have been editing the member list that’s shown on the member directory page. I am trying to show the username instead of the full name next to the avatar. So within the loop <?php while ( bp_members() ) : bp_the_member(); ?>I tried using<?php echo bp_displayed_user_username(); ?>, but that doesn’t show anything on the page. Where am I going…
- 
	
	KS Web Designer started the topic Listing user profiles filtered on xprofile field in the forum Creating & Extending 12 years ago Is it possible to generate a page that lists users that have a certain value within a custom profile field. If, for example, I made a drop down list that asked for a persons favourite colour and the options were ‘Blue’ or ‘Green’ could I make a template that would give me access to the profile data for the two sets of users? Thanks 
- 
	
	KS Web Designer replied to the topic Editing sign up form text in the forum Creating & Extending 12 years ago Thanks that’s very helpful. However I also need to make some code changes in the same general area, so if someone can help me locate the right place to be making those changes I would also appreciate it. Thanks 
- 
	
	KS Web Designer started the topic Editing sign up form text in the forum Creating & Extending 12 years, 1 month ago This is probably a very silly question, but. How do I edit the text above the registration form. The bit that reads: “Registering for this site is easy, just fill in the fields below and we’ll get a new account set up for you in no time.” I have tried editing both of these files (which contain the text) but it didn’t…[Read more] 
- 
	
	KS Web Designer replied to the topic Search page to search custom user fields in the forum Creating & Extending 12 years, 1 month ago So I’m trying to figure this out on my own and I got as far as finding out that since BuddyPress 1.7 there’s a new class: BP_User_Query – which should be similar to the standard wordpress WP_User_Query However the official BuddyPress documentation page for the class is just a holding page (argh!) – https://codex.buddypress.org/developer/class-refe…[Read more] 
- 
	
	KS Web Designer started the topic Search page to search custom user fields in the forum Creating & Extending 12 years, 1 month ago Hi, I would like to create a custom search page that allows users to select various criteria from user profiles to search on. For example if I create a profile field that allows user to select either male or female in their profile I would also like to allow users searching to filter on that field. Can anyone help or point me in a useful direction? 
	@ks-webdesignercom
	Not recently active