Drupalbook.com, code does not work in Drupal 6.x

Pro Drupal development has a lot of good code for version 5.x; but most of the code gives errors in Drupal 6.x

Is the code available already for Drupal 6.x

How to create form from scratch

The module I develop has registered a menu item and several local tasks beneath. When the user navigates to a certain local task, I'd like to display a form using the Forms API. I already managed to display the form, but it comes to a JavaScript error as soon as I enter something into the autocomplete field.

Because I have no node type to deal with, I assume I have to set up the '#type' => 'form' myself. But I'm not sure about that at all.

Looking at the form's source code I found out all id and name parameters are empty. Would be great if somebody could comment the approach or suggest a different one.

<?php

function pobox_page_callback( $arg='newmail') {

$return = '';

switch ($arg) {
case 'newmail':

$newmail_form['newmail'] = array(
'#type' => 'form',
'#title' => t('Submit a personal message')
);

$newmail_form['newmail']['recipient'] = array(
'#type' => 'textfield',
'#title' => t('Recipient'),
'#size' => 30,
'#maxlength' => 60,
'#autocomplete_path' => 'user/autocomplete',
'#weight' => -1
);

$newmail_form['newmail']['submit'] = array(
'#type' => 'submit',
'#value' => 'submit form',

Importing php script in drupal

I'm trying to import a server on/offline script into Drupal, I turned on the php filter, entered the code, but it doesn't work.
When I try to show it using only a php script and it shows the way I wanted it to.
I just used includes, but Drupal is messing it up.

HTTP error 501 occurred...Call to undefined function user_access()

I can not install Drupal 6.1. I have already checked directory access, db-passwords, etc. I tried clean re-install many times but no luck. I tried many possibilities: with/without table_prefix, db_password etc.

Its running on rhel + apache2 + php5 + mysql5

Please help!

ERROR 1: INSTALLATION AFTER MYSQL DB INFO

Installing Drupal

Pictures say more then 1000 Words

Themes Developments Showcase

Site with Screenshots of all Drupal version 6.x recommended Themes.
as registered user you may tryout all the Themes with "Switch Theme" Module.
Suggestions, Comments, Critics, Themes Bug issues are very welcome.

Thanks, Enjoy:

Edited by: VeryMisunderstood; Original Link removed in lieu of link in first comment below

Creating multiple content parts for a node

Hi, I'm not sure if the answer should be staring me in the face or not, but here is what I am trying to do:

For the layout It I want to have, I need to end up with:

<div id="name">
	main node content
</div>
<div id="name2">
	some other content
</div>

Currently I have to type out all of the content (including the divs) into the one field when creating pages, since all I have to work with in page.tpl.php is $content.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 6.x