code

Simple Hello World Module for Drupal 6

This is a small and simple "Hello World!" module for quickstarters who uses Drupal 6x series. We need just one directory and two files:

  • modules/simple_hello_world/
  • modules/simple_hello_world/simple_hello_world.info
  • modules/simple_hello_world/simple_hello_world.module

modules/simple_hello_world/simple_hello_world.info

; $Id$
name = Simple Hello World
description = Description of Simple Hello World module
core = 6.x

modules/simple_hello_world/simple_hello_world.module

<?php

Common HTML tags for fast copy-paste

Every webmaster needs some common html tags like a,table,img,div,headings or embed code for windows media player or adobe(formerly macromedia) flash very often. Mostly it is possible to save much time to just easily copy-paste empty tags instead of write them. Therefore I am trying to create a useful list with possible examples. Feel free to add suggestions with examples.

Tags:

Monospace fonts for coding

What is the right font for publishing your code in web, magazins or books?
Times new roman? Not really. The fonts family called "monospace fonts".
Here a few examples:

- LetterGothic
- Lucida Console
- Courier New
- Fixedsys

This fonts are in windows included

Example:

<?php
// Lucida Console
echo phpinfo();
>

<?php
// Fixedsys
echo phpinfo();
>

<?php
// Courier New
echo phpinfo();
>

Syndicate content

CafeWebmaster.com(CW) is a free online community for webdevelopers and beginners. Anybody can share their code, articles, tips, tutorials, code-examples or other webdesign related material on the site. Newbies can submit their questions and reply to existing questions. CW does not guarantee or warrant reliability of code, data and information published on the site. Use the site on your own risk. The site takes no responsibility of direct or indirect loss or any kind of harm to its users. The site also doesn't take responsibility of infected files or source code with any kind of infection or viruses, worms, spywares, malwares, trojan horses. CW reserves the right to edit, move, or delete any of content for any reason.