QNAP website broken - retarded javascript language selection

Introduce yourself to us and other members here, or share your own product reviews, suggestions, and tips and tricks of using QNAP products.
User avatar
doktornotor
Ask me anything
Posts: 7472
Joined: Tue Apr 24, 2012 5:44 am

QNAP website broken - retarded javascript language selection

Post by doktornotor »

1/ The link from this icon Image on the forum still points to this absolutely ridiculous page:

Image

2/ Google search for "QNAP manual" - well, check for yourself. 4.0 manual nowhere to be seen, 3.8 manual seen under totally misleading "NAS Hardware Manuals" title with some ZIPs iframed in there... Eh.

:roll: :roll: :roll:
Last edited by doktornotor on Tue Apr 15, 2014 3:25 am, edited 2 times in total.
I'm gone from this forum till QNAP stop wasting volunteers' time. Get help from QNAP helpdesk instead.
Warning: offensive signature and materials damaging QNAP reputation follow:
QNAP's FW security issues
QNAP's hardware compatibility list madness
QNAP's new logo competition
Dear QNAP, kindly fire your clueless incompetent forum "admin" And while at it, don't forget the webmaster!
User avatar
Don
Guru
Posts: 12289
Joined: Thu Jan 03, 2008 4:56 am
Location: Long Island, New York

Re: QNAP manual visibility...

Post by Don »

I clicked on it and got a page that lists the 4.0 and the 3.8 manual.
Use the forum search feature before posting.

Use RAID and external backups. RAID will protect you from disk failure, keep your system running, and data accessible while the disk is replaced, and the RAID rebuilt. Backups will allow you to recover data that is lost or corrupted, or from system failure. One does not replace the other.

NAS: TVS-882BR | F/W: 5.0.1.2346 | 40GB | 2 x 1TB M.2 SATA RAID 1 (System/VMs) | 3 x 1TB M.2 NMVe QM2-4P-384A RAID 5 (cache) | 5 x 14TB Exos HDD RAID 6 (Data) | 1 x Blu-ray
NAS: TVS-h674 | F/W: 5.0.1.2376 | 16GB | 3 x 18TB RAID 5
Apps: DNSMasq, PLEX, iDrive, QVPN, QLMS, MP3fs, HBS3, Entware, DLstation, VS, +
User avatar
doktornotor
Ask me anything
Posts: 7472
Joined: Tue Apr 24, 2012 5:44 am

Re: QNAP manual visibility...

Post by doktornotor »

Don wrote:I clicked on it and got a page that lists the 4.0 and the 3.8 manual.
You might. I'm not going to move to get this geolocation bullshít to work:

Code: Select all

