Hello,

This must be very simple (for the Drupal experts at least).

Is there a clear explanation of
how to show the picture of the user in the USERS summary list page
and the User Profile Page in Drupal 4.7 ?

The default profile page outputs various info except the picture.

The standard explanation is to create a template.php and user_profile.tpl.php
and place this code in the user_profile.tpl.php.


if($user->picture):

Only local images are allowed. print $user->picture ">

endif;

By doing this you get the picture but lose all other default items
which need tobe put in by additional code to customise the page.

SURELY there must be a way to include the above line in the stock
DRUPAL execution. Ihad a look at the profile.module but can't figure out
how and where?

Can someone suggest how to do this ?

Many thanks in advance
Shred
++++++++++++++++
A great deal for business
Http://affiliatesexcel.com

Comments

marlowx’s picture

user photos show up fine on my site...

and i did nothing...

well, except for enable user profile photos in the admin / settings bit....

have you tried that?

valley-1’s picture

Hello,

Many thanks, but where do you set this in the admin?

I have checked admin>>setting>> profiles
and admin>>settings>>user
but couldn't find a menu item

The only setting was in the admin>> themes>>
where I could check a box to show oictures on the posts and comments.

BTW the site is Http://paratlane.net

What is the URL of your site where it is working

Cheers
Shred

A great deal for business.
http://affiliatesexcel.com

luyendao’s picture

It's in admin >> settings >> users >> configure tab

It's well hidden, and this is not the only thing in drupal that is hard to find ;-) Try configuring content types, that's a doozie too!

valley-1’s picture

Hello,

I don't have admin >> settings >> users >> configure tab in DRUPAL 4.7

All I have is a long page with various settings for E mail etc and an enable
picture support check box which has been checked and file location for
pictures and default picture.

Which versionof Drupal are you reffering to

Cheers
Shred

A great deal for business.
http://affiliatesexcel.com

luyendao’s picture

I'm running 4.6.7, but either way sounds like you're on the right page. Cause that's what i see on my configuration page. I just enabled picture support, make sure whatever directory you specifiy there has write permissions for users, and that should be it.

valley-1’s picture

Hello,

I have rechecked the directory and permission
and picture support . Still i don't see the picture.

Could you please let me have a url for the site
it is working? Is it it a site the user list is open for guests ?
That is what I intent to do at http://paratlane.net.

Icould get the picture to show by using the code
if($user->picture):

Only local images are allowed. print $user->picture ">

endif;

So surely the picture is getting stored . If only
I could retrive it without having to use additional files.

Cheers
Shred

A great deal for business.
http://affiliatesexcel.com

marlowx’s picture

admin / settings / users /

but not here: admin / users /

admin / settings / users / <---- this is where it is...

hope that helps....

what theme are you using?

valley-1’s picture

Hi Marlowx

Iam using the Bluemarine theme (as I had problems with other themes)

I have looked at admin / settings / users / several times and could only find
the picture support checkbox anf directory setting

The URL I requested is for your website where the picture is showing in the profile page

Cheers
Shred

A great deal for business.
http://affiliatesexcel.com