Category: Web Development

Add qTranslate support to Contact Form 7

For those of you using WordPress that would like a non-intrusive simple way to add qTranslate support to your Contact Form 7 contact forms, here’s a simple snippet you can insert into functions.php: // Add qTranslate support to contact form 7 add_filter(‘wpcf7_form_elements’, ‘rl_wpcf7_form_elements’); function rl_wpcf7_form_elements($content){ if(function_exists(‘qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage’)){ return qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($content); } } add_filter(‘wpcf7_form_class_attr’, ‘rl_wpcf7_form_class_attr’); function rl_wpcf7_form_class_attr($content){ if(function_exists(‘qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage’)){ […]

BuddyPress Crop Avatar to Any Ratio

Looking to get rid of the annoying aspect ratio on your BuddyPress avatar crop tool? This was very poorly documented and nowhere to be found on Google so I decided to figure this out and share the solution with the community. This is probably not the best solution as I had to modify a core […]

3 Incredible Benefits of Using API’s

There are many of you reading this that are managers looking to get a better grasp on what an API is and how it can benefit your programmers. API is an acronym for “Application Programming Interface”. Simply put, this interface allows programmers to develop applications that communicate with an existing application or service to automate […]

Update linux DNS named serials with bash script

This will update the serials of all of your *.hosts files in the same directory that you executed the “updateserials” command in (aka `pwd`). This only updates serials that begin with the current year. Enjoy! #!/bin/bash read −p “Are you sure you want to update `pwd`/*.hosts serial numbers to `date +%Y%m%d%H` (y/n)? ” if [ […]