[Skip Header and Navigation] [Jump to Main Content]

Home

Rymland

Where the Rymlands meet

Languages

  • English
  • עברית

User login

  • Create new account
  • Request new password

Setting "maxlength" attribute on password_confirm field type in Drupal 6

Submitted by boaz on Wed, 07/01/2009 - 12:21
  • howto
  • technical
  • drupal 6
  • form api

I recently needed to alter a standard password_confirm field type in a form that I maintain. Apparently, setting '#maxlength' property on password_confirm form field has no effect. No helpful at all also proved Drupal FAPI official reference (oddly) which has no mention of password_confirm element(!). Anybody who knows why is welcome to hint me.

  • boaz's blog
  • 1 comment
  • Read more

Drupal 6 language selection algorithm in "Path prefix with language fallback" mode

Submitted by boaz on Sat, 03/28/2009 - 14:03
  • technical
  • drupal
  • i18n
  • languages
  • localization

Are you in a need to alter Drupal 6 language selection algorithm?Do you just need to know what's going on under the hood?
Well, you've landed on the right article. I've recently needed to do the first task, and of course you can't change something unless you know how it works in the first place.

Its actually pretty simple. Here's how Drupal 6 determines the language:

  • boaz's blog
  • Add new comment
  • Read more

Making PHP session expire (in Drupal and in general)

Submitted by boaz on Tue, 01/06/2009 - 22:46
  • technical
  • drupal
  • sessions

As the Internet evolves, so do the black hats that abuse the net and its inhabitants to their needs. A very common requirement therefore these days is to limit the session lifetime in a PHP application. PHP provides several directives in php.ini to achieve the desired configuration.
This post will focus on how to have session expiration in Drupal (at least it mention most ways to do it, I think) but any PHP programmer unfamiliar with this issue could be enlightened by it (I think).

  • boaz's blog
  • Add new comment
  • Read more

Drupal FAPI tales - need a token?

Submitted by boaz on Tue, 12/30/2008 - 22:10
  • technical
  • csrf
  • drupal
  • fapi
  • form api
  • token

Long time no post. No time to post. Cest la vide, eh? Lets get to the point shall we?...

Abstract:
I'm implementing a site now with nice amount of self-crafted forms. Drupal of course. Drupal 6 of course.
Now, I had this problem with one of the forms when testing how it works (with the others I didn't reach that state yet):

  • boaz's blog
  • Add new comment
  • Read more

Teaching VI to recognize Drupal's *.module as php files

Submitted by boaz on Sat, 07/19/2008 - 10:41
  • technical
  • drupal
  • filetype
  • vi
  • vim

The issue at hand is how do I tell VI/VIM that Drupal PHP files named "myModule.module" are php files and not simple text files

  • boaz's blog
  • Add new comment
  • Read more

A few tips on using jQuery with Drupal on IE6 (out of sweat and tears)

Submitted by boaz on Tue, 06/03/2008 - 21:13
  • technical
  • drupal 5
  • events
  • IE6
  • javascript
  • jquery
  • js
  • tip

Introduction:
This post deals with several problems related to the combination of jQuery and IE6 and the lessons learned while working on a recent project. I just had to share those with you: so many hours have been put into the effort so I just can't let it all fade (even if also to have a reference to get back to Smile)

  • boaz's blog
  • Add new comment
  • Read more

Using PDT + xDebug (for debugging Drupal projects)

Submitted by boaz on Wed, 03/05/2008 - 22:41
  • howto
  • technical
  • debugging
  • drupal
  • eclipse
  • pdt
  • php
  • xdebug

This blog post is meant to be a short guide and tips repository for setting up a PHP development environment using Eclipse PDT and xDebug. I use such an environment for my Drupal based development and it is an invaluable tool to me.

  • boaz's blog
  • 4 comments
  • Read more

Direct DB access with custom (CCK) node types in Drupal

Submitted by boaz on Thu, 02/07/2008 - 09:13
  • technical
  • cck
  • drupal
  • MySQL
  • php

Hi,

I had this experience a few days ago which I could definitely spare: my code that runs custom query against a Drupal site's DB failed completely. One day, out of the blue, my code topped working and I got those SQL problems errors. It appeared as if the DB has changed under my feet! C$%p! - DB corruption???
Not really... Had I known a bit more... Embarassed .

Here's the deal:
You work with Drupal, you have your own node types, created with CCK module of course.

  • boaz's blog
  • Add new comment
  • Read more

Exporting MySQL data into CSV using command line client

Submitted by boaz on Fri, 02/01/2008 - 09:26
  • howto
  • technical
  • CSV
  • export
  • MySQL

I've recently needed to export some MySQL table data into a file.
Sure, there are gazillion ways to do this. I wanted to do this with as simple as possible tools - command line, that will be available always, and in a way which is not too awkward yet still powerful enough while done in a resource-conserving way.

  • boaz's blog
  • Add new comment
  • Read more

הפרטת בתי הכלא - עבודה סמינריונית

Submitted by boaz on Mon, 12/24/2007 - 10:19
  • academic
  • politics
  • prison
  • privatization
  • בית כלא
  • הפרטה
  • boaz's blog
  • Add new comment
  • 1 attachment
[Jump to Top] [Jump to Main Content]