| View previous topic :: View next topic |
| Author |
Message |
Files-Up
Joined: 25 Nov 2007 Posts: 17
|
Posted: Nov 27, 2007 10:01 pm Post subject: (Problem Fixed) Where is the support exactly ? |
|
|
Hello,
i have sent an email to support after i purchased the script
now its 3 days no answer
____________
Hello,
i have purchased the Amazing xFileSharing Script today,
but i need to edit something if its possible
after uploading a file
it will be something like
www.xxxx.com/SDFSCDF/file.zip
i want it to be like this
www.xxxx.com/SDFSCDF/file.zip.html
cuz some download managers automaticlly detects file extensions and download error page only
cuz user did not see captcha

Last edited by Files-Up on Dec 19, 2007 9:19 am; edited 1 time in total |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 1901 Location: UFO Lab
|
Posted: Nov 28, 2007 9:51 am Post subject: |
|
|
Oh, sorry it seems your email lost somewhere in spam filter.
Here you go with quick hack: in Templates/upload_results.html file find line
| Code: | | <tr><td nowrap align=right><b>Download Link:</b></td><td><a href="<TMPL_VAR site_url>/<TMPL_VAR id>/<TMPL_VAR filename>" target="_blank"><TMPL_VAR site_url>/<TMPL_VAR id>/<TMPL_VAR filename></a></td></tr> |
and replace it with
| Code: | | <tr><td nowrap align=right><b>Download Link:</b></td><td><a href="<TMPL_VAR site_url>/<TMPL_VAR id>/<TMPL_VAR filename>.html" target="_blank"><TMPL_VAR site_url>/<TMPL_VAR id>/<TMPL_VAR filename>.html</a></td></tr> |
Then in index.cgi find line
| Code: | | $fname=~s/\.{2,99}/./g; |
and add below:
| Code: | | $fname=~s/\.html$//i; |
I think I will put this code to next XFileShaing version, thanks! |
|
| Back to top |
|
 |
Files-Up
Joined: 25 Nov 2007 Posts: 17
|
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 1901 Location: UFO Lab
|
Posted: Nov 29, 2007 11:15 am Post subject: |
|
|
Oh right. Here's new code:
| Code: | <tr><td nowrap align=right><b>Download Link:</b></td><td><a href="<TMPL_VAR site_url>/<TMPL_VAR id>/<TMPL_VAR filename>.html" target="_blank"><TMPL_VAR site_url>/<TMPL_VAR id>/<TMPL_VAR filename>.html</a></td></tr>
<tr><td align=right><b>Link for forums:</b></td><td><input type="text" onFocus="copy(this);" value="[URL=<TMPL_VAR site_url>/<TMPL_VAR id>/<TMPL_VAR filename>.html]<TMPL_VAR filename> - <TMPL_VAR size>[/URL]"></td></tr>
<tr><td align=right><b>Direct Link:</b></td><td><input type="text" onFocus="copy(this);" value="<TMPL_VAR site_url>/<TMPL_VAR id>/<TMPL_VAR filename>.html"></td></tr> |
|
|
| Back to top |
|
 |
Files-Up
Joined: 25 Nov 2007 Posts: 17
|
Posted: Dec 08, 2007 7:12 pm Post subject: |
|
|
Fixed
Thanks  |
|
| Back to top |
|
 |
|