Written: April 27, 2010
Tualatin Farmers Market has a WordPress site the uses a sidebar for searching, hours and sponsors:
This week they asked if the page for Concerts could be changed so that it didn’t show the sponsors:
I remembered that our theme used a file called sidebar.php and then I added a statement to check for the page name and then alter what posts should be searched using query_posts:
The “if” statement uses: is_page(“Concerts”)
If this page is for Concerts then use: category_name=sidebar_no_sponsors
Other pages use a category_name=sidebar
The client can now login to WordPress and update how the sidebar should look:
The advantage of using this approach is that the client can just use the WYSIWYG editor in WordPress to update how the two different versions of the sidebar should look.
Tags: sidebar, WordPressWritten: April 23, 2010
On Thursday, April 22 I was presented with an award by the Tualatin Chamber of Commerce for Outstanding Community Service in 2009.
It was a humbling experience to be nominated by my peers at the Chamber and I never really expected it.
My community involvement in 2009 included:
See all the photos here.
May God bless your day and let’s make Tualatin the best place to live and work.
Written: April 10, 2010
Facebook is such a huge social platform at the moment that I just had to setup my own fan page. So now the question became, “How do I let people know about my fan page?”
The folks at Facebook have a method to create a badge for you fan page and this is the code they produced for a client site earlier this week:
<script src="http://static.ak.connect.facebook.com/connect.php/en_US" type="text/javascript">script><script type="text/javascript">FB.init("be352ef31b466ca882aebfb3f8f6e0aa");script><fb:fan profile_id="387527625756" stream="1" connections="8" logobar="1" width="240">fb:fan>
<div style="font-size: 8px; padding-left: 10px;">
<a href="http://www.facebook.com/pages/Tualatin-OR/VFW-Post-3452/387527625756">VFW Post 3452a> on Facebookdiv>div>
My issue with this is that it doesn't pass the official validator for HTML: http://validator.w3.org/
More searching revealed that I had to use an iframe instead of Javascript code, so this is the approach that passes HTML validator:
The end result is embedded here:
The iframe uses a CSS file for styling to fit my site:
@charset "utf-8";/* FB Fan Rev 2 */
.fan_box.full_widget .connect_top { border: 1px solid #f1592a; background-color: #ffffff;}.fan_box.full_widget { border: none;}.connect_top a { color: #f1592a;}.connect_top a:hover { color: #000000; }.fan_box.connections { background-color: #ffffff; border: none; color: #000000;}.fan_box.connections_grid.grid_item.name { color: #000000; }
Tags: Facebook, fan page, WordPressWritten: April 7, 2010
A client informed me that the latest DVD I sent was not working, nothing was showing up even though on the back of the DVD we could see that data had been burned. Sure enough, when I loaded the DVD on my laptop there was no data. I tried putting a blank DVD into my HP laptop but it wasn’t recognized.
Oh well, the DVD burner was broken so I just ordered a replacement on eBay and will install it later this week.
Plan B – use my iMac. I inserted a new DVD, got my folder ready, clicked “Burn folder to DVD”, then nothing happened. Disappointed with this reaction I clicked the Eject button, again nothing. Then I tried five other ways to eject a stuck DVD but none of them worked.
On Monday I dropped off my iMac at the Apple store in Bridgeport Village and the Tech guy spent an hour on my machine. His conclusion, the hard drive was suspicious but it would take more testing.
Tuesday morning I heard from another Apple tech guy that my OS was corrupted and that he would have to reinstall the OS.
Tuesday afternoon the Apple tech guy said that my RAM was failing.
Wednesday morning I heard that installing a new Super Drive did not solve the eject issue, so it must by the Logic Board at a cost of $740 installed.
I chuckled and noted that I only paid $1000 for the used iMac in October, so I would not be having them replace the Logic Board.
So today I’m going to pick up my sick iMac without a working DVD, drive to Fry’s and buy new RAM. Maybe in a few years when the Logic Board prices go down I’ll buy one and replace my original.
Yesterday my PC laptop screen started to get fuzzy and show mostly red colors, so I phoned a local laptop repair place in Beaverton. We both thought it was the LCD display, so I drove in with my laptop and we plugged in a new LCD and all was well.
I went home, installed the new LCD and it was perfect for about 45 minutes, then back came the fuzzy screen and red colors. Some Google search told me that many other HP Pavilion laptop users had this similar issue and it was caused by an overheating GPU chip from Nvidia which was highly publicized.
I then remembered how my old laptop had so much dust that it clogged the heat from escaping causing overheating, so I got out my vacuum cleaner and cleaned my laptop. It’s been working great for almost 24 hours now so I think I’ve solved the problem. Now to find out if I can get a refund for a new LCD used only one hour.
Good news: Apple returned my iMac on Wednesday and charged me $0. They said, "Don't put another DVD into the iMac it doesn't work."
First thing I did at home was install a DVD, and it's ejecting now!
I took my defective RAM to Fry's in Wilsonville and they swapped it out for new RAM, thank you!