<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>scriptygoddess &#187; Bookmarks</title>
	<atom:link href="http://www.scriptygoddess.com/archives/category/bookmarks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptygoddess.com</link>
	<description></description>
	<lastBuildDate>Thu, 08 Dec 2011 18:23:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>CSS for iPhone&#039;s eyes only (watch out for the cache)</title>
		<link>http://www.scriptygoddess.com/archives/2010/04/14/css-for-iphones-eyes-only-watch-out-for-the-cache/</link>
		<comments>http://www.scriptygoddess.com/archives/2010/04/14/css-for-iphones-eyes-only-watch-out-for-the-cache/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 04:21:07 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS related]]></category>
		<category><![CDATA[Lessons learned]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/?p=1636</guid>
		<description><![CDATA[On a project I was working on recently, I was pulling in some css for iPhone users using PHP with the following code: &#60;php if (strpos($_SERVER['HTTP_USER_AGENT'],"iPhone")) { ?&#62; ... CUSTOM CSS FOR IPHONE... &#60;php } ?&#62; This will also work for iPhones and iPod Touch: &#60;php if (strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') &#124;&#124; strstr($_SERVER['HTTP_USER_AGENT'],'iPod')) { ?&#62; ... CUSTOM CSS... [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>On a project I was working on recently, I was pulling in some css for iPhone users using PHP with the following code:</p>
<p><code>&lt;php if (strpos($_SERVER['HTTP_USER_AGENT'],"iPhone")) { ?&gt;<br />
... CUSTOM CSS FOR IPHONE...<br />
&lt;php } ?&gt;</code></p>
<p>This will also work for iPhones and iPod Touch:</p>
<p><code>&lt;php if (strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod')) { ?&gt;<br />
... CUSTOM CSS...<br />
&lt;php } ?&gt;</code></p>
<p>That&#039;s great and all &#8211; but then suddenly one day it stopped working. Going back through what changed on the site, I realized one thing we added was a cache plugin. DOH! So the page gets cached without the custom CSS for the iPhone &#8211; the iPhone calls up the site but gets served the cached page (non-iPhone version)&#8230; Yeah, that would do it.</p>
<p>So I found <a href="http://www.boutell.com/newfaq/creating/iphone.html">this solution</a>:</p>
<p><code>&lt;!--[if !IE]&gt;--&gt;<br />
    &lt;style type="text/css"&gt;<br />
	@media only screen and (max-device-width: 480px) {<br />
.... CUSTOM CSS HERE....<br />
	}<br />
	&lt;/style&gt;<br />
&lt;!--&lt;![endif]--&gt;</code></p>
<p>or of course you can pull in a whole stylesheet for the iphone:</p>
<p><code>&lt;!--[if !IE]&gt;--&gt;<br />
&lt;link media="only screen and (max-device-width: 480px)"  rel="stylesheet" type="text/css" href="iphone.css" /&gt;<br />
&lt;!--&lt;![endif]--&gt;</code></p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2010/04/14/css-for-iphones-eyes-only-watch-out-for-the-cache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Run WordPress Locally</title>
		<link>http://www.scriptygoddess.com/archives/2009/02/10/run-wordpress-locally/</link>
		<comments>http://www.scriptygoddess.com/archives/2009/02/10/run-wordpress-locally/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 16:30:48 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[Bookmarks]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2009/02/10/run-wordpress-locally/</guid>
		<description><![CDATA[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 &#8211; still it would be nice not to [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>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 &#8211; still it would be nice not to have to deal with FTP for everything I want to test, etc.)</p>
<p>Then this morning <a href="http://www.webdesignerwall.com/tutorials/installing-wordpress-locally/">I found this tutorial</a> &#8211; and most importantly found out about <a href="http://www.mamp.info/">MAMP</a>. WHY has no one ever told me about this??? Hmm?! OMG. It rocks!! They say it&#039;s one click install for mysql apache and php  (apache and php were already on my mac  &#8211; it was the mysql that was giving me headaches). One click was right. It ran. I installed WordPress locally without any problems. I&#039;m a happy camper!!</p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2009/02/10/run-wordpress-locally/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>10 WordPress plugins I can&#039;t live without</title>
		<link>http://www.scriptygoddess.com/archives/2009/02/09/10-wordpress-plugins-i-cant-live-without/</link>
		<comments>http://www.scriptygoddess.com/archives/2009/02/09/10-wordpress-plugins-i-cant-live-without/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 16:00:57 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[Bookmarks]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/?p=1583</guid>
		<description><![CDATA[In honor of &#034;Thank a WordPress Plugin Developer&#034; (yes, I know I&#039;m a little late. hush!) I wanted to recognize some plugins and their developers that have made my job so much easier. (FYI &#8211; Most of these plugins are particularly helpful when using WordPress as a CMS). I know these kinds of lists have [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>In honor of &#034;<a href="http://wordpress.org/development/2009/01/thank-a-plugin-developer-day/">Thank a WordPress Plugin Developer</a>&#034; (yes, I know I&#039;m a little late. hush!) I wanted to recognize some plugins and their developers that have made my job so much easier. (FYI &#8211; Most of these plugins are particularly helpful when using WordPress as a CMS). I know these kinds of lists have done over and over again &#8211; my purpose here in creating my own &#034;top 10&#034; is to save the links so I always have the ones I use the most in a handy list as well as express my personal thanks)</p>
<p>1) <a href="http://wordpress.org/extend/plugins/google-sitemap-generator/">Google XML Sitemaps</a> by <a href="http://www.arnebrachhold.de/">Arne Brachold</a><br />
Easily generate google friendly XML sitemaps.<br />
<img src="http://www.scriptygoddess.com/wp-content/uploads/2009/02/screenshot-1.gif" alt="screenshot-1" title="screenshot-1" width="461" height="312" class="alignnone size-full wp-image-1584" /></p>
<p>2) <a href="http://wordpress.org/extend/plugins/the-attached-image/">The Attached Image</a> by <a href="http://return-true.com/">Paul Robinson</a><br />
I recently found this plugin and I&#039;m kicking myself for not finding it (or realizing what it could do for me) sooner. This is perfect for when I have a layout that has an image associated with a post or page, and I need to &#034;call it out&#034; and have it show up somewhere outside of where the content is going. (An added thanks to Paul who added a few extra features I requested in his comments section. How cool is that!)<br />
<img src="http://www.scriptygoddess.com/wp-content/uploads/2009/02/screenshot-1.jpg" alt="screenshot-1" title="screenshot-1" width="520" height="265" class="alignnone size-full wp-image-1585" /></p>
<p>3) <a href="http://wordpress.org/extend/plugins/raw-html/">Raw HTML</a> by <a href="http://wordpress.org/extend/plugins/profile/whiteshadow">Janis Elsts</a><br />
This has come in handy on more than one occasion. Requires viewing the page in &#034;HTML&#034; view only. (Last I used it, if you viewed the page in the visual editor &#8211; it would screw everything up). But still &#8211; very helpful for when you really need to have wordpress allow HTML in a post/page (and not try to &#034;format&#034; it for you.</p>
<p>4) <a href="http://wordpress.org/extend/plugins/pagemash/">PageMash</a> by <a href="http://joelstarnes.co.uk/">JoelStarnes</a><br />
This is a new one I found this week in my search for a plugin to help me tame the too-many-pages WordPress CMS project. I must have done a million searches looking for page management plugins. WHY didn&#039;t that one ever come up?!? (Google &#8211; you fail me AGAIN! Let me put on my surprised face&#8230;) Anyway, this creates its own admin page to do it&#039;s magic. My one comment/complaint would be I wish it could have done the same cool stuff &#8211; but on the same page-listing admin page. But even so, I&#039;m still thankful for this plugin. It&#039;s really going to help me out a lot.<br />
<img src="http://www.scriptygoddess.com/wp-content/uploads/2009/02/picture-1.png" alt="picture-1" title="picture-1" width="597" height="583" class="alignnone size-full wp-image-1586" /></p>
<p>5) <a href="http://wordpress.org/extend/plugins/all-in-one-seo-pack/">All In One SEO Pack</a> by <a href="http://semperfiwebdesign.com/">Semper Fi Web Design</a><br />
This plugin is pretty much a no-brainer. It gives you all sorts of control for each page and post for adding keywords and descriptions and customizing the title, etc. The screenshot below is the box that will appear on your edit post or edit page view.<br />
<img src="http://www.scriptygoddess.com/wp-content/uploads/2009/02/picture-2.png" alt="picture-2" title="picture-2" width="516" height="262" class="alignnone size-full wp-image-1587" /></p>
<p>6) <a href="http://wordpress.org/extend/plugins/search-everything/">Search Everything</a> by <a href="http://dancameron.org/">Dan Cameron</a><br />
This plugin has been a huge help when I&#039;ve wanted to tweak what gets searched using the WordPress search function. You can exclude categories, certain posts or pages. It&#039;s very nice!<br />
<img src="http://www.scriptygoddess.com/wp-content/uploads/2009/02/picture-3.png" alt="picture-3" title="picture-3" width="596" height="592" class="alignnone size-full wp-image-1588" /></p>
<p>7) <a href="http://wordpress.org/extend/plugins/wp-postratings/">WP-PostRatings</a> by <a href="http://lesterchan.net/">Lester &#039;GaMerZ&#039; Chan</a><br />
This plugin is more for the typical blog site, but still I&#039;ve used it a few times and it rocks.<br />
<img src="http://www.scriptygoddess.com/wp-content/uploads/2009/02/picture-4.png" alt="picture-4" title="picture-4" width="254" height="39" class="alignnone size-full wp-image-1589" /></p>
<p>8 ) <a href="http://wordpress.org/extend/plugins/subscribe2/">Subscribe 2</a> by <a href="http://subscribe2.wordpress.com/">MattyRob, Skippy, RavanH</a><br />
Can be used for typical blog sites &#8211; or if you use your &#034;posts&#034; for &#034;press releases&#034; in a CMS site &#8211; this is a great way to notify people of new releases.<br />
<img src="http://www.scriptygoddess.com/wp-content/uploads/2009/02/screenshot-1-300x222.png" alt="screenshot-1" title="screenshot-1" width="300" height="222" class="alignnone size-medium wp-image-1590" /></p>
<p>9) <a href="http://wordpress.org/extend/plugins/members-only/">Members Only</a> by <a href="http://andrewhamilton.net/">Andrew Hamilton</a><br />
This is an excellent plugin for when you need to have your blog restricted to registered users only.<br />
<img src="http://www.scriptygoddess.com/wp-content/uploads/2009/02/picture-5.gif" alt="picture-5" title="picture-5" width="500" height="378" class="alignnone size-full wp-image-1591" /></p>
<p>10) <a href="http://wordpress.org/extend/plugins/sitemap-generator/">Sitemap Generator</a> by <a href="http://www.dagondesign.com/">Dagon Design</a><br />
I had been using this plugin on a number of sites pre-2.7. I absolutely loved it, which is why I&#039;ve included it here in this list. However, It seemed to work initially after the 2.7 upgrade &#8211; but would then randomly have problems and I&#039;d have to remove it. <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  So I&#039;ve included it in this list anyway because of how awesome it was, and I&#039;m hoping hoping hoping that they update it for 2.7.<br />
<img src="http://www.scriptygoddess.com/wp-content/uploads/2009/02/picture-7.png" alt="picture-7" title="picture-7" width="577" height="598" class="alignnone size-full wp-image-1592" /></p>
<p>I&#039;ve specifically left <a href="http://akismet.com">Akismet</a> out of the list because, if you&#039;re going to allow comments on your blog, then using Akismet is just a given. (It also COMES with the WordPress download) So including it in a list like this is sort of a cop out. But I&#039;m mentioning it here because it is so awesome and the developers have my complete gratitude!!</p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2009/02/09/10-wordpress-plugins-i-cant-live-without/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>WordPress wp_list_comments()</title>
		<link>http://www.scriptygoddess.com/archives/2009/01/15/wordpress-wp_list_comments/</link>
		<comments>http://www.scriptygoddess.com/archives/2009/01/15/wordpress-wp_list_comments/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 23:06:56 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[Bookmarks]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/?p=1574</guid>
		<description><![CDATA[I haven&#039;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&#039;s little self. You can turn the nested replies thing on/off from the Settings->Discussion page [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I haven&#039;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&#039;s little self. You can turn the nested replies thing on/off from the Settings->Discussion page in the admin.</p>
<p>The bad news is that it spits out all the HTML, whether you like its HTML or not. I was reading on the forums the point of doing it this way was to make everyone control the &#034;look&#034; using styles and you &#034;shouldn&#039;t need to change the HTML&#034;. What you &#034;shouldn&#039;t&#034; need to do has been the argument in favor of most issues I have with WordPress. (Don&#039;t get me wrong I do love it.) If all anyone needed to do was just change stylesheets, then everyone&#039;s HTML would look the same, because we&#039;re all doing the same thing, right? Well, we&#039;re not. Half the time I use WordPress for standard blogs &#8211; where &#8211; sure the &#034;default&#034; HTML is fine and I&#039;ll make it work from the styles. The other half of the time, I&#039;m twisting WordPress to do all kinds of funky sites. Following this path of &#034;you shouldn&#039;t need to do that&#034; is going to start making that flexibility disappear. Applications &#034;shouldn&#039;t&#034; need to spit out HTML. I certainly support WordPress&#039; idea of making it easier to use for the common person &#8211; but workarounds should always exist for those of that need a more advanced level of control. On the forums, I saw a perfect, simple reason why someone might want to change the HTML&#8230;What if I don&#039;t want it to say &#034;blahblah <strong>says:</strong>&#034;. wp_comment_list should include parameters to change some of the hardcoded text like that&#8230;Okay. Stepping off my soapbox now. <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thankfully, there IS a way around it. I wish this page had more information, but it&#039;s enough to get started at least. On the wordpress codex &#8211; you can see the <a href="http://codex.wordpress.org/Template_Tags/wp_list_comments">wp_list_comments()</a> function explanation. (Are the three parameters the only ones wp_list_comments() takes?)</p>
<p>Ironic that the first thing they show you is how to bypass the &#034;auto html dump&#034; the function does&#8230; so if you want to customize the HTML, call the function like this:</p>
<p><code>&lt;ul class="commentlist"&gt;<br />
&lt;?php wp_list_comments('callback=mytheme_comment'); ?&gt;<br />
&lt;/ul&gt;</code></p>
<p>Then create a functions.php file in your theme directory and use this as a start to customize the HTML of the output:</p>
<p><code>function mytheme_comment($comment, $args, $depth) {<br />
   $GLOBALS['comment'] = $comment; ?&gt;<br />
   &lt;li &lt;?php comment_class(); ?&gt; id="li-comment-&lt;?php comment_ID() ?&gt;"&gt;<br />
     &lt;div id="comment-&lt;?php comment_ID(); ?&gt;"&gt;<br />
      &lt;div class="comment-author vcard"&gt;<br />
         &lt;?php echo get_avatar($comment,$size='48'); ?&gt;<br />
         &lt;?php printf(__('&lt;cite class="fn"&gt;%s&lt;/cite&gt; &lt;span class="says"&gt;says:&lt;/span&gt;'), get_comment_author_link()) ?&gt;<br />
      &lt;/div&gt;<br />
      &lt;?php if ($comment-&gt;comment_approved == '0') : ?&gt;<br />
         &lt;em&gt;&lt;?php _e('Your comment is awaiting moderation.') ?&gt;&lt;/em&gt;<br />
         &lt;br /&gt;<br />
      &lt;?php endif; ?&gt;<br />
      &lt;div class="comment-meta commentmetadata"&gt;&lt;a href="&lt;?php echo htmlspecialchars( get_comment_link( $comment-&gt;comment_ID ) ) ?&gt;"&gt;&lt;?php printf(__('%1$s at %2$s'), get_comment_date(),  get_comment_time()) ?&gt;&lt;/a&gt;&lt;?php edit_comment_link(__('(Edit)'),'  ',&#039;&#039;) ?&gt;&lt;/div&gt;<br />
      &lt;?php comment_text() ?&gt;<br />
      &lt;div class="reply"&gt;<br />
         &lt;?php comment_reply_link(array_merge( $args, array('depth' =&gt; $depth, 'max_depth' =&gt; $args['max_depth']))) ?&gt;<br />
      &lt;/div&gt;<br />
     &lt;/div&gt;<br />
&lt;?php<br />
}</code></p>
<p>There is a note that says there is no ending &#034;li&#034; tag because wordpress will automatically add that itself. (WHY OH WHY?!) I assume if you don&#039;t want it to do comments as list items and instead want divs (and therefore end with &#034;/div&#034; instead of &#034;/li&#034;), then you&#039;d change the call to wp_list_comment to:<br />
<code>&lt;div class="commentlist"&gt;<br />
&lt;?php wp_list_comments('style=div&#038;callback=mytheme_comment'); ?&gt;<br />
&lt;/div&gt;</code></p>
<p>There is also a comment on the &#034;callback&#034; parameter on the codex: <em>&#034;Use to customize comments display for extreme changes to the HTML layout. Not recommended.&#034;</em> Ah. I feel like such a rebel.</p>
<p><strong>A few side notes:</strong></p>
<p>If you&#039;re going to use comment threading, paging, etc then <a href="http://ottodestruct.com/blog/2008/09/29/wordpress-27-comments-enhancements/">this page</a> has some useful info on it on some important things you&#039;ll need in your theme files.</p>
<p>And if you are going to keep the default HTML &#8211; then you&#039;ll probably need to know WHAT STYLES you need to work with! <a href="http://cdharrison.com/2008/12/threaded-comments/">Here is the list.</a></p>
<p><a href="http://clarktech.no-ip.com/tech/wordpress-27-comment-threading-separate-pings-from-comments">This page</a> also has some comment styling information on it.</p>
<p><a href="http://sivel.net/2008/10/wp-27-comment-separation/">Here</a> is information on the new way to separate pings from comments.</p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2009/01/15/wordpress-wp_list_comments/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>Color Tool</title>
		<link>http://www.scriptygoddess.com/archives/2009/01/14/color-tool/</link>
		<comments>http://www.scriptygoddess.com/archives/2009/01/14/color-tool/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 02:40:15 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[Color Tool Bookmarks]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/?p=1573</guid>
		<description><![CDATA[Here&#039;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&#039;s been sitting in my to do box to post the link since then. Doh! No related posts. Related posts brought to you by Yet Another Related [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Here&#039;s another color tool to add to <a href="http://www.scriptygoddess.com/archives/category/bookmarks/color-tool-bookmarks/">the list</a></p>
<p><a href="http://www.workwithcolor.com/hsl-color-schemer-01.htm">HSL Color Schemer</a></p>
<p>Truth be told, I was sent that link too long ago to mention without being embarrassed. It&#039;s been sitting in my to do box to post the link since then. Doh!</p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2009/01/14/color-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Turn off WordPress Post Revisions</title>
		<link>http://www.scriptygoddess.com/archives/2009/01/14/turn-off-wordpress-post-revisions/</link>
		<comments>http://www.scriptygoddess.com/archives/2009/01/14/turn-off-wordpress-post-revisions/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 18:53:37 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[Bookmarks]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/?p=1570</guid>
		<description><![CDATA[I know wordpress people believe making this an option is bad, but I really really wish they would. Make an &#034;advanced&#034; settings section that you have to turn on with your profile if need be. Whatever it is &#8211; this should be in the UI. In any case, I always have to do this, and [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I know wordpress people believe making this an option is bad, but I really really wish they would. Make an &#034;advanced&#034; settings section that you have to turn on with your profile if need be. Whatever it is &#8211; this should be in the UI. In any case, I always have to do this, and I always forget the exact syntax. I think many places published it &#8211; I&#039;ve probably seen it at least a dozen times. Just now when I was searching for it I found it <a href="http://www.abeontech.com/web-design/307/disable-wordpress-post-revisions">here</a>. But because I need to have the code handy here&#039;s the beef:</p>
<p>(add this to the wordpress config file after the &#034;DB COLLATE&#034; line.<br />
define (&#039;WP_POST_REVISIONS&#039;, 0);<br />
define(&#039;AUTOSAVE_INTERVAL&#039;, 600);</p>
<p>This sql query will remove the revisions from the database:<br />
DELETE FROM wp_posts WHERE post_type=&#039;revision&#039;;</p>
<p><a href="http://www.abeontech.com/web-design/307/disable-wordpress-post-revisions">Go to the abeontech link for more details</a>.</p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2009/01/14/turn-off-wordpress-post-revisions/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Repeating backgrounds and IE</title>
		<link>http://www.scriptygoddess.com/archives/2008/10/01/repeating-backgrounds-and-ie/</link>
		<comments>http://www.scriptygoddess.com/archives/2008/10/01/repeating-backgrounds-and-ie/#comments</comments>
		<pubDate>Wed, 01 Oct 2008 17:54:30 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[CSS related]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/?p=1537</guid>
		<description><![CDATA[There&#039;s probably a really good reason for this (actually, wait. We&#039;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 little [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>There&#039;s probably a really good reason for this (actually, wait. We&#039;re talking about IE. Nevermind) <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>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 little nagging problem. A box that had a repeating background image in it sometimes showed up with the background in IE, and then sometimes not. Sometimes if I refreshed the page &#8211; suddenly the background image appeared. The line in my css calling for the background image looked like this:</p>
<p><code>#mybox {<br />
background: url(images/my_background_tile.jpg) top left repeat-y;<br />
}</code></p>
<p>Everything looks kosher &#8211; at least it SHOULD be. For some reason IE REALLY wanted a <strong>background color too</strong>! (even though it wouldn&#039;t be showing up because the image would be covering over it). Okay. Whatever. So this is what made the background image show up consistently:</p>
<p><code>#mybox {<br />
background #fff url(images/my_background_tile.jpg) top left repeat-y;<br />
}</code></p>
<p>IE was happy. And there was much rejoicing.<br />
(*one quick note: this problem was specific to REPEATING background images. Background images set to no-repeat were not having problems)</p>
<p>Oh also &#8211; <em>don&#039;t ever do this:</em></p>
<p><code>#mybox {<br />
background: #fff url(images/my_background_tile.jpg) top repeat-y;<br />
}</code></p>
<p>All kinds of weirdness happens then. If you&#039;re going to specify background coordinate locations (with either &#034;top&#034;, &#034;left&#034;, &#034;5px&#034;, etc.) you have to specify both x and y locations. IE will hate you otherwise. And we don&#039;t want THAT! do we?</p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2008/10/01/repeating-backgrounds-and-ie/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Show full post if there is no excerpt</title>
		<link>http://www.scriptygoddess.com/archives/2008/07/24/show-full-post-if-there-is-no-excerpt/</link>
		<comments>http://www.scriptygoddess.com/archives/2008/07/24/show-full-post-if-there-is-no-excerpt/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 22:09:06 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[Bookmarks]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/?p=1522</guid>
		<description><![CDATA[As the title said &#8211; needed to show the excerpt if there was one, or the *full* post if there wasn&#039;t (not the shortened version wordpress &#034;fakes&#034;) 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 '&#60;p&#62;&#60;a href="'.get_permalink().'"&#62;Read more...&#60;/a&#62;&#60;/p&#62;'; } Updated 8/11/08 Made some changes to the code. Excerpts [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>As the title said &#8211; needed to show the excerpt if there was one, or the *full* post if there wasn&#039;t (not the shortened version wordpress &#034;fakes&#034;)</p>
<p><code>remove_filter('get_the_excerpt', 'wp_trim_excerpt');<br />
if (get_the_excerpt() == "") {<br />
echo apply_filters('the_content',get_the_content());<br />
} else {<br />
echo apply_filters('the_content',get_the_excerpt());<br />
echo '&lt;p&gt;&lt;a href="'.get_permalink().'"&gt;Read more...&lt;/a&gt;&lt;/p&gt;';<br />
}</code></p>
<p><strong>Updated 8/11/08</strong> Made some changes to the code. Excerpts were coming in unformatted, also removed some extra stuff I don&#039;t think I needed in there&#8230;</p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2008/07/24/show-full-post-if-there-is-no-excerpt/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Submit is Not a Function (and getting links to submit all forms in CubeCart)</title>
		<link>http://www.scriptygoddess.com/archives/2008/03/15/submit-is-not-a-function-and-getting-links-to-submit-all-forms-in-cubecart/</link>
		<comments>http://www.scriptygoddess.com/archives/2008/03/15/submit-is-not-a-function-and-getting-links-to-submit-all-forms-in-cubecart/#comments</comments>
		<pubDate>Sat, 15 Mar 2008 14:57:30 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[cubecart]]></category>
		<category><![CDATA[Javascript Related]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2008/03/15/submit-is-not-a-function-and-getting-links-to-submit-all-forms-in-cubecart/</guid>
		<description><![CDATA[&#034;Why am I getting that Javascript error?? WTH is it talking about &#8211; submit IS a function!!&#034; So here&#039;s the deal &#8211; if you have a form and an element in the form is named &#034;submit&#034; &#8211; if you try to call document.myform.submit() &#8211; you&#039;ll end up getting the &#034;submit is not a function&#034; javascript [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>&#034;Why am I getting that Javascript error?? WTH is it talking about &#8211; submit IS a function!!&#034;</p>
<p>So here&#039;s the deal &#8211; if you have a form and an element in the form is named &#034;submit&#034; &#8211; if you try to call <strong>document.myform.submit()</strong> &#8211; you&#039;ll end up getting the &#034;submit is not a function&#034; javascript error. (Because to javascript &#8211; &#034;submit&#034; is now that object element in your form &#8211; not a function)</p>
<p>So the simple solution is if you plan on using the javascript function submit() &#8211; do not name any of your form elements &#034;submit&#034;.</p>
<p>That&#039;s all well and good except if you&#039;re working on code that isn&#039;t completely yours &#8211; and if the PHP code to process the form is specifically looking for $_POST['submit'] like so:</p>
<p><code>if (isset($_POST['submit'])) { // process form }</code></p>
<p>then you now have another problem.</p>
<p>This was the case I ran into with CubeCart recently. Most of the forms do not require a submit element to be in the form in order to process it &#8211; but a handful did. The design I was working on needed all the buttons designed and to look the same. So my options were:</p>
<p>1) Just use the regular <strong>input type=&#034;submit&#034;</strong> button on those forms. (Ok &#8211; but then the site is inconsistent)</p>
<p>2) search for all instances of (isset($_POST['submit']) in the code and change it to some other element I can add to the page&#8230; ie:</p>
<p><code>&lt;input type="hidden" name="formsubmitted" /&gt;</code></p>
<p>and then in the code:</p>
<p><code>if (isset($_POST['formsubmitted'])) { // process form }</code></p>
<p>(Obviously this is not recommended in the case of CubeCart as it will make it really annoying to maintain/upgrade the cart!)</p>
<p>3) add that other &#034;formsubmitted&#034; element I noted above to the pages that need it &#8211; then towards the top of the MAIN index.php page (which is called with all pages on the store) add the following:</p>
<p><code>if (isset($_POST['formsubmitted'])) $_POST['submit'] = 1;</code></p>
<p>Thereby setting the value of $_POST['submit'] so it will process the form&#8230;</p>
<p>Another tip with using css-styled links for buttons that will submit forms in CubeCart &#8211; you don&#039;t need to use document.FORMNAME.submit() &#8211; from any form you can use their &#034;submitDoc(&#039;FORMNAME&#039;)&#034; function like so:</p>
<p><code>&lt;a href="javascript:submitDoc('FORMNAME');" class="myButtonStyle"&gt;Send Form&lt;/a&gt;</code></p>
<p>Just make sure the form has a name (some of them don&#039;t).</p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2008/03/15/submit-is-not-a-function-and-getting-links-to-submit-all-forms-in-cubecart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>document.getElementById &#8230; has no properties</title>
		<link>http://www.scriptygoddess.com/archives/2007/09/03/documentgetelementbyid-has-no-properties/</link>
		<comments>http://www.scriptygoddess.com/archives/2007/09/03/documentgetelementbyid-has-no-properties/#comments</comments>
		<pubDate>Mon, 03 Sep 2007 20:06:59 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[Bookmarks]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2007/09/03/documentgetelementbyid-has-no-properties/</guid>
		<description><![CDATA[This isn&#039;t a big deal, but it was something I was fighting with for a bit. If you&#039;re trying to set the properties of a DIV via javascript, and you&#039;re getting the &#034;document.getElementById(&#034;mydiv&#034;) has no properties&#034; javascript warning, there&#039;s probably two big things that will cause it. 1) you didn&#039;t set the id. Go back [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>This isn&#039;t a big deal, but it was something I was fighting with for a bit. If you&#039;re trying to set the properties of a DIV via javascript, and you&#039;re getting the &#034;document.getElementById(&#034;mydiv&#034;) has no properties&#034; javascript warning, there&#039;s probably two big things that will cause it.</p>
<p><strong>1) you didn&#039;t set the id.</strong><br />
Go back and make sure your div has id=&#034;mydiv&#034; (or whatever you named it) in there.</p>
<p><strong>2) the javascript is running BEFORE the div has been defined in the code.</strong><br />
This is what got me. I had the javascript code just above where the div was&#8230; and at load time, that div doesn&#039;t exist yet&#8230; the browser hasn&#039;t gotten that far down the page yet, so as far as it&#039;s concerned, that div with that id, doesn&#039;t exist. Once I moved the javascript BELOW the div&#8230; all was well.</p>
<p>And actually <a href="http://lists.evolt.org/archive/Week-of-Mon-20050919/175863.html">here </a>- they suggest calling it on onload.</p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2007/09/03/documentgetelementbyid-has-no-properties/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

