Custom File Station Download Page

Tell us your most wanted features from QNAP products.
User avatar
OneCD
Guru
Posts: 12155
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: Custom File Station Download Page

Post by OneCD »

ogio855 wrote:Makes sense, but this assumes that when I replace the logo files in the locations listed that it should work if the NAS isn't restarted. When the files were replaced, the QNAP logo still populates the sharelink, even if I create a new one that didn't exist before.
You may also have to restart the httpd service, and don't forget to clear your browser's cache! ;)

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
ogio855
New here
Posts: 7
Joined: Thu Nov 27, 2014 2:06 am

Re: Custom File Station Download Page

Post by ogio855 »

Finally got it sorted, for anyone in the future looking to get a custom sharelink page for clients, or friends...
The file in question is a slice file - slice-s352abf1c96.png it is located in two locations;
/home/httpd/cgi-bin/filemanager/shareLink/images/slice-s352abf1c96.png
/home/httpd/shareLink/images/slice-s352abf1c96.png

you can edit this file but you are limited to the height of the original QNAP logo at the top, if you need to make it wider you can widen the canvas and make sure everything is still positioned on the far left hand side. Save this file and place it back into the above two locations.
If you didn't alter the width, everything should work as-is.

To make it work with a wider logo, under the following directories there is a css file that needs to be edited.
httpd/cgi-bin/filemanager/shareLink/css/app.css
httpd/shareLink/css/app.css

Search the script for "95px" it is under the background-position prefix for the slice-QNAP section.
slice-QNAP{background-position:0 -16px;height:18px;width:95px;}
Change the 95 to whatever the canvas width needs to be to fit your logo. This will change the length of the wrapper in the header.

http://www.calgarysbestoil.com/images/screenshot.jpg - IMG tag wouldn't work for some reason.

Once the NAS is restarted everything will revert, if you install the Autorun script that OneCD referenced earlier then you should be able to make a script to copy the files on startup, still working on that bit myself.

PS... I believe it only needs the httpd/shareLink location for both, but I did all the locations listed above anyhow. - This is confirmed, if you just change the httpd/shareLink locations it will automatically correct the cgi-bin files as well, at lease it is doing so on my system.

I am running the following autorun script at startup to successfully copy the files over during reboot;
#!/bin/sh
rm /home/httpd/shareLink/images/*.png
rm /home/httpd/shareLink/css/*.css
cp /share/Public/logo/slice-s352abf1c96.png /home/httpd/shareLink/images/
cp /share/Public/logo/app.css /home/httpd/shareLink/css/

I'm not sure why, but if I didn't run a remove command they files weren't copying all the time. Sometimes it would just leave the original file in the location.
vladblindu
New here
Posts: 6
Joined: Thu Jan 14, 2016 6:03 am

Re: Custom File Station Download Page

Post by vladblindu »

For unknown reasons I never got notified about further comments on this post. As OneCd points out, this is exactly the hack I've done. BUT, WHY THE HECK DO WE HAVE TO HACK SOMETHING I PAY FOR. My website and my clients email is no place for doing free advertising for QNAP. Does anybody there care ????
User avatar
dolbyman
Guru
Posts: 35272
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Custom File Station Download Page

Post by dolbyman »

at the end of the day it's just a little addon made for customer convenience by qnap..if you want a better/different method you can always install a 3rd party package
vladblindu
New here
Posts: 6
Joined: Thu Jan 14, 2016 6:03 am

Re: Custom File Station Download Page

Post by vladblindu »

What package would you recommend?
User avatar
dolbyman
Guru
Posts: 35272
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Custom File Station Download Page

Post by dolbyman »

no idea if those are good .. but here is a list

https://scriptnull.net/scripts/top-10-b ... ng-script/
vladblindu
New here
Posts: 6
Joined: Thu Jan 14, 2016 6:03 am

Re: Custom File Station Download Page

Post by vladblindu »

I didn't have the time lately to research this scripts but yesterday I did.
Right now, by right clicking on a file and get a sharing menu. This is great indeed. Loosing this short and fast way of sharing by using other scripts as you suggested would be a huge loss of time.
I think it should be a much more elegant way of solving this issue, pending for so long on this forum, by having someone from QNAP technical team to do one of the following:

2. Modify the script so it loads a external, editable html template (I'm ready to work on this matter if needed)
3. Share the share-cgi code (I really don't think this file contains such a treasure in proprietary code not to be disclosed)
3. Or, at least, expose the DB(I suppose) table where the shared file's ssid's are stored so one could generate a different url.

I manage an advertising post-production studio and I share preview files with my clients. They are very sensible to logos and branding. I am willing to spend time and effort (I graduated in computer science a long time ago, but still have some coding skills) to solve this problem. I understand that: "is just a little addon made for customer convenience by qnap", so please it's definitely "customer convenience" I'm talking here about.
Thank you
vladblindu
New here
Posts: 6
Joined: Thu Jan 14, 2016 6:03 am

Re: Custom File Station Download Page

Post by vladblindu »

It's 2020 and nothing has changed. I purchased a QNAP once, and this will never happen again, for sure. :(
User avatar
dolbyman
Guru
Posts: 35272
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Custom File Station Download Page

Post by dolbyman »

yes..lots has changed...lots of malware attacks ...so file sharing by exposing your qnap should be stopped altogether
lzyla
New here
Posts: 7
Joined: Tue Oct 13, 2015 5:30 am

Re: Custom File Station Download Page

Post by lzyla »

Unbelievable.
I have 3 units (2 pro and one soho) and really need that feature.
Seems like this could be done in few minutes by QNAP and still this topic is active for 6 years and nobody from the company ever thought of addrressing this?!?!?!
User avatar
dolbyman
Guru
Posts: 35272
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Custom File Station Download Page

Post by dolbyman »

read the posts ...exposing your nas to the world is a bad idea .... unless you like beeing hacked
NAS-USER-77
New here
Posts: 9
Joined: Mon Aug 31, 2020 9:36 am

Re: Custom File Station Download Page

Post by NAS-USER-77 »

This feature would be excellent if it was build into the OS
cityarch100
New here
Posts: 4
Joined: Tue Jan 08, 2019 8:28 am

Re: Custom File Station Download Page

Post by cityarch100 »

+1 NAS-USER-77
cityarch100
New here
Posts: 4
Joined: Tue Jan 08, 2019 8:28 am

Re: Custom File Station Download Page

Post by cityarch100 »

NAS-USER-77 wrote: Wed Sep 02, 2020 8:17 am This feature would be excellent if it was build into the OS
+1
User avatar
dolbyman
Guru
Posts: 35272
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Custom File Station Download Page

Post by dolbyman »

you guys can post +1 all you want .. QNAP does not read this .. and exposing File Station to WAN is a bad idea anyways .. so a 2x fail
Locked

Return to “Features Wanted”