<script type="text/javascript">
    //IPInfoDB jQuery JSON query example
    //Tested with FF 3.5, Opera 10, Chome 5 and IE 8
    //Geolocation data is stored as serialized JSON in a cookie
    //Bug reports : http://forum.ipinfodb.com/viewforum.php?f=7
    function geolocate(timezone, cityPrecision) {
        //        var key = '';
        var key = 'f8b2703fb299ec935e132216d375de8ed071d46ef9c959d39e09ec1d9674fc1b'; //API CODE
        var api = (cityPrecision) ? "ip-city" : "ip-country";
        var domain = 'api.ipinfodb.com';
        var version = 'v3';
        var url = "http://" + domain + "/" + version + "/" + api + "/?key=" + key + "&format=json" + "&callback=?";
        var geodata;
        var JSON = JSON || {};

        // implement JSON.stringify serialization
        JSON.stringify = JSON.stringify || function(obj) {
            var t = typeof (obj);
            if (t != "object" || obj === null) {
                // simple data type
                if (t == "string") obj = '"' + obj + '"';
                return String(obj);
            } else {
                // recurse array or object
                var n, v, json = [], arr = (obj && obj.constructor == Array);
                for (n in obj) {
                    v = obj[n]; t = typeof (v);
                    if (t == "string") v = '"' + v + '"';
                    else if (t == "object" && v !== null) v = JSON.stringify(v);
                    json.push((arr ? "" : '"' + n + '":') + String(v));
                }
                return (arr ? "[" : "{") + String(json) + (arr ? "]" : "}");
            }
        };

        // implement JSON.parse de-serialization
        JSON.parse = JSON.parse || function(str) {
            if (str === "") str = '""';
            eval("var p=" + str + ";");
            return p;
        };

        //Check if cookie already exist. If not, query IPInfoDB 
        this.checkcookie = function(callback) {
            geolocationCookie = getCookie('geolocation');
            if (!geolocationCookie) {
                getGeolocation(callback);
            } else {
                geodata = JSON.parse(geolocationCookie);
                callback();
            }
        }

        //Return a geolocation field
        this.getField = function(field) {
            try {
                return geodata[field];
            } catch (err) { }
        }

        //Request to IPInfoDB //20110715 Lydia edit
        function getGeolocation(callback) {
            try {
                $.getJSON(url,
      function(data) {
          if (data['statusCode'] == 'OK') {
              geodata = data;
              JSONString = JSON.stringify(geodata);
              setCookie('geolocation', JSONString, 365);
              callback();
          } else callback('');
      });
            } catch (err) { callback('') }
        }

        //Set the cookie
        function setCookie(c_name, value, expire) {
            var exdate = new Date();
            exdate.setDate(exdate.getDate() + expire);
            document.cookie = c_name + "=" + escape(value) + ((expire == null) ? "" : ";expires=" + exdate.toGMTString());
        }

        //Get the cookie content
        function getCookie(c_name) {
            if (document.cookie.length > 0) {
                c_start = document.cookie.indexOf(c_name + "=");
                if (c_start != -1) {
                    c_start = c_start + c_name.length + 1;
                    c_end = document.cookie.indexOf(";", c_start);
                    if (c_end == -1) {
                        c_end = document.cookie.length;
                    }
                    return unescape(document.cookie.substring(c_start, c_end));
                }
            }
            return '';
        }


    }

    function getUrl(country_code) {

        if (country_code.indexOf('us') > -1) return 'http://www.qnap.com/useng/index.php?lang=en-us&sn=9071';
        else if (country_code.indexOf('tw') > -1) return 'http://www.qnap.com/cht/index.php?lang=zh-tw&sn=9073';
        else if (country_code.indexOf('ca') > -1) return 'http://www.qnap.com/useng/index.php?lang=en-us&sn=9071';
        else if (country_code.indexOf('de') > -1) return 'http://www.qnap.com/de/index.php?lang=de&sn=9074'; //德國
        else if (country_code.indexOf('ja') > -1) return 'http://www.qnap.com/jp/index.php?lang=jp&sn=9080'; //日本
        else if (country_code.indexOf('fr') > -1) return 'http://www.qnap.com/fr/index.php?lang=fr&sn=9076'; //法國
        else if (country_code.indexOf('nl') > -1) return 'http://www.qnap.com/nl/index.php?lang=nl&sn=9078'; //荷蘭
        else if (country_code.indexOf('it') > -1) return 'http://www.qnap.com/it/index.php?lang=it&sn=9077'; //義大利
        else if (country_code.indexOf('pt') > -1) return 'http://www.qnap.com/pt/index.php?lang=pt&sn=9079'; //葡萄牙
        else if (country_code.indexOf('mx') > -1) return 'http://www.qnap.com/mx/index.php?lang=es-mx&sn=9094'; //墨西哥
        else if (country_code.indexOf('es') > -1) return 'http://www.qnap.com/es/index.php?lang=es&sn=9075'; //西班牙
        else if (country_code.indexOf('ru') > -1) return 'http://www.qnap.com/en/index.php?lang=en&sn=9070'; //俄語
        else if (country_code.indexOf('kr') > -1) return 'http://www.qnap.com/kr/index.php?lang=kr&sn=9081'; //韓國
        else if (country_code.indexOf('cn') > -1) return 'http://www.qnap.com/cn/index.php?lang=zh-cn&sn=9082'; //簡体
        else if (country_code.indexOf('uk') > -1) return 'http://www.qnap.com/uk/index.php?lang=en-uk&sn=9072'; //英國
        	
        else return 'http://www.qnap.com/en/index.php?lang=en&sn=9070';

    };
