<?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>Tue, 09 Jun 2026 15:08:37 +0000</lastBuildDate>
    <item>
      <title>(PHP) MODx hide development site - hotdiggity</title>
      <link>https://snipplr.com/view/61411/modx-hide-development-site</link>
      <description>&lt;p&gt;Set up a basic template:&#13;
&#13;
&lt;html&gt;&#13;
&lt;head&gt;&#13;
&lt;title&gt;[[++site_name]] - [[*pagetitle]]&lt;/title&gt;&#13;
&lt;base&gt;&#13;
&lt;meta&gt;â€‹&#13;
&lt;/head&gt;&#13;
&lt;body&gt;&#13;
[[*content]]&#13;
&lt;/body&gt;&#13;
&lt;/html&gt;&#13;
&#13;
Content:&#13;
&#13;
&lt;div&gt;&#13;
&lt;h4&gt;The ACME web site is currently under development&lt;/h4&gt;&#13;
&lt;p&gt;Please&#13;
&lt;script&gt;// &lt;![CDATA[&gt;' + 'email us' + '&lt;/a&gt;' )&#13;
// ]]&gt;&lt;/script&gt;&#13;
for all enquiries.&lt;/p&gt;&#13;
&lt;/div&gt;&#13;
&#13;
..and set this page as the Unauthorised Page in system settings.&#13;
&#13;
&#13;
Put this snippet at top of every other template:&#13;
&#13;
[[!UnauthorisedAccess]]&#13;
&#13;
Now only web manager users logged in will be able to view the full site. Change to 'web' for web users.&#13;
&#13;
Snippet code:&lt;/p&gt;</description>
      <pubDate>Thu, 01 Dec 2011 21:50:18 UTC</pubDate>
      <guid>https://snipplr.com/view/61411/modx-hide-development-site</guid>
    </item>
    <item>
      <title>(PHP) MODx Ditto call within snippet: Alters parameters according to parent ID - hotdiggity</title>
      <link>https://snipplr.com/view/60656/modx-ditto-call-within-snippet-alters-parameters-according-to-parent-id</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 09 Nov 2011 10:43:26 UTC</pubDate>
      <guid>https://snipplr.com/view/60656/modx-ditto-call-within-snippet-alters-parameters-according-to-parent-id</guid>
    </item>
    <item>
      <title>(PHP) Test PayPal ipn to file - hotdiggity</title>
      <link>https://snipplr.com/view/58881/test-paypal-ipn-to-file</link>
      <description>&lt;p&gt;Writes to a text file, test.txt, instead of email for the purposes of testing.&lt;/p&gt;</description>
      <pubDate>Wed, 21 Sep 2011 09:24:17 UTC</pubDate>
      <guid>https://snipplr.com/view/58881/test-paypal-ipn-to-file</guid>
    </item>
    <item>
      <title>(PHP) Basic PayPal IPN script - hotdiggity</title>
      <link>https://snipplr.com/view/58880/basic-paypal-ipn-script</link>
      <description>&lt;p&gt;PHP 4.1&lt;/p&gt;</description>
      <pubDate>Wed, 21 Sep 2011 09:22:07 UTC</pubDate>
      <guid>https://snipplr.com/view/58880/basic-paypal-ipn-script</guid>
    </item>
    <item>
      <title>(PHP) Pear.ini updater script for Magento (when moving server) - hotdiggity</title>
      <link>https://snipplr.com/view/58261/pearini-updater-script-for-magento-when-moving-server</link>
      <description>&lt;p&gt;Lastly, in order to make magento connect to work correctly edit the pear.ini (downloader/pearlib/pear.ini) and update al the paths that you see in this file. Otherwise magentoconnect will try to upgrade your old site when you use it.&#13;
&#13;
(the files downloader/pearlib/pear downloader/pearlib/peardev downloader/pearlib/pecl may also need the paths updating if you have changed the path)&#13;
&#13;
(Note: Updating this file -pear.ini- is a tedious job, because when you change the paths, you also need the update the field before it which starts with â€œs:â€. You need to type in the length of characters of the path field that you have updated.)&#13;
&#13;
A simple helper script to generate a new the pear.ini file: drop your old pear.ini in the same directory as the PHP script, adjust the paths in the script, open it in a browser and paste the contents into your new pear.ini.&#13;
&#13;
Note: The code splits the ini file into lines by detecting the â€œnâ€ character - depending on the operating system you are running on the correct new line character to split your file may vary.&lt;/p&gt;</description>
      <pubDate>Mon, 29 Aug 2011 12:49:22 UTC</pubDate>
      <guid>https://snipplr.com/view/58261/pearini-updater-script-for-magento-when-moving-server</guid>
    </item>
    <item>
      <title>(PHP) Run MODx API in external file - hotdiggity</title>
      <link>https://snipplr.com/view/50769/run-modx-api-in-external-file</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 17 Mar 2011 12:08:57 UTC</pubDate>
      <guid>https://snipplr.com/view/50769/run-modx-api-in-external-file</guid>
    </item>
    <item>
      <title>(PHP) Delete cancelled magento orders cron - hotdiggity</title>
      <link>https://snipplr.com/view/49519/delete-cancelled-magento-orders-cron</link>
      <description>&lt;p&gt;Say you donâ€™t want to reset ALL your orders, maybe you want to PRUNE a production database. if thatâ€™s the case, this php file (added to a crontab, or ran from your magento root directory) will DELETE all cancelled orders (5000 limit per instance).  This is helpful for production instances, to keep your magento running smoothly if you run alot of test transactions.&lt;/p&gt;</description>
      <pubDate>Wed, 23 Feb 2011 20:55:49 UTC</pubDate>
      <guid>https://snipplr.com/view/49519/delete-cancelled-magento-orders-cron</guid>
    </item>
    <item>
      <title>(PHP) Invisible Captcha - hotdiggity</title>
      <link>https://snipplr.com/view/36904/invisible-captcha</link>
      <description>&lt;p&gt;Create a textbox that the bot will presume is just a field it can exploit with rubbish and label it with an indicator to let any viewers without the privileges of CSS know that it is to be left blank.&lt;/p&gt;</description>
      <pubDate>Thu, 08 Jul 2010 11:25:54 UTC</pubDate>
      <guid>https://snipplr.com/view/36904/invisible-captcha</guid>
    </item>
    <item>
      <title>(PHP) Simple Banner Rotation - hotdiggity</title>
      <link>https://snipplr.com/view/35438/simple-banner-rotation</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 02 Jun 2010 06:15:31 UTC</pubDate>
      <guid>https://snipplr.com/view/35438/simple-banner-rotation</guid>
    </item>
    <item>
      <title>(PHP) Embed 3rd party web application as a module within MODx Evo - hotdiggity</title>
      <link>https://snipplr.com/view/24160/embed-3rd-party-web-application-as-a-module-within-modx-evo</link>
      <description>&lt;p&gt;Create a new module using this code:&lt;/p&gt;</description>
      <pubDate>Wed, 02 Dec 2009 18:52:43 UTC</pubDate>
      <guid>https://snipplr.com/view/24160/embed-3rd-party-web-application-as-a-module-within-modx-evo</guid>
    </item>
    <item>
      <title>(PHP) MODx referer authentication snippet - hotdiggity</title>
      <link>https://snipplr.com/view/17481/modx-referer-authentication-snippet</link>
      <description>&lt;p&gt;For low level authentication only.&lt;/p&gt;</description>
      <pubDate>Mon, 27 Jul 2009 02:10:53 UTC</pubDate>
      <guid>https://snipplr.com/view/17481/modx-referer-authentication-snippet</guid>
    </item>
  </channel>
</rss>
