Skip to main content

Posts

Installing Drupal

1. Download drupal(latest stable version ) from drupal.org 2. unzip and transfer to website root , say     /var/www/drupal6.13/  - ubuntu                OR    /httpdocs/                       -centOS                      Or you can make a subdir inside these folders if you have more than more sites running on the server. 3. Then go to http://localhost/test/drupal-6.17/  OR       http://yourwebsiteURL.com/drupal-6.13 and simply follow the steps given and refer to INSTALL.txt file inside the drupal folder !      Some useful command and things you may require while configuring Drupal :        1. command to  check the Privilages any user has on databases             SHOW GRANTS; SHOW GRANTS FOR CURRENT_USER; SHOW GRANTS FOR CURRENT_USER(); ... 2. You may get this Error at some point of time when you install diff modules, so its suggested to increase the memory size as mentioned below.          Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate

Themeing

A "theme" is a collection of files that define the presentation layer or "look and feel" of a Drupal site. With a theme you can: * Define one or more page layouts. * Specify the display of images and other graphical elements * Specify the display of fixed or variable text * Specify the attributes of fonts and graphics * Override (change) the output from modules A theme can be configured to dynamically respond to changes in the content, content types, user input, user role etc. A theme can also be used to override (modify or replace) the text and variables that are generated by modules. For example, a theme can be used to replace the default label on the Search button or to hide and display certain fields that are part of a particular content type. You can also override the default CSS classes that might appear in your content. Often a theme is used simply to define the look and feel of an entire site, but it can also be used to cust

HTML Templates

HTML::Template is a new solution to an old problem - Perl CGI development. In order to explain what makes HTML::Template new I'll briefly describe the history of Perl CGI development. In the beginning, people wrote CGIs by scattering print statements throughout Perl scripts. The HTML that ended up on the user's screen was literally embedded in the Perl script. These scripts were very difficult to maintain. Even a small change, like switching fonts, required a programmer to edit the script. It was almost impossible for a non-programmer to edit the HTML without endangering the script itself! Thus, programmers were required for even the smallest design change. Given the relative shortage of programmers versus HTML designers, this is clearly not desired situation. Many solutions to this problem have appeared, and many share a common trait - they invert the situation by embedding programming inside HTML. Examples of this approach are HTML::Mason, Embperl, ASP and PHP. Used well