



<?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>at.yamomzcrib.com</title>
	<atom:link href="http://at.yamomzcrib.com/feed/?cat=-203" rel="self" type="application/rss+xml" />
	<link>http://at.yamomzcrib.com</link>
	<description>bfnh dot h8r</description>
	<lastBuildDate>Sat, 27 Feb 2010 04:46:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>amber&#8217;s saving grace.</title>
		<link>http://at.yamomzcrib.com/2010/02/ambers-saving-grace/</link>
		<comments>http://at.yamomzcrib.com/2010/02/ambers-saving-grace/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 17:26:42 +0000</pubDate>
		<dc:creator>bfnh</dc:creator>
				<category><![CDATA[black maybe]]></category>
		<category><![CDATA[hoesinthesameclothes]]></category>
		<category><![CDATA[amber rose]]></category>
		<category><![CDATA[girls that dance with girls]]></category>
		<category><![CDATA[got an ass like mya]]></category>
		<category><![CDATA[grace jones]]></category>

		<guid isPermaLink="false">http://at.yamomzcrib.com/?p=1772</guid>
		<description><![CDATA[When Kanye launched his new blog featuring a photo of his girlfriend/muse/girl that dances w/girls Amber Rose, people were able to immediately identify the inspiration of the photo. On first look, it&#8217;s clear to see that Amber falls way short of pulling off the amazing contortion that Grace exhibited on her album cover. However, a [...]]]></description>
			<content:encoded><![CDATA[<img width="420" height="341" src="http://at.yamomzcrib.com/wp-content/uploads/2010/02/gjpose-420x341.png" class="attachment-medium center size-full wp-image-1790" alt="" title="Pose Comparison" />
<p>When <a href="http://images.google.com/images?q=kanyeshrug">Kanye</a> launched his <a href="http://www.kanyewest.com/home/">new blog</a> featuring a photo of his girlfriend/muse/girl that dances w/girls <a href="/amber-rose-vs-tahiry-jose/">Amber Rose</a>, people were able to immediately identify the inspiration of the photo. On first look, it&#8217;s clear to see that Amber falls way short of pulling off the amazing contortion that Grace exhibited on her album cover. However, a simple google and an great article from <a href="http://sleevage.com/grace-jones-island-life/">sleevage</a> shows why no onw has been able to match Grace&#8217;s image in 30 years. (<a href="http://myblogcanbeatupyourblog.wordpress.com/2007/06/13/this-is-fascinating-me-right-now/">more info</a>)</p>
<img width="420" height="355" src="http://at.yamomzcrib.com/wp-content/uploads/2010/02/grace-photochopped-420x355.jpg" class="attachment-medium center size-full wp-image-1791" alt="" title="Grace, Photochopped" />
<p>Faced w/the facts that the original, although iconic is as fake as Coco&#8217;s cleavage<sup>1</sup> I began to judge Amber <a href="http://goodwillcunting.tumblr.com/post/410214558/yup">much less harshly than some others</a> and went back to staring at the pics of the well oiled asses. besides, facts are, <a href="http://at.yamomzcrib.com/2010/02/ambers-saving-grace/epic-belly-man/">if i were to try to make that pose, it would look something like this</a>.</p>

<a href='http://at.yamomzcrib.com/2010/02/ambers-saving-grace/grace-original/' title='grace-original'><img width="200" height="161" src="http://at.yamomzcrib.com/wp-content/uploads/2010/02/grace-original-200x161.jpg" class="attachment-thumbnail" alt="" title="grace-original" /></a>
<a href='http://at.yamomzcrib.com/2010/02/ambers-saving-grace/kinda-gracey/' title='kinda-gracey'><img width="200" height="176" src="http://at.yamomzcrib.com/wp-content/uploads/2010/02/kinda-gracey-200x176.jpg" class="attachment-thumbnail" alt="" title="kinda-gracey" /></a>
<a href='http://at.yamomzcrib.com/2010/02/ambers-saving-grace/amber-almost-grace/' title='amber-almost-grace'><img width="200" height="147" src="http://at.yamomzcrib.com/wp-content/uploads/2010/02/amber-almost-grace-200x147.jpg" class="attachment-thumbnail" alt="" title="amber-almost-grace" /></a>
<a href='http://at.yamomzcrib.com/2010/02/ambers-saving-grace/epic-belly-man/' title='epic-belly-man'><img width="200" height="189" src="http://at.yamomzcrib.com/wp-content/uploads/2010/02/epic-belly-man-200x189.jpg" class="attachment-thumbnail" alt="" title="epic-belly-man" /></a>

<img src="http://at.yamomzcrib.com/?ak_action=api_record_view&id=1772&type=feed" alt="" /><div class="footnotes">
notes:<br /><ol class="footnotes"><li id="footnote_0_1772" class="footnote">no, <a href="http://www.dlisted.com/node/36247">the other cleavage</a></li></ol></div>]]></content:encoded>
			<wfw:commentRss>http://at.yamomzcrib.com/2010/02/ambers-saving-grace/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>some keeblers tryna force it in the same zebra skin corset.</title>
		<link>http://at.yamomzcrib.com/2010/02/some-keeblers-tryna-force-it-in-the-same-zebra-skin-corset/</link>
		<comments>http://at.yamomzcrib.com/2010/02/some-keeblers-tryna-force-it-in-the-same-zebra-skin-corset/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 02:09:53 +0000</pubDate>
		<dc:creator>bfnh</dc:creator>
				<category><![CDATA[hoesinthesameclothes]]></category>
		<category><![CDATA[animal print]]></category>
		<category><![CDATA[arm tats]]></category>
		<category><![CDATA[fredrick's]]></category>
		<category><![CDATA[posts about pictures]]></category>

		<guid isPermaLink="false">http://at.yamomzcrib.com/?p=1758</guid>
		<description><![CDATA[once again, around valentine&#8217;s day, girls head to the mall and pick up a sale item.
it&#8217;s depressive.
i bet one of &#8216;em got on the matchin&#8217; panties, too.
]]></description>
			<content:encoded><![CDATA[<p>once again, <a href="/thrifty-shoppers-in-the-same-red-boppers/">around valentine&#8217;s day</a>, girls head to the mall and <a href="http://www.fredericks.com/Hollywood_Dream_Animal_Print_Corset/56799,default,pd.html">pick up a sale item</a>.<br />
it&#8217;s depressive.</p>

<a href='http://at.yamomzcrib.com/2010/02/some-keeblers-tryna-force-it-in-the-same-zebra-skin-corset/pink_heel_appeal/' title='Endagered Species'><img width="133" height="200" src="http://at.yamomzcrib.com/wp-content/uploads/2010/02/pink_heel_appeal-133x200.jpg" class="attachment-thumbnail" alt="" title="Endagered Species" /></a>
<a href='http://at.yamomzcrib.com/2010/02/some-keeblers-tryna-force-it-in-the-same-zebra-skin-corset/wallet_chain_wiggy/' title='Wallet Chain'><img width="150" height="200" src="http://at.yamomzcrib.com/wp-content/uploads/2010/02/wallet_chain_wiggy-150x200.jpg" class="attachment-thumbnail" alt="" title="Wallet Chain" /></a>
<a href='http://at.yamomzcrib.com/2010/02/some-keeblers-tryna-force-it-in-the-same-zebra-skin-corset/bishop_zebra_tutu/' title='Bishop Zebra Tutu'><img width="133" height="200" src="http://at.yamomzcrib.com/wp-content/uploads/2010/02/bishop_zebra_tutu-133x200.jpg" class="attachment-thumbnail" alt="" title="Bishop Zebra Tutu" /></a>

<p>i bet one of &#8216;em got on <a href="http://www.fredericks.com/Cotton_Bridget_Thong_Panty/53311,default,pd.html">the matchin&#8217; panties</a>, too.</p>
<img src="http://at.yamomzcrib.com/?ak_action=api_record_view&id=1758&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://at.yamomzcrib.com/2010/02/some-keeblers-tryna-force-it-in-the-same-zebra-skin-corset/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>on repeat: little freak.</title>
		<link>http://at.yamomzcrib.com/2010/01/on-repeat-little-freak/</link>
		<comments>http://at.yamomzcrib.com/2010/01/on-repeat-little-freak/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 17:07:49 +0000</pubDate>
		<dc:creator>bfnh</dc:creator>
				<category><![CDATA[on repeat]]></category>
		<category><![CDATA[2 girls 1 blog]]></category>
		<category><![CDATA[minaj]]></category>
		<category><![CDATA[pictures of boobies]]></category>
		<category><![CDATA[tuba]]></category>

		<guid isPermaLink="false">http://at.yamomzcrib.com/?p=1729</guid>
		<description><![CDATA[[Click through to site to listen to the song]
Usher f. Nicki Minaj &#8211; Little Freak
blogs are goin&#8217; goofy over minaj&#8217;s appearance in mimi&#8217;s video, which might mean that nick cannon is closer to &#8220;having a menage&#8221; than ursher even though it&#8217;s clearly something that &#8220;everybody loves raymond&#8221; has been pining for lately1 
great beat by [...]]]></description>
			<content:encoded><![CDATA[<p>[Click through to site to listen to the song]<br />
<strong>Usher f. Nicki Minaj &#8211; Little Freak</strong></p>
<p>blogs are goin&#8217; goofy over <a href="http://www.youtube.com/watch?v=5i7GEMQC2IY">minaj&#8217;s appearance in mimi&#8217;s video</a>, which might mean that nick cannon is closer to &#8220;having a menage&#8221; than ursher even though it&#8217;s clearly something that &#8220;everybody loves raymond&#8221; has been pining for lately<sup>1</sup> </p>
<img width="420" height="333" src="http://at.yamomzcrib.com/wp-content/uploads/2010/01/nicki-minaj-and-amber-rose.png" class="attachment-medium center wp-image-1737" alt="" title="Nicki Minaj &amp; Amber Rose" />
<p>great beat by polow<sup>2</sup> with a fantastic sample.</p>
<p>[Click through to site to listen to the song]<br />
<strong>Stevie Wonder &#8211; Living for the City</strong></p>
<img src="http://at.yamomzcrib.com/?ak_action=api_record_view&id=1729&type=feed" alt="" /><div class="footnotes">
notes:<br /><ol class="footnotes"><li id="footnote_0_1729" class="footnote">see: the horrific invented sex remix</li><li id="footnote_1_1729" class="footnote">plus he snuck some <a href="/need-moar-tuba/">tuba</a> in towards the end</li></ol></div>]]></content:encoded>
			<wfw:commentRss>http://at.yamomzcrib.com/2010/01/on-repeat-little-freak/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>on repeat: they holla ayyo.</title>
		<link>http://at.yamomzcrib.com/2010/01/on-repeat-they-holla-ayyo/</link>
		<comments>http://at.yamomzcrib.com/2010/01/on-repeat-they-holla-ayyo/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 20:23:19 +0000</pubDate>
		<dc:creator>bfnh</dc:creator>
				<category><![CDATA[on repeat]]></category>
		<category><![CDATA[camron]]></category>
		<category><![CDATA[trapezoid]]></category>
		<category><![CDATA[young dro]]></category>

		<guid isPermaLink="false">http://at.yamomzcrib.com/?p=1719</guid>
		<description><![CDATA[[Click through to site to listen to the song]
Cam&#8217;ron f. Young Dro &#8211; They Holla Ayyo

]]></description>
			<content:encoded><![CDATA[<p>[Click through to site to listen to the song]<br />
<strong>Cam&#8217;ron f. Young Dro &#8211; They Holla Ayyo</strong><br />
<span id="more-1719"></span></p>
<img width="372" height="560" src="http://at.yamomzcrib.com/wp-content/uploads/2010/01/youngdro-trapazoid-372x560.jpg" class="attachment-medium center frame wp-image-1721" alt="" title="No doubt, surrounded by white." />
<img src="http://at.yamomzcrib.com/?ak_action=api_record_view&id=1719&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://at.yamomzcrib.com/2010/01/on-repeat-they-holla-ayyo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>on repeat: speak her sex.</title>
		<link>http://at.yamomzcrib.com/2010/01/on-repeat-speak-her-sex/</link>
		<comments>http://at.yamomzcrib.com/2010/01/on-repeat-speak-her-sex/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 15:15:45 +0000</pubDate>
		<dc:creator>bfnh</dc:creator>
				<category><![CDATA[on repeat]]></category>
		<category><![CDATA[alabama buddy]]></category>
		<category><![CDATA[big boi]]></category>
		<category><![CDATA[posts about songs]]></category>
		<category><![CDATA[yelawolf]]></category>

		<guid isPermaLink="false">http://at.yamomzcrib.com/?p=1697</guid>
		<description><![CDATA[[Click through to site to listen to the song]
Yelawolf &#8211; Speak Her Sex
Trunk Muzik is a great lil&#8217; mixtape, go and get it.

the only thing that could make this song better is a verse from bee eye gee bee ohh eye.
]]></description>
			<content:encoded><![CDATA[<p>[Click through to site to listen to the song]<br />
Yelawolf &#8211; Speak Her Sex</p>
<p><a href="http://www.djbooth.net/index/mixtapes/entry/yelawolf-trunk-muzik/">Trunk Muzik</a> is a great lil&#8217; mixtape, go and get it.</p>
<p><span id="more-1697"></span><br />
the only thing that could make this song better is a verse from bee eye gee bee ohh eye.</p>
<img width="320" height="379" src="http://at.yamomzcrib.com/wp-content/uploads/2010/01/speak-to-the-box.jpg" class="attachment-medium bigframe center" alt="" title="speak-to-the-box" />
<img src="http://at.yamomzcrib.com/?ak_action=api_record_view&id=1697&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://at.yamomzcrib.com/2010/01/on-repeat-speak-her-sex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>so philly.</title>
		<link>http://at.yamomzcrib.com/2010/01/so-philly/</link>
		<comments>http://at.yamomzcrib.com/2010/01/so-philly/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 21:45:58 +0000</pubDate>
		<dc:creator>bfnh</dc:creator>
				<category><![CDATA[music]]></category>
		<category><![CDATA[chillin' in the vip]]></category>
		<category><![CDATA[meek mill]]></category>
		<category><![CDATA[posts about songs]]></category>
		<category><![CDATA[yeah canooons]]></category>

		<guid isPermaLink="false">http://at.yamomzcrib.com/?p=1653</guid>
		<description><![CDATA[[Click through to site to listen to the song]
Sandman &#8211; High Volume
also, below the cut, a video from Meek Mill for &#8220;Make &#8216;em Say&#8221; which is a ridiculous track that&#8217;s probably not getting any love outside of philly. probably because it&#8217;s impossible to find a version w/out an annoying dj talking over the track.  [...]]]></description>
			<content:encoded><![CDATA[<p>[Click through to site to listen to the song]<br />
<strong>Sandman &#8211; High Volume</strong></p>
<p>also, below the cut, a video from Meek Mill for &#8220;Make &#8216;em Say&#8221; which is a ridiculous track that&#8217;s probably not getting <strong>any</strong> love outside of philly. probably because it&#8217;s impossible to find a version w/out an annoying dj talking over the track.  philly, we gotta do better.</p>
<p><span id="more-1653"></span><br />
<center></p>
<p><object width="500" height="281"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=7793589&#038;server=vimeo.com&#038;show_title=1&#038;show_byline=1&#038;show_portrait=1&#038;color=00ADEF&#038;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=7793589&#038;server=vimeo.com&#038;show_title=1&#038;show_byline=1&#038;show_portrait=1&#038;color=00ADEF&#038;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="500" height="281"></embed></object></p>
<p></center></p>
<img src="http://at.yamomzcrib.com/?ak_action=api_record_view&id=1653&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://at.yamomzcrib.com/2010/01/so-philly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10 years ago&#8230;</title>
		<link>http://at.yamomzcrib.com/2009/12/10-years-ago/</link>
		<comments>http://at.yamomzcrib.com/2009/12/10-years-ago/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 17:02:53 +0000</pubDate>
		<dc:creator>bfnh</dc:creator>
				<category><![CDATA[@ymc]]></category>
		<category><![CDATA[me]]></category>
		<category><![CDATA[pr0n]]></category>
		<category><![CDATA[bangladesh]]></category>
		<category><![CDATA[posts about pictures]]></category>
		<category><![CDATA[proof of purchase]]></category>
		<category><![CDATA[y2k]]></category>

		<guid isPermaLink="false">http://at.yamomzcrib.com/?p=1673</guid>
		<description><![CDATA[that&#8217;s a real receipt. i remember getting off the bus. there may have been snow. that store is still there. can&#8217;t remember where i went for new years that year. 10 years later. new domain. same psuedonym. life, it continues&#8230;
back then, times were stupid wild.
[Click through to site to listen to the song]
notes:
 &#8211; gucci [...]]]></description>
			<content:encoded><![CDATA[<img width="420" height="225" src="http://at.yamomzcrib.com/wp-content/uploads/2009/12/10yearsago-420x225.png" class="attachment-medium center bigframe" alt="" title="eff a y2k" />
<p>that&#8217;s a real receipt. i remember getting off the bus. there may have been snow. that store is still there. can&#8217;t remember where i went for new years that year. 10 years later. new domain. same psuedonym. life, it continues&#8230;</p>
<p>back then, times were stupid wild.<br />
[Click through to site to listen to the song]</p>
<p>notes:<br />
 &#8211; gucci mane is stil abhorrent.<br />
 &#8211; i remain a sucker for idiotic bangladesh beats.</p>
<img src="http://at.yamomzcrib.com/?ak_action=api_record_view&id=1673&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://at.yamomzcrib.com/2009/12/10-years-ago/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>that&#8217;s not a hand, it&#8217;s a claw.</title>
		<link>http://at.yamomzcrib.com/2009/12/thats-not-a-hand-its-a-claw/</link>
		<comments>http://at.yamomzcrib.com/2009/12/thats-not-a-hand-its-a-claw/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 18:31:09 +0000</pubDate>
		<dc:creator>bfnh</dc:creator>
				<category><![CDATA[music]]></category>
		<category><![CDATA[3 3/4"]]></category>
		<category><![CDATA[posts about videos]]></category>
		<category><![CDATA[scramble suit]]></category>
		<category><![CDATA[trapjaw]]></category>

		<guid isPermaLink="false">http://at.yamomzcrib.com/?p=1657</guid>
		<description><![CDATA[



great video, great song. can somebody get el-p and elucid in the same building together?
]]></description>
			<content:encoded><![CDATA[<p><center><br />
<object width="430" height="275" id="delve_playerf41db15d64b449eaa0064d5529d83f23334260o" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="movie" value="http://assets.delvenetworks.com/player/loader.swf"/><param name="wmode" value="window"/><param name="allowScriptAccess" value="always"/><param name="allowFullScreen" value="true"/><param name="flashvars" value="mediaId=75081956480e4d6babf78b8097b0f1c5&amp;channelId=1821220363fa412da32e0898da80c032&amp;playerForm=88a26316a62d4655a806dda0da4e95ca&amp;autoplayNextClip=true"/><embed src="http://assets.delvenetworks.com/player/loader.swf" name="delve_playerf41db15d64b449eaa0064d5529d83f23334260e" wmode="window" width="430" height="275" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" flashvars="mediaId=75081956480e4d6babf78b8097b0f1c5&amp;channelId=1821220363fa412da32e0898da80c032&amp;playerForm=88a26316a62d4655a806dda0da4e95ca&amp;autoplayNextClip=true"></embed></object><br />
</center></p>
<p><span id="more-1657"></span></p>
<p>great video, great song. can somebody get el-p and elucid in the same building together?</p>
<img width="420" height="541" src="http://at.yamomzcrib.com/wp-content/uploads/2009/12/TrapJaw-420x541.jpg" class="attachment-medium size-thumbnail wp-image-1659 center" alt="" title="not a claw, a hook." />
<img src="http://at.yamomzcrib.com/?ak_action=api_record_view&id=1657&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://at.yamomzcrib.com/2009/12/thats-not-a-hand-its-a-claw/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>on repeat: wink.</title>
		<link>http://at.yamomzcrib.com/2009/12/on-repeat-wink/</link>
		<comments>http://at.yamomzcrib.com/2009/12/on-repeat-wink/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 21:12:50 +0000</pubDate>
		<dc:creator>bfnh</dc:creator>
				<category><![CDATA[on repeat]]></category>
		<category><![CDATA[japanese swedish meatball sushi]]></category>
		<category><![CDATA[posts about songs]]></category>

		<guid isPermaLink="false">http://at.yamomzcrib.com/?p=1646</guid>
		<description><![CDATA[[Click through to site to listen to the song]
Little Dragon &#8211; Wink

Yeah, I&#8217;m late.
No, I don&#8217;t care.
Word.
]]></description>
			<content:encoded><![CDATA[<p>[Click through to site to listen to the song]<br />
<strong>Little Dragon &#8211; Wink</strong></p>
<p><span id="more-1646"></span><br />
Yeah, I&#8217;m late.<br />
No, I don&#8217;t care.</p>
<p>Word.</p>
<img width="420" height="400" src="http://at.yamomzcrib.com/wp-content/uploads/2009/12/spyro-the-dragon-420x400.jpg" class="attachment-medium wp-image-1649" alt="" title="Get it? It's a little dragon. *Wink Wink*" />
<img src="http://at.yamomzcrib.com/?ak_action=api_record_view&id=1646&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://at.yamomzcrib.com/2009/12/on-repeat-wink/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>wordpress gallery shortcode update.</title>
		<link>http://at.yamomzcrib.com/2009/11/wordpress-gallery-shortcode-update/</link>
		<comments>http://at.yamomzcrib.com/2009/11/wordpress-gallery-shortcode-update/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 20:33:22 +0000</pubDate>
		<dc:creator>bfnh</dc:creator>
				<category><![CDATA[@ymc]]></category>
		<category><![CDATA[blogging about blogging]]></category>
		<category><![CDATA[geek shit]]></category>
		<category><![CDATA[november challenge]]></category>
		<category><![CDATA[rtfm]]></category>

		<guid isPermaLink="false">http://at.yamomzcrib.com/?p=1608</guid>
		<description><![CDATA[some history:  since shortly after the release of the &#091;gallery] shortcode, I&#8217;ve been using a custom field called &#8220;useGallery&#8221; to conditionally show every thumbnail image attached to a particular post. i first did this after noticing in my log stats that users would bounce back and forth to get a look at all of [...]]]></description>
			<content:encoded><![CDATA[<p><strong>some history: </strong> since shortly after the release of the &#091;gallery] shortcode, I&#8217;ve been using a custom field called &#8220;useGallery&#8221; to conditionally show every thumbnail image attached to a particular post. i first did this after noticing in my log stats that users would bounce back and forth to get a look at all of the images included in a &#091;gallery] posting. i thought it made more sense to have all of the thumbnail images available at once so users didn&#8217;t have to waste clicks.<sup>1</sup> after using that bit of code for awhile, i made a modest upgrade that changed the border color of the active image being viewed using conditional logic and some simple css additions to my stylesheet.</p>
<p>For the geeks &#8211; here&#8217;s a look at the code that did it.</p>
<pre class="brush: php; collapse: true; light: false; toolbar: true;">
$useGallery = $wpdb-&gt;get_var(&quot;SELECT meta_value useGallery FROM $wpdb-&gt;postmeta WHERE meta_key = 'useGallery' and post_id = $post-&gt;post_parent&quot;);

if ($useGallery == 1) {

$oImages = $wpdb-&gt;get_results(&quot;SELECT i.id aID, i.post_excerpt altTitle, i.post_content, i.post_name iName
FROM wp_posts p
join wp_posts i on p.id = i.post_parent
join wp_postmeta m on i.id = m.post_id and m.meta_key = '_wp_attachment_metadata'
where i.post_parent = $post-&gt;post_parent
order by i.menu_order&quot;);

$rowcount = $wpdb-&gt;num_rows;

echo '
&lt;h3&gt;other images (' . $rowcount . ')&lt;/h3&gt;';

$i = 0;
foreach($oImages as $oImage) :
	$i = $i + 1;
	$imgText = get_image_tag($oImage-&gt;aID,$oImage-&gt;altTitle,$oImage-&gt;altTitle,'','thumbnail');
    $iref = get_permalink($post-&gt;post_parent) .  $oImage-&gt;iName;

    if(($i % 3) == 1){echo '&lt;div class=\'gallery\'&gt;';}

    if ($oImage-&gt;aID == $id) { echo('&lt;dl class=\'gallery-current gallery-columns-3\'&gt;&lt;dt class=\'gallery-icon\'&gt;' . $imgText . '&lt;/dt&gt;&lt;/dl&gt;'); } else {
echo'&lt;dl class=\'gallery-item gallery-columns-3\'&gt;&lt;dt class=\'gallery-icon\'&gt;&lt;a href=' . $iref .'&gt;' . $imgText . '&lt;/a&gt;&lt;/dt&gt;&lt;/dl&gt;'; }

    if(($i % 3) == 0 || ($i == $rowcount)){echo '&lt;/div&gt;';}
endforeach;

echo '&lt;br style=\'clear: both;\' /&gt;';
}
</pre>
<p>For you nongeeks &#8211; this is what&#8217;s happening in &#8220;plain&#8221; english: first check to see if useGallery is set, then get all images from the post that this image we are currently looking at is attached to, count how many you have, loop over those images and display a thumbnail. while displaying a thumbnail, determine if the one you are currently looking at up top is the thumbnail you are displaying and give that a different css class so that you can shade it&#8217;s border a different color. also, check to see if you&#8217;re a multiple of 3, or, if you&#8217;re at the end of the images. basically, my goal was to mimic the function of wp&#8217;s built in gallery shortcode with, admittedly, a very simple tweak.</p>
<p><strong>the problem: </strong> after <a href="/2009/11/wordpress-shortcode-smarterimage">the big change to the site</a>, i realized i would have to make a change to every post that used the shortcode gallery. my new, slimmer, trimmer 420px column on the frontpage did not play well w/galleries that had more than 2 columns and used thumbnail images with a width of 200px.  now, that meant that i&#8217;d have to hunt down every post that i used the gallery shortcode<sup>2</sup> in or make a global change to the code that runs the gallery shortcode. because those lovely people over at WP left a comment in their code<sup>3</sup> i was able to go right to the source and make an edit to change the default columns to 2 and that took care of my initial problem. while poking around in there, i noticed a commented line which read, &#8220;<em>// Allow plugins/themes to override the default gallery template.</em>&#8221; </p>
<blockquote><p>There&#8217;s more than one way to skin a cat, but, if you&#8217;re skinning said cat somewhere close to a factory that creates <strong>cat-skinning lasers</strong>, you may want to put down your trusty swiss army knife.</p></blockquote>
<p>i figured, if they wanted you to override the gallery template, they&#8217;d probably have some way to do it, so off i went to <a href="http://codex.wordpress.org/Using_the_gallery_shortcode">the codex</a> to find out the best way to do so. the fourth example on that page had <em>almost</em> everything i wasted XX number of lines writing above, and more, a means of using the underlying code that would mean i only needed to update in one place. </p>
<pre class="brush: php;">
 &lt;?php
    $gallery_shortcode = '[ gallery id=&quot;' . intval( $post-&gt;post_parent ) . '&quot;]';
    print apply_filters( 'the_content', $gallery_shortcode );
 ?&gt;
</pre>
<p>in geek, this is clearly a RTFM issue. in non-geek, that says, &#8220;you should have <a href="http://en.wikipedia.org/wiki/RTFM">read the fn manual</a>.&#8221; this was great, i would be able to replace my custom code with the actual gallery shortcode that WP uses. after a tiny tweak i&#8217;d be able to take care of my 3 column issue at the slight cost that I would need to change it every time i upgraded WP. or, at least i thought i would until i came across <a href="http://wordpress.org/support/topic/326650#post-1264893">this bit of genius</a> from <a href="http://quirm.net/">esmi</a> which could easily solve my problem.</p>
<pre class="brush: php;">
remove_shortcode('gallery');
add_shortcode('gallery', 'theme_gallery_shortcode');
</pre>
<p>simple enough to geeks and non-geeks: screw their shortcode, use your own!</p>
<p>the revised gallery shortcode sits below</p>
<pre class="brush: php; collapse: true; highlight: [27,28,68,70]; light: false; toolbar: true;">
function h_gallery_shortcode($attr) {
	global $post;

	static $instance = 0;
	$instance++;

	// Allow plugins/themes to override the default gallery template.
	$output = apply_filters('post_gallery', '', $attr);
	if ( $output != '' )
		return $output;

	// We're trusting author input, so let's at least make sure it looks like a valid orderby statement
	if ( isset( $attr['orderby'] ) ) {
		$attr['orderby'] = sanitize_sql_orderby( $attr['orderby'] );
		if ( !$attr['orderby'] )
			unset( $attr['orderby'] );
	}

	extract(shortcode_atts(array(
		'order'      =&gt; 'ASC',
		'orderby'    =&gt; 'menu_order ID',
		'id'         =&gt; $post-&gt;ID,
		'itemtag'    =&gt; 'dl',
		'icontag'    =&gt; 'dt',
		'captiontag' =&gt; 'dd',
		'columns'    =&gt; 2,
		'size'       =&gt; 'thumbnail',
		'currentid'  =&gt; '0'
	), $attr));

	$id = intval($id);
	$attachments = get_children( array('post_parent' =&gt; $id, 'post_status' =&gt; 'inherit', 'post_type' =&gt; 'attachment', 'post_mime_type' =&gt; 'image', 'order' =&gt; $order, 'orderby' =&gt; $orderby) );

	if ( empty($attachments) )
		return '';

	if ( is_feed() ) {
		$output = &quot;\n&quot;;
		foreach ( $attachments as $att_id =&gt; $attachment )
			$output .= wp_get_attachment_link($att_id, $size, true) . &quot;\n&quot;;
		return $output;
	}

	$itemtag = tag_escape($itemtag);
	$captiontag = tag_escape($captiontag);
	$columns = intval($columns);
	$itemwidth = $columns &gt; 0 ? floor(100/$columns) : 100;

	$selector = &quot;gallery-{$instance}&quot;;

	$output = apply_filters('gallery_style', &quot;
		&lt;style type='text/css'&gt;
			#{$selector} {
				margin: auto;
			}
			#{$selector} .gallery-item {
				float: left;
				margin-top: 10px;
				text-align: center;
				width: {$itemwidth}%;
			}
		&lt;/style&gt;
		&lt;div id='$selector' class='gallery galleryid-{$id}'&gt;&quot;);

	$i = 0;
	foreach ( $attachments as $id =&gt; $attachment ) {
		$link = isset($attr['link']) &amp;&amp; 'file' == $attr['link'] ? wp_get_attachment_link($id, $size, false, false) : wp_get_attachment_link($id, $size, true, false);
		$currentclass = ($id == $currentid) ? 'gallery-current' : 'gallery-item';

		$output .= &quot;&lt;{$itemtag} class='$currentclass'&gt;&quot;;
		$output .= &quot;
			&lt;{$icontag} class='gallery-icon'&gt;
				$link
			&lt;/{$icontag}&gt;&quot;;
		if ( $captiontag &amp;&amp; trim($attachment-&gt;post_excerpt) ) {
			$output .= &quot;
				&lt;{$captiontag} class='gallery-caption'&gt;
				&quot; . wptexturize($attachment-&gt;post_excerpt) . &quot;
				&lt;/{$captiontag}&gt;&quot;;
		}
		$output .= &quot;&lt;/{$itemtag}&gt;&quot;;
		if ( $columns &gt; 0 &amp;&amp; ++$i % $columns == 0 )
			$output .= '&lt;br style=&quot;clear: both&quot; /&gt;';
	}

	$output .= &quot;
			&lt;br style='clear: both;' /&gt;
		&lt;/div&gt;\n&quot;;

	return $output;
}
</pre>
<p>i&#8217;ve trimmed the css and added the &#8220;currentid&#8221; attribute. the highlighted lines<sup>4</sup> show the code used to add the &#8220;currentid&#8221; attribute. my huge chunk of code from the beginning now appears as 9 simple lines.</p>
<pre class="brush: php;">
$useGallery = $wpdb-&gt;get_var(&quot;SELECT meta_value useGallery FROM $wpdb-&gt;postmeta WHERE meta_key = 'useGallery' and post_id = $post-&gt;post_parent&quot;);

if ($useGallery == 1) {

echo '&lt;h3&gt;other images&lt;/h3&gt;';

    $gallery_shortcode = '[ gallery columns=&quot;3&quot; currentid=&quot;' . intval($id) . '&quot; id=&quot;' . intval( $post-&gt;post_parent ) . '&quot;]';
    print apply_filters( 'the_content', $gallery_shortcode );
}
</pre>
<p>overall, this was a huge success. i was able to eliminate my duplicate code, i was able to fix the 3 column default issue w/out worrying about it being overwritten in an upgrade and i (re)learned one of life&#8217;s most important lessons &#8212; <strong>RTFM</strong>. the biggest thing that i took away from this experience is that you can rewrite a bunch of the &#8220;core&#8221; functions/tags/etc that are available in WP. one guy even created <a href="http://justintadlock.com/archives/2009/03/24/template-tag-shortcodes-wordpress-plugin">a plugin that turns template tags into shortcodes</a>. this lets me know that before i go off and try to rewrite history, a little more time on <a href="http://www.google.com">teh googz</a> can stop me from having to cut ~30 lines of code down to five. now all i&#8217;ll need is someone to draw me a picture of a cat skinning laser factory and this might be a perfect post.</p>
<img src="http://at.yamomzcrib.com/?ak_action=api_record_view&id=1608&type=feed" alt="" /><div class="footnotes">
notes:<br /><ol class="footnotes"><li id="footnote_0_1608" class="footnote">it&#8217;s what i would want a website to do.</li><li id="footnote_1_1608" class="footnote">which, by default, uses 3 columns</li><li id="footnote_2_1608" class="footnote">&lt;!&#8211; see gallery_shortcode() in wp-includes/media.php &#8211;&gt;</li><li id="footnote_3_1608" class="footnote">27 &#8211; add a comma to the end of the line<br /> 28 &#8211; add entire line <br /> 68 &#8211; tertiary operator to determine if thumbnail matches image <br /> 70 &#8211; replace class with $currentclass variable</li></ol></div>]]></content:encoded>
			<wfw:commentRss>http://at.yamomzcrib.com/2009/11/wordpress-gallery-shortcode-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
