Closed (fixed)
Project:
Drupal Commons
Component:
Code
Priority:
Major
Category:
Feature request
Assigned:
Reporter:
Created:
1 Feb 2013 at 16:11 UTC
Updated:
6 Mar 2013 at 03:10 UTC
Jump to comment: Most recent file
Breaking this chunk off from #1838702: Improve Default content shipped with Commons.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 1905494-commons-avatars.patch | 19.96 KB | ezra-g |
| #1 | 1905494-add_user_avatar-2.patch.txt | 1.58 KB | davidseth |
| #1 | avatar1.jpg | 2.54 KB | davidseth |
Comments
Comment #1
davidseth commentedBrought over from: http://drupal.org/node/1838702#comment-7013856
Need to put in avatar images into commons profile images directory. The naming scheme is 'avatar{n}.jpg'. Need 5 images for the 5 created users in the install routine (I have also attached one avatar to get started). So avatar1.jpg, avatar2.jpg, etc...
Comment #2
ezra-g commentedComment #3
ezra-g commentedI tested this patch with example avatars but the install failed with
.
I updated the variable name, provided avatars from Acquia's design team and introduced a '-' into the file name pattern. However, the avatars don't seem to be getting saved to the user accounts.
Here's an in-progress patch.
Comment #4
ezra-g commentedI tweaked the filepath for the images, tested on a fresh install and committed.
Thanks, davidseth!
http://drupalcode.org/project/commons.git/commit/d362d27
Comment #5
ezra-g commentedI get these file system errors after default content is created - We should either fix this or document any needed permission changes:
Comment #6
japerryComment #7
japerryAlso am seeing these issues upon completion of the install (when you get to the homepage right after)
Notice: Object of class stdClass could not be converted to int in commons_origins_preprocess_node() (line 146 of /Users/japerry/Sites/commons/repos/themes/commons_origins/template.php).
Notice: Object of class stdClass could not be converted to int in commons_origins_preprocess_node() (line 146 of /Users/japerry/Sites/commons/repos/themes/commons_origins/template.php).
Notice: Object of class stdClass could not be converted to int in commons_origins_preprocess_node() (line 146 of /Users/japerry/Sites/commons/repos/themes/commons_origins/template.php).
Comment #8
keithleeds commentedGetting the same error...
Looks like what was wanted was something like:
Comment #9
davidseth commented@keithleeds, tested your change (latest code) and working fine on new install. Avatars show up and no errors.
Thanks.
Comment #10
ezra-g commentedLooks like japerry fixed this with http://drupalcode.org/project/commons.git/commitdiff/4189ef9?hp=f9c9513f... - Thanks!
Comment #11
webchickWhat?! No Ezra! Critical bug! :D