From 75ebf06131e935795b7072acc012c9e37669eade Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 9 Dec 2013 14:05:52 -0800 Subject: some work on modularising the default profile photo so we can make them site selectable. Also red != friendica so we don't need all these friendica logos taking up space --- include/network.php | 2 +- include/photo/photo_driver.php | 6 +++--- include/text.php | 8 +++----- 3 files changed, 7 insertions(+), 9 deletions(-) (limited to 'include') diff --git a/include/network.php b/include/network.php index dac039230..50f853ca0 100644 --- a/include/network.php +++ b/include/network.php @@ -548,7 +548,7 @@ function avatar_img($email) { call_hooks('avatar_lookup', $avatar); if(! $avatar['success']) - $avatar['url'] = $a->get_baseurl() . '/images/person-175.jpg'; + $avatar['url'] = $a->get_baseurl() . '/images/default_profile_photos/rainbow_man/175.jpg'; logger('Avatar: ' . $avatar['email'] . ' ' . $avatar['url'], LOGGER_DEBUG); return $avatar['url']; diff --git a/include/photo/photo_driver.php b/include/photo/photo_driver.php index ba95266f9..8730b4298 100644 --- a/include/photo/photo_driver.php +++ b/include/photo/photo_driver.php @@ -576,9 +576,9 @@ function import_profile_photo($photo,$xchan) { $photo_failure = true; } if($photo_failure) { - $photo = $a->get_baseurl() . '/images/person-175.jpg'; - $thumb = $a->get_baseurl() . '/images/person-80.jpg'; - $micro = $a->get_baseurl() . '/images/person-48.jpg'; + $photo = $a->get_baseurl() . '/images/default_profile_photos/rainbow_man/175.jpg'; + $thumb = $a->get_baseurl() . '/images/default_profile_photos/rainbow_man/80.jpg'; + $micro = $a->get_baseurl() . '/images/default_profile_photos/rainbow_man/48.jpg'; $type = 'image/jpeg'; } diff --git a/include/text.php b/include/text.php index bd4376ce4..9254508a4 100755 --- a/include/text.php +++ b/include/text.php @@ -884,9 +884,7 @@ function smilies($s, $sample = false) { ':like', ':dislike', 'red#', - 'r#', - '~friendica' - + 'r#' ); $icons = array( @@ -923,8 +921,8 @@ function smilies($s, $sample = false) { ':like', ':dislike', 'redred#matrix', - 'redr#matrix', - '~friendica ~friendica' + 'redr#matrix' + ); $params = array('texts' => $texts, 'icons' => $icons, 'string' => $s); -- cgit v1.2.3