Skip to: site menu |main content

Welcome to my personal site. If You have any question or suggestion please feel free to contact me from contact page.

Advertisements

Contact me to place your Ads Here..

Powered by Drupal, an open source content management system

Syndicate

Syndicate content

drupal6

Drupal theming steps for Converting drupal 5 x theme to drupal 6 x standards

For converting an existing drupal5 theme to drupal6 theme you can follow these steps:-
=>Create an .info file

Create a themename.info file in your theme directory, which should look something like this:

<?php
name
= Human-Readable Theme Name
description
= One sentence description of theme.
core = 6.x
engine
= phptemplate
?>

Block.tpl.php file variables for drupal 5x and 4x versions of drupal theme

Lays out content for blocks (left and/or right side of page). This template is optional, and can be overridden by copying the default template and modifying it.
Available variables

The $block object includes:

<?php
$block
->module
    The name of the module that generated the block
.
$block->delta
    The number of the block
for a particular module.
$block->subject
    The block title
.
?>

<?php
$block->content
The html content for the block.
$block->status
Status of block (0 or 1).
$block->region

how to Install a module or theme on the Linux shell command line

   1)Copy the module download link. Normaly ending with .gz.  In a Web browser, go to the module's page at drupal.org , right-click the Download link for the version you want, and copy the link location.
   2) In an SSH goto module folder of drupal
      cd www/sites/all/modules

Drupal User import user_save and profile fields How to import users into Drupal

Basic Idea behind importing user in drupal is:-
1)Create dummy user object...
2)Call drupal's user_save function...

Actually, You need to create the user account array first...and then pass it to function user_save().

<?php
//$account = user_save('',$user_array);

$password = user_password($your_password);
$user = array(

Theme a CCK and content typeusing your custom theme Drupal 6

Spending several days for me to find out how to theming Input Form in CCK2 on Drupal 6, hope this can help you and save your time.

To theming CCK2 Input you just need:

How to Add Modules To Drupal installations

Adding Modules To Drupal installations:-
Extract the code to to your
/sites/{sitename}/modules/{modulename}
or at your localhost at:
/sites/all/modules/{modulename}

e.g download Image module from http://drupal.org/project/image and place it in modules folder
/sites/all/modules/image

After placing module folder in your modules directory you can see and configure it from
http://localhost/admin/build/modules

you can check new module and enable it from this above admin link.
More Info:-
http://drupal.org/node/120641

Module List for Drupal 6:-

Syndicate content

Back to top