Typically, I blog about educational technology that the average teacher can understand. This, however, is some heavy lifting.
Here is an advanced trick for Wordpress users. This is how I removed the sidebar from one specific page (titled forum) on my wordpress site. After much searching, I found that I needed to implement conditional formatting using php.
Here’s my problem:
I wanted one single wordpress page to not have a sidebar. I wanted it to take up the entire width of the page. Makes sense for a forum, right? Not so easy…
Solution:
In the wordpress dashboard, navigate to Appearance > Editor > page.php.
On page.php, I changed:
<?php get_sidebar();; ?>
to:
<?php if(!is_page('Forum')) get_sidebar();; ?>
Here’s what that means:
Typically, wp displays the sidebar. That’s what we usually want. In this case, the exclamation point means “if it is not”. So, the php translation is, “If it’s not the Forum page, then show the sidebar.”
Perfect, so far. However, there was a blank space where the sidebar used to be. Another problem. The forum should be wider. This won’t happen, though, because my stylesheet says the page can only be 510 pixels wide.
So, I went to my stylesheet and created a div titled #widecolumn with a width of 100%.
Back on page.php, I changed the original div titled #contentleft to:
<?php if(!is_page('Forum')) { ?>
<div id="contentleft">
<?php } else { ?>
<div id="widecolumn">
<?php } ?>
Again, with the php translation: “If it’s not the Forum page, use the div #contentleft (with a width of 510 px). If it is the Forum page, use the #widecolumn div that you just made (with a width of 100%).
Yay!
Problem: I have a movie hosted. I can link to it; however, I want people to download the movie, not view it in a browser.
Solution:
Here’s the paraphrased version I learned from the brilliant folks at Boutell.com. Create a page (in Dreamweaver, or wherever) with the following:
<?php
header('Content-disposition: attachment; filename=yourmovietitle.mov');
header('Content-type: video/mov');
readfile('yourmovietitle.mov');
?>

Save that file as movielink.php, or something more specific. Add that to the same folder (on your host) that your movie is in. Change the name from movie.mpg to the actual name of your file. Finally, write the link as <a href="movielink.php">Download me</a>.
You create a file that forces your browser to save, not open.