Browse Source

change default profile photo to something more interesting than a reddish brown square

pull/154/merge
friendica 9 years ago
parent
commit
894278dbcc
9 changed files with 10 additions and 10 deletions
  1. BIN
      images/person-175.jpg
  2. BIN
      images/person-48.jpg
  3. BIN
      images/person-80.jpg
  4. +3
    -3
      include/Photo.php
  5. +1
    -1
      include/Scrape.php
  6. +1
    -1
      include/nav.php
  7. +1
    -1
      mod/dfrn_confirm.php
  8. +1
    -1
      mod/notifications.php
  9. +3
    -3
      mod/photo.php

BIN
images/person-175.jpg View File

Before After
Width: 175  |  Height: 175  |  Size: 8.3 KiB

BIN
images/person-48.jpg View File

Before After
Width: 48  |  Height: 48  |  Size: 1.2 KiB

BIN
images/person-80.jpg View File

Before After
Width: 80  |  Height: 80  |  Size: 2.2 KiB

+ 3
- 3
include/Photo.php View File

@ -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));


+ 1
- 1
include/Scrape.php View File

@ -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)


+ 1
- 1
include/nav.php View File

@ -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'],
);


+ 1
- 1
mod/dfrn_confirm.php View 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");


+ 1
- 1
mod/notifications.php View File

@ -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), ''),


+ 3
- 3
mod/photo.php View File

@ -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;
}


Loading…
Cancel
Save