</script>
Christ almighty... Honor the browser Accept-Language instead of such *censored*!
I'm gone from this forum till QNAP stop wasting volunteers' time. Get help from QNAP helpdesk instead.
Warning: offensive signature and materials damaging QNAP reputation follow:
QNAP's FW security issues
QNAP's hardware compatibility list madness
QNAP's new logo competition
Dear QNAP, kindly fire your clueless incompetent forum "admin" And while at it, don't forget the webmaster!
User avatar
doktornotor
Ask me anything
Posts: 7472
Joined: Tue Apr 24, 2012 5:44 am

Re: QNAP manual visibility...

Post by doktornotor »

On another note, running the page thru W3C validator returns 62 Errors, 27 warnings. :shock:

EDIT:

- The http://api.ipinfodb.com/ thing is blocked by multiple AdBlock and Tracking protections lists.
- If I happen to find myself in Japan/China etc., I sure like héll do NOT want to be redirected to site in Japanese or Chinese and so on - which is exactly what this stupid thing is doing (tested with a couple of proxies). :x :-0

Back to the drawing board, dear QNAP. :roll:

Image
Last edited by doktornotor on Sat Aug 03, 2013 2:59 am, edited 1 time in total.
I'm gone from this forum till QNAP stop wasting volunteers' time. Get help from QNAP helpdesk instead.
Warning: offensive signature and materials damaging QNAP reputation follow:
QNAP's FW security issues
QNAP's hardware compatibility list madness
QNAP's new logo competition
Dear QNAP, kindly fire your clueless incompetent forum "admin" And while at it, don't forget the webmaster!
User avatar
doktornotor
Ask me anything
Posts: 7472
Joined: Tue Apr 24, 2012 5:44 am

Re: QNAP manual visibility...

Post by doktornotor »

Debugging over, see above... sounds like - besides quite a bunch of Linux developers - you also urgently need a webmaster.
I'm gone from this forum till QNAP stop wasting volunteers' time. Get help from QNAP helpdesk instead.
Warning: offensive signature and materials damaging QNAP reputation follow:
QNAP's FW security issues
QNAP's hardware compatibility list madness
QNAP's new logo competition
Dear QNAP, kindly fire your clueless incompetent forum "admin" And while at it, don't forget the webmaster!
xavierh
Experience counts
Posts: 1118
Joined: Wed Jan 30, 2008 6:15 am
Location: Denton, Texas

Re: QNAP manual visibility...

Post by xavierh »

doktornotor wrote:Debugging over, see above... sounds like - besides quite a bunch of Linux developers - you also urgently need a webmaster.
seems to me like you get a kick (or an ego boost) finding all the stuff that QNAP does wrong....... :?

I get the QTS 4.0 manual just fine as Don pointed out...

QNAP TVS-951xQTS 5.0.0.1986 build 20220324 OS Storage Pool: Samsung 860 EVO 250GB SSD x 4 (RAID 5), Data Storage Pool: WD WD30EFRX (Red) 3TB x 4 (RAID 5), 16GB RAM WD Easystore 10TB External USB 3.0 Services: SMB, Appletalk, QPKG: Container Station, HBS 3
QNAP TS-453AQTS 5.0.0.1986 build 20220324 Services: SMB, HBS 3
Network: UDM, UDM Beacon, Unifi 8 Port Switch x 3, Flex Mini Switch, In Wall AP
User avatar
doktornotor
Ask me anything
Posts: 7472
Joined: Tue Apr 24, 2012 5:44 am

Re: QNAP manual visibility...

Post by doktornotor »

xavierh wrote:I get the QTS 4.0 manual just fine as Don pointed out...
That is wonderful. And I pointed out exactly what's wrong there. Assuming everything is "just fine" for you, I suppose you'd also be fine with your smartphone/laptop switching languages according to your current location. Most people however prefer to be getting consistent language that respects their configured preference. For obvious reasons. :roll:

To sum this up
- the page employs completely pointless tracking javascript for no good reason, breaking the thing altogether once a piece of it gets blocked
- the page fails to respect users' language preferences altogether
I'm gone from this forum till QNAP stop wasting volunteers' time. Get help from QNAP helpdesk instead.
Warning: offensive signature and materials damaging QNAP reputation follow:
QNAP's FW security issues
QNAP's hardware compatibility list madness
QNAP's new logo competition
Dear QNAP, kindly fire your clueless incompetent forum "admin" And while at it, don't forget the webmaster!
xavierh
Experience counts
Posts: 1118
Joined: Wed Jan 30, 2008 6:15 am
Location: Denton, Texas

Re: QNAP manual visibility...

Post by xavierh »

doktornotor wrote:
xavierh wrote:I get the QTS 4.0 manual just fine as Don pointed out...
That is wonderful. And I pointed out exactly what's wrong there. Assuming everything is "just fine" for you, I suppose you'd also be fine with your smartphone/laptop switching languages according to your current location. Most people however prefer to be getting consistent language that respects their configured preference. For obvious reasons. :roll:

To sum this up
- the page employs completely pointless tracking javascript for no good reason, breaking the thing altogether once a piece of it gets blocked
- the page fails to respect users' language preferences altogether
when i travel overseas later in the year i will let you know if it works or not... :roll:

QNAP TVS-951xQTS 5.0.0.1986 build 20220324 OS Storage Pool: Samsung 860 EVO 250GB SSD x 4 (RAID 5), Data Storage Pool: WD WD30EFRX (Red) 3TB x 4 (RAID 5), 16GB RAM WD Easystore 10TB External USB 3.0 Services: SMB, Appletalk, QPKG: Container Station, HBS 3
QNAP TS-453AQTS 5.0.0.1986 build 20220324 Services: SMB, HBS 3
Network: UDM, UDM Beacon, Unifi 8 Port Switch x 3, Flex Mini Switch, In Wall AP
johnripper
Experience counts
Posts: 1346
Joined: Sun Aug 14, 2011 5:13 am

Re: QNAP manual visibility...

Post by johnripper »

doktornotor wrote:Debugging over, see above... sounds like - besides quite a bunch of Linux developers - you also urgently need a webmaster.
Hopefully they get a good one.

While using the link http://www.qnap.com works fine, http://qnap.com/ is increddible slow or unreachable from my connection.

This is because http://www.qnap.com is pointing to an IP in the Akamai Network (edgesuite.net) and qnap.com is onto an IP in Taiwan. This is why often the pages of the "qnap.com" page is not avaiable.
User avatar
doktornotor
Ask me anything
Posts: 7472
Joined: Tue Apr 24, 2012 5:44 am

Re: QNAP manual visibility...

Post by doktornotor »

