{"id":17,"date":"2004-09-23T13:52:12","date_gmt":"2004-09-23T13:52:12","guid":{"rendered":"http:\/\/lachy.id.au\/log\/2004\/09\/get-firefox"},"modified":"2006-04-30T23:53:25","modified_gmt":"2006-04-30T23:53:25","slug":"get-firefox","status":"publish","type":"post","link":"https:\/\/lachy.id.au\/log\/2004\/09\/get-firefox","title":{"rendered":"Get Firefox"},"content":{"rendered":"<p>If you haven\u2019t already noticed, my site has been updated with a large alternating \u201cGet Firefox\u201d banner, at the top of every page.  I\u2019ve also updated the Get Firefox button in the sidebar.  Before I go into the details of how these are implemented, I just want to give a small update of the <a href=\"http:\/\/spreadfirefox.com\/\">SpreadFirefox.com<\/a> campaign.  I\u2019ve created some <a href=\"http:\/\/www.spreadfirefox.com\/?q=node\/view\/1220\">Firefox Flyers<\/a> for people to distribute in their area.  I\u2019ll be distributing them around my area this weekend.  I\u2019ve also started a new mini-project called the <a href=\"http:\/\/www.spreadfirefox.com\/?q=node\/view\/1517\">Firefox 5 Minute Challenge<\/a>.  Full details are available in my <a href=\"http:\/\/www.spreadfirefox.com\/?q=blog\/2356\">SpreadFirefox blog<\/a>, I want as much feedback as I can get, to make them as good as possible.<\/p>\r\n\r\n<p>These Get Firefox banners have been implemented to randomly rotate between all the ones I have available.  There\u2019s currently <a href=\"\/lib\/images\/buttons\/firefox\/88x31\/\">5 buttons<\/a> for the sidebar, and <a href=\"\/lib\/images\/buttons\/firefox\/600x120\/\">2 banners<\/a> for the header.  They\u2019ve been set up to rotate using the <a href=\"http:\/\/www.alistapart.com\/authors\/danbenjamin\/\" title=\"Dan\u2019s A List Apart Profile\">Dan Benjamin<\/a>\u2019s <a href=\"http:\/\/www.alistapart.com\/articles\/betterrotator\/\" title=\"A Better Image Rotator\">image rotator<\/a>.  Because that rotator uses <abbr title=\"Recursive Acronym for PHP Hypertext Processor\">PHP<\/abbr>, yet the files from my site are currently all static, I used <abbr title=\"Server Side Includes\">SSI<\/abbr> to include the PHP files, which inturn include the PHP rotator script and pass the appropriate .ini file, with the list of images.<\/p>\r\n\r\n<p>The two files for the <a href=\"\/lib\/includes\/rotator\/spreadfirefox-88x31.ini\">88\u00d731 buttons<\/a>, and the <a href=\"\/lib\/includes\/rotator\/spreadfirefox-600x120.ini\">600\u00d7120 banners<\/a> were extended from those described in the <abbr title=\"A List Apart\">ALA<\/abbr> article by adding height and width attributes.  This is because the image size functions weren\u2019t working for me since the <code>height<\/code> and <code>width<\/code> attributes were not being output, and my knowledge of PHP is fairly limited.  So, the easiest way for me to handle this was to add the attributes, and extend the script to insert the values from the properties file.  This was done by adding the following lines to the script:<\/p>\r\n\r\n<pre><code>    # height\r\n    $height = $images[$img]['height'] ?\r\n      sprintf( ' height=\"%s\" ', $images[$img]['height'] ) :\r\n      '';\r\n    # width\r\n    $width = $images[$img]['width'] ?\r\n      sprintf( ' width=\"%s\" ', $images[$img]['width'] ) :\r\n      '';\r\n<\/code><\/pre>\r\n\r\n<p>Then, the image element output was also modified to include these extra values.<\/p>\r\n\r\n<pre><code>    printf(\r\n      '&lt;img src=\"%s\" alt=\"%s\" %s %s %s %s %s&gt;',\r\n      $images[$img]['src'],\r\n      $images[$img]['alt'],\r\n\t  $title,\r\n      $id,\r\n      $class,\r\n\t  $height,\r\n\t  $width\r\n    );\r\n<\/code><\/pre>\r\n\r\n<p>There\u2019s actually two slightly different versions of this.  One for <a href=\"\/blogs\/log\/2004\/09\/rotator-xhtml.txt\" title=\"XHTML Rotator PHP Script\">XHTML<\/a> and the other for <a href=\"\/blogs\/log\/2004\/09\/rotator-html.txt\" title=\"HTML Rotator PHP Script\">HTML<\/a>.  I know there are probably much better ways to handle this, but I just wanted something quick and dirty to get the job done.  I eventually want to handle everything by creating XHTML, served as <code>application\/xhtml+xml<\/code> to descent browsers, and convert it with <abbr title=\"Extensible Stylesheet Language Transformations\">XSLT<\/abbr> and PHP, but I my previous trials of implementing that failed.  I don\u2019t think my ISP has the required PHP modules installed.<\/p>\r\n\r\n<p>Finally, I\u2019ve been trying lately to track down a copy of the font used for the Firefox logos.  This font is called <a href=\"http:\/\/www.fontfont.com\/shop\/index.ep?cview=S127926M&amp;clist=SM\">FF Meta Bold<\/a>, but unfortunately, it\u2019s rather expensive to buy.  So, if anyone has this font available, I would appreciate it if you could make up some vector images, such as a .fla file or .eps, or whatever, with the text \u201cGet Firefox\u201d and \u201cGet Thunderbird\u201d, and the slogans such as \u201cRediscover the web\u201d, etc.  All the ones that appear on the official Firefox buttons.  Because the font is copyrighted, I\u2019m not asking for a copy, but I won\u2019t say know if you just want to send it to me anyway ;-).  A lot of people would appreciate having the text as vector images, so we don\u2019t have to put up with the low-res GIFs and PNGs we currently have available.  If you\u2019re interested, we already have a <a href=\"http:\/\/www.spreadfirefox.com\/?q=node\/view\/1054\">vector logo<\/a> available.<\/p>","protected":false},"excerpt":{"rendered":"If you haven\u2019t already noticed, my site has been updated with a large alternating \u201cGet Firefox\u201d banner, at the top of every page. I\u2019ve also updated the Get Firefox button in the sidebar. Before I go into the details of how these are implemented, I just want to give a small update of the SpreadFirefox.com &hellip; <a href=\"https:\/\/lachy.id.au\/log\/2004\/09\/get-firefox\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Get Firefox<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[12,11],"tags":[],"_links":{"self":[{"href":"https:\/\/lachy.id.au\/log\/wp-json\/wp\/v2\/posts\/17"}],"collection":[{"href":"https:\/\/lachy.id.au\/log\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lachy.id.au\/log\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lachy.id.au\/log\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lachy.id.au\/log\/wp-json\/wp\/v2\/comments?post=17"}],"version-history":[{"count":0,"href":"https:\/\/lachy.id.au\/log\/wp-json\/wp\/v2\/posts\/17\/revisions"}],"wp:attachment":[{"href":"https:\/\/lachy.id.au\/log\/wp-json\/wp\/v2\/media?parent=17"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lachy.id.au\/log\/wp-json\/wp\/v2\/categories?post=17"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lachy.id.au\/log\/wp-json\/wp\/v2\/tags?post=17"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}