]> git.mxchange.org Git - friendica.git/commitdiff
change default profile photo to something more interesting than a reddish brown square
authorfriendica <info@friendica.com>
Tue, 20 Mar 2012 22:41:06 +0000 (15:41 -0700)
committerfriendica <info@friendica.com>
Tue, 20 Mar 2012 22:41:06 +0000 (15:41 -0700)
images/person-175.jpg [new file with mode: 0644]
images/person-48.jpg [new file with mode: 0644]
images/person-80.jpg [new file with mode: 0644]
include/Photo.php
include/Scrape.php
include/nav.php
mod/dfrn_confirm.php
mod/notifications.php
mod/photo.php

diff --git a/images/person-175.jpg b/images/person-175.jpg
new file mode 100644 (file)
index 0000000..fc0ec3d
Binary files /dev/null and b/images/person-175.jpg differ
diff --git a/images/person-48.jpg b/images/person-48.jpg
new file mode 100644 (file)
index 0000000..dc5eb6e
Binary files /dev/null and b/images/person-48.jpg differ
diff --git a/images/person-80.jpg b/images/person-80.jpg
new file mode 100644 (file)
index 0000000..75b8faf
Binary files /dev/null and b/images/person-80.jpg differ
index 1450374ffc27971fd91b20d325c5593d3ac33413..4d02b5c651206359d565598b193057924ba92a74 100755 (executable)
@@ -268,9 +268,9 @@ function import_profile_photo($photo,$uid,$cid) {
                $photo_failure = true;
 
        if($photo_failure) {
-               $photo = $a->get_baseurl() . '/images/default-profile.jpg';
-               $thumb = $a->get_baseurl() . '/images/default-profile-sm.jpg';
-               $micro = $a->get_baseurl() . '/images/default-profile-mm.jpg';
+               $photo = $a->get_baseurl() . '/images/person-175.jpg';
+               $thumb = $a->get_baseurl() . '/images/person-80.jpg';
+               $micro = $a->get_baseurl() . '/images/person-48.jpg';
        }
 
        return(array($photo,$thumb,$micro));
index 8344aa7373338d6dc938dbb0ccaf318f8588327d..9c237916bc30bfa4ab7b23440fd23a9f89576c9b 100755 (executable)
@@ -684,7 +684,7 @@ function probe_url($url, $mode = PROBE_NORMAL) {
 
        if(! x($vcard,'photo')) {
                $a = get_app();
-               $vcard['photo'] = $a->get_baseurl() . '/images/default-profile.jpg' ; 
+               $vcard['photo'] = $a->get_baseurl() . '/images/person-175.jpg' ; 
        }
 
        if(! $profile)
index e28081839965731b7aa2135e71fb8c3f805c9e27..f40e92dbcec7f41263bbb6de7845efbdd34dce99 100755 (executable)
@@ -55,7 +55,7 @@ function nav(&$a) {
                // user info
                $r = q("SELECT micro FROM contact WHERE uid=%d AND self=1", intval($a->user['uid']));
                $userinfo = array(
-                       'icon' => (count($r) ? $r[0]['micro']: $a->get_baseurl($ssl_state)."/images/default-profile-mm.jpg"),
+                       'icon' => (count($r) ? $r[0]['micro']: $a->get_baseurl($ssl_state)."/images/person-48.jpg"),
                        'name' => $a->user['username'],
                );
                
index 2f4fb70452b51b8515b9b80ade073aae9a953a4e..efb5be3a412acc134699a81ab5efe378ec131fb3 100644 (file)
@@ -655,7 +655,7 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
                if(count($r))
                        $photo = $r[0]['photo'];
                else
-                       $photo = $a->get_baseurl() . '/images/default-profile.jpg';
+                       $photo = $a->get_baseurl() . '/images/person-175.jpg';
                                
                require_once("Photo.php");
 
index d478b51634a3f3bb1349d2e1709f398ad7497b8a..633d7d4ecf67251c594a4ea87693acd822926a09 100755 (executable)
@@ -143,7 +143,7 @@ function notifications_content(&$a) {
                                                '$intro_id' => $rr['intro_id'],
                                                '$madeby' => sprintf( t('suggested by %s'),$rr['name']),
                                                '$contact_id' => $rr['contact-id'],
-                                               '$photo' => ((x($rr,'fphoto')) ? $rr['fphoto'] : "images/default-profile.jpg"),
+                                               '$photo' => ((x($rr,'fphoto')) ? $rr['fphoto'] : "images/person-175.jpg"),
                                                '$fullname' => $rr['fname'],
                                                '$url' => $rr['furl'],
                                                '$hidden' => array('hidden', t('Hide this contact from others'), ($rr['hidden'] == 1), ''),
index c4a93769af8d99a0944c5a1186e053a1507137c3..4afdd366a4083af0f0d40e0213fdd4217803fcbc 100755 (executable)
@@ -23,7 +23,7 @@ function photo_init(&$a) {
                        // NOTREACHED
        }
 
-       $default = 'images/default-profile.jpg';
+       $default = 'images/person-175.jpg';
 
        if(isset($type)) {
 
@@ -39,12 +39,12 @@ function photo_init(&$a) {
                                break;
                        case 'micro':
                                $resolution = 6;
-                               $default = 'images/default-profile-mm.jpg';
+                               $default = 'images/person-48.jpg';
                                break;
                        case 'avatar':
                        default:
                                $resolution = 5;
-                               $default = 'images/default-profile-sm.jpg';
+                               $default = 'images/person-80.jpg';
                                break;
                }