{"id":152,"date":"2009-11-26T12:45:35","date_gmt":"2009-11-26T20:45:35","guid":{"rendered":"https:\/\/blogs.ubc.ca\/henrylo\/?p=152"},"modified":"2009-11-26T14:52:16","modified_gmt":"2009-11-26T22:52:16","slug":"changeable-untested-version-using-anyvar","status":"publish","type":"post","link":"https:\/\/blogs.ubc.ca\/henrylo\/2009\/11\/26\/changeable-untested-version-using-anyvar\/","title":{"rendered":"Changeable untested version using AnyVar"},"content":{"rendered":"<h1>3.0 Changeable untested version using AnyVar<\/h1>\n<h2>3.1 Introduction<\/h2>\n<p>Similar to changing the certified version, users can change the range of untested plugin versions using AnyVar.<\/p>\n<h2>3.2 Instructions<\/h2>\n<p>Changing the untested range is as easy as changing the certified version. The only difference is that you need to change the untested_minversion and untest_maxversion.<\/p>\n<p>For example, in the AnyVar variable list, there are the variables java_untested_minversion and java_untested_maxversion, as illustrated below:<\/p>\n<p align=\"center\"><a href=\"https:\/\/blogs.ubc.ca\/henrylo\/files\/2009\/11\/AnyVar-Untested-Version-Variables2.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-153\" title=\"AnyVar Untested Version Variables\" src=\"https:\/\/blogs.ubc.ca\/henrylo\/files\/2009\/11\/AnyVar-Untested-Version-Variables2.jpg\" alt=\"AnyVar Untested Version Variables\" \/><\/a><\/p>\n<p align=\"center\">Figure 5. AnyVar Untested Version Variables<\/p>\n<p>Changing the minversion variable to \u201c1.0\u201d and maxversion to \u201c1.4\u201d will correspond in the front-end as seen below:<\/p>\n<p align=\"center\">\n<p align=\"center\"><a href=\"https:\/\/blogs.ubc.ca\/henrylo\/files\/2009\/11\/Untested-Version2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-154\" title=\"Untested Version\" src=\"https:\/\/blogs.ubc.ca\/henrylo\/files\/2009\/11\/Untested-Version2.jpg\" alt=\"Untested Version\" width=\"509\" height=\"280\" \/><\/a>Figure 6. Untested Version<\/p>\n<p>If the user is using a java version that is within the untested range but do not have the certified version, a question mark will appear on the Java sidebar.<\/p>\n<h2>3.3 Programming Description<\/h2>\n<p>The programming of the untested range of plugins is implemented by simple if and else statements.<\/p>\n<p>function javac() {<\/p>\n<p>var version=parseFloat(PluginDetect.getVersion (&#8220;Java&#8221;));<\/p>\n<p>if (version==[java_version])\u00a0 {<\/p>\n<p>document.getElementById(&#8220;javab1&#8243;).src\u00a0 =&#8221;http:\/\/oltubc.com\/sandbox\/images\/javacheck.bmp&#8221;;<\/p>\n<p>} else {<\/p>\n<p>if(version &gt;=[java_untested_minversion]){<\/p>\n<p>if(version &lt;=[java_untested_maxversion]) {<\/p>\n<p>document.getElementById(&#8216;javab1&#8217;).src =&#8221;http:\/\/oltubc.com\/sandbox\/images\/javaquestion.bmp&#8221;; \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<\/p>\n<p>else \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 { \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 document.getElementById(&#8220;javab1&#8243;).src\u00a0 =&#8221;http:\/\/oltubc.com\/sandbox\/images\/javacross.bmp&#8221;; \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<\/p>\n<p>}<\/p>\n<p>else \u00a0\u00a0\u00a0\u00a0 { \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 document.getElementById(&#8220;javab1&#8243;).src=&#8221;http:\/\/oltubc.com\/sandbox\/images\/javacross.bmp&#8221;; \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p>The start of the code is an if statement that checks if the plugin version equal to the certified version created by the user using AnyVar, if so a check mark will appear of the plugin sidebar. If not, if the plugin is in the untested range, then a question mark will appear. If not within the range, then a cross mark will appear indicating that the plugin version being used is not certified and untested.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>3.0 Changeable untested version using AnyVar 3.1 Introduction Similar to changing the certified version, users can change the range of untested plugin versions using AnyVar. 3.2 Instructions Changing the untested range is as easy as changing the certified version. The only difference is that you need to change the untested_minversion and untest_maxversion. For example, in [&hellip;]<\/p>\n","protected":false},"author":1449,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6606],"tags":[],"class_list":["post-152","post","type-post","status-publish","format-standard","hentry","category-wordpress-plugin-check"],"_links":{"self":[{"href":"https:\/\/blogs.ubc.ca\/henrylo\/wp-json\/wp\/v2\/posts\/152","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.ubc.ca\/henrylo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.ubc.ca\/henrylo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.ubc.ca\/henrylo\/wp-json\/wp\/v2\/users\/1449"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.ubc.ca\/henrylo\/wp-json\/wp\/v2\/comments?post=152"}],"version-history":[{"count":7,"href":"https:\/\/blogs.ubc.ca\/henrylo\/wp-json\/wp\/v2\/posts\/152\/revisions"}],"predecessor-version":[{"id":198,"href":"https:\/\/blogs.ubc.ca\/henrylo\/wp-json\/wp\/v2\/posts\/152\/revisions\/198"}],"wp:attachment":[{"href":"https:\/\/blogs.ubc.ca\/henrylo\/wp-json\/wp\/v2\/media?parent=152"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.ubc.ca\/henrylo\/wp-json\/wp\/v2\/categories?post=152"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.ubc.ca\/henrylo\/wp-json\/wp\/v2\/tags?post=152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}