Blog

I only use an iFrame to crawl and scrape content
20/05/2020

Crawling & ScrapingIndex1 Crawling & Scraping2 🔬Some examples using browser’s developer tools2.1 Common lines of code2.2 Seo audit (without iframe)2.3 🚀 Scraping All Craiglist’s housing NYC listings (with an iframe)2.4 Scraping your own tweets on Twitter2.5 ⚠️ Mind the gap3 👎 Limitations4 👌 Benefits5 🚴 I made a Scraping Tool6 Scraping Process, ¿How to use […]

Click here to read more...

Receive audio messages from you Visitors WP Plugin
19/05/2020

Loading… Receive audio messages from Website VisitorsIndex1 Receive audio messages from Website Visitors1.1 Features1.2 Requirements1.3 Install1.4 Customizations1.5 WordPress Plugin1.6 The old answering machine for websites2 Buy it2.1 Roadmap Let your visitors record and send you an audio message directly from your WordPress site. Features Super easy to use Nice design, but fully customizable Audio is […]

Click here to read more...

WordPress Manual Update
12/11/2019

Copy pasted from https://wordpress.org/support/article/updating-wordpress/ #Step 1: Get the latest WordPress zip (or tar.gz) file. #2: Unpack the zip file that you downloaded. #3: Deactivate plugins. Change /wp-content/plugins to /wp-content/plugins_ (for example) #4:Delete the old wp-includes and wp-admin directories on your web host (through your FTP or shell access). #5:Using FTP or your shell access, upload […]

Click here to read more...

Show company logo or personal photo in email clients when sending an email
20/09/2019

Ever wondered how to get your company logo or personal photo to show in email clients when sending an email? 👉 Add the email address to http://gravatar.com and upload an image. While it’s not an official method, it’s what most email clients seem to support.

Click here to read more...

WordPress Error
27/11/2018

To find WordPress errors when your site is selling products or you are losing sales because your site is down, that sucks!! Some quick tips: Can you access Wp-admin? If so, try to disable plugins. This is what I would try in first place. WordPress errors are caused 80% of the time by plugins. You […]

Click here to read more...

GDPR How to
09/05/2018

Complying with GDPR is vital. Any business found not sticking to the rules could be charged fines of up to €20 million or 4% of the company’s global annual turnover, though the toughest fines will be reserved for the worst data breaches or data abuse. The GDPR is due to come into force on 25 […]

Click here to read more...

Learn Cyber Security
22/12/2017

A collection of resources to learn Web Security. RootMe The fast, easy, and affordable way to train your hacking skills. challenge your hacking skills https://www.root-me.org/?lang=en Cybersecurity @ Coursera https://www.coursera.org/specializations/cyber-security Cybrary Free and Open Source Learning for Cyber Security, IT and more. https://www.cybrary.it/ Crypto101 Crypto 101 is an introductory course on cryptography, freely available for programmers of […]

Click here to read more...

How to fix a website
13/04/2017

Your website doesn’t work. Ok let’s dig into it. We need to know if we have a Back issue (Php in this case) or a Front issue (Javascript, Css, or Html). If you see a blank screen with a message that includes one of the following keywords: Warning, or Fatal Error or Notice, the issue will […]

Click here to read more...

Load Javascript source Dynamically
30/12/2013

function loadJavaScriptOnDemand(src, callback) { var script = document.createElement(‘script’); script.src = src; document.getElementsByTagName(‘head’)[0].appendChild(script); script.onreadystatechange = function() { if (script.readyState == 4 || script.readyState == “complete”) { if (typeof callback == “function”) { callback(); } callback = null; } } } Above function you can call as following. loadJavaScriptOnDemand(‘path/to/your/javascript’,function(){alert(‘JavaScript loaded’)});

Click here to read more...

Background Resize jQuery Plugin
18/08/2013

Problem: Background doesn’t fit the screen total height. Background-size it’s not cross browser compatible. Background Resize 100% I’ve made a jquery plugin to do a more smart image fit and resize. The image doesn’t get distorted and always mantain the image center positioned. Download jquery background resize plugin on github

Click here to read more...

Calculating the distance between two points using latitude and longitude
09/08/2013

How to handle distance bettween latitude/longitude points. Haversine Formula http://en.wikipedia.org/wiki/Haversine_formula Php Function to calculate distance between 2 points: function distance($lat1, $lon1, $lat2, $lon2) { $pi80 = M_PI / 180; $lat1 *= $pi80; $lon1 *= $pi80; $lat2 *= $pi80; $lon2 *= $pi80; $r = 6372.797; // mean radius of Earth in km $dlat = $lat2 – […]

Click here to read more...

Crawling and Scraping App Store and/or Android Market
09/08/2013

After a project about this subject, I want to write down what I learnt about these 2 platforms. If you need a solution for a similar project, contact me, I know all the problems we will face. Let’s go. Apple Store EPF Importer solution provided by Apple seems the most easy solution to get platform’s […]

Click here to read more...

B/W Saturation Effect CSS. Hover Color/Black and white
20/12/2012

li img{ /* b/w image */ filter: url(“data:image/svg+xml;utf8,#grayscale”); /* Firefox 10+, Firefox on Android */ filter: gray; /* IE6-9 */ -webkit-filter: grayscale(100%); /* Chrome 19+, Safari 6+, Safari 6+ iOS */ } li:hover img{ /* full color image on hover */filter: url(“data:image/svg+xml;utf8,#grayscale”); -webkit-filter: grayscale(0%);}

Click here to read more...

Easy Slider 1.7 – Fade, Cross Fade Effect
26/10/2012

Fade effect for Easy Slider 1.7 This is a “patch” usefull but a patch.  Just comment  some lines and add few lines. I recommend you follow these steps, drop me a comment if you need help. Modification of jQuery Plugin Easy Slider 1.7, By CSS GLOBE, to use fade effect between transitions. 1) Add this CSS […]

Click here to read more...

Utilizar un link mailto: cómo objetivo en google analytics
23/04/2012

Si tienes un link tal que <a href=”mailto:contacto@phpninja.info”>Contacto</a> y utilizas google analytics para medir el tráfico, verás que no se puede utilizar cómo objetivo este tipo de link. Los objetivos solo pueden ser páginas a las que se accede. Para poder seguir este link y medirlo desde google analytics, puedes hacer algo así con el […]

Click here to read more...

Tiny MCE ImageManager. Insert Uploaded Images Automatically
01/10/2011

I am talking about: Uploading and inserting images using ImageManager (TinyMCE plugin) in 3 clicks, instead of 4 and without search for your uploaded images inside the image file list. Images will be inserted in tinyMCE’s textarea automatically. Ninja solution: line 528: imagemanager-path/pages/im/js/imagemanager.js . Look for “onupload : function(){” onupload : function(e) { //Imagemanager.listFiles(); if […]

Click here to read more...

Categories



How to fix a website
Te respondemos rapidamente
Get in touch
Php Ninja