Cibul Tech Blog - Fiddling with PHP and things

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 | 4 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 | 1 comment »

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 | 2 comments »

Geocode with Google Maps API v3

The purpose of this post is to show how to implement a simple address search tool with auto-completion using Google’s Google Maps API v3 with both client side geocoding and reverse geocoding.

The search menu will propose to search for addresses in two ways: the first will be direct address typing with suggestions for auto-completion …

Tags: , ,
Posted in Geolocation | 101 comments »

A really simple sfGuard with user profile setup

When you start trying to see how something works, it’s always nice to see the thing in action and try it out in a simple environment where nothing else can interfere. In the case of this post, the subject is the sfGuard plugin and in particular how it is possible to use it together …

Tags: , ,
Posted in Symfony | 7 comments »

Formulaires intégrés avec Symfony 1.4 et jQuery

Comment mettre en place une interface unique pour insérer plusieurs entrées liées par des relations de un à plusieurs…

J’ai cherché récemment un moyen de construire un formulaire qui permettrait la saisie de données (édition ou ajout de nouvelles données) en de multiples objets liés. Il s’avère que la façon du faire dans Symfony …

Posted in Uncategorized @fr | 15 comments »

Cibul Tech: des bidouilles en PHP

Salut, soyez les bienvenus sur le blog Cibul Tech! Le but de ce blog sera de publier des articles sur ce qui nous semble intéressants de mentionner alors que nous avançons en trébuchant dans le développement d’une application web. Personnellement, je suis relativement nouveau dans le développement PHP, javascript.. et je n’ai commencé que …

Posted in Uncategorized @fr | 1 comment »

Embedded forms with symfony 1.4 and jQuery

How to implement a single interface to insert multiple entries linked by one-to-many relations…

I’ve been looking recently for a way to build a form that would allow the input of data (edition or adding new data) into multiple related objects. Turns out the way to do this in symfony is to use embedded forms …

Tags: , ,
Posted in Symfony | 36 comments »

Cibul Tech: Fiddling with PHP

Hi, welcome to the Cibul Tech blog! The purpose of this blog will be to post notes about whatever we think is worthwhile mentioning as we stumble upon them while we try to move forward with building web applications. Personnaly, I am fairly new to developping using PHP and javascript and I have only …

Posted in Uncategorized | No comments »