Importing content from a site

August 7, 2013 at 10:23 am | web, Wordpress.

Couple of quick points when it comes time to move your site over to a self hosted site. This can be especially painful for a large site with lots of users.

  • Export gives user name but no email and NO OTHER content. No password, no author status – You will have to edit this for all your users once your import the content
  • Export does not give users who do not have at least one post. – This can be a problem if you have people who don’t post but who edit other peoples posts.
  • Export WILL give users who are not on the users list but have made a post. – This can be confusing when you go to edit users.
  • The nice part is that the XML content that you export from has links to all the media you uploaded and will import that into you new site.

Using colorbox with multiple styles

July 29, 2013 at 10:36 pm | web.

If you happen to run into the need to use colobox with two different styles, like one for photos and one for videos you can use the className param in later versions of Colorbox or you can use jQuery to add “addClass” to the wrapper ID so you can target the individual styles that you need to make the version different.

One thing to remember is that adding the class will mean that Colorbox will still render the styles as if the original styles were still there, so if you don’t need certain border and drop shadow background images in your new CSS it is better to use “background: none;” rather than “display: none;” as colorbox has already rendered the cbox styles as if the styles were still there. (eg. Inline padding and styles to determine width.)

#cboxTopLeft{width:21px; height:21px; background:url(images/controls.png) no-repeat -101px 0;}
.newstyle #cboxTopLeft{background: none;}

Google Maps pin bubble

at 10:17 pm | blabbing.

If you are looking to get rid of the Google Maps location bubble for simple Google maps iFrames try adding &iwloc=near to the end of the iFrame SRC url.

<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src=";source=s_q&amp;hl=en&amp;geocode=&amp;q=917+SW+Oak+St,+Portland,+OR&amp;aq=0&amp;oq=917+SW+Oak&amp;sll=45.543408,-122.654422&amp;sspn=0.588145,1.423416&amp;ie=UTF8&amp;hq=&amp;hnear=917+SW+Oak+St,+Portland,+Multnomah,+Oregon+97205&amp;t=m&amp;z=14&amp;ll=45.522687,-122.680434&amp;output=embed&amp;iwloc=near"></iframe>

Vimeo video fitvid

February 22, 2013 at 3:18 pm | blabbing.

Just testing to see if WordPress will automatically use the Vimeo iFrame embed by simply typing in the Vimeo URL.

Oh fitvid. You rock.

Adding Featured image to a post in WordPress

February 5, 2013 at 10:51 am | blabbing.

Quick Youtube movie I did about adding featured images to a post in WordPress.

Code that will add the featured image to your post

// check if the post has a Post Thumbnail assigned to it.
if ( has_post_thumbnail() ) {
    // This would tell WordPress that if there is a 
    // Featured image to insert it in the page	
// Regular Content from the Post

Post Thumbnail / Featured Image on WordPress Site

People have more computing pow…

October 2, 2012 at 9:36 am | web.

People have more computing power in their pocket than was imaginable 25 years ago. It’s not the “Post” PC era, it’s the Super PC era.

Sync Dropbox folder with sites folder

at 9:23 am | blabbing.

A quick and easy way to sync a site you are working on between machines is to setup the site in the Dropbox folder on your machine. If you don’t have Dropbox, go and sign up because its a very handy piece of software for keeping files in sync as well as collaborating with others on music or whatever.

If you have a working site in your /Users/Name/Sites/ folder move that same folder (don’t copy) to your Dropbox folder on your machine.

In Terminal type the following to setup your Symlink between the folder in Dropbox and a folder in the sites folder.


One last thing is to make sure that the persmission of your Dropbox folder on your machine is set to 755. You can do this in Terminal or by hitting Command+I on the folder.

Now your are ready to work on the folder no matter what machine you are on.

Testing out the new WordPress SyntaxHighlighter vs. Gist from Github

September 27, 2012 at 9:40 am | blabbing.

JS tag in syntaxhighlighter with the 7th line highlighted. Which is easier or better?

<script type="text/javascript">
	getGravity = function(){
		//alert("I have the input.");
		if(document.getElementById('og-slider').value != ''){
			var og = document.getElementById('og-slider').value;			
		}else {
			alert("Please Enter an Original Gravity");
		if(document.getElementById('fg-slider').value != ''){
			var fg = document.getElementById('fg-slider').value;
		}else {
			alert("Please Enter an Final Gravity");
	        var subTotal = og - fg;
		subTotal = subTotal.toFixed(3);
		var abw = subTotal *105;
		abw = abw.toFixed(2);
		abv = abw * 1.25;
		abv = abv.toFixed(1);
		document.getElementById('abw').innerHTML = abw + "%";
		document.getElementById('abv').innerHTML = abv + "%";

Embed of Gist from Github