Next Tutorial

Drupal 7 Tutorial Part 15: Drupal 7 Advanced Taxonomy Concepts

Blogs

Programatically create node with cck node reference in drupal 6

Submitted by anilsagar on Thu, 07/29/2010 - 17:49

Hi Everyone,

I want to share with you guys how to create a node programatically using drupal_execute function.

There are so many articles which explains it. I googled for the solution to create a node with node reference and result is i didn't find any solution. After some research i found one solution for this. I want to share the same with you guys. Below code explains how to create node programatically.


global $user;
module_load_include('inc', 'node', 'node.pages'); // required
$create = array('type' => 'node_type');
$form_state = array();

Drupal theme pager not working

Submitted by anilsagar on Wed, 05/26/2010 - 17:55

Hi ,

Today i found one strange bug with drupal 6 pager_query implementation. When i write part of sql query in small letters like

$result = pager_query("SELECT * from {table1} where placementid = %d", 10, $pager_num, NULL, $vid);

and calling theme('pager', NULL, 10, $pager_num); pager is failed to print.

But writing like this

$result = pager_query("SELECT * FROM {table1} where placementid = %d", 10, $pager_num, NULL, $vid);

and calling theme('pager', NULL, 10, $pager_num); pager is displayed. This is due to case sensitivity of "FROM" in sql query.

Cheers,
Anil Sagar

How to integrate Apache Solr with Drupal 6 in windows or linux

Submitted by anilsagar on Thu, 05/20/2010 - 23:25

Hi Everyone,

 

I want to share my experience of integrating Apache Solr (Full text search and powerful than drupal core search) with Drupal 6.

Step 1: Download Apache Solr module from here http://drupal.org/project/apachesolr, and place it in your drupal contributed modules folder.

 

Drupal Module Development Training at San Francisco

Submitted by anilsagar on Tue, 04/20/2010 - 22:23

Drupal Module Development Training Presentation Delivered at Drupal Con San Francisco.

Installing Python Interpreter -- Python Basics -Tutorial 2

Submitted by anilsagar on Sun, 04/11/2010 - 01:20

Hi Everyone,

Its time to play with python and get your hands on most powerful programming language. Before going to say hello to python we need to install python interpreter. You can installation files for various operating systems from here.

http://www.python.org/download/ Installing on windows :

Step 1: Download latest windows installation package from the above mentioned link.

Step 2: Run the installation file and follow instructions.

Step 3: Tada!! your python interpreter is installed and ready to use.

Python - Most powerful Programming Language - Tutorial 1

Submitted by anilsagar on Sun, 04/11/2010 - 00:14

Hi Everyone,

I just started learning python, and i want to share the knowledge with everyone who want to master python programming language. I believe that this is my first step towards mastering Plone Content Management System which uses python as programming language.

Python -- What makes so special ??

** Python is an easy to learn, powerful programming language.
** Python uses simple and effective approach to object oriented programming.
** Python is an ideal language for scripting and rapid application development in many areas and platforms.

Maximize your drupal performance with Mercury

Submitted by anilsagar on Thu, 03/11/2010 - 15:07

What is Mercury?:

Mercury is a standardized best-practice server configuration for running your Drupal website that takes the best of the collected community practices, combines them with cutting-edge open-source tools for high-performance hosting, and delivers it all in a complete package.

Mercury is combination of below mentioned server configurations.

* Varnish :

How to install memcache on linux and how to integrate with Drupal 6

Submitted by anilsagar on Fri, 02/26/2010 - 15:41

Hi Every one,

If performance is the issue for your Drupal site then one thing you are missing is memcache. This article explains you step by step process to install and memcache and how memcache helps to boost your drupal website.

What is memcache ?

Memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.

How to Install PHP APC on linux to improve drupal performance

Submitted by anilsagar on Fri, 02/26/2010 - 11:30

Hi Everyone,

Alternative PHP Cache (APC) is a free, open source framework that optimizes PHP intermediate code and caches data and compiled code from the PHP bytecode compiler in shared memory, which will save the compile time of php code and increases the drupal performance which is built using php.

In this article i am going to specify how to install and how to optimize the APC for Drupal.

Step 1:

To install APC we need PECL command. For this we need to install some packages. Run the below command to install php-pear, and php5-dev packages.

How to install Drupal 6 on linux Operating System

Submitted by anilsagar on Thu, 02/25/2010 - 12:55

Hi Everyone,

I am giving the step by step instructions to install Drupal 6 on linux machine. I am giving this steps for Ubuntu 9.10. For any other linux forks you need some small changes.

Apache Installation:

Step 1: Install apache 2 by entering this command in linux terminal.

~$> sudo apt-get install apache2

Step 2: Now apache is installed and running in your system. You can verify this by typing this url on your bowser.

Syndicate content
©2010 AnilSagar. All rights reserved. Drupal theme by Kiwi Themes.