{"id":163,"date":"2005-11-01T12:36:27","date_gmt":"2005-11-01T17:36:27","guid":{"rendered":"http:\/\/fiveforks.com\/ted\/2005\/11\/rotating_descriptions\/"},"modified":"2012-01-04T20:22:50","modified_gmt":"2012-01-05T01:22:50","slug":"rotating_descriptions","status":"publish","type":"post","link":"https:\/\/www.fiveforks.com\/ted\/2005\/11\/rotating_descriptions\/","title":{"rendered":"Rotating Descriptions"},"content":{"rendered":"<p>After some success with the rotating banner images, I decided to take Jeb up on his offer of doing rotating descriptions. I&#8217;ve had Gandalf&#8217;s quote about tempermental wizards for a while now. I don&#8217;t really have much else to say, but I picked up some movie quotes from Holy Grail, Raising Arizona, and Princess Bride.  I like some of the quotes, but others have to go. If there are any you don&#8217;t like, let me know and I&#8217;ll get rid of them.<\/p>\n<p><!--more--><br \/>\nJeb sent me some instructions and code about how to make this work. First, even though you might see \/ted\/files\/mt\/ in the URL of your browser you are actually viewing \/ted\/files\/mt\/index.html The internet always defaults to index.html if it can find a file of that name. Otherwise you see a list of all of the files in that location. But you can&#8217;t do this random stuff with simple html code, you need php code. That means I had to get rid of index.html and write a file called index.php. On this site, the internet looks for index.html first but then tries index.php. So you will still just see \/ted\/files\/mt\/ but you will be viewing \/ted\/files\/mt\/index.php.<\/p>\n<p>But Movable Type doesn&#8217;t seem to allow you to delete files. Even though I renamed index.html to index.php, it still left a copy of index.html in place. So I had to FTP to the site to delete (actually rename) index.html. I had tried to FTP this weekend without success, but somehow I was able to log in last night without a problem even though I wasn&#8217;t even logging in to the correct folder. I logged on to mac.fiveforks.com but somehow it knew to stick me in the users\/fiveforks\/sites\/ted folder.<\/p>\n<p>The different quotes are included in a file called <A HREF=\"\/ted\/files\/mt\/blogquotes.inc\">blogquotes.inc<\/A>. Jeb said I could create this as new template, but when I did that, I didn&#8217;t actually see the file anywhere and neither did the code in index.php. So I wrote a text file by that name with all my quotes and uploaded it to the site. Once I did that it worked out fine. That was the first php file I have written.<\/p>\n<p>All pages except the main page will keep the Gandalf quote because I would have to change all of those file names to .php and also make sure all the links are pointing to .php files. That seems kind of overly complicated for what I&#8217;m doing. Eric gets around this by including his description in the banner graphic. The other advantage of that is the description always goes with the picture showing.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After some success with the rotating banner images, I decided to take Jeb up on his offer of doing rotating descriptions. I&#8217;ve had Gandalf&#8217;s quote about tempermental wizards for a while now. I don&#8217;t really have much else to say, but I picked up some movie quotes from Holy Grail, Raising Arizona, and Princess Bride. &hellip; <a href=\"https:\/\/www.fiveforks.com\/ted\/2005\/11\/rotating_descriptions\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Rotating Descriptions&#8221;<\/span><\/a><\/p>\n","protected":false},"author":15,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-163","post","type-post","status-publish","format-standard","hentry","category-web"],"_links":{"self":[{"href":"https:\/\/www.fiveforks.com\/ted\/wp-json\/wp\/v2\/posts\/163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fiveforks.com\/ted\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fiveforks.com\/ted\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fiveforks.com\/ted\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fiveforks.com\/ted\/wp-json\/wp\/v2\/comments?post=163"}],"version-history":[{"count":1,"href":"https:\/\/www.fiveforks.com\/ted\/wp-json\/wp\/v2\/posts\/163\/revisions"}],"predecessor-version":[{"id":1061,"href":"https:\/\/www.fiveforks.com\/ted\/wp-json\/wp\/v2\/posts\/163\/revisions\/1061"}],"wp:attachment":[{"href":"https:\/\/www.fiveforks.com\/ted\/wp-json\/wp\/v2\/media?parent=163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fiveforks.com\/ted\/wp-json\/wp\/v2\/categories?post=163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fiveforks.com\/ted\/wp-json\/wp\/v2\/tags?post=163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}