+44 7881601035 Skype: dangibas

HYGEN Blog

Web Design • Web Development • Project Management • Travel

HYGEN Blog HomeHome » Web Design

Dan Gibas

Dan Gibas, Director, HYGEN HYGEN Web Design
A British expat web monkey living in Malaysia. Hire me!

HYGEN Blog Posts In The ‘Web Design’ Category

Drupal webform_viewreference Module Tweek

Sunday, August 28th, 2011

The Drupal module webform view reference according to the modules page adds a webform component where you could use a View as a datasource for your normal webform select component. Instead of hardcoding all the selectable values in the component values field you just select a reference to a View similar to the CCK nodereference. The selectlist/radiobuttons/checkbox then automatically gets filled with all the nodes from the View.

Read the rest of this entry »

The Irony Of Anti-Spam Spam!

Tuesday, June 21st, 2011

Nothing can stop WordPress Spam as well as a product that spams WordPress blogs for a living! Ooh the Irony! :)
Read the rest of this entry »

PHP: Alternative Function To gzdecode($string)

Saturday, April 16th, 2011

PHP - decode / decompress GZIP data

PHP - decode / decompress GZIP data


If you are deploying code to a Linux box that doesn’t have ZLib installed / configured then here is an alternative way of decoding GZipped data.

Read the rest of this entry »

Drupal Latest Members Module Updated

Tuesday, February 8th, 2011

Drupal Latest Members Module In Action

Drupal Latest Members Module In Action

I’ve just closed a few open issues and added bug fixes for Drupal’s latest members module. Now version 6 is stable I’m going to start planning a build for Drupal 7! Latest Members provides a block that shows all of the new members photos (aka user pictures). The block settings can be changed so the admin can choose how many user pictures get displayed.

Read the rest of this entry »

Free Bet Returns Calculator

Friday, January 28th, 2011

Free bet returns calculator

Free bet returns calculator

This free bet returns calculator helps you calculate exactly what returns you can expect based on fractional odds and the bet stake placed… It’s written in simple JavaScript :)

Feel free to use the code freely and share it however you must add a link to this blog on the page!

Read the rest of this entry »

Generate a drop down select box for year selection in Yii (PHP)

Wednesday, November 3rd, 2010

You can use this PHP code with or without the Yii framework to generate a select box of years. It’s useful for date of birth etc and especially brilliant for sites with minimum age requirements. The code only outputs valid years of birth for over 18′s only.

Read the rest of this entry »

mysqldump: command to backup a database on another remote server

Thursday, August 12th, 2010

MySQL: mysqldump command tip!

MySQL: mysqldump command tip!

The mysqldump program is often used to getting a data dump of a local database for backup reasons or just for moving a database from one server to another. To make this even easier, mysqldump can accept a remote host as an arguement. This means that if you are logged into server A you can get a backup of server B immediatly without having to login to server B and then transfer the file manually vis FTP or SCP etc. Just use this command:

Read the rest of this entry »

Setcookie() Path Problems / Gotchas In PHP

Thursday, April 22nd, 2010

Cookie Problems With PHP?

Cookie Problems With PHP?

From php.net:

“The path on the server in which the cookie will be available on. If set to ‘/’, the cookie will be available within the entire domain. If set to ‘/foo/’, the cookie will only be available within the /foo/ directory and all sub-directories such as /foo/bar/ of domain. The default value is the current directory that the cookie is being set in.”
Read the rest of this entry »

Use JQuery To Automatically Set IFrame Height

Wednesday, April 21st, 2010

Auto Adjust IFrame's Height With JQuery

Auto Adjust IFrame's Height With JQuery

It’s a fairly common problem when developing web applications and using IFrames (inline frames) – the height of an IFrame can’t easily be determined and it’s essentially dynamic as it depends on content and CSS inside the framed page.

Read the rest of this entry »

Drupal: HTTP request status fails / Drupal Status Page Reports Errors

Tuesday, February 23rd, 2010

Drupal status: http request fails

Drupal status: http request fails

HTTP request status Fails

Your system or network configuration does not allow Drupal to access web pages, resulting in reduced functionality. This could be due to your webserver configuration or PHP settings, and should be resolved in order to download information about available updates, fetch aggregator feeds, sign in via OpenID, or use other network-dependent services.

Read the rest of this entry »

Games