Posted as an aide to my memory, the following is a PHP key value array containing ISO 3166-1 Alpha 2 (2 Character) country codes.
Just found a little snippet of code that cured the issue I was experiencing on importing comments into Drupal using the Feeds module. The date field was being wrongly reported (annoying when you are dealing with Forum posts!!) and it turned out the issue was the node comment statistics table needed to be flushed and rebuilt.
Was scratching my head to find how to convert parent Drupal forums from simple forums, to containers. Inspecting the Drupal database revealed very little, however the following page gave a clue. Drupal stores the id's of the forums that are containers in its variables, rather than a separate table. You can create an array with the format below...
So, importing these users into a Drupal site using the domain_access module turns out to have not been quite as difficult as thought. The previous blog post regarding the hashing of passwords gave me an opportunity during the hook_uif_post_create call to save the user.
Recently needed to import many thousands of users into a Drupal website for a cumbria based business. The users were provided as a mix of hashed Drupal passwords and passwords that had to be changed and that I had 'borrowed' the relevant functions from the Drupal Core to enable correct hashing. An import script was devised to spit out the list of users with all Drupal hashed passwords and import was to use the UIF module.
So I've spent a while trying to find a way to access related fields within Drupal rules. I'm working on a project for a Drupal interface to a mail server. The documentation and help messages says that To make entity fields appear in the data selector, you may have to use the condition 'entity has field' (or 'content is of type').
The new signalfire site is now live. One of the features that most sites now having is a panel or block drawing their latest tweets into a footer or sidebar. Not wanting to be left out, this site features a footer panel drawing them in from my @signalfireweb account.
For those of you with a somewhat leaking brain, the hash key on a Mac keyboard is Alt + 3...or for a less subtle reminder....http://www.wheresthehashkeyonamac.co.uk/
Setting up a new iMac and Apple Mail account, had to google to remember (I've done it before) how to rid myself of the Apple Hot News RSS feed.
Press the control (CTRL) key and right click the Apple Hot News RSS feed item. A popup menu will appear from which you should select delete.
Simple, but annoying...
For my first app using Mongo, NodeJS and ExpressJS i've revisited a previous Django app to provide UK postcode data.
The purpose of this service is as a demo / introduction to these technologies. With 1.7 million postcodes this app appears to suit the abilities (especially MongoDB Geo functions) of Mongo.
Results are returned from the database in the form of JSON, for example: