Home » Development » PHP » Page 12
Currently reading up on the IMAP protocol, as one of my customers is using a server without IMAP support compiled :)
RFC 3501
I will be using a simple INBOX check for failed email notifications (sockets are your best friend). That will allow me to set a flag for every new user account that is still unconfirmed and used a broken email address for their registration. These accounts can than be verified manually :)
Happy socket = happy customer.
Btw, here is a nice piece of code to quickly parse the email header in PHP
“Holland America Line Reisprofile Test” provides an interface for customers to find out which cruise type they are. By sliding the images you are choosing your preferences and define your cruise type, which allows you to get an individual set of cruises sent to you.
SVGMagic is a jQuery plugin that provides a nice server side fallback to convert SVG images to PNGs for older browsers (IE8, Android 2.*).
Also works for background images.
SVGMagic
Serverside conversion of SVG to PNG
Visual Composer for WordPress provides many ways to extend its functionality. There are already many add-ons available for this dynamic page builder, but its easy to do the extending yourself, by following the hints in the documentation ;)
In this small tutorial we are adding a “type” field to allow a special css class to be added to each of our row containers.
New Visual Composer element properties can be easily added by using the vc_add_param function. See documentation for more information. In our case we are adding a property to the vc_row element. Continue reading Extending the Visual Composer Row element with a new property
In a perfect world all current browsers would allow the usage of WebRTC natively, but that is as always not the case ;)
“WebRTC (Web Real-Time Communication) is an API definition drafted by the World Wide Web Consortium (W3C) that supports browser-to-browser applications for voice calling, video chat, and P2P file sharing without the need of either internal or external plugins.” – Wikipedia
Continue reading Using Web RTC in your web application
Doing Git / Bitbucket Deployment for most of my project these days. This is another compact solution, that should allow almost anyone to start using Git to distribute updates automatically.
Always nice to be able to go a step back fast ;)
Git Auto Deployment
His website is offline, but you can still reach it through the Web Archive: http://web.archive.org/web/20131209120053/http://wpcopilot.net/git-auto-deployment/
BroadwayAPI is a PHP class to extract / export channel playlists and EPG from the PCTV Broadway. These can be reused with OpenELEC, XBMC, Kodi and the IPTV Simple PVR Client Addon.
I am using the setup on a local server to handle playlists and epg updates for multiple XBMC setups.
https://bitbucket.org/portalzine/cubicfusion-broadwayapi
This is a project in progress. More details soon…
Enjoy Alex
Debugging can be such a pain sometimes. Kint has saved my bacon more than once ;)
Kint
WPML for WordPress is a powerful plugin to build a multi-language setup. But it still comes short in some areas, especially when it comes to a custom integration into plugins or when using custom post-types.
Normally this function should return the id of the linked translated content, but has not worked for me in some cases (especially when AJAX is involved).
A simple SELECT helps to get that id yourself :)
The GitHub repository from Saša Stamenković provides a nice list of all countries with names and ISO 3166-1 codes.
Available formats are:
Github