{"id":3749,"date":"2021-11-26T14:53:08","date_gmt":"2021-11-26T22:53:08","guid":{"rendered":"https:\/\/www.gregamer.com\/?p=3749"},"modified":"2021-11-26T14:53:08","modified_gmt":"2021-11-26T22:53:08","slug":"blogging-a-backend-story","status":"publish","type":"post","link":"https:\/\/www.gregamer.com\/index.php\/2021\/11\/26\/blogging-a-backend-story\/","title":{"rendered":"Blogging &#8211; A Backend Story"},"content":{"rendered":"<div\n    class=\"pld-like-dislike-wrap pld-template-2\">\n    <div class=\"pld-like-wrap  pld-common-wrap\">\n    <a href=\"javascript:void(0)\"\n       class=\"pld-like-trigger pld-like-dislike-trigger \"\n       title=\"\"\n       data-post-id=\"3749\"\n       data-trigger-type=\"like\"\n       data-restriction=\"ip\"\n       data-already-liked=\"0\">\n                           <i class=\"fas fa-heart\"><\/i>\n                    <\/a>\n    <span class=\"pld-like-count-wrap pld-count-wrap\">1    <\/span>\n<\/div><\/div><p>Over the last ten years blogging about my layout, I\u2019ve tried to get the most out of this website. This year I\u2019ve redoubled my effort to enable some website functionality I\u2019ve always been after.<\/p>\n<p>This post is about the work I\u2019ve done on this WordPress website recently. WordPress (if you\u2019re not familiar) is a widely used open-source blogging program. It is very versatile and customizable with thousands of third party themes and plug-ins. It offers the end user a modular, drag and drop website building system.<\/p>\n<p>I realize it\u2019s probably a boring subject for most readers, but I know many readers have their own personal blogs and I\u2019m hoping this information might be helpful. I\u2019m also hoping that you will share what has worked for you.<\/p>\n<h3>The Server Switch<\/h3>\n<p>Long before Linux was the standard , I married my data to a Windows server and became trapped on a decaying platform (<strong>see<\/strong> <a href=\"https:\/\/www.gregamer.com\/index.php\/2013\/09\/14\/from-pioneer-to-legacy\/\" target=\"_blank\" rel=\"noopener\"><strong>From Pioneer to Legacy<\/strong><\/a>). My hosting company stopped supporting their Windows servers and stopped updating WordPress and PhP several years ago, leaving me unable to take advantage of the full functionality of WordPress.<\/p>\n<p>My only lifeline was to migrate to a Linux server, a scary prospect I\u2019ve put off for years. I made the switch earlier this year.<\/p>\n<p>The switch was more painless than I imagined. Basically copy your WordPress website files to the new server, export your MySQL database and import it to the new server, set up the database connection, and tweak any configuration settings for the new server.<\/p>\n<p>I\u2019d go into specifics, but I really stumbled my way through the process with the aid of YouTube (search migrating MySQL, migrating WordPress, migrating from Windows to Linux) and my hosting company\u2019s tech support line (thank god I\u2019ve been a customer for 25 years otherwise I think they would have charged me a fortune for the assistance they provided \ud83d\ude42<\/p>\n<h3>Subscriber Mail<\/h3>\n<p>The server switch enabled me to use email notifications. I\u2019m using my own server for mail, but you can also opt to use a 3rd party service like MailChimp. I\u2019m still testing plug-ins , but I feel like I\u2019ve finally overcome some of the hurdles.<\/p>\n<p>My first step was to set up a dedicated email address to send mail from. I chose no-reply@gregamer.com. I did this through C-Panel (a common backend control panel many hosting companies use).<\/p>\n<p>The <strong>WPMailSMTP<\/strong>&nbsp;plug-in helped me configure my outgoing SMPTP mail settings. This feature is sometimes integrated in many full featured mail plug-ins, but I couldn\u2019t get it to work with my first plug-in experiments.<\/p>\n<p>The <strong>MailPoet<\/strong> plug-in has enabled me to set up a subscriber list with two step confirmation, set up scheduling and has templates to format the outgoing mail.<\/p>\n<p>This post will be the first real test of my email setup and my fingers are crossed.<\/p>\n<h3>Dynamic Blogroll<\/h3>\n<p>I\u2019ve &nbsp;always wanted to use my blog to track and promote the other blogs I\u2019m intersected in. For years I\u2019ve used the plug-in <strong>Eazy Enable Blogroll<\/strong> to keep a database of links that I can display as a static Blogroll list.<\/p>\n<p>While it\u2019s nice to have that long list of links, it\u2019s not helpful in focusing my attention to when a blog posts new content. The <strong>RSS Blogroll<\/strong> plug-in came to the rescue by allowing me to display a dynamic frequently updated list of blog posts so I know where to focus my attention. The output is cool, but I wish this plug-in would integrate with my existing links, instead I have to update new links manually. Not hard, but something I\u2019ll need to remember every time I add a new link.&nbsp;<\/p>\n<figure id=\"attachment_3752\" aria-describedby=\"caption-attachment-3752\" style=\"width: 139px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" class=\"wp-image-3752 size-medium\" src=\"https:\/\/www.gregamer.com\/wp-content\/uploads\/2021\/11\/AF91F6A2-733A-49C5-B414-FD019D0A4B66-139x300.jpeg\" alt=\"\" width=\"139\" height=\"300\" srcset=\"https:\/\/www.gregamer.com\/wp-content\/uploads\/2021\/11\/AF91F6A2-733A-49C5-B414-FD019D0A4B66-139x300.jpeg 139w, https:\/\/www.gregamer.com\/wp-content\/uploads\/2021\/11\/AF91F6A2-733A-49C5-B414-FD019D0A4B66-473x1024.jpeg 473w, https:\/\/www.gregamer.com\/wp-content\/uploads\/2021\/11\/AF91F6A2-733A-49C5-B414-FD019D0A4B66-92x200.jpeg 92w, https:\/\/www.gregamer.com\/wp-content\/uploads\/2021\/11\/AF91F6A2-733A-49C5-B414-FD019D0A4B66.jpeg 591w\" sizes=\"(max-width: 139px) 100vw, 139px\" \/><figcaption id=\"caption-attachment-3752\" class=\"wp-caption-text\">A recent look at RSS Blogroll output.<\/figcaption><\/figure>\n<p>I\u2019d like to find a Blogroll plug-in that combines the functionality of <strong>Eazy Enable Blogroll<\/strong> and <strong>RSS Blogroll<\/strong>. I\u2019m open to trying new plug-ins to accomplish this, so if you have a suggestion please comment and let me know what works for you.<\/p>\n<h3>Blocking Spam<\/h3>\n<p>One of the big problems with an interactive website is spam. I learned this early on when my comment feeds would fill up with hundreds spam posts, choking my server. That\u2019s why I moderate comments on this blog. Moderating the comments doesn\u2019t stop spam though, it just gives me a chance to delete it before it gets published, which can still become time consuming.<\/p>\n<p>Long ago I installed a plug-in called <strong>Captcha<\/strong>. It posts a math challenge before anyone can post comments or register. It worked for a while, but I think the bots have figured out how to defeat this challenge and I probably need to figure out how to enable a photo Captcha.<\/p>\n<p>Recently I\u2019ve found a plug-in called <strong>Askimet<\/strong> which has been very successful in eliminating spam from my site.<\/p>\n<figure id=\"attachment_3751\" aria-describedby=\"caption-attachment-3751\" style=\"width: 139px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" class=\"wp-image-3751 size-medium\" src=\"https:\/\/www.gregamer.com\/wp-content\/uploads\/2021\/11\/B8FB4744-004D-4E4D-8B47-42D82858DD83-139x300.jpeg\" alt=\"\" width=\"139\" height=\"300\" srcset=\"https:\/\/www.gregamer.com\/wp-content\/uploads\/2021\/11\/B8FB4744-004D-4E4D-8B47-42D82858DD83-139x300.jpeg 139w, https:\/\/www.gregamer.com\/wp-content\/uploads\/2021\/11\/B8FB4744-004D-4E4D-8B47-42D82858DD83-473x1024.jpeg 473w, https:\/\/www.gregamer.com\/wp-content\/uploads\/2021\/11\/B8FB4744-004D-4E4D-8B47-42D82858DD83-92x200.jpeg 92w, https:\/\/www.gregamer.com\/wp-content\/uploads\/2021\/11\/B8FB4744-004D-4E4D-8B47-42D82858DD83.jpeg 591w\" sizes=\"(max-width: 139px) 100vw, 139px\" \/><figcaption id=\"caption-attachment-3751\" class=\"wp-caption-text\">My Askimet spam blocker stats.<\/figcaption><\/figure>\n<h3>Fake Users<\/h3>\n<p>Another large problem has been fake users. Originally I set up a user database to combat spam comments, unfortunately it had the unintended side effect that it became a harbor for fake users. I tried sorting through my 2000 registered users and determined the vast majority were fake. So I recently nuked the user database, I really don\u2019t need it and I don\u2019t need the extra hassle of policing fake users.<\/p>\n<p>Unfortunately, I have to keep the database because that is how I get administrative access to the blog. I hid the registration form, but fake accounts still get through. I would really like to figure out how to freeze that table and prevent new entries from being added.<\/p>\n<h3>Future Functionality<\/h3>\n<ul>\n<li><strong>Captcha<\/strong> &#8211; I have a a Captcha plug-in that displays a math challenge, but the bots have figured out how to defeat this challenge and I need to figure out how to implement a photographic Captcha.<\/li>\n<li><strong>Switch Lists<\/strong> &#8211; I worked on a switch list program for my layout using the backend database for this website (<strong>see <\/strong><a href=\"https:\/\/www.gregamer.com\/index.php\/2012\/03\/02\/switchlist_intr\/\" target=\"_blank\" rel=\"noopener\"><strong>Switchlist \u2013 Working on an Operations Application<\/strong>)<\/a>&nbsp; I never really got it to run like I wanted it to and ended up just using a simple spreadsheet. At some point I might explore this again.<\/li>\n<li><strong>A Datebook<\/strong> &#8211; I\u2019d like some kind of calendar functionality that would allow people to register for operating sessions or visits.<\/li>\n<li><strong>Shopping Cart?<\/strong>&nbsp;&#8211; I frequently sell items so I\u2019ve experimented with some shopping cart plug-ins. But I\u2019m skeptical anyone would want to use a shopping cart on my personal website.<\/li>\n<\/ul>\n<h3>Keep Blogging<\/h3>\n<p style=\"text-align: left;\">While personal blogs are getting lost to the dominance of social media, there is still life in these dusty corners of the Internet.&nbsp;I encourage my fellow model railroaders to keep blogging and to keep supporting blogs.&nbsp;This may be a dying art form, but I still enjoy my own little outpost on the World Wide Web.<\/p>\n<p style=\"text-align: left;\">&nbsp;<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p class=\"pvc_stats total_only \" data-element-id=\"3749\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" version=\"1.0\" viewBox=\"0 0 502 315\" preserveAspectRatio=\"xMidYMid meet\"><g transform=\"translate(0,332) scale(0.1,-0.1)\" fill=\"\" stroke=\"none\"><path d=\"M2394 3279 l-29 -30 -3 -207 c-2 -182 0 -211 15 -242 39 -76 157 -76 196 0 15 31 17 60 15 243 l-3 209 -33 29 c-26 23 -41 29 -80 29 -41 0 -53 -5 -78 -31z\"\/><path d=\"M3085 3251 c-45 -19 -58 -50 -96 -229 -47 -217 -49 -260 -13 -295 52 -53 146 -42 177 20 16 31 87 366 87 410 0 70 -86 122 -155 94z\"\/><path d=\"M1751 3234 c-13 -9 -29 -31 -37 -50 -12 -29 -10 -49 21 -204 19 -94 39 -189 45 -210 14 -50 54 -80 110 -80 34 0 48 6 76 34 21 21 34 44 34 59 0 14 -18 113 -40 219 -37 178 -43 195 -70 221 -36 32 -101 37 -139 11z\"\/><path d=\"M1163 3073 c-36 -7 -73 -59 -73 -102 0 -56 133 -378 171 -413 34 -32 83 -37 129 -13 70 36 67 87 -16 290 -86 209 -89 214 -129 231 -35 14 -42 15 -82 7z\"\/><path d=\"M3689 3066 c-15 -9 -33 -30 -42 -48 -48 -103 -147 -355 -147 -375 0 -98 131 -148 192 -74 13 15 57 108 97 206 80 196 84 226 37 273 -30 30 -99 39 -137 18z\"\/><path d=\"M583 2784 c-38 -19 -67 -74 -58 -113 9 -42 211 -354 242 -373 16 -10 45 -18 66 -18 51 0 107 52 107 100 0 39 -1 41 -124 234 -80 126 -108 162 -133 173 -41 17 -61 16 -100 -3z\"\/><path d=\"M4250 2784 c-14 -9 -74 -91 -133 -183 -95 -150 -107 -173 -107 -213 0 -55 33 -94 87 -104 67 -13 90 8 211 198 130 202 137 225 78 284 -27 27 -42 34 -72 34 -22 0 -50 -8 -64 -16z\"\/><path d=\"M2275 2693 c-553 -48 -1095 -270 -1585 -649 -135 -104 -459 -423 -483 -476 -23 -49 -22 -139 2 -186 73 -142 361 -457 571 -626 285 -228 642 -407 990 -497 242 -63 336 -73 660 -74 310 0 370 5 595 52 535 111 1045 392 1455 803 122 121 250 273 275 326 19 41 19 137 0 174 -41 79 -309 363 -465 492 -447 370 -946 591 -1479 653 -113 14 -422 18 -536 8z m395 -428 c171 -34 330 -124 456 -258 112 -119 167 -219 211 -378 27 -96 24 -300 -5 -401 -72 -255 -236 -447 -474 -557 -132 -62 -201 -76 -368 -76 -167 0 -236 14 -368 76 -213 98 -373 271 -451 485 -162 444 86 934 547 1084 153 49 292 57 452 25z m909 -232 c222 -123 408 -262 593 -441 76 -74 138 -139 138 -144 0 -16 -233 -242 -330 -319 -155 -123 -309 -223 -461 -299 l-81 -41 32 46 c18 26 49 83 70 128 143 306 141 649 -6 957 -25 52 -61 116 -79 142 l-34 47 45 -20 c26 -10 76 -36 113 -56z m-2057 25 c-40 -58 -105 -190 -130 -263 -110 -324 -59 -707 132 -981 25 -35 42 -64 37 -64 -19 0 -241 119 -326 174 -188 122 -406 314 -532 468 l-58 71 108 103 c185 178 428 349 672 473 66 33 121 60 123 61 2 0 -10 -19 -26 -42z\"\/><path d=\"M2375 1950 c-198 -44 -350 -190 -395 -379 -18 -76 -8 -221 19 -290 114 -284 457 -406 731 -260 98 52 188 154 231 260 27 69 37 214 19 290 -38 163 -166 304 -326 360 -67 23 -215 33 -279 19z\"\/><\/g><\/svg><\/i> &nbsp;1,501&nbsp;<\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>1 Over the last ten years blogging about my layout, I\u2019ve tried to get the most out of this website&#8230;.<\/p>\n","protected":false},"author":1,"featured_media":3760,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.gregamer.com\/index.php\/wp-json\/wp\/v2\/posts\/3749"}],"collection":[{"href":"https:\/\/www.gregamer.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gregamer.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gregamer.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gregamer.com\/index.php\/wp-json\/wp\/v2\/comments?post=3749"}],"version-history":[{"count":7,"href":"https:\/\/www.gregamer.com\/index.php\/wp-json\/wp\/v2\/posts\/3749\/revisions"}],"predecessor-version":[{"id":3761,"href":"https:\/\/www.gregamer.com\/index.php\/wp-json\/wp\/v2\/posts\/3749\/revisions\/3761"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.gregamer.com\/index.php\/wp-json\/wp\/v2\/media\/3760"}],"wp:attachment":[{"href":"https:\/\/www.gregamer.com\/index.php\/wp-json\/wp\/v2\/media?parent=3749"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gregamer.com\/index.php\/wp-json\/wp\/v2\/categories?post=3749"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gregamer.com\/index.php\/wp-json\/wp\/v2\/tags?post=3749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}