1- When you upload image file with password, image is displayed directly without prompting for password for visitors and members
2 - When you upload video file with password, video is displayed directly without prompting for password for visitors and members, but you are prompted for the password to download the file only and without password to watch
XFileSharing Pro - Impurities bugs, must be quickly modified
-
- Posts: 521
- Joined: Dec 19, 2009 5:12 pm
those things can be easy changed inside the script
the adding to premium is fixed by me on a easy way
you can modifie this code a litle so it does not show when there is a pass on it ??
you can do the same for image previeuw
use
to show exept if value is avaible (in this case a password)
you can find it back in download1.html
here is the code for image previeuw
please note ,
my code is a bit modified because i use a differend system (i use a preload system) so i would suggest to take it as a example and not for live usage as that will not work ( your counters will be missing and maybe some more things)
it is to show that the
<TMPL_UNLESS pass_required>
is the code you need to use to hide everything when a pass is asked
enjoy
Greetings From PowerChaos
the adding to premium is fixed by me on a easy way
Code: Select all
<TMPL_IF premium><TMPL_IF add_to_account><TD colspan=2 align=right><small id="am<TMPL_VAR file_id>"><a href="#" onClick="return jah('<TMPL_VAR site_url>/?op=my_files&add_my_acc=<TMPL_VAR file_code>','am<TMPL_VAR file_id>');"><TMPL_VAR lang_add_to_my_account></a></small></TD></TMPL_IF></TMPL_IF>
Code: Select all
<TMPL_UNLESS pass_required><TMPL_IF add_to_account><TD colspan=2 align=right><small id="am<TMPL_VAR file_id>"><a href="#" onClick="return jah('<TMPL_VAR site_url>/?op=my_files&add_my_acc=<TMPL_VAR file_code>','am<TMPL_VAR file_id>');"><TMPL_VAR lang_add_to_my_account></a></small></TD></TMPL_IF></TMPL_UNLESS>
use
Code: Select all
TMPL_UNLESS
you can find it back in download1.html
here is the code for image previeuw
Code: Select all
<TMPL_IF image_url>
<TMPL_UNLESS pass_required>
<div id="hid" style="display:none;">
<p><img src="<TMPL_VAR image_url>" class="pic" alt="<TMPL_VAR file_name>" onLoad="scaleImg(this)" style="-ms-interpolation-mode:bicubic" GALLERYIMG="no"></p>
</div>
</TMPL_UNLESS>
</TMPL_IF>
my code is a bit modified because i use a differend system (i use a preload system) so i would suggest to take it as a example and not for live usage as that will not work ( your counters will be missing and maybe some more things)
it is to show that the
<TMPL_UNLESS pass_required>
is the code you need to use to hide everything when a pass is asked
enjoy
Greetings From PowerChaos