[Plugin: User Photo] How to use this user photo in People Lists plugin?
-
Hello,
I installed this plugin so that my users can have both an avatar and an official photo of themselves for use on the staff directory page.
I am using the People List plugin for the staff directory page and it currently pulls the user’s avatar as the thumbnail pic. I want to change that so it is using the User Photo.
I believe the relevant code is contained in this:
$input_template[0] = "%nickname%"; $input_template[1] = "%email%"; $input_template[2] = "%bio%"; $input_template[3] = "%firstname%"; $input_template[4] = "%lastname%"; $input_template[5] = "%username%"; $input_template[6] = "%thumbnail%"; $input_template[7] = "%website%"; $input_template[8] = "%aim%"; $input_template[9] = "%yahooim%"; $input_template[10] = "%jabbergoogle%"; $counter = 11; if( is_array($people_list_option['settings']) ): foreach($people_list_option['settings'] as $index => $field_slug): $input_template[$counter] = "%".$index."%"; $counter++; endforeach; endif; if( is_array($found_people_list['list']['uid']) ): foreach($found_people_list['list']['uid'] as $id): $replacements = array(); $user_data = get_userdata($id); $replacements[0] = $user_data->nickname; $replacements[1] = $user_data->user_email; $replacements[2] = $user_data->description; $replacements[3] = $user_data->first_name; $replacements[4] = $user_data->last_name; $replacements[5] = $user_data->user_login; $replacements[6] = get_avatar($id); $replacements[7] = $user_data->user_url; $replacements[8] = $user_data->aim; $replacements[9] = $user_data->yim; $replacements[10] = $user_data->jabber;
Specifically the line:
$replacements[6] = get_avatar($id);
Any ideas how to change this?
Thanks!!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘[Plugin: User Photo] How to use this user photo in People Lists plugin?’ is closed to new replies.