<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Wed, 10 Jun 2026 05:29:12 +0000</lastBuildDate>
    <item>
      <title>(jQuery) Calculate the sum of radio button values using jQuery - sdxxx</title>
      <link>https://snipplr.com/view/56360/calculate-the-sum-of-radio-button-values-using-jquery</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sat, 09 Jul 2011 12:43:37 UTC</pubDate>
      <guid>https://snipplr.com/view/56360/calculate-the-sum-of-radio-button-values-using-jquery</guid>
    </item>
    <item>
      <title>(PHP) Drupal 7 : Creating Horizontal Login Bar Without Module - sdxxx</title>
      <link>https://snipplr.com/view/52653/drupal-7--creating-horizontal-login-bar-without-module</link>
      <description>&lt;p&gt;Do you know that you can create a new form directly from theme template.php without the need of creating a module in Drupal 7?&#13;
&#13;
Armed with that knowledge, we will build a new login form and transform it to become a horizontal login bar.&#13;
&#13;
You might asked, why create a new login form while you can form alter the standard login block form (user_login_block) ? The reason for this is very simple, the standard login block form will be altered by other contribution module such as captcha module and it would not be possible to display the captcha in a tight spaced horizontal bar. Not to mentioned other standard module such as openid will also altered the module and adds its own html tag.&#13;
&#13;
So by creating a new login form we will be able to create a clean and slim horizontal login bar without the worry about other contribution module messing the layout of our horizontal login bar.&#13;
&#13;
To do this we need to add a few functions to the theme template.php.&lt;/p&gt;</description>
      <pubDate>Wed, 27 Apr 2011 18:29:40 UTC</pubDate>
      <guid>https://snipplr.com/view/52653/drupal-7--creating-horizontal-login-bar-without-module</guid>
    </item>
    <item>
      <title>(PHP) How to show Real Names in Drupal 7 - sdxxx</title>
      <link>https://snipplr.com/view/52072/how-to-show-real-names-in-drupal-7</link>
      <description>&lt;p&gt;By Shankar Dhanasekaran&#13;
On opendrops.com, I wanted to show myreal name for all my posts in the submitted information instead of my username. In D6, one could do this with the wonderful module RealName. However, there is no D7 version as of now. Nevertheless, the logic behind showing the realname is not so much complicated. Here is how I did it.&#13;
&#13;
1. I created a new field for user object with the system name real_name.&#13;
2. Used the below code in my theme's template.php. (My theme name is krish, and you would want to change the function name below to indicate your themename, otherwise, this wont work.)&#13;
3. Clear cache.&lt;/p&gt;</description>
      <pubDate>Thu, 14 Apr 2011 18:58:38 UTC</pubDate>
      <guid>https://snipplr.com/view/52072/how-to-show-real-names-in-drupal-7</guid>
    </item>
    <item>
      <title>(HTML) Setting Mobile Browser Width - sdxxx</title>
      <link>https://snipplr.com/view/51890/setting-mobile-browser-width</link>
      <description>&lt;p&gt;The Problem&#13;
&#13;
When I pulled the site up on my phone, it was about 1/4 the size it needed to be and looked really zoomed out. See the url for what Iâ€™m talking about.&lt;/p&gt;</description>
      <pubDate>Sun, 10 Apr 2011 18:26:37 UTC</pubDate>
      <guid>https://snipplr.com/view/51890/setting-mobile-browser-width</guid>
    </item>
    <item>
      <title>(JavaScript) swfobject embedding transparent swf - sdxxx</title>
      <link>https://snipplr.com/view/51889/swfobject-embedding-transparent-swf</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 10 Apr 2011 17:51:36 UTC</pubDate>
      <guid>https://snipplr.com/view/51889/swfobject-embedding-transparent-swf</guid>
    </item>
    <item>
      <title>(jQuery) Jquery Tutorial : Toggle Effect on Hover/Click - sdxxx</title>
      <link>https://snipplr.com/view/51187/jquery-tutorial--toggle-effect-on-hoverclick</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 28 Mar 2011 05:04:32 UTC</pubDate>
      <guid>https://snipplr.com/view/51187/jquery-tutorial--toggle-effect-on-hoverclick</guid>
    </item>
    <item>
      <title>(PHP) Change CSS according to Timezone-specific Date - sdxxx</title>
      <link>https://snipplr.com/view/50901/change-css-according-to-timezonespecific-date</link>
      <description>&lt;p&gt;Date format guide:&#13;
