scriptygoddess

Archive for the ‘Bookmarks’ Category

On a project I was working on recently, I was pulling in some css for iPhone users using PHP with the following code: <php if (strpos($_SERVER['HTTP_USER_AGENT'],"iPhone")) { ?> … CUSTOM CSS FOR IPHONE… <php } ?> This will also work for iPhones and iPod Touch: <php if (strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod')) { ?> … CUSTOM CSS… […]

Comments Off on CSS for iPhone's eyes only (watch out for the cache)

10 Feb, 2009

Run WordPress Locally

Posted by: Jennifer In: Bookmarks

I spent a very frustrating evening a few nights ago trying to get MySQL installed on my Mac laptop. I never got it working. I have really been wanting to develop stuff offline just to make things easier. I have plenty of web access to work with – still it would be nice not to […]

In honor of "Thank a WordPress Plugin Developer" (yes, I know I'm a little late. hush!) I wanted to recognize some plugins and their developers that have made my job so much easier. (FYI – Most of these plugins are particularly helpful when using WordPress as a CMS). I know these kinds of lists have […]

15 Jan, 2009

WordPress wp_list_comments()

Posted by: Jennifer In: Bookmarks

I haven't done too much with WordPress 2.7 until very recently. I was really surprised to see the new way of doing comments. The good news is that wp_list_comments() will list all comments, with threading, and nested replies, all by it's little self. You can turn the nested replies thing on/off from the Settings->Discussion page […]

14 Jan, 2009

Color Tool

Posted by: Jennifer In: Color Tool Bookmarks

Here's another color tool to add to the list HSL Color Schemer Truth be told, I was sent that link too long ago to mention without being embarrassed. It's been sitting in my to do box to post the link since then. Doh!

Comments Off on Color Tool

14 Jan, 2009

Turn off WordPress Post Revisions

Posted by: Jennifer In: Bookmarks

I know wordpress people believe making this an option is bad, but I really really wish they would. Make an "advanced" settings section that you have to turn on with your profile if need be. Whatever it is – this should be in the UI. In any case, I always have to do this, and […]

01 Oct, 2008

Repeating backgrounds and IE

Posted by: Jennifer In: CSS related

There's probably a really good reason for this (actually, wait. We're talking about IE. Nevermind) 😉 Just wanted to post a reminder to myself should I ever come across this weirdness again. I was working on a layout recently, and everything was working fine in Firefox, and everything was fine in IE except for one […]

24 Jul, 2008

Show full post if there is no excerpt

Posted by: Jennifer In: Bookmarks

As the title said – needed to show the excerpt if there was one, or the *full* post if there wasn't (not the shortened version wordpress "fakes") remove_filter('get_the_excerpt', 'wp_trim_excerpt'); if (get_the_excerpt() == "") { echo apply_filters('the_content',get_the_content()); } else { echo apply_filters('the_content',get_the_excerpt()); echo '<p><a href="'.get_permalink().'">Read more…</a></p>'; } Updated 8/11/08 Made some changes to the code. Excerpts […]

"Why am I getting that Javascript error?? WTH is it talking about – submit IS a function!!" So here's the deal – if you have a form and an element in the form is named "submit" – if you try to call document.myform.submit() – you'll end up getting the "submit is not a function" javascript […]

Comments Off on Submit is Not a Function (and getting links to submit all forms in CubeCart)

03 Sep, 2007

document.getElementById … has no properties

Posted by: Jennifer In: Bookmarks

This isn't a big deal, but it was something I was fighting with for a bit. If you're trying to set the properties of a DIV via javascript, and you're getting the "document.getElementById("mydiv") has no properties" javascript warning, there's probably two big things that will cause it. 1) you didn't set the id. Go back […]


Featured Sponsors

Genesis Framework for WordPress

Advertise Here


  • Scott: Just moved changed the site URL as WP's installed in a subfolder. Cookie clearance worked for me. Thanks!
  • Stephen Lareau: Hi great blog thanks. Just thought I would add that it helps to put target = like this:1-800-555-1212 and
  • Cord Blomquist: Jennifer, you may want to check out tp2wp.com, a new service my company just launched that converts TypePad and Movable Type export files into WordPre

About


Advertisements