hack to get wordpress plugin image-extractor working, after system upgrade

related to: http://wordpress.org/extend/plugins/image-extractor Comment Im neuen GD-info wird neu “JPEG” statt “JPG” verwendet. Das Plugin überprüft diese Textsequenz und beendert mie einem “Fatal Error”, falls der Text nicht gefunden wird. Diff: php5:/home/test/public_html/wp-content/plugins/imageExtractor# diff class.ImageToolbox.php.bck class.ImageToolbox.php 202a203,205 > if ($gd_info[‘JPEG Support’]) { > $this->_types[2][‘supported’] = 2; > } 319a323,324 > if(strpos($line, “JPEG Support”) !== false) > […]

accesskey

EIne Software die intensiv genutzt wird sollte vollständig per Tastatur bedienbar sein. Ein kleiner Aufwand für die Developer und grosser Gewinn an Effizienz und Ergonomie für diejenigen, die gezwungen sind, mit dem Tool zu arbeiten. Und das nicht nur für blinde Menschen wie mich… Siehe z.B. http://www.w3.org/TR/WCAG/#keyboard-operation http://www.die-barrierefreie-website.de/grundlagen/tastaturbedienung.html Happy hacking.

Mod wordpress to searchable static archive

Clone website. New site url: mysql> update wp_options set option_value=”http://newurl.xyz” where option_name=”home”; mysql> update wp_options set option_value=”http://newurl.xyz” where option_name=”siteurl”; Disable comments: mysql> update wp_options set option_value=’closed’ where option_name=’default_comment_status’; mysql> UPDATE wp_posts SET comment_status=”closed”; Prevent any changes: move away wp-admin and wp-login.php

WordPress Layout Customization

Use recommended theme / settings to get as close as possible to your needs: http://wordpress.org/extend/themes/mystique Use Firebug (or Chromium developer tools ) to figure out layout details in css files: https://addons.mozilla.org/en-US/firefox/addon/firebug/ There are no webfonts, only operating systems fonts. For special fonts use: Lists of the font in all known systems (mainly Windows, OSX, Linux) […]

wordpress db-convert-string für vi

Folgende vi-Befehle können auf ein MySQL-Dump einerr WordPress installation angewendet werdem: 1. Beim Umzug einer WordPress-Installation an eine andere URL (von http://php5.vmk.zhdk.ch/ nach http://195.176.254.162/): 1,$s/php5.vmk.zhdk.ch/~prototyp/195.176.254.162/g 2. Beim umzug einer WordPress-Installation an einen anderen Pfad: 1,$s/home/prototyp/public_html/var/www/g