xavierh wrote:when i travel overseas later int he year i will let you if it works not....
Well, you clearly did not get the point, so... please, keep the noise out of this thread. (No need to travel anywhere, you can stick 127.0.0.1 api.ipinfodb.com to your hosts file to get the broken page, and you can just use some Japanese, Chinese, German etc. open proxy that doesn't block JS to get a random language one.)
johnripper wrote:While using the link http://www.qnap.com works fine, http://qnap.com/ is increddible slow or unreachable from my connection.
This is because http://www.qnap.com is pointing to an IP in the Akamai Network (edgesuite.net) and qnap.com is onto an IP in Taiwan. This is why often the pages of the "qnap.com" page is not avaiable.
Broken DNS records is something that's been mentioned about a year ago with their previous website redesign.
I'm gone from this forum till QNAP stop wasting volunteers' time. Get help from QNAP helpdesk instead.
Warning: offensive signature and materials damaging QNAP reputation follow:
QNAP's FW security issues
QNAP's hardware compatibility list madness
QNAP's new logo competition
Dear QNAP, kindly fire your clueless incompetent forum "admin" And while at it, don't forget the webmaster!
User avatar
doktornotor
Ask me anything
Posts: 7472
Joined: Tue Apr 24, 2012 5:44 am

Re: QNAP manual visibility...

Post by doktornotor »

Hello??? How long will it take to realize that the JS bullsh*t is NOT the way to handle language selection in browsers? BTW, this exact same issue also breaks

http://www.qnap.com/utility/ (totally empty page)
http://www.qnap.com/mobile/ (totally empty page)

For the zillionth time, make use of Accept-Language, I don't want to see an empty page due to blocking ads, plus I do NOT want to see Chinese/Japanese/whatever other language just because I happen to find myself in Japan/China/whatever other country. Hard to get, apparently, huh? :roll:
I'm gone from this forum till QNAP stop wasting volunteers' time. Get help from QNAP helpdesk instead.
Warning: offensive signature and materials damaging QNAP reputation follow:
QNAP's FW security issues
QNAP's hardware compatibility list madness
QNAP's new logo competition
Dear QNAP, kindly fire your clueless incompetent forum "admin" And while at it, don't forget the webmaster!
User avatar
doktornotor
Ask me anything
Posts: 7472
Joined: Tue Apr 24, 2012 5:44 am

Re: QNAP manual visibility...

Post by doktornotor »

5+ months after reporting, the QNAP manual page is still broken because of the stupid JS... :roll:
I'm gone from this forum till QNAP stop wasting volunteers' time. Get help from QNAP helpdesk instead.
Warning: offensive signature and materials damaging QNAP reputation follow:
QNAP's FW security issues
QNAP's hardware compatibility list madness
QNAP's new logo competition
Dear QNAP, kindly fire your clueless incompetent forum "admin" And while at it, don't forget the webmaster!
User avatar
doktornotor
Ask me anything
Posts: 7472
Joined: Tue Apr 24, 2012 5:44 am

Re: QNAP website broken - retarded javascript language selec

Post by doktornotor »

Dear QNAP, now your very company website frontpage is totally blank with AdBlock turned on, due to the very same idiotic javascript POS that I have been complaining about for 8+ months. Well done!

Make use of Accept-Language!!!

And fire the lamer responsible for your website already! Also, The floating toolbar bullsh*t is still there, incredible.
I'm gone from this forum till QNAP stop wasting volunteers' time. Get help from QNAP helpdesk instead.
Warning: offensive signature and materials damaging QNAP reputation follow:
QNAP's FW security issues
QNAP's hardware compatibility list madness
QNAP's new logo competition
Dear QNAP, kindly fire your clueless incompetent forum "admin" And while at it, don't forget the webmaster!
User avatar
doktornotor
Ask me anything
Posts: 7472
Joined: Tue Apr 24, 2012 5:44 am

Re: QNAP website broken - retarded javascript language selec

Post by doktornotor »

One month later, nothing changed here. The stupidity still being in place. Plus the downloads section is now totally broken, cannot even select a product...

Code: Select all

Failed to load resource: the server responded with a status of 503 (Service Unavailable) http://www.qnap.com/i/en/product_x_down/ajax/get_type.php?type=&parm=1399709491706
Failed to load resource: the server responded with a status of 503 (Service Unavailable) http://www.qnap.com/i/en/product_x_down/ajax/get_module.php?type=&II=&parm=1399709491708
Failed to load resource: the server responded with a status of 503 (Service Unavailable) http://www.qnap.com/i/en/support_share/bg_pattern.jpg
:roll: :shock:
I'm gone from this forum till QNAP stop wasting volunteers' time. Get help from QNAP helpdesk instead.
Warning: offensive signature and materials damaging QNAP reputation follow:
QNAP's FW security issues
QNAP's hardware compatibility list madness
QNAP's new logo competition
Dear QNAP, kindly fire your clueless incompetent forum "admin" And while at it, don't forget the webmaster!
User avatar
doktornotor
Ask me anything
Posts: 7472
Joined: Tue Apr 24, 2012 5:44 am

Re: QNAP website broken - retarded javascript language selec

Post by doktornotor »

One year after starting this thread, the geolocation nonsense still there, the junky toolbar is still floating, and the new website remains almost totally unindexed by Google. Everyone in the world is optimizing websites for search engines. QNAP seems to be doing the exact opposite.

Well... speechless, frankly.
I'm gone from this forum till QNAP stop wasting volunteers' time. Get help from QNAP helpdesk instead.
Warning: offensive signature and materials damaging QNAP reputation follow:
QNAP's FW security issues
QNAP's hardware compatibility list madness
QNAP's new logo competition
Dear QNAP, kindly fire your clueless incompetent forum "admin" And while at it, don't forget the webmaster!
Post Reply

Return to “Users' Corner”