Why is $_POST Empty in Profile Edit Admin?
Why is $_POST Empty in Profile Edit Admin?
Why is $_POST Empty in Profile Edit Admin?
Any ideas anyone? Ive tried to run same array and foreach but for user_id => 1, to test. But all I get is a complete list with comments made by user with id 1. I want to display only the responses (from user id 1) below the current_user comments.
From this reference you get the following info: Function and Method Cross Reference bb_profile_data() Defined at: /bb-includes/functions.bb-template.php -> line 2405 Referenced 1 times: /bb-templates/kakumei/profile.php -> line 30 so you should check your profile template. If you have ssh access to your site, try # grep “bb_profile_data” -R /the/path/to/your/site/ in the shell command line, to search … Read more
This is more of PHP implementation detail. If you want a precise match you can do something like: if ( isset( $words[$translated] ) ) return $words[$translated]; return $translated; PS you might want to declare $words as static, so that array is reused and not continuously re-created on each function call (which would be a lot … Read more
You can use get_users(). $args = array( ‘fields’ => ‘all_with_meta’, ); $users = get_users( $args ); foreach( $users as $user ) { // your display code here var_dump( $user ); // so you can see what’s in $user } all_with_meta will get the user and all the associated meta, if I’m reading the Codex page … Read more
I recommend looking at BuddyPress. I think that has some of the community/profile aspects you are looking for.
To clarify the “plugin/functions.php” issue, see: Where do I put the code snippets I found here or somewhere else on the web? You can use the following modified version from toscho’s Retranslate Plugin. I changed post_type for pagenow. Configure the translations in the final array. <?php /* Plugin Name: Retranslate Profile Page Description: Adds translations. … Read more
wp_get_current_user used inside your hook callback should tell you who is making the edit. $editing_user = wp_get_current_user(); Without code, that is all I’ve got.
Think I have figured out how best to work this. For anyone that may need it sometime the code I used was: <?php if ( 1 == bp_get_the_profile_group_id()) : ?> <h4>About Me</h4> <?php endif; ?> With 1 == the profile tab where I need to add my custom HTML. If anyone has a better solution … Read more
Lock Display Name To Nickname