{"id":146,"date":"2009-11-26T12:43:15","date_gmt":"2009-11-26T20:43:15","guid":{"rendered":"https:\/\/blogs.ubc.ca\/henrylo\/?p=146"},"modified":"2009-11-26T14:52:01","modified_gmt":"2009-11-26T22:52:01","slug":"changeable-certified-plugin-version-using-anyvar","status":"publish","type":"post","link":"https:\/\/blogs.ubc.ca\/henrylo\/2009\/11\/26\/changeable-certified-plugin-version-using-anyvar\/","title":{"rendered":"Changeable certified plugin version using AnyVar"},"content":{"rendered":"<h1>2.0 Changeable certified plugin version using AnyVar<\/h1>\n<h2>2.1 Introduction<\/h2>\n<p>The back-end of the WordPress Plugin Check allows users to change the certified version of each plugin. This is accomplished using the AnyVar plugin. AnyVar can be accessed under \u201cTool\u201d in the sidebar.<\/p>\n<p align=\"center\"><a href=\"https:\/\/blogs.ubc.ca\/henrylo\/files\/2009\/11\/AnyVar-interface2.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-147\" title=\"AnyVar interface\" src=\"https:\/\/blogs.ubc.ca\/henrylo\/files\/2009\/11\/AnyVar-interface2.jpg\" alt=\"AnyVar interface\" \/><\/a><\/p>\n<p align=\"center\">Figure 2. AnyVar Interface<\/p>\n<p align=\"center\">\n<p>The image above shows the interface of AnyVar. To use AnyVar, we must first create a desired variable, for example [java_version], and place this tag within our HTML code. Luckily, the site developer has already done this, so we do not need to worry.<\/p>\n<h2>2.2 Instructions<\/h2>\n<p>Each of the plugins are clearly listed: flash_version, java_version, etc. These variables each accompany with them a value displayed on the right textbox. This value is the certified version of the plugin. For example, flash_version has a \u201c10.0\u201d, this means that the certified version for the flash plugin check on the front end is \u201c10.0\u201d. If a user has Flash \u201c10.0\u201d, a check mark will appear on the front end like so:<\/p>\n<p align=\"center\"><a href=\"https:\/\/blogs.ubc.ca\/henrylo\/files\/2009\/11\/Certified-Version2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-200\" title=\"Certified Version\" src=\"https:\/\/blogs.ubc.ca\/henrylo\/files\/2009\/11\/Certified-Version2.jpg\" alt=\"Certified Version\" width=\"470\" height=\"310\" \/><\/a><\/p>\n<p align=\"center\">Figure 3. Certified Version<\/p>\n<p>This variable is completely changeable to any the user desires. If the user wants to change the certified flash_version to \u201c9.8\u201d, he\/she needs only to click on the variable, and then a new page will show allowing them to enter in the new number. Similar to the image listed below:<\/p>\n<p align=\"center\"><a href=\"https:\/\/blogs.ubc.ca\/henrylo\/files\/2009\/11\/Change-certified-version3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-149\" title=\"Change certified version\" src=\"https:\/\/blogs.ubc.ca\/henrylo\/files\/2009\/11\/Change-certified-version3.jpg\" alt=\"Change certified version\" width=\"418\" height=\"133\" \/><\/a><\/p>\n<p align=\"center\">Figure 4. Change certified version<\/p>\n<p>Once changed, the front-end of the plugin check will also act accordingly, showing a check if the user has Flash 9.8 installed.<\/p>\n<h2>2.3 Programming Description<\/h2>\n<p>AnyVar is a plugin that allows the modification of user created tags. The greatest asset for this plugin is in the implementation of the plugin version. Developers can create a tag like [java_version] and insert it into the HTML page, then users can modify that variable to any number they want by using the intuitive interface provided by AnyVar.<\/p>\n<p>Here is an example of the AnyVar plugin in action within the Plugin Check code:<\/p>\n<p>&lt;script type=&#8221;text\/javascript&#8221;&gt;<\/p>\n<p>function flashc(){<\/p>\n<p>if(PluginDetect.isMinVersion(&#8220;Flash&#8221;,[flash_version])==1) document.getElementById(&#8220;flashb1&#8243;).src =&#8221;http:\/\/oltubc.com\/sandbox\/images\/flashcheck.bmp&#8221;; else document.getElementById(&#8220;flashb1&#8243;).src =&#8221;http:\/\/oltubc.com\/sandbox\/images\/flashcross.bmp&#8221;;<\/p>\n<p>}<\/p>\n<p>&lt;\/script&gt;<\/p>\n<p>As you can see within the \u201cif\u201d statement, we imbedded the tag [flash_version]. To explain in detail, if the flash version is not greater that the version stated in the tag [flash_version], and then the image id \u201cflashb1\u201d will show a cross, indicating that the version installed in your browser does not meet the minimum version required by the plugin check.<\/p>\n<p>Therefore, in conclusion, the purpose of the AnyVar plugin is to allow modification of the required plugin version without the experience of any HTML or Javascript programming, that is its greatest asset, and the reason we use it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>2.0 Changeable certified plugin version using AnyVar 2.1 Introduction The back-end of the WordPress Plugin Check allows users to change the certified version of each plugin. This is accomplished using the AnyVar plugin. AnyVar can be accessed under \u201cTool\u201d in the sidebar. Figure 2. AnyVar Interface The image above shows the interface of AnyVar. To [&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-146","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\/146","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=146"}],"version-history":[{"count":7,"href":"https:\/\/blogs.ubc.ca\/henrylo\/wp-json\/wp\/v2\/posts\/146\/revisions"}],"predecessor-version":[{"id":202,"href":"https:\/\/blogs.ubc.ca\/henrylo\/wp-json\/wp\/v2\/posts\/146\/revisions\/202"}],"wp:attachment":[{"href":"https:\/\/blogs.ubc.ca\/henrylo\/wp-json\/wp\/v2\/media?parent=146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.ubc.ca\/henrylo\/wp-json\/wp\/v2\/categories?post=146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.ubc.ca\/henrylo\/wp-json\/wp\/v2\/tags?post=146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}