&#13;
d = 01 to 12 ;&#13;
m = 01 to 12 ;&#13;
&#13;
More formats: http://php.net/manual/en/function.date.php&lt;/p&gt;</description>
      <pubDate>Mon, 21 Mar 2011 09:01:34 UTC</pubDate>
      <guid>https://snipplr.com/view/50901/change-css-according-to-timezonespecific-date</guid>
    </item>
    <item>
      <title>(SQL) cronjob to optimize MySQL database - sdxxx</title>
      <link>https://snipplr.com/view/48291/cronjob-to-optimize-mysql-database</link>
      <description>&lt;p&gt;Cronjob and PHP examples below&lt;/p&gt;</description>
      <pubDate>Thu, 03 Feb 2011 01:02:49 UTC</pubDate>
      <guid>https://snipplr.com/view/48291/cronjob-to-optimize-mysql-database</guid>
    </item>
    <item>
      <title>(PHP) Creating Simple oEmbed-Based WordPress Shortcodes - sdxxx</title>
      <link>https://snipplr.com/view/46008/creating-simple-oembedbased-wordpress-shortcodes</link>
      <description>&lt;p&gt;Say you wanted to create a shortcode like this: [youtube id="991WcoEPwb8"]&#13;
&#13;
And instead of manually creating the HTML yourself, you wanted to use YouTubeâ€™s oEmbed provider to get the HTML. While thatâ€™s easy to do using WordPressâ€™ existing functions (wp_oembed_get() for example), you must implement your own caching of the result as WordPressâ€™ oEmbed class does not include any caching of itâ€™s own.&#13;
&#13;
However, WordPress comes with an [embed] shortcode thatâ€™s also secretly used for the shortcode-less embeds. A cool trick is to make that shortcodeâ€™s existing code (complete with caching) work for you! This post explains how to do it.&lt;/p&gt;</description>
      <pubDate>Wed, 22 Dec 2010 00:00:04 UTC</pubDate>
      <guid>https://snipplr.com/view/46008/creating-simple-oembedbased-wordpress-shortcodes</guid>
    </item>
    <item>
      <title>(Apache) More efficient RewriteRule for Wordpress - sdxxx</title>
      <link>https://snipplr.com/view/45273/more-efficient-rewriterule-for-wordpress</link>
      <description>&lt;p&gt;Improving WordPress performance with changes to .htaccess&lt;/p&gt;</description>
      <pubDate>Sat, 04 Dec 2010 13:43:19 UTC</pubDate>
      <guid>https://snipplr.com/view/45273/more-efficient-rewriterule-for-wordpress</guid>
    </item>
    <item>
      <title>(Apache) Leverage Browser Caching in WordPress via .htaccess - sdxxx</title>
      <link>https://snipplr.com/view/45272/leverage-browser-caching-in-wordpress-via-htaccess</link>
      <description>&lt;p&gt;"We should always be looking for ways to improve the functionality of our blogs. One of the easiest ways to improve our blog functionality and speed is to leverage browser caching."&lt;/p&gt;</description>
      <pubDate>Sat, 04 Dec 2010 13:41:13 UTC</pubDate>
      <guid>https://snipplr.com/view/45272/leverage-browser-caching-in-wordpress-via-htaccess</guid>
    </item>
    <item>
      <title>(PHP) WP Shortcode - retrieve author page url - sdxxx</title>
      <link>https://snipplr.com/view/45234/wp-shortcode--retrieve-author-page-url</link>
      <description>&lt;p&gt;Using shortcode to retrieve the author page url (ex. abc.com/?author=123), using the WP Shortcode API as reference.&lt;/p&gt;</description>
      <pubDate>Fri, 03 Dec 2010 22:43:25 UTC</pubDate>
      <guid>https://snipplr.com/view/45234/wp-shortcode--retrieve-author-page-url</guid>
    </item>
    <item>
      <title>(JavaScript) JS Popup Window - sdxxx</title>
      <link>https://snipplr.com/view/45214/js-popup-window</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 03 Dec 2010 09:00:26 UTC</pubDate>
      <guid>https://snipplr.com/view/45214/js-popup-window</guid>
    </item>
  </channel>
</rss>
