administrator's blog

Using more than one site in Drupal application.

Drupal allows you to create more than one site under one Drupal installation, but the databases should be different for each site.

Let’s begin with this example – Suppose, we have two domains abc.com and xyz.com, abc.com is your primary domain & xyz.comis your secondary domain. Let’s see how to create two different Drupal sites for abc.com and xyz.com-

1. Install Drual on abc.com domain.
2. Create new MySQL database & user; these details would be used for new site on xyz.com
3. Create a new directory as /sites/xyz.com inside your main Drupal folder i.e. public_html.

How to reduce Drupal Spam with CAPTCHA?

  1. Download Captcha module.
  2. Uncompress the downloaded module & install it in sites/all/modules.
  3. Now, turn on Captcha & Image Captcha modules (admin/build/modules) in spam control set.
  4. Now, go to Captcha settings page & configure it accordingly.

 

Web.config And Forms Authentication

Authentication is mandatory process if you want to make your application more secure in ASP.NET. ASP.NET provides different Authentication providers so that authentication can be more easier. Forms based authentication is the famous one & it is being used more than any other authentication mode. For Forms Authentication we create a login form with the logic so that a user can be validated and Dot Net can create cookie on successful validation, which the application will check for on each client request.

Let’s configure web.config file for Forms Authentication.

New useful Assemblies in ASP.NET 3.5

New useful Assemblies in ASP.NET 3.5

· System.Core.dll - This assembly includes the implementation of LINQ to Objects

· System.Data.Linq.dll - This can be used to implement the LINQ to SQL

· System.Xml.Linq.dll - This assembly includes the implementation of LINQ to XML

· System.Data.DataSetExtensions.dll – This assembly includes the implementation of LINQ to DataSet

· System.Web.Extensions.dll - This assembly includes the implementation of ASP.NET AJAX and new web controls

Speed up your website

Following is the list of various factors which can speed up your website.
CSS File size: - The CSS can be optimized by using shortcuts, grouping selectors with the same properties and values together.
HTML code: - A valid HTML/CSS will have smooth code in achieving better speed.