XFileSharing Pro - Keywords & Custom Fields

Posts: 14
Joined: Jan 27, 2012 11:54 pm

Keywords & Custom Fields

#1 Postby spotted » Mar 17, 2012 4:13 pm

Hey ppl i hope ur doing good,

First of all how to make keywords visible on the download page? if i copy the meta code for keywords than its not showing up on the site.

I want to use the Remote Upload Premium fields in a different way.

Ex.: Fileserve: login/password into Website: http://site.com
and than make it visible on the download page. But its the same with keywords if i copy the code than its not showing on the page.

I know it could be customized to have webiste twitter facebook etc. files but why not use already exisiting unused fields.

i hope somebody understand what i mean and can help me out


Posts: 14
Joined: Jan 27, 2012 11:54 pm

#2 Postby spotted » Mar 18, 2012 1:10 am

ok maybe more simple.

what do i need to change/add to display <TMPL_VAR rs_logins> on download1.html


Posts: 20
Joined: Feb 11, 2012 8:47 am

#3 Postby DimS » Mar 20, 2012 6:37 pm

in index_dl.pm
add to
return $ses->PrintTemplate("download1.html",
'rs_logins' => 'your text here',

create backup before edit!

Posts: 14
Joined: Jan 27, 2012 11:54 pm

#4 Postby spotted » Mar 20, 2012 7:38 pm

thanks for your answer..ok this would display a custom text..but thats not what i want...i want to use the remote login fields in my account area a bit different.





and than i want to display them on download1

Posts: 163
Joined: Oct 28, 2010 8:01 pm

#5 Postby nyan » Mar 24, 2012 11:17 am

at the same part dimS suggested
'facebook' => $ses->getUser->{name of database field in user table},

I use a very old version of xfs so i don't know if this works with the new ones.

Edit; This just displays the facebook of the user who is downloading, if you want the user that uploaded the file you need to do some more steps

in download1 in this query;

Code: Select all

my $file = $db->SelectRow(bla bla   FROM (Files f, Servers s)
                              LEFT JOIN Users u ON f.usr_id = u.usr_id
                              WHERE f.file_code=?

add u.nameofuserfield to the select part
then 'facebook' => $file->{nameofuserfield}

Posts: 14
Joined: Jan 27, 2012 11:54 pm

#6 Postby spotted » Mar 24, 2012 12:44 pm

thanks for your reply nyan but its not working
Can't use an undefined value as a HASH reference at index_dl.pm line 392.

is anyone able to do it? i would pay for it.
sibsoft dont do any custom jobs atm :(

Return to “XFileSharing Pro”