How to get <TMPL_VAR file_usr_login> in video_embed.ht

Powerfull XFileSharing version

Moderator: admin

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: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#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!


Return to “XFileSharing Pro”

Who is online

Users browsing this forum: No registered users and 0 guests