Archive for January, 2011

Atrix 4G: Too bad it’s on AT&T

Atrix 4G: Too bad it’s on AT&T

How great would it be to carry your computer in your pocket, plug it into a dock near a monitor and have a full-on desktop computer? I think it would be pretty sweet.

The Motorola Atix 4g on At&t does just that. I have a Droid X and the Atix makes it look like a tracfone from 2002. I officially have tech-envy. I won’t be buying one anytime soon though, AT&T coverage sucks.

Check out this link for more info. You will be blown away.

http://www.engadget.com/2011/01/06/motorola-atrix-4g-hd-multimedia-dock-and-laptop-dock-hands-on/

January 7, 2011 0 comments Read More
WordPress issue : “$ is not a function”

WordPress issue : “$ is not a function”

 

Don’t freak out, it’s easy to fix. When trying to add a jQuery accordion script to a wordpress template I came across this firebug error. “$ is not a function”. Simple enough to fix, just convert all the “$’s” to “jQuery” within the script and you should be good to go.

For example:

$(document).ready(function() {

	//ACCORDION BUTTON ACTION (ON CLICK DO THE FOLLOWING)
	$('.accordionButton').click(function() {

		//REMOVE THE ON CLASS FROM ALL BUTTONS
		$('.accordionButton').removeClass('on');

		//NO MATTER WHAT WE CLOSE ALL OPEN SLIDES
	 	$('.accordionContent').slideUp('normal');
Would be changed to :
jQuery(document).ready(function() {

	//ACCORDION BUTTON ACTION (ON CLICK DO THE FOLLOWING)
	jQuery('.accordionButton').click(function() {

		//REMOVE THE ON CLASS FROM ALL BUTTONS
		jQuery('.accordionButton').removeClass('on');

		//NO MATTER WHAT WE CLOSE ALL OPEN SLIDES
	 	jQuery('.accordionContent').slideUp('normal');
I've replaced the $'s with jQuery and it works fine.
Go give it a try!
January 7, 2011 0 comments Read More
Responsive Images using css

Responsive Images using css

After much thought and too much time working with other peoples wordpress themes I’ve decided to create a new design for my site using Responsive design and Responsive images.

For more info about responsive images check this article out.

It seems like an awesome tactic to bring a “sameness” to the site. Look out for enhancements in the near future.

January 3, 2011 0 comments Read More
Are you sure you want to do this? Please try again. WordPress 3.0 custom post type error.

Are you sure you want to do this? Please try again. WordPress 3.0 custom post type error.

Sorry for the longest title in the history of my blog, I just want other developers to find my site and find the info they need to.  I found out that wordpress custom post types can throw back an error if the name is more than 20 characters.

Here’s an example of what NOT to do.

//COMPANY PAGE BOTTOM RIGHT
add_action( ‘init’, ‘create_my_post_types17′ );

function create_my_post_types17() {
register_post_type( ‘company_block_middle_post’,
array(
‘labels’ => array(
‘name’ => __( ‘Company Middle’),
‘singular_name’ => __( ‘Company Middle’ )
),
‘public’ => true,
)
);
}

The error I kept running into was “Are you sure you want to do this? Please try again.” when I tried to publish a new custom post. I spent about an hour tweaking my database settings, overwriting old admin files and trying different combinations of numbers and names for my custom post until I broke down and searched Google for an answer.

Thanks to this post , http://it.knightnet.org.uk/2010/06/bug-in-wordpress-30-custom-post-types.html , I figured it out and changed the name from “company_block_middle_post” to a much shorter “cmpny_middle”.

IT WORKED!

I’m back in business and now everything is running smooth. Other than that little snag I love everything about WordPress 3.0 and custom content/post types.

January 2, 2011 3 comments Read More
Stop SOPA