XFileSharing Pro - A few questions about comparison.html

Powerfull XFileSharing version

Moderator: admin

Message
Author
MrJones
Posts: 26
Joined: May 28, 2012 4:51 pm

A few questions about comparison.html

#1 Postby MrJones » Jun 05, 2012 10:54 pm

Hello

I want to edit comparison.html and I have a few questions.

1.How do I edit all the default text from the first column of the table ..for ex: "Max upload file size"
"No downloads captcha"

and so on...

Ex: for max upload file size i have <td align=right><b><TMPL_VAR lang_max_file_size></b></td>

Where d I edit all the default text?

Code: Select all

<tr align="center">
    <td align=right><b><TMPL_VAR lang_max_file_size></b></td>
    <TMPL_IF enabled_anon><td><TMPL_VAR max_upload_filesize_anon></td></TMPL_IF>
    <TMPL_IF enabled_reg><td><TMPL_VAR max_upload_filesize_reg></td></TMPL_IF>
    <TMPL_IF enabled_prem><td><TMPL_VAR max_upload_filesize_prem></td></TMPL_IF>
</tr>


2.How can I make instead of 1000 Mb to have 1 Gb in the comparison table?

3.How do I add Max Download File Size to my comparison table?I figured some part of the code but not all.See below.

<tr align="center">
<td align=right><b><TMPL_VAR lang_??????????????></b></td>
<TMPL_IF enabled_anon><td><TMPL_VAR max_download_filesize_anon> Mb</td></TMPL_IF>
<TMPL_IF enabled_reg><td><TMPL_VAR max_download_filesize_reg> Mb</td></TMPL_IF>
<TMPL_IF enabled_prem><td><TMPL_VAR max_download_filesize_prem> Mb</td></TMPL_IF>
</tr>

I'm a noob at these things so don't jump on me :)
Thanks

universe
Posts: 67
Joined: Mar 20, 2012 12:13 pm

#2 Postby universe » Jun 05, 2012 11:43 pm

1. in the language file (/Languages/language.lng)
2. in the language file (/Languages/language.lng)
3. just add a new row to your table, something like:

Code: Select all

<tr align="center">
    <td align=right><b><TMPL_VAR lang_max_dlfile_size></b></td>
    <TMPL_IF enabled_anon><td><TMPL_VAR max_download_filesize_anon></td></TMPL_IF>
    <TMPL_IF enabled_reg><td><TMPL_VAR max_download_filesize_reg></td></TMPL_IF>
    <TMPL_IF enabled_prem><td><TMPL_VAR max_download_filesize_prem></td></TMPL_IF>
</tr>

And define your new lang variable lang_max_dlfile_size in language.lng ;)

MrJones
Posts: 26
Joined: May 28, 2012 4:51 pm

#3 Postby MrJones » Jun 05, 2012 11:50 pm

universe wrote:1. in the language file (/Languages/language.lng)
2. in the language file (/Languages/language.lng)
3. just add a new row to your table, something like:

Code: Select all

<tr align="center">
    <td align=right><b><TMPL_VAR lang_max_dlfile_size></b></td>
    <TMPL_IF enabled_anon><td><TMPL_VAR max_download_filesize_anon></td></TMPL_IF>
    <TMPL_IF enabled_reg><td><TMPL_VAR max_download_filesize_reg></td></TMPL_IF>
    <TMPL_IF enabled_prem><td><TMPL_VAR max_download_filesize_prem></td></TMPL_IF>
</tr>

And define your new lang variable lang_max_dlfile_size in language.lng ;)


Thank you but I still have a problem at the second point.I can't find where to change 1000 mb in 1 gb.

In my template I have

<tr align="center">
<td align=right><b><TMPL_VAR lang_max_file_size></b></td>
<TMPL_IF enabled_anon><td><TMPL_VAR max_upload_filesize_anon></td></TMPL_IF>
<TMPL_IF enabled_reg><td><TMPL_VAR max_upload_filesize_reg></td></TMPL_IF>
<TMPL_IF enabled_prem><td><TMPL_VAR max_upload_filesize_prem></td></TMPL_IF>
</tr>

Where do I edit the red part to show 1gb instead of 1000 Mb because is not in the language file (/Languages/language.lng) ?

MrJones
Posts: 26
Joined: May 28, 2012 4:51 pm

#4 Postby MrJones » Jun 06, 2012 10:53 am

Any tip ... ?Nobody?

universe
Posts: 67
Joined: Mar 20, 2012 12:13 pm

#5 Postby universe » Jun 06, 2012 2:17 pm

As quick fix, simply put it directly to the template, for example:

<tr align="center">
<td align=right><b><TMPL_VAR lang_max_file_size></b></td>
<TMPL_IF enabled_anon><td>512 MB</td></TMPL_IF>
<TMPL_IF enabled_reg><td>1 GB</td></TMPL_IF>
<TMPL_IF enabled_prem><td>5 GB</td></TMPL_IF>
</tr>


Return to “XFileSharing Pro”

Who is online

Users browsing this forum: No registered users and 0 guests