Internet and technology

KAYA FM interview: DISCOVER MORE- THE BUSINESS OF BEING ONLINE.

These are the notes from my Kaya FM interview on the business of being online:

1) What are some of the main things small businesses need to consider when looking at setting up a website?

I really think the most important aspect of setting up a web site, is planning. Think how a house is built – you don’t jump straight in and start building – No. You first think about the ideal house that you want, and then develop the plans for that house, based on your specific needs and your financial situation. It’s exactly the same with building a website.

Disable tinymce for fields in drupal module: webform

I normally disable tinymce for certain textareas by overriding the tinymce function theme_tinymce_theme. This allows me to target textareas by their name attribute. For example, to disable the editor for all cck fields that I have named 'description', and all the devel modules 'php code' block textareas, one would put the following in that function:

function phptemplate_tinymce_theme($init, $textarea_name, $theme_name, $is_running) {
switch ($textarea_name) {
// Disable tinymce for these textareas - using the field's name attribute

Drupal support irc channel

If you can't find what you're looking for on the drupal site, you might want to try the drupal support irc channel, and ask your question there. Using your irc client, login to:

/server irc.freenode.net
[after connecting successfully]
/join #drupal-support

Drupal Johannesburg

Drupal Johannesburg, South AfricaThe first Drupal Johannesburg meetup was held on Saturday, and was a roaring success. Kindly hosted by Obsidian Systems, the meetup was well attended by 18 passionate drupalers, including Adrian Rossouw.

Useful list of 15 iGoogle productivity gadgets

iGoogleWeb Worker Daily has posted a useful list of 15 iGoogle productivity gadgets. I particularly like the sound of the google analytics gadget that allows you to track your stats without constantly having to log into your analytics page.

Web developer toolbar for IE (Internet Explorer)

Although firefox is my preferred browser, I do have to check everything in IE too, and when certain css displays one way in firefox, and one way in IE, I was looking for a way to debug directly in IE. It turns out there's a developer toolbar for IE, which can be downloaded here.

Firefox images getting extra space when in table cell

Disclaimer: OK - so I know I shouldn't be using tables, but sometimes, I just have to.

Was trying to figure out this extra space around an image that was sitting in a table cell. Came across this article which explains why.

It's to do with using a strict doctype, and the fact that the images are by default inline which display on top of the baseline. Quick fix for me was to apply the following style to the offending images:

.header-image {display:block}

Drupal CCK email field errors: "doesn't have a default value query"

Ran into this error a couple of times before when adding content to a CCK email field in MySQL 5.0.27: user warning: Field 'field_email_email' doesn't have a default value query: It seems the email field is initially set up to not allow null values. To fix this check out this patch or just update the field in phpMyAdmin: ALTER TABLE `table_name` CHANGE `field_email_email` `field_email_email` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL

Drupal path not available to anonymous users in view block

I created a view in drupal with some argument handling code. This code loaded the node so as to get the value of the path alias. I then used this path alias as a taxonomy argument for the view:


if ($type == 'block' && arg(0)=='node')
{
$node = node_load(arg(1));
$path = $node->path;
$args = array();
$args[0] = '';
if (!empty($path))
{
$args[0] = $path;

}
return $args;
}

phpMyAdmin "Save as file" file name template

When using phpMyadmin to backup a MySQL database, there is an option near the bottom to save as a file. When you use this option, you can make your life easier by using a file name template that automatically names the backup file for you. By default it is the database name, but I find it useful to put a timestamp on it as well. To do that, use the following in the file name template field:

%Y%m%d%H%M%S-__DB__

This will save your files in the following format: 20070815152612-databasename.sql

Syndicate content