xoops forums

Shine

Just can't stay away
Posted on: 2006/12/31 22:28
Shine
Shine (Show more)
Just can't stay away
Posts: 822
Since: 2002/7/22
#1

How to: Showing users Avatar within userpage?

Hm after trying several codes I cannot get it to work. Some handout and help would really be appreciated.
How can I show the user's avatar (if the specific user has one) within the userpage of the user?

Grtz., Shine

You'll find the module:
http://www.herve-thouzard.com/modules/news/article.php?storyid=143

Shine

Just can't stay away
Posted on: 2007/1/1 22:44
Shine
Shine (Show more)
Just can't stay away
Posts: 822
Since: 2002/7/22
#2

Re: How to: Showing users Avatar within userpage?

I know it is quick, but oeps couldn't resist

^ bump-tie-up ^

Shine

Just can't stay away
Posted on: 2007/1/3 8:11
Shine
Shine (Show more)
Just can't stay away
Posts: 822
Since: 2002/7/22
#3

Re: How to: Showing users Avatar within userpage?

^ bump ^

Shine

Just can't stay away
Posted on: 2007/1/4 8:37
Shine
Shine (Show more)
Just can't stay away
Posts: 822
Since: 2002/7/22
#4

Re: How to: Showing users Avatar within userpage?

^ bump-bump ^
Is there really nobody who can/ or is willing to help out?

Shine

Just can't stay away
Posted on: 2007/1/5 21:39
Shine
Shine (Show more)
Just can't stay away
Posts: 822
Since: 2002/7/22
#5

Re: How to: Showing users Avatar within userpage?

I wont give up on this and try again. So again ^
bump,bump,bumping it up again ^

Is there nobody who uses this module and wonders how to get this realised or would like to see the users avatar within specific userpage of the user who has created his/her userpage?
Common, I can hardly imagine that since this post has been read 221 times!

Grtz., Shine

Shine

Just can't stay away
Posted on: 2007/1/6 23:46
Shine
Shine (Show more)
Just can't stay away
Posts: 822
Since: 2002/7/22
#6

Re: How to: Showing users Avatar within userpage?

^and up again^
Instead of three times, it's now four times a lady

Shine

Just can't stay away
Posted on: 2007/1/15 11:16
Shine
Shine (Show more)
Just can't stay away
Posts: 822
Since: 2002/7/22
#7

Re: How to: Showing users Avatar within userpage?

^ 5x bump ^

Swain

Not too shy to talk
Posted on: 2007/1/15 17:49
Swain
Swain (Show more)
Not too shy to talk
Posts: 198
Since: 2006/6/27
#8

Re: How to: Showing users Avatar within userpage?

Have you tried posting on Herve's forums??? It may be that he could work it into the next version.

middleton

Just popping in
Posted on: 2007/1/17 1:47
middleton
middleton (Show more)
Just popping in
Posts: 30
Since: 2006/12/21
#9

Re: How to: Showing users Avatar within userpage?

Try adding this to a template (html) file:

<{$xoops_avatar}>


Or, try adding this code somewhere in a php file:
$av_img "<img src='".XOOPS_UPLOAD_URL."/".$xoops_uname->getVar("user_avatar")."' alt='' />";

Then you can probably find someplace in the php file where it outputs the html. That's where you'd add the $av_img field.

Not much of a coder so I can't help you out too much. But I wouldn't want your question to go unaswered (don't get me started! )

Shine

Just can't stay away
Posted on: 2007/1/17 8:45
Shine
Shine (Show more)
Just can't stay away
Posts: 822
Since: 2002/7/22
#10

Re: How to: Showing users Avatar within userpage?

If I should add it within the php file I shoudl somthing add with
$xoopsTpl->assign('user_avatarurl''uploads/'.$thisUser->getVar('user_avatar'));

How should I do this with your code above?
If I use mine the page gets blank. So something is wrong with my code.

Btw thanks for your help!