{"id":93,"date":"2005-10-30T23:59:39","date_gmt":"2005-10-30T14:59:39","guid":{"rendered":"https:\/\/regex.info\/blog\/2005-10-30\/93"},"modified":"2005-10-31T00:03:32","modified_gmt":"2005-10-30T15:03:32","slug":"version-103-of-my-file-based-posts-wordpress-plugin","status":"publish","type":"post","link":"https:\/\/regex.info\/blog\/2005-10-30\/93","title":{"rendered":"Version 1.03 of my File-Based Posts WordPress plugin"},"content":{"rendered":"\n\n\n\n\n<p>\n\nJust a day after <b>1.02<\/b>, I've released version <b>1.03<\/b> of my <a\nhref=\"\/blog\/other-writings\/wordpress-file-based-posts-plugin\/\">&#8220;file-based\nposts&#8221; plugin<\/a> for WordPress. <span class='nobr'>It still<\/span> allows you to compose\/edit\nposts with your favorite editor instead of the tiny textarea box in <span class='nobr'>a\nbrowser,<\/span> but there are several new goodies with this version.\n\n<\/p><p>\n\nI added many of the goodies while figuring out how to incorporate <a\nhref=\"http:\/\/yq.search.yahoo.com\/publisher\/index.html\">Y!Q<\/a> into my\nblog. Y!Q is <span class='nobr'>a service<\/span> by Yahoo! which allows me to include contextual\n&#8220;search for more about this&#8221; links into my prose.\n\n<\/p><p>\n\nAs an example of Y!Q, consider that I'm talking about Anthony's favorite\nstuffed friend,\n\n  Curious George.\n\nNotice how the phrase &#8220;Curious George&#8221; has been highlighted? <span class='nobr'>If you click<\/span> on it, you should see <span class='nobr'>a popup<\/span> with Yahoo! search results for more\ninfo about the little monkey. (Use the <small>[ESC]<\/small> key to remove\nthe popup.) <span class='nobr'>I think<\/span> I'll add this &#8220;quick link to more info&#8221;\nfeature to my future posts, from time to time, when <span class='nobr'>I think<\/span> it will make\nthe reading experience better.\n\n<\/p><p>\n\nAnyway, back to my plugin, after taking advantage of some of the new things\nin v1.03, I've been able to set up an include file <b>YQ.html<\/b> which\nallows me to create a Y!Q link as simply as:<\/p>\n\n<pre style=\"font-size: 95%\">\n  &lt;fbp_include set <b>text<\/b>=&#39;Curious George&#39;: YQ.html&gt;\n<\/pre>\n\n<p>or more complex, such as the<\/p>\n\n<pre style=\"font-size: 75%\">\n  &lt;fbp_include set <b>text<\/b>=&#39;Curious George&#39;\n               set <b>focus<\/b>=&#39;books&#39;\n               set <b>context<\/b>=&#39;<span style=\"font-size: 90%\">Curious George is a curious little monkey<\/span>&#39;: YQ.html&gt;\n<\/pre>\n\n<p>which that I actually used above.<\/p>\n\n<p>\n\nHere's a look at the contents of the <b>YQ.html<\/b> file:<\/p>\n\n<pre style=\"font-size: 75%; border: red solid 1px; margin: 10px\">\n&lt;fbp_var fallback=terms: text&gt;\n<\/pre>\n\n<p>You can see the reference to many set-at-include-time variables, such as\nthe <b>text<\/b> we used in the first example above. These many variables\nreflect the many ways Yahoo! allows the developer to customize and target\nthe results (see &#8220;Step 4&#8221; of the <a\nhref=\"http:\/\/yq.search.yahoo.com\/publisher\/embed.html\">Y!Q Developer\nDocs<\/a>). <span class='nobr'>You can also<\/span> see some interesting attributes to the\n&lt;fbp_var&gt; calls, such as <b>fallback<\/b> and <b>doublequoted<\/b>.\n(See the <a\nhref=\"\/blog\/other-writings\/wordpress-file-based-posts-plugin\/\">plugin's\nhome page<\/a> for details on what these mean.)\n\n<\/p><p>\n\nFor completeness in case you'd like to use this yourself, here's the\n<b>YQ_head<\/b> file referenced from the first line of <b>YQ.html<\/b>:<\/p>\n\n<pre style=\"font-size: 75%; border: red solid 1px; margin: 10px\">\n&lt;script language=\"javascript\"\n        type=\"text\/javascript\"\n        src=\"http:\/\/yq.search.yahoo.com\/javascript\/yq.js\"&gt;&lt;\/script&gt;\n<\/pre>\n\n<p>\n\nFinally, here's something cool. I've included the above files in this post\nwith the following:<\/p>\n\n<pre>\n   &lt;pre style=&quot;<i>...<\/i>&quot;&gt;\n   <b>&lt;fbp_include uncounted cooked: YQ.html&gt;<\/b>\n   &lt;\/pre&gt;\n<\/pre>\n\n<p>This shows the new <b>uncounted<\/b> and <b>cooked<\/b> attributes to &lt;fbp_include&gt;.\n\n<\/p>\n<br clear=\"all\"\/>\n\n","protected":false},"excerpt":{"rendered":"<p> Just a day after <b>1.02<\/b>, I've released version <b>1.03<\/b> of my \"file-based posts\" plugin for WordPress. It still allows you to compose\/edit posts with your favorite editor instead of the tiny textarea box in a browser, but there are several new goodies with this version. <\/p><p> I added many of the goodies while figuring out how to incorporate Y!Q into my blog. Y!Q is a service by Yahoo! which allows me to include contextual \"search for more about this\" links into my prose. <\/p><p> As an example of Y!Q, consider that I'm talking about Anthony's favorite stuffed friend, Curious [...]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/posts\/93"}],"collection":[{"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/comments?post=93"}],"version-history":[{"count":0,"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/posts\/93\/revisions"}],"wp:attachment":[{"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/media?parent=93"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/categories?post=93"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/tags?post=93"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}