admin
Plesk Site Preview
Parallel’s Plesk server control panel is pretty faultless. We have however experienced problems testing a domain using the ’site preview’ facility.
We use the site preview to test a site on the new server before a DNS change points an existing server to the new one, onwhich Plesk is running. It should allow the developer [...]
Checking if an object is empty – PHP
As of PHP 5, objects with no properties are no longer considered empty. Therefore is you use empty() to test if an object is empty will always return true.
The easiest way to check for an empty object is to cast it to an array:
$objAsArray = (array)$object;
if ( empty( $objAsArray ) {…}
Incidently there are a [...]
Magento Batch Adding Attributes to Attribute Sets
I have a Magento installation, with around 60 attribute sets. I needed to add a new attribute, and then add it to all the attribute sets. Doing this manually would take ages, and there didn’t seem to be a way of doing it through the API. I therefore created a PHP script to [...]
Styling Abbr Tag in IE – JavaScript Fix
Internet Explorer for Windows does not support the <abbr> tag. This makes it hard to style in CSS.
Marek Prokop posted a fix for this in the post Styling <abbr> in IE which has been very helpful. However, it seems to prevent JavaScript functioning properly.
Changing Drupal Theme on the Fly
I encountered an issue within Drupal with regards to admin and frontend themes. Specifically I needed to ensure that when a user creates or edits a particular type of content, it would remain in the frontend theme, and if they created or edited a different type, it would show in the admin theme.
Drupal 6 – Views, programmatically set arguments
It is sometimes useful to programmatically load a view in Drupal, to execute it and then utilise the results. This is all straightforward and well documented. A little less documented is how to set the view arguements.
Agile Development
Think this is only really funny to people that follow an agile agenda…
Web customers in everyday life
This is so true…
Magento FCKEditor Product Validation
Implementing WYSIWYG editing is fairly straightforward in Magento using either TinyMCE or FCKEditor. However, a known issue means that TinyMCE doesn’t work within the CMS section. So FCKEditor is the only real option at the moment.
There is however one issue to sort out. The product description field is mandatory; when you enter text into this [...]