Replace default smilies of WordPress, insert following code in functions.php file of current theme. // Replace default smilies of WordPress add_filter('smilies_src','fa_smilies_src',1,10); function fa_smilies_src ($img_src, $img, $siteurl){ $img = rtrim($img, "gif"); return get_bloginfo('template_directory') . '/smilies/' . $img . 'png'; } Download…
Config PostgreSQL and Laravel
Wiki PostgreSQL is a powerful, open source object-relational database system. It has more than 15 years of active development and a proven architecture that has earned it a strong reputation for reliability, data integrity, and correctness. It runs on all…
Ajax Refresh an Image in Mozilla Firefox
I use Ajax reload an captcha code image. $('.load_captcha').click(function(){ var formData = { // CSRF token _token : csrf_token }; $.ajax({ // The URL where we want to POST url : captcha_url, // Define the type of HTTP verb we…
Adding a Queue Worker in Laravel
Queue in laravel are no different with other queue services, it use easy and common procedures: There is a place to store the queue information, a PHP process at runtime writes tasks, another guard PHP polling process queue information, will…