By werushka on
I am using this method http://agaricdesign.com/note/theming-user-profile-pictures-drupal it seems to be working ok so far my only problem is that on only profile page I would like to show the large image "userpic_large"
if I change the function phptemplate_user_picture($account, $size = 'userpic_thumb') to===> function phptemplate_user_picture($account, $size = 'userpic_large')
it also changes the "User: Author Picture" to the userpic_large but i would like to keep it userpic_thumb.
Thanks for your time.
Comments
Add this to your template.php
Replace [themename] with the name of your theme or phptemplate
the above code still shows
the above code still shows larger image on user profile page and also views filed
Look at parameters of function phptemplate_user_picture
They must me:
function phptemplate_user_picture($account, $size = 'userpic_thumb')
:( no luck this still shows
:( no luck this still shows large images on views field and profile page
Strange
I would like to look at source of function phptemplate_user_picture also
P.S. Try to clear cache
where can i locate that
where can i locate that function
Step 4
from http://agaricdesign.com/note/theming-user-profile-pictures-drupal
STEP 4
Paste this code into your template.php file.
I already done this part but
I already done this part but this is the code that is not working.
Make sure that the size
Make sure that the size parameter of that function is 'userpic_thumb' (not 'userpic_large' as you described in your initial post)
Imagecache setting
I have no problem with Agaric Way. Have you inserted proper setting in imagecache?
Regards,
Suryanto Rachmat
http://rachmat.net
yes i am positive because I
yes i am positive because I can see the thumb and if i change it to large than i see the large image.
The below change
The below change worked.
Then change this line:
"if (preg_match('/q\=user\/\w+/', $_SERVER['REDIRECT_QUERY_STRING'])) {"
to this
"if (preg_match('/q\=users\/\w+/', $_SERVER['REDIRECT_QUERY_STRING'])) {"
("user" becomes "users").
Payment sent to http://drupal.org/user/1920
This was because some
This was because some renaming (pathauto maybe?) was going on. I was informed the typical URL for user page was "/users/$USERNAME".
Cheers,
flevour
---------------------------
http://flevour.net