2016. február 20., szombat

Storing HTML Form data locally

<script type="text/javascript"> $(document).ready(function() { var formElements = {}; var current_siteurl = window.location.href; //console.log( 'current_siteurl: '+ current_siteurl); //WRITE $("form :input").each(function(){ var input = $(this); // console.log( input.attr('name')); $("textarea[name='"+input.attr('name')+"']").keyup(function() { // console.log('click:'+ $("textarea[name='"+input.attr('name')+"']").val()); formElements[input.attr('name')]  = $("textarea[name='"+input.attr('name')+"']").val(); formElements_str = JSON.stringify(formElements); // A süti neve az aktuális oldal neve, egyedi azonosító Cookies.set(current_siteurl, formElements_str , { expires: 3 }); }); }); //READ $("#show_saved_btn").click(function() { formPack_str = Cookies.get(current_siteurl); //console.log( 'suti: '+ formPack_str); if(formPack_str){ formPack = JSON.parse(formPack_str); for (var k in formPack ){ if (formPack.hasOwnProperty(k)) { $("textarea[name='"+k+"']").val(formPack[k]); } } } }); }); </script>     Autosave form content to Local Storage, a cookie if LS is not available, as changes are made realtime in forms https://github.com/BenGriffiths/jquery-save-as-you-type The jQuery.autosave plugin automatically and unobtrusively saves form data based on a set of critera. : https://github.com/nervetattoo/jquery-autosave Guide to have Persistent Form data using jQuery: http://time2hack.com/2013/09/guide-to-have-persistent-form-data-using-jquery.html The idea is to store the form data in the cookies and refill tht data if the form is called once again. And if the for submission goes successful; we will just clear the cookies. JQuery Cookie Lib: https://github.com/js-cookie/js-cookie

Removes duplicates values from an multidimensional array (PHP)

The idea: Serialize the item of the item (array) of the multidimensional array Than Sort out the same item. // serialize — Generates a storable representation of a value $workArr =array(); foreach ($newDateArr as $value) { $workArr[]= serialize ( $value ); } $workArr = array_unique($workArr); //unserialize — Creates a PHP value from a stored representation $workArr2 =array(); foreach ($workArr as $value) { $workArr2[]= unserialize( $value ); } other source - but this was not worked for me: How to remove duplicate values from a multi-dimensional array in PHP http://stackoverflow.com/questions/307674/how-to-remove-duplicate-values-from-a-multi-dimensional-array-in-php

CSS 2016 info

22 Essential CSS Recipes (14 Jan 2016): http://ipestov.com/22-essential-css-recipes/

Printscreen

http://prnt.sc/ Do you want to take screenshots outside of your browser? Choose the most functional Lightshot download option in order to get this opportunity. This application allows you to take screenshots directly from your desktop.

WordPress Figyelő | bajok - gyógymódok - eszközök - infok

" Először wordfence, aztán ninja firewall és a végén ithemes security. ez a jó sorrend, mert ha az ithemes security-t teszem fel először, akkor nem engedi írni a php.ini fájlt... és akkor a ninja nem konfigurál be." Wordfence: https://www.wordfence.com/ NinjaFirewall: https://hu.wordpress.org/plugins/ninjafirewall/ iThemes Security: https://hu.wordpress.org/plugins/better-wp-security/ 10 Little-Known, Super Effective Tips to Secure Your WordPress Blog: http://www.socialambush.com/wordpress/10-little-known-super-effective-tips-to-secure-your-wordpress-blog/ A desktop app that gives WordPress a permanent home in your taskbar. https://desktop.wordpress.com/ Nem javaslom olyan WordPress alapú oldal építését, működtetését, ami regisztrációs felületet tartalmaz. Rengeteg spam, támadási kisérlet... Megdöbbentő: WordPress Is Most Popular With Business Websites : https://managewp.com/14-surprising-statistics-about-wordpress-usage Olvasom: 'A wordpresses webshopunkra kb. 3 percenként jön egy kamu (robot) regisztráció. Valószínűleg ez leterheli az oldalt is.' 'A ......... nevű wordpress + woocommerce-es weboldalunk valami brutális módon be van lassulva. Hetek óta nem találjuk a kollégákkal a megoldást.' Pár napja új tárhelyre mozgattuk (gyorsabbra), de sajnos az sem oldotta meg a dolgot, sőt... Kikapcsoltunk egy csomó plugint, stb. de még mindig botrány lassú. Mivel egy webshopról van szó ez elég ciki és érezhetően kevesebb rendelés is jön. A legnagyobb gond az, hogy kb 40 plugin fut a háttérben és valamelyik beakasztja az egész processzt. Ha minden kikapcs értelemszerűen megy. Úgyhogy azon van a küzdés, hogy melyik plugin akasztja be az egészet. https://wordpress.org/plugins/p3-profiler/ Free Website Malware and Security Scanner https://sitecheck.sucuri.net/ WPScan is a black box WordPress vulnerability scanner that can be used to scan remote WordPress installations to find security issues. : http://tools.kali.org/web-applications/wpscan Akismet Is the Most Popular Plugin

Adverticum HTML5 banner készítési info

Mivel az Adverticum nem tud mapparendszereket kezelni, ezért minden file-nak legyen egyedi az elnevezése. Így elkerülhetjük az összeakadást több kreatív esetében.

The Collaborative Interface Design Tool

Figma - The Collaborative Interface Design Tool: https://www.figma.com/