<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/override</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Tue, 21 May 2013 10:49:43 GMT</pubDate>
<item>
<title>(CSS) override any css style with !important - skopp</title>
<link>http://snipplr.com/view/66945/override-any-css-style-with-important/</link>
<description><![CDATA[ <p>as per title. Note in code I used  as non-syntactic indicators of arbitrary code, and >>#</p> ]]></description>
<pubDate>Wed, 29 Aug 2012 23:03:28 GMT</pubDate>
<guid>http://snipplr.com/view/66945/override-any-css-style-with-important/</guid>
</item>
<item>
<title>(PHP) SlideDeck 2 After get hook-in for overriding deck options - Jamie</title>
<link>http://snipplr.com/view/66597/slidedeck-2-after-get-hookin-for-overriding-deck-options/</link>
<description><![CDATA[ <p>Allows a SlideDeck user to hook into the options array after the SlideDeck is fetched from the database. Options can then be modified based on the request.</p> ]]></description>
<pubDate>Thu, 09 Aug 2012 03:13:52 GMT</pubDate>
<guid>http://snipplr.com/view/66597/slidedeck-2-after-get-hookin-for-overriding-deck-options/</guid>
</item>
<item>
<title>(Other) Wordpress Permalinks MAMP - silentpro</title>
<link>http://snipplr.com/view/48103/wordpress-permalinks-mamp/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 30 Jan 2011 10:02:35 GMT</pubDate>
<guid>http://snipplr.com/view/48103/wordpress-permalinks-mamp/</guid>
</item>
<item>
<title>(Other) CSS Override - dottDesign</title>
<link>http://snipplr.com/view/33510/css-override/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 29 Apr 2010 00:12:08 GMT</pubDate>
<guid>http://snipplr.com/view/33510/css-override/</guid>
</item>
<item>
<title>(PHP) drupal - find available variable names and content for node - stiobhart</title>
<link>http://snipplr.com/view/22919/drupal--find-available-variable-names-and-content-for-node/</link>
<description><![CDATA[ <p>because i always forget [or sometimes didnae know in the first place], what variables are available, and what values they hold, when overriding a drupal node.tpl file.

since drupal tends to hold all the info for constructing a page inside nested arrays... inside nested arrays... inside nested arrays... etc. etc. you need to dig down quite a few levels before you actually start getting to the meat and potatoes.

stick this code in the top of one of your node_xxxxx.tpl.php files and it will dig four nested arrays  deep and print out what it finds in a logical format:

arrayname["nested arrayname"]["nested arrayname"]["nested arrayname"] = VALUE

any arrays which dinnae go four levels deep will return a "Invalid argument supplied for foreach().." error and you'll have to not dig so deep to find their values. any values hidden deeper than four nested levels will just return as ARRAY and you'll need to dig even deeper!

when you get the value you're after, you generally use it in a node template by using everything after the 'node' bit. so if my value was at:

field_productimage["field"]["#node"]["title"] = some product name

i'd add it into my drupal node template using something like:


&amp;lt;div&amp;gt;
$node->title
&amp;lt;/div&amp;gt;



OK it ain't very elegant and it's a bit of a clunker, as you need to hack the code about for different levels of digging, but it helps me find the crap i'm looking for, so it'll do me 'til i write sommit better.</p> ]]></description>
<pubDate>Wed, 11 Nov 2009 07:35:38 GMT</pubDate>
<guid>http://snipplr.com/view/22919/drupal--find-available-variable-names-and-content-for-node/</guid>
</item>
<item>
<title>(CSS) browser.php - frakim</title>
<link>http://snipplr.com/view/6386/browserphp/</link>
<description><![CDATA[ <p>For the why and the what, make sure you check out my blog article Never hack your CSS files again, you’ll get a much better idea what this is for.
update: I added support for the iPhone in version 1.0.2. More info in my blog post about serving iPhone specific CSS.
Requirements
A website hosted on a server that has PHP
Basic knowledge of FTP, HTML, and CSS
Installation
Download, unzip, and open in a text editor
Modify line 22 ($css_dir = '/_css/';) to point to your CSS files on your server. The default points to a folder called “_css” located at the root of your website, where your index file is
Upload to your server
Create CSS files inside the CSS folder defined in step 2 (names available)
Add this code in your HTML (make sure you put it under the main CSS)

That’s it… You’re done!</p> ]]></description>
<pubDate>Wed, 21 May 2008 16:14:39 GMT</pubDate>
<guid>http://snipplr.com/view/6386/browserphp/</guid>
</item>
</channel>
</rss>