Title: random's Replies | WordPress.org

---

# random

  [  ](https://wordpress.org/support/users/random/)

 *   [Profile](https://wordpress.org/support/users/random/)
 *   [Topics Started](https://wordpress.org/support/users/random/topics/)
 *   [Replies Created](https://wordpress.org/support/users/random/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/random/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/random/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/random/engagements/)
 *   [Favorites](https://wordpress.org/support/users/random/favorites/)

 Search replies:

## Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Improper HTTP Status Code Returns](https://wordpress.org/support/topic/improper-http-status-code-returns/)
 *  [random](https://wordpress.org/support/users/random/)
 * (@random)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/improper-http-status-code-returns/#post-313298)
 * It’s probably the fault of WP::parse_query() in classes.php, and it might have
   been [fixed already](http://trac.wordpress.org/changeset/3111). It’s 3am and 
   I am too sleepy to test it, though.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [DreamHost wants me to shut off a query](https://wordpress.org/support/topic/dreamhost-wants-me-to-shut-off-a-query/)
 *  [random](https://wordpress.org/support/users/random/)
 * (@random)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/dreamhost-wants-me-to-shut-off-a-query/#post-237566)
 * I think it’s a bit of both. It does something like this:
 * When someone visits the page, the query is made and the results are cached. From
   then on, until the cache expires (after an hour by default) or is manually cleaned,
   the plugin output is served from the cache.
 * Every time someone posts a comment, the cache is emptied, so the list will be
   regenerated on the next page load.
 * If you **only** want the cache rebuilt when a comment is posted/edited/deleted(
   etc.), then set `$sem_recent_comments_cache_timeout` to something high (in seconds).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Writing Categories to a file](https://wordpress.org/support/topic/writing-categories-to-a-file/)
 *  [random](https://wordpress.org/support/users/random/)
 * (@random)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/writing-categories-to-a-file/#post-77100)
 * This is a bit of code I found somewhere for just opening and writing a file. 
   You might need to create menu.xml with the right permissions first.
    `$filename
   = '/server/path/to/menu.xml'; if (is_writable($filename)) { if (!$handle = fopen(
   $filename, 'w')) { echo "Cannot open file ($filename)"; exit; }  } else { echo"
   The file $filename is not writable"; } $somecontent = 'blahblahblah'; fwrite(
   $handle, $somecontent); fclose($handle);
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [3 column design](https://wordpress.org/support/topic/3-column-design/)
 *  [random](https://wordpress.org/support/users/random/)
 * (@random)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/3-column-design/page/2/#post-71921)
 * [@root](https://wordpress.org/support/users/root/): the [pink lilies](http://www.alexking.org/software/wordpress/styles/sample.php?wpstyle=pink_lilies&c=1#comments)
   example doesn’t use absolute positioning, it just uses floats. (They both remove
   elements from the document flow, so your point still stands, but still. :P)
    
   Absolute positioning has its advantages, and it doesn’t _always_ lead to broken
   pages. Ironically, putting the pink lily floats inside an absolutely positioned
   container actually fixes the menu-overlap problem you so hate. [Example](http://rephrase.net/miscellany/temporary/pinklilies.html).(
   Renders right in FF0.92, Opera 7, IE6, required 1 change to the template and 
   a few changes to the CSS.)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Setting up post templates or ‘via’ links](https://wordpress.org/support/topic/setting-up-post-templates-or-via-links/)
 *  [random](https://wordpress.org/support/users/random/)
 * (@random)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/setting-up-post-templates-or-via-links/#post-71841)
 * P.S. that worked for me in FireFox 0.92, I’m very sorry if it doesn’t work in
   anything else
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Setting up post templates or ‘via’ links](https://wordpress.org/support/topic/setting-up-post-templates-or-via-links/)
 *  [random](https://wordpress.org/support/users/random/)
 * (@random)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/setting-up-post-templates-or-via-links/#post-71745)
 * “with ALL of the possible via links”
    Taking the Waxy links as an example, wouldn’t
   that include just about every page in the entire Web…?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Gallery (http://gallery.menalto.com/) integration?](https://wordpress.org/support/topic/gallery-httpgallerymenaltocom-integration/)
 *  [random](https://wordpress.org/support/users/random/)
 * (@random)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/gallery-httpgallerymenaltocom-integration/#post-71741)
 * I agree with david, it’s probably worth waiting for Gallery 2. Not least because
   it’ll use MySQL, so no need for monkeying around with the flat-file database.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Image Dump Plugin](https://wordpress.org/support/topic/image-dump-plugin/)
 *  [random](https://wordpress.org/support/users/random/)
 * (@random)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/image-dump-plugin/#post-71573)
 * The requested URL /resources/image-dump.zip was not found on this server. 🙁
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Changing Category Permalinks directly](https://wordpress.org/support/topic/changing-category-permalinks-directly/)
 *  [random](https://wordpress.org/support/users/random/)
 * (@random)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/changing-category-permalinks-directly/#post-65074)
 * I haven’t even tried to test this, but you could try:
    `$link = 'http://www.yoursite.
   com/categorydirectory/'; if ($parent=$cache_categories[$category_id]->category_parent)
   $link .= get_category_parents($parent, FALSE, '/', TRUE); $link .= $category_nicename.'/';(
   Lifts some code from later in the same function. Many apologies if it doesn’t
   work.)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Change location?](https://wordpress.org/support/topic/change-location/)
 *  [random](https://wordpress.org/support/users/random/)
 * (@random)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/change-location/#post-66512)
 * You could just install it at personal.katehackett.com instead. WordPress can 
   be installed in whatever directory you like.
    If you’re asking how to have the
   blog in a directory other than that where you have WordPress installed, try [this page](http://wordpress.org/docs/installation/different-address/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Changing class on different category](https://wordpress.org/support/topic/changing-class-on-different-category/)
 *  [random](https://wordpress.org/support/users/random/)
 * (@random)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/changing-class-on-different-category/#post-65875)
 * Do you mean like PhotoMatt’s [“asides”](http://photomatt.net/2004/05/19/asides/)?
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Help fix CSS in Firefox for Gmail Invite!](https://wordpress.org/support/topic/help-fix-css-in-firefox-for-gmail-invite/)
 *  [random](https://wordpress.org/support/users/random/)
 * (@random)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/help-fix-css-in-firefox-for-gmail-invite/#post-65607)
 * Uh, Root, that page doesn’t have a footer. 😛
    But it would go in the container,
   below everything else. Float it if you must, to keep it below other floated blocks.(
   Obviously this won’t work properly if you’re using absolutely positioned blocks
   inside the container.)
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Help fix CSS in Firefox for Gmail Invite!](https://wordpress.org/support/topic/help-fix-css-in-firefox-for-gmail-invite/)
 *  [random](https://wordpress.org/support/users/random/)
 * (@random)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/help-fix-css-in-firefox-for-gmail-invite/#post-65585)
 * Columns: you need to take out the “height: 100%;” bits.
    My method of choice 
   for aligning the #Content div would be to give it: `position: absolute; left:
   50%; margin-left: -387px [i.e. half of its width] Making the sidebar column extend
   all the way to the bottom is probably faked easiest by giving the container/#
   Content div the same background colour. I may be wrong, I only had a quick look,
   but HTH. (And I already have Gmail.)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Different displays on different page types](https://wordpress.org/support/topic/different-displays-on-different-page-types/)
 *  Thread Starter [random](https://wordpress.org/support/users/random/)
 * (@random)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/different-displays-on-different-page-types/#post-61237)
 * Thanks, I knew about `$single`, it’s the “bit more complex” part that’s messing
   with me. 🙁
    At the moment I’ve added various `$pagetype = 'month';`, `$pagetype
   = 'day';` type things to wp-blog-header.php. If $year isn’t null then `$pagetype`
   is set as ‘year’; Then `$month` is checked, and if not null then `$pagetype` 
   is set as ‘month’, then `$day` etc. In the template pages I can put `<?php if(
   $pagetype == 'month') { blah blah; } ?>` etc. This _works_, but it’s not very
   elegant and doesn’t cover everything (search results, category views). And, obviously,
   editing files every time there’s an upgrade is annoying. I’m not great with PHP,
   which is why I was hoping someone could point out something blindingly obvious
   that I’ve missed…

Viewing 14 replies - 1 through 14 (of 14 total)