Cibul Tech Blog - Fiddling with PHP, javascript and things

Phonegap – iOS push notifications

This tutorial is inspired from this one. A few changes were made to have things working with the 2.5 version of cordova.

Posted in Uncategorized | No comments »

CibulCalendar – A javascript date range picker

A javascript date picker that enables users to easily pick dates or date ranges.

Posted in Uncategorized | No comments »

Upload and display an image without a page refresh

Here we will see how to upload an image without a page refresh using an iframe and some javascript. There are a bunch of jquery plugins that do this, but you’ll see here that there is nothing really complicated about it and it can easily be achieved with a couple of javascript lines.

Posted in Uncategorized | 3 comments »

Javascript function for a slide effect on pan/slide gestures or mouse drags

Here is a function that transitions a pane element to a new one by using either a drag of your mouse or a pan/slide gesture on touch enabled devices.

Give it a try if you are looking for a simple solution to handle pane transition or a tab navigation system without using a fully featured …

Posted in Uncategorized | 1 comment »

Phonegap – Using the iOS LocalNotification plugin

The last post was about deploying the plugin offering the same functionality on and android device, here is how to get the iOS version running. Find the github page of the plugin here. There’s also a more detailed procedure here

Get a basic phonegap project running
Get the plugin files. Copy the …

Posted in Uncategorized | No comments »

Phonegap – Using the Android LocalNotification plugin

Here is an edit of the readme file found in the LocalNotification plugin for phonegap on Android. I’ve stumbled on a couple of issues which were not covered there and decided to make a version of the step through that worked for me. Assuming you already have a basic project setup (with a 2.0-ish …

Posted in Uncategorized | 5 comments »

A render of a Cibul event using the freshly published Cibul Plugin

With this plugin, put links to cibul events in your posts and they will be converted into event renders like such:

La Java des Balkans

The template used is customizable, and the css can be modified in the plugin’s admin page. Find the plugin page here.

Posted in Uncategorized | No comments »

Turn urls into links in text with jQuery

Here is a little function that can be used to turn urls found in text on a page into clickable links. I assembled it and tweaked it taking bits and pieces from several forums.

See it running here

/* doLinks script */

function linkify(inputText, options) {

this.options = {linkClass: ‘url’, targetBlank: true};

this.options …

Posted in Uncategorized | 10 comments »

Drag and Drop two Markers linked with a line using Google Maps v3

In this article we’ll use the google maps v3 API to show two draggable markers on a map linked with a line. As the markers are dragged, we want the line position to be updated so that it appears to always be linked and we also want to an updated indicator displaying the distance …

Tags: , ,
Posted in Uncategorized | 4 comments »

Install Maxmind’s GeoIP IP database on Ubuntu for PHP

Maxmind provides a useful database and API for server side IP Geolocation. It is useful when you don’t want your server to hang on external services each time fetching a location from an IP address is needed. This posts goes through the installation process of the database with a PHP extension on an Ubuntu …

Tags: , ,
Posted in Geolocation | 3 comments »