As you may have noticed, a couple<\/a> of posts<\/a> showed up over night, the last few in the rather wee hours of the morning. This was the byproduct of my discovering another new WordPress plugin a couple hours ago, called Postie.<\/p>\n
For the short term, I’m going to be giving Postie a try for moblogging, instead of using Flickr like I have in the past. The only noticeable change to you, the reader, is that the template is slightly different, and there is not (for the time being) a gallery of all<\/em> the past moblog photos in one place. (Previously you could visit my photostream on Flickr<\/a>)<\/p>\n
Not to worry.<\/strong> You can already view the most recent posts by using the Categories feature of WordPress, located on the right side of the page. Head on over to Moblog<\/a> (or click on “Moblog<\/a>” at the header of this post) to see all recent mobile posts. These categories are automatically updated when new posts are made.<\/p>\n
In postie-functions.php<\/strong>, around line 396, replace the original <\/p>\n
if ($thumbImage) {\n. . .\n}<\/pre>\n block with the following code:<\/p>\n
if ($thumbImage) {\n $marime=DetermineImageSize($file);\n $marimex=$marime[0]+20;\n $marimey=$marime[1]+20;\n \/\/Edit: Removed $mimeTag, as I don't really need that cluttering up\n \/\/ my posts unless something goes wrong.\n $newAttachment = 'ctype_parameters['name'] . '\"';\n }\n $newAttachment .= '>
ctype_parameters['name'] . '\" title=\"'\n . $part->ctype_parameters['name'] . '\" style=\"'.$config[\"IMAGESTYLE\"]\n . '\" class=\"'.$config[\"IMAGECLASS\"].'\" \/><\/a><\/div>' . \"n\";\n $attachments[\"html\"][] .= $newAttachment;\n if ($cid) {\n $attachments[\"cids\"][$cid] = array($config[\"URLPHOTOSDIR\"]\n . $fullImage,count($attachments[\"html\"]) - 1);\n }\n}<\/pre>\nThen, around line 1785, add these two lines, to set defaults for the new config options:<\/p>\n
if (!isset($config[\"USE_POPUP\"])) { $config[\"USE_POPUP\"] = true; }\n if (!isset($config[\"USE_LIGHTBOX\"])) { $config[\"USE_LIGHTBOX\"] = false; }<\/pre>\nFinally, in config_form.php<\/strong>, you need to add these two entries. I like them around line 233.<\/p>\n
< ?php echo BuildBooleanSelect(\"Enable Lightbox For Thumbnails\",\"USE_LIGHTBOX\",$config[\"USE_LIGHTBOX\"],\"Has no effect without one of these plugins: Lightbox, Litebox, or SmartBox\");?>\n< ?php echo BuildBooleanSelect(\"Enable Pop-Up For Thumbnail Links\",\"USE_POPUP\",$config[\"USE_POPUP\"],\"Yes will cause thumbnail images' link to the full size version to open in a new window.\");?><\/pre>\n","protected":false},"excerpt":{"rendered":"As you may have noticed, a couple of posts showed up over night, the last few in the rather wee hours of the morning. This was the byproduct of my discovering another new WordPress plugin a couple hours ago, called Postie. Postie is a plugin designed to make it easier to post entries by email, […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,20,23],"tags":[],"_links":{"self":[{"href":"http:\/\/www.mccambridge.org\/blog\/wp-json\/wp\/v2\/posts\/241"}],"collection":[{"href":"http:\/\/www.mccambridge.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.mccambridge.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.mccambridge.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.mccambridge.org\/blog\/wp-json\/wp\/v2\/comments?post=241"}],"version-history":[{"count":1,"href":"http:\/\/www.mccambridge.org\/blog\/wp-json\/wp\/v2\/posts\/241\/revisions"}],"predecessor-version":[{"id":1679,"href":"http:\/\/www.mccambridge.org\/blog\/wp-json\/wp\/v2\/posts\/241\/revisions\/1679"}],"wp:attachment":[{"href":"http:\/\/www.mccambridge.org\/blog\/wp-json\/wp\/v2\/media?parent=241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.mccambridge.org\/blog\/wp-json\/wp\/v2\/categories?post=241"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.mccambridge.org\/blog\/wp-json\/wp\/v2\/tags?post=241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}