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
and replace with
Printable View
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
and replace with
Good find leki
Yeah, really. Sweet. Thanks!
Has this already been fixed in an update?
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:
It removes the number beside the word Friends and also cleans the layout.Quote:
Friends |
{insert name=time_range assign=stime field=addtime IDFR=COMID id=$cominfo[i].COMID tbl=comments}
(Comment Added:{$stime})
Regards,
Mat.
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:
REPLACE:
Code:Friends |
{insert name=time_range assign=stime field=addtime IDFR=COMID id=$cominfo[i].COMID tbl=comments}
(Comment Added:{$stime})
This bug is fixed, bug fix will be available on next releaseQuote:
Originally Posted by leki
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}