Login To InderWeb ! Just Play !

Username:
Password:

UserSubmittedComments

Drupal

Setup of /sites directory for multi-site on drupal multiple sites on same hosting account

Drupal's multi-site hosting capability is built in with any
installation. This is great news for users who run numerous web sites
from a single hosting account. A single Drupal installation can
be used to run multiple domains, which makes it much easier to manage
and maintain the code base. Even if you are dealing with only one
domain, the multi-site capability may be valuable by providing the
ability to run a separate domain or sub-domain for a development
version.

This page describes the set-up of the /sites directory for multi-sites.

jCalendar: A jQuery Based Calendar Goes The Drupal Way for date type fields jstools drupal5

Jscalender module come with Jstools package in drupal 5 you can
download drupal jstools package from the drupal.org site.Jscalender
uses the jsCalendar javascript library, like using a special CSS class
called via #attribute in the form element array to convert textfields
into jcalendar enabled.



The jcalendar module uses hook_form_alter() to look for textfields with
the add-jcalendar class, I had to use something different than
jcalendar which is used later on the generated form elements by the
jQuery code.

jquery JavaScript Library that makes easy to traverse play with events,html

"jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript.A lightweight framework that easily handles tedious DOM scripting chores."

Some quick feature of Jquery Are:-

* Lightweight Footprint
About 15KB in size (Minified and Gzipped).Very small size and so takes very little amount of time to load in memory.

* CSS3 Compliant
Supports CSS 1-3 and basic XPath syntax and rules.

Getting fields from mysql table using code file drupal,mysql,php

Many times it is needed to get the structure of table in PHP file or drupal module.There may be conditions that you dont have got admin user name and passwords for cpanel/phpmyadmin.In such cases you must have idea how to know the structure using a small PHP code.you can get connection info for mysql from code files or if you are using ftp it is sure that u can run a SQl query from code file.So below is the simple script for getting table info

Simple PHP Mysql

$table_name="node"; $sql=sprintf("SHOW COLUMNS FROM %s",$table_name); $$rs=mysql_query($sql);

magic tabs example drupal provide low load on server as quick tabb

In drupal if we want to get tabs we can use different type of modules for it.One of them is quick tabs but it makes little slower performance on server side.In this case we will be getting all data for all tabs togather and based on click event tabs will be shown or hidden.

Another on is magic_tab module in drupal.It provide better way for creating tabs in drupal.All things which you will need is to customize the module looks and feels.you also muct have idea of custom module in drupal and how to create php functions.

Here is a default example that was provided with magic_tab module.It makes dynamic requests to server based on tab selection.

Syndicate content

Popular Tags

tags in Web Links