Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: How can I have the User Picture beside the comments?

  1. #1
    Join Date
    Aug 2008
    Posts
    12

    Default How can I have the User Picture beside the comments?

    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:


  2. #2
    Join Date
    Aug 2008
    Posts
    12

    Default Re: How can I have the User Picture beside the comments?

    Looks like the admins really look after their paying clients :rolleyes:

    thanks for you great help

  3. #3

    Default Re: How can I have the User Picture beside the comments?

    This will show avatar

    [img]{$baseurl}/photo/{$UID}.jpg[/img]

  4. #4
    Join Date
    Aug 2008
    Posts
    12

    Default Re: How can I have the User Picture beside the comments?

    Quote Originally Posted by l1some
    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 back

  5. #5
    Join Date
    Apr 2008
    Posts
    6

    Default Re: How can I have the User Picture beside the comments?

    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???

  6. #6
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default Re: How can I have the User Picture beside the comments?

    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.
    If it's not fun, stop doing it!

  7. #7
    Join Date
    Jan 2008
    Posts
    216

    Default Re: How can I have the User Picture beside the comments?

    Not working for me besides names, where did you put that code exactly?

  8. #8
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default Re: How can I have the User Picture beside the comments?

    video_comments.tpl? I'm going to try it....


    yep, it's the video_comments.tpl

    Look for:
    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>
    insert provided code above so that it looks like this:

    Code:
    <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>
    UPDATE

    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}
    If it's not fun, stop doing it!

  9. #9
    Join Date
    Jan 2008
    Posts
    216

    Default Re: How can I have the User Picture beside the comments?

    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! ;-)

  10. #10

    Default Re: How can I have the User Picture beside the comments?

    works great.

Page 1 of 2 12 LastLast

Similar Threads

  1. Picture Gallery
    By nitramf in forum Feature Requests
    Replies: 0
    Last Post: 02-27-2009, 03:07 PM
  2. Picture Gallery
    By hollyjenson in forum Template Modifications
    Replies: 1
    Last Post: 02-14-2009, 07:31 AM
  3. Deleting User comments
    By cdtdk in forum Feature Requests
    Replies: 1
    Last Post: 08-02-2008, 07:18 AM
  4. User AVATAR image / profile picture.
    By GreenGambler in forum Feature Requests
    Replies: 2
    Last Post: 09-15-2007, 09:34 AM
  5. Replies: 2
    Last Post: 07-25-2007, 08:27 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •