Development

Create a simple image gallery in Drupal 6 using CCK and Views

This tutorial will guide you through how to create a simple gallery within Drupal 6 using CCK, Views and a few more custom modules.

This tutorial was written with the following versions of Drupal and modules:

Update: Modules have been updated to the latest versions as of 20 April 2009, version numbers are in brackets after the links above.

Spammer alert - 83.233.30.77

Over 430 spam messages in 6 days.

A good one to put in your ban list.

[Drupal] Deleting node content of a certain type in bulk

On occasions you may need to bulk delete all nodes of a certain type.

The following code requires 2 variables, the amount of rows to delete each time and the content type.

[FPSS] Front Page Slideshow for Drupal Update

I have updated my Front Page Slideshow for Drupal module with some new features and some fixes.

New Features:

[PHP + MySQL] Making a basic product database - Part 1

Firstly you need a server which supports PHP and Mysql. If you haven't got one, you can set up your computer as a local web server.

[HTML] Display HTML content over a Flash object

When dealing with drop down menus such as the suckerfish menu you will find that the menu disappears behind any Flash object that is on the page.

Unfortunately what works with other HTML elements with the z-index doesn't work with Flash as Flash will end up on top regardless.

To change this we need to add some bits of code to a Flash object to allow HTML to appear on top.

[HTML] Make YouTube embed code XHTML valid without Javascript

When you embed a video on to your website from YouTube you will find that your site will no longer successfully validate on the W3C validator.

This is because the embed tag is not supported, although it works on most browsers.

The code you get from YouTube is something similar to this:

[HTML] Stop embeded YouTube videos autoplaying

When embedding YouTube videos on to your website, the video will play back automatically as soon as the page has loaded. To stop this, follow this quick edit.

When you embed a video from YouTube you get some code like this:

[PHP] Operators

There are a few different types of operators in PHP and I will cover the most commonly used ones.

Arithmetic Operators

These are list basic maths. The 4 most common are:

Addition

Sum of $a and $b.

[PHP] Introduction

Syntax

When writing PHP code it is best to use the following opening and closing statements:

<?php
?>

On some websites and scripts you may see it written like this:

?>

This is not good practice as not all servers will be set up to allow this shorthand tag.

Pages

Subscribe to Development