php

Easy Peasy YouTube integration

Recently I added some fun functionality to tshirtslayer, that is when a user win's one of the tshirt thumbnail guessing competitions, they get to add a couple of youtube videos to the official tshirtslayer youtube playlist - and they do this through the tshirtslayer website by entering in the youtube video ID's.

Let's look at the basics, as I had never worked with the GData API before.

First obviously you have to grab the extra library, extract it something and set the path in your php.ini.

Annoying gotchya in amazon PHP package

I was working on some Amazon integration with an Android application, so I used this library to take care of the PHP/Amazon integration (web backend to android appy)

Anyhow, could not figure out why I was getting parsing errors in Java/Android on the JSON result, everything looked to be fine! a casual string dump reveal no problem..

Until I opened the amazon class file with a hex bytecode dumper.

Current version..

https://raw.github.com/Exeu/Amazon-ECS-PHP-Library/master/lib/AmazonECS....

  

SalesForce / Ascent / FinancialForce integration with Drupal / Ubercart ecommerce

Recently I completed a really interesting task of integrating Ubercart (one of Drupal's best cart/ecommerce systems) with SalesForce CRM.

Along side the SalesForce integration for recording account and contact details of purchasers is the Ascent ERP interface for resource planning and inventory control.

My Android application for TShirtSlayer

Finally I got around to developing my first decent Android application, I wrote an application that allows you to share images from your Android's gallery (or take a photo) and upload them to TShirtSlayer.

The idea behind this came as I noticed you cant use the usual file upload fields available on websites (with HTML4 anyway), so this was a good queue to learn some Android and Drupal integration techniques

Annoying Drupal SimpleTest gotchya

I've been catching up on some very long overdue simpletest test's for the Contemplate content template module in preparation for the stable D7 release.

Turns out, that because it has it's form fields for writing the template's set as "disabled", but then "enabled" when you click on on "Apply this template", the simpletest wont let me put any data into that field because it is a client side (jQuery) solution that enabled that field! ouch! took a long time to figure out why this is so..

from handle_form in drupal_web_test_case.php

Going to DrupalCamp Berlin

I got my ticket to Drupal Camp Berlin this weekend, a lot of the programme looks excellent.

See you all there!

Zend on Ubuntu maverick and natty doesn't work because of the Suhosin patch in php5

Heres a fun one, it's impossible to get the Zend IDE/Debugger working with current Ubuntu releases because they've added the suhosin patch to the PHP binary, I've tried a few things..

- It was said that the suhosin stuff appears in only the php5-suhosin package, but even without this installed, It was still getting in the way somehow, theres a ubuntu launchpad bug for this https://bugs.launchpad.net/ubuntu/+source/php5/+bug/498022

Upgraded tshirtslayer.com server to nginx from apache


Recently my beloved virtual machine running at linode.com started to crash due to running out of memory, so I had a quick look and decided it was time to get on the nginx™ (pronounced “engine x”) bandwagon.

New module: Ubercart shipping rate filter for in or not in Europe

Added a new module for checking if the shipping address is in or not in Europe for Ubercart's excellent flatrate shipping method.

So you can easily configure shipping rates for people outside of Europe. (Perhaps you want to set a different base price plus a different default shipping amount per item)

Much easier than selecting all the EU countries by hand!

Very rapid Drupal theming from an existing web template

I love this wget command (available under windows, linux and mac), sometime's you want to try out a template that you have seen or you want to rapidly implement an existing site from an external source to a local Drupal installation without breaking down the template into a zen (or other framework) template system.

Note: I don't really suggest this for building a good theme in Drupal, but it's just an idea for experimentation anyhow

Syndicate content