Can somebody explain to me how I can have the user submited picture (avatar) the one they upload for their profile?
I would like to have it beside the username:
http://www.youbodybuilding.com/comment.gif
Printable View
Can somebody explain to me how I can have the user submited picture (avatar) the one they upload for their profile?
I would like to have it beside the username:
http://www.youbodybuilding.com/comment.gif
Looks like the admins really look after their paying clients :rolleyes:
thanks for you great help
This will show avatar
[img]{$baseurl}/photo/{$UID}.jpg[/img]
thank you very much, server is down but I will try as soon as everything is backQuote:
Originally Posted by l1some
Thanks l1some .. that helped !!!
Just to let you know, i had to make a small change to make it work, here's what worked for me:
[img]{$baseurl}/photo/{$comments[i].UID}.jpg[/img]
But I need to know one thing, how to show this thing only if the user has a pic in profile not otherwise??? Anyone???
Yeah, there's a thread about that in the forums, but since the SEARCH IS STILL BROKEN it's gonna be hard to find it, but I managed by scrolling down through the forums and here it is:
viewtopic.php?f=12&t=3385
I'm having a problem getting the new images that are uploaded to display, which I'll be posting about.
Not working for me besides names, where did you put that code exactly?
video_comments.tpl? I'm going to try it....
yep, it's the video_comments.tpl
Look for:
insert provided code above so that it looks like this:Code:<div class="float_l">{$comments[i].username}{insert name=time_range assign=stime field=addtime IDFR=COMID id=$comments[i].COMID tbl=comments} ({$stime})</div>
UPDATECode:<div class="float_l">[img]{$baseurl}/photo/{$comments[i].UID}.jpg[/img]{$comments[i].username}{insert name=time_range assign=stime field=addtime IDFR=COMID id=$comments[i].COMID tbl=comments} ({$stime})</div>
After some tinkering, I came up with this: (this is the entire video_comments.tpl code I am using--note that I have the "REPLY" removed--which you may want to keep on yours)
Code:{if $links ne ''}<div class="comment_pagination_block">
<div style="padding: 0px 4px; margin-left:1em;">{$links}</div>
</div>{else}
{/if}{section name=i loop=$comments}<div class="comment">
<div class="comment_head" style="padding:0">[img]{$baseurl}/photo/{$comments[i].UID}.jpg[/img]
{$comments[i].username}{insert name=time_range assign=stime field=addtime IDFR=COMID id=$comments[i].COMID tbl=comments} ({$stime})
<div class="float_r"></div>
</div>
<div class="comment_body" style="padding:5px;">{$comments[i].commen}</div>
</div>{/section}{if $links ne ''}<div class="comment_pagination_block">
<div style="padding: 0px 4px; margin-left:1em;">{$links}</div>
</div>
{else}
{/if}
Now, it's working fine, I think I was missing a ' or something like that, I keep the version without the "reply" that is confusing..
Thank you grynmoors, very kind as usual! ;-)
works great.
Thanks. Works if the person has uploaded a profile picture. If they have not, the image is "broken". Still haven't figured out how to get it to show either the "no picture" thingie OR their last uploaded video thumb (if they have no photo uploaded).
Only thing I can think of is to use admin to log in as that user and upload the "no photo" thingie for them :/