The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
<?php | |
/** | |
* | |
* Plugin fires OnWebPagePrerender system event, loads Minify HTML by Mr Clay and minifies the requested Resource HTML inc. inline css and js. | |
* | |
* If used in conjunction with StatCache the minified HTML is cached and served as a flat file via IIS Rewrite. | |
* | |
* CREDITS | |
* | |
* http://rtfm.modx.com/revolution/2.x/developing-in-modx/basic-development/plugins |
<!-- source: https://www.saotn.org/my-wordpress-web-config/ --> | |
<?xmlversion="1.0"encoding="UTF-8"?> | |
<configuration> | |
<configSections> | |
<!-- | |
Load HttpBL assembly to keep suspicious and malicious web robots | |
out. Get your Access Key @ https://www.projecthoneypot.org/create_account.php | |
--> | |
<section name="HttpBL" type="HttpBL.Settings" /> |
01-autoResizeOnUpload.php - Plugin to automatically resize images uploaded via MODX that are larger than the dimensions specified | |
in the config within the plugin code. This should be considered experimental but has been tested | |
successfully on MODX Revolution 2.3.2-pl (traditional) running on Windows Server 2008. | |
02-set-expires-headers.php - Sets expires headers to value defined in plugin |
# Add this before your MODX Friendly URLs RewriteCond's and RewriteRule... | |
RewriteCond /abs/path/to/docroot/statcache%{REQUEST_URI} -f | |
RewriteRule ^(.*)$ /statcache/$1 [L,QSA] |
Collection of code blocks to create a FormIt Hook for Sweet Captcha. | |
Sweet Captcha - Fun and Human Friendly Captcha: http://sweetcaptcha.com/ (requires no cost account to be set up). | |
01 SwtCaptchaFormItHook.php - Hook to validate Sweet Captcha | |
02 SwtCaptchaHTML.php - Output Sweet Captcha HTML | |
03 sweetcaptcha.php - 01 SwtCaptchaFormItHook.php assumes sweetcaptcha.php is in your web root directory. | |
Note: 03 sweetcaptcha.php requires your account credentials to be defined by updating the placeholders at the |
Collection of code blocks for the Trustpilot RSS Reader example. |
- MODX Addons/Extras | |
- PHP Libraries + Classes | |
- jQuery Plugins | |
- Web Services | |
- Bootstrap Resources | |
- Web Tools - Online | |
- Web Resources | |
- Javascript Resources, Plugins + Libraries | |
- Graphic Resources | |
- Fonts |