Results 1 to 8 of 8

Thread: number of friends in comments wrong (fix included)

  1. #1
    Join Date
    May 2007
    Posts
    588

    Default number of friends in comments wrong (fix included)

    in the video comments the number of friends a person has is always 1 no matter how many they really have due to it being hard coded into the template as 1.


    To fix, in templates/view_video.tpl find

    Code:
    Friends(1) -
    and replace with

    Code:
    {insert name=friends_count assign=friendcount uid=$UID}
    Friends{$friendcount} -

  2. #2
    Join Date
    May 2007
    Posts
    686

    Default

    Good find leki

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

    Default

    Yeah, really. Sweet. Thanks!
    If it's not fun, stop doing it!

  4. #4
    Join Date
    Jun 2007
    Location
    USA
    Posts
    123

    Default

    Has this already been fixed in an update?

  5. #5
    Join Date
    Jun 2007
    Posts
    197

    Default

    Sorry to burst anyones bubble but this fix does not fix anything infact it makes matters worse.

    Instead of adding the friends list of the user who posted the comment is adds the list of friends from the user who posted the video.

    The best idea is to change with the coding below:

    Friends |

    {insert name=time_range assign=stime field=addtime IDFR=COMID id=$cominfo[i].COMID tbl=comments}
    (Comment Added:{$stime})
    It removes the number beside the word Friends and also cleans the layout.

    Regards,
    Mat.
    ------------------------------------
    Make an arse of yourself:
    http://www.youtwatonline.com
    ------------------------------------

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

    Default

    Mat, thanks ever so much, but would you do me a favor please...can you post it like this for me (it helps me to not get confused as a thread gets bigger)?

    FIND:

    Code:
    Friends(1) -
    REPLACE:

    Code:
    Friends |
     
    {insert name=time_range assign=stime field=addtime IDFR=COMID id=$cominfo[i].COMID tbl=comments} 
    (Comment Added:{$stime})
    If it's not fun, stop doing it!

  7. #7
    Join Date
    Jul 2007
    Posts
    33

    Default Re: number of friends in comments wrong (fix included)

    Quote Originally Posted by leki
    in the video comments the number of friends a person has is always 1 no matter how many they really have due to it being hard coded into the template as 1.


    To fix, in templates/view_video.tpl find

    Code:
    Friends(1) -
    and replace with

    Code:
    {insert name=friends_count assign=friendcount uid=$UID}
    Friends{$friendcount} -
    This bug is fixed, bug fix will be available on next release

  8. #8
    Join Date
    May 2007
    Posts
    588

    Default

    oops, yes as galnet said it displays the number of friends of the video poster and not the commenter....the code below will correct it though so it shows it correctly and you wont have to totally remove it like galnet change does.

    Code:
    {insert name=friends_count assign=friendcount uid=$cominfo[i].UID}
    Friends({$friendcount}) -
    {insert name=time_range assign=stime field=addtime IDFR=COMID id=$cominfo[i].COMID tbl=comments}

Similar Threads

  1. friends.tpl
    By pat33 in forum Template Modifications
    Replies: 3
    Last Post: 02-15-2008, 11:42 PM
  2. Replies: 2
    Last Post: 08-01-2007, 05:34 AM
  3. Replies: 0
    Last Post: 07-31-2007, 05:14 PM
  4. friends_accept.tpl bug (fixes included)
    By leki in forum General Discussions
    Replies: 1
    Last Post: 06-13-2007, 01:55 AM
  5. Friends Bug?
    By zeffer in forum Fixed Bugs
    Replies: 1
    Last Post: 05-22-2007, 01:32 AM

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
  •