XFileSharing Pro - How to get <TMPL_VAR file_usr_login> in video_embed.ht

Message
Author
thebeer
Posts: 47
Joined: Feb 01, 2010 9:41 am

How to get <TMPL_VAR file_usr_login> in video_embed.ht

#1 Postby thebeer » Apr 01, 2010 7:35 pm

Hi,

What do I need to change/add to get the function usr_login (file uploaders name) to show in video_embed.html

Thanks

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Apr 02, 2010 9:14 am

In index.cgi find this line

Code: Select all

my $file = $db->SelectRow("SELECT f.*, s.*, u.usr_id, UNIX_TIMESTAMP(usr_premium_expire)-UNIX_TIMESTAMP() as exp_sec
and add

Code: Select all

, u.usr_login as file_usr_login
after u.usr_id

thebeer
Posts: 47
Joined: Feb 01, 2010 9:41 am

#3 Postby thebeer » Apr 02, 2010 10:11 am

Awesome! Thanks!