http://wordpress.org/extend/plugins/profile-pic/
Ich habe dieses Plugin auf mein WP draufgespielt, möchte es aber erweitern. Durch die Widgets zeigt er mir das Bild gleich an erster Stelle. Was mir aber bei dem Plugin fehlt, ist eine Möglichkeit, die mehrere Bilder hochzuladen und bei einem Browserrefresh, diese zu wechseln. Der entscheidene Code der profile-pic.php sieht aus aus:
ZitatAlles anzeigen//*** INTERNAL FUNCTION: finds the appropriete path to the author's picture
function profilepic_internal_pickimage($authorID) {
$profilepic_options = get_option("profilepic_options");
$profilepic_displayoptions = get_option('profilepic_displayoptions_'.$authorID);
// new method: image name is cached in the user options
if (isset($profilepic_displayoptions['filename'])) {
if ($profilepic_displayoptions['filename'] == 'DEFAULT') {
$path = '/wp-content/plugins/profile-pic/default.jpg';
} else if (isset($profilepic_displayoptions['filename']) && $profilepic_displayoptions['filename'] != '') {
$path = profilepic_internal_cleanpath('/' . $profilepic_options['dir'] . '/' . $profilepic_displayoptions['filename']);
}
Leider weiß ich nicht, wie genau ich modifizieren muss, um mehrere Bilder einzustellen beim Refresh. Könnte mir jemand helfen?