Monday, February 24, 2014

joomla 3.2.2 update breaks custom captcha

Joomla 3.2.2 update breaks custom recaptcha components as they need mootools. To fix just add
JHtml::_('behavior.formvalidation');
to the component to force mootools to load
OR
if you're not using a component go old school and add
  src="/media/system/js/mootools-core.js"

to your template

Tuesday, February 18, 2014

shopify minimalist theme SOLD circle

add this to product-loop.liquid snippet

    {% if product.available == false %}
    {% if settings.show_sale_circle %}
    SOLD
    {% endif %}
  {% endif %}

Wednesday, February 12, 2014

mysql select values from this month, this year

SELECT * FROM table_name WHERE MONTH(timestamp) = MONTH(CURDATE()) AND YEAR(timestamp) = YEAR(CURDATE())

Monday, January 27, 2014

New site build - botanica editions

Botanica Editions
http://www.botanicaeditions.com/

Design 
http://www.frankdesign.com.au

Build
http://www.epidote.com.au

htaccess gzip compression

http://gtmetrix.com/enable-gzip-compression.html

# compress text, HTML, JavaScript, CSS, and XML
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

# remove browser bugs
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent