howto
Easy Multi-Site install for Drupal
Posted February 22nd, 2007 by ssextonThis post may be a little bit premature - there may be more multisite issues lurking - but given that the Drupal documentation seems to go out of its way NOT to be helpful, here's a quick tip for installing multiple Drupal-powered domains:
- don't use the 'default' site - it'll just confuse you. leave sites/default empty so that if a site falls through, it gives an error
- keep a copy of the original settings.php from your Drupal install lying around
- when you want to create a new site, put a fresh copy of the original settings.php into sites/default
Easy Private Forums for Drupal
Posted February 24th, 2007 by ssextonSo, I'm trying to migrate a phpBB-based forum to Drupal, so that I have a "integrated" software that provides more than just forums (blogs, pages, etc). When I hit a road block: Drupal out-of-the-box has no equivalent of phpBB's "private" forums!
Luckily, if all you want is phpBB-like private forums, there is a fairly easy solution:
1) Install the "tac_lite" (Taxonomy Access Control Lite) module, from http://drupal.org/project/tac_lite.
2) Activate the module
Drupal Tip: User Pictures in Forums Only
Posted April 10th, 2007 by ssextonAt http://drupal.org/node/127104 is a code snippet so that user pictures in Drupal only show up in the forums, not on other pages (ex: front page, books) where they might look out-of-place.
Briefly (in case the link dies), the trick is to edit your node.tpl.php to not display pictures at all (comment out/remove the print $picture part) yet keep it in your node-forum.tpl.php. This is assuming you have a node-forum.tpl.php, of course.
GCC tip: get a list of built-in macros
Posted April 27th, 2007 by ssextonApple's QA1424 has a quick tip to dump out all the predefined macros in the gcc compiler. I haven't tried it, but I suspect it works for all gcc's, not just the one on Mac. Here's the script:
gcc -arch ppc -dM -E - < /dev/null | sort
Fixing MediaDirect Broken MBR
Posted March 19th, 2009 by ssextonSo I have a brand new DELL XPS M1530, which has Vista pre-installed, and also comes with MediaDirect. Its been working good for about 2-3 wks, until today, whilst doing a normal power cycle to install some software, I inadvertently pressed the MediaDirect key (the little button with the house on it, just left of the power button). Now, before now, I had no idea what that button was. I'm still not sure what it is supposed to do, other than the end result was IT MADE MY SYSTEM COMPLETELY UNBOOTABLE!