Mywebdunia's Blog

Archive for March 2009

I have seen that most of us face problem when we have a drop down menu and down below that menu there is a flash. So when we mouse over the menu the drop down appears to hide back of the flash. So to get it front of the flash we need to make that flash background transparent. Here is the solution how we can get this.

1. Edit the existing HTML page add the following parameter to the <object> tag: <param name=”wmode”  value=”transparent” />

2. Add the following to the parameter <embed> tag : wmode=”transparent”.

The first parameter is for the Internet Explorer and the second parameter is for the Mozilla kind of browsers. But there are some limitations for this solution, this code doesn’t work on the linux machines. Ubuntu 8 has solved this problem by adding a plugin for transparency.

If  you are not running your latest version of Drupal you need to upgrade it to the latest stable version. Here are some steps for upgrading your drupal version from 5.x to 6.x

1. Take backup of the sites and files directory.

2. Place your site in the Offline mode.

3. Switch your theme to the default Garland theme if you have changed it to your own customized theme.

4. Disable all Custom and Contributed module.

5. Remove all old files and directory of drupal installation.

6. Copy the new version of the files.

7. Copy the backed up sites and files directory.

8. Check for configuration files for correct information.

9. Run the update.php by visiting the site http://www.yourdomain.com/update.php

10. Re-Install the contributed module according to the drupal version(For module installation click here )

One you are done with Drupal core files installed,  you can start adding third party contributed modules the basic instructions are as follows.

1.  Download the Module : Download the module and make sure that it matches with your drupal version.

2. Extract Files and Upload through FTP: Extract the compressed file and upload the same files to the sites/all/modules directory.

3. Read the README.txt or INSTALL.txt:  Read the README.txt and/or INSTALL.txt for specific instructions. As some of the modules need some special treatment for the installation.

4. Enable the Module: Enable the module by navigating through Administer » Site Building » Modules. Click on the boxes next to the modules and the click  Save Configuration at the bottom.

5. Set File Permissions: Set file permissions if modules require change permissions or settings to get them working. For setting the permissions navigate through Administer » User Management » Permissions, look for the module and change the permissions.

These are some of the Drupal Modules that can be of use.
1. Panels Panels allows the website administrator (or sometimes the end-user) to manipulate the layout of individual pages, sidebars, and content pieces, as well as easily dictate what content is displayed in the layout. This module allows you to create pages that are divided into areas of the page. The panels has completely flexible system that includes 2-column, 3-column layouts by default.
To download  http://drupal.org/project/panels

2. Views The Views module provides a flexible method for Drupal site designers to control how lists of content are presented.
To download http://drupal.org/project/views

3. Pathauto The Pathauto module automatically generates path aliases for various kinds of content (nodes, categories, users) without requiring the user to manually specify the path alias.
To download http://drupal.org/project/pathauto

4 TinyMCE TinyMCE adds what-you-see-is-what-you-get (WYSIWYG) html editing to textareas.
To download http://drupal.org/project/tinymce

5. Flickr 1.The module provides a filter for inserting photos and photosets and allows the creation of blocks for rendering a user’s recent photos and photosets.
To download http://drupal.org/project/flickr

6. XML Sitemap XML Sitemap automatically creates a site map that conforms to the sitemaps.org specification. This helps search engines keep their search results up to date. XML sitemap allows us to submit the site map to the major search engines like Ask, Google, Yahoo!, Windows Live.
To download http://drupal.org/project/xmlsitemap

7. Meta tags This module allows you to set some meta tags for each node, view or panels page.
To download http://drupal.org/project/nodewords

8. Gallery This module embeds Gallery2 (http://gallery.menalto.com) inside your Drupal installation to support photos, videos and other content.
To download http://drupal.org/project/gallery

9. Add to Any Share/Save/Bookmark Button Add to Any’s Share/Save widget helps readers share, save, bookmark, and email your pages and stories using any service, such as Delicious, Digg, Facebook, Twitter, and over 100 more social bookmarking and sharing sites. Services are updated automatically.
To download http://drupal.org/project/addtoany

10. CAPTCHA A CAPTCHA is a challenge-response test most often placed within web forms to determine whether the user is human. The purpose of CAPTCHA is to block form submissions from spambots – automated scripts that harvest email address from publicly available web forms.
To download http://drupal.org/project/captcha

11. FAQ The Frequently Asked Questions (faq) module allows users with the ‘administer faq’ permission to create question and answer pairs which they want displayed on the ‘faq’ page. The ‘faq’ page is automatically generated from the FAQ nodes configured.
To download http://drupal.org/project/faq

12. Page Title The page title is the one found in the HTML head inside the tag.
To download http://drupal.org/project/page_title

13. Tell a Friend Module creates a “Tell a Friend” page that allows page viewers to send form e-mails about the site to their friends.
To download http://drupal.org/project/tellafriend

14. Kaltura [Video Module] The Module handles every aspect of video and rich-media functionalities, including transcoding, uploading and importing content, user management and permissions, hosting and streaming on Kaltura’s servers, and even collaborative editing and remixing of content – it’s simple to install, use and customize
To download http://drupal.org/project/kaltura

15. Content Construction Kit (CCK) The Content Construction Kit allows you to add custom fields to nodes using a web browser
To download http://drupal.org/project/cck

16. Token Tokens are small bits of text that can be placed into larger documents via simple placeholders, like %site-name or [user]. The Token module provides a central API for modules to use these tokens, and expose their own token values.
To download http://drupal.org/project/token

17. FeedBurner Integrates Drupal with the services provided by Google FeedBurner. Currently this module provides the means to redirect requests for your site’s feeds to user-specified/created FeedBurner feeds.
To download http://drupal.org/project/feedburner

18. jQuery Update This module facilitates an upgrade of jQuery in Drupal core and allows other contrib modules to rely on a newer jQuery version.
To downlaod http://drupal.org/project/Jquery_update

19. Localizer The Localizer module extends Drupal’s ability to handle human languages. It provides control over a site’s user interface language, the ability to enter and control content in multiple languages, and the ability to display the correct language content needed.
To download http://drupal.org/project/localizer

20. Internationalization Provides content translation -nodes and taxonomy-, interface translation for anonymous users -with the locale module- and browser language detection. Includes a block for language selection and manages translation relationships for nodes and taxonomy terms.
To download http://drupal.org/project/i18n

21. Backup and Migrate  Backup and Migrate simplifies the task of backing up and restoring your Drupal database or migrating data from one Drupal site to another. It supports gzip, bzip and zip compression as well as automatic scheduled backups.

To download http://drupal.org/project/backup_migrate

22. Ubercart is an e-commerce module developed for Drupal. It has been designed with the end user in mind, focusing on usability in three key areas: store configuration, product and catalog creation, and order administration. On the front end, all major systems are configurable and integrate with the standard Drupal systems (node, taxonomy, user, etc.). On the back end, the settings pages and order administration pages have been designed with ease of use in mind, and we are constantly working to lower the barrier to entry for new Ubercart users.

To download http://drupal.org/project/ubercart

23. Google Analytics web statistics tracking system to your website.

To download http://drupal.org/project/google_analytics

24. Administration menu Administration menu module provides a theme-independent administration interface (aka. navigation, back-end) for Drupal. It’s a helper for novice Drupal users coming from other CMS, a real time-saver for Drupal site administrators, and definitely a must for Drupal developers and site builders.

To download http://drupal.org/project/admin_menu

25. GMap The GMap module provides an interface to the Google Maps API within Drupal. It integrates with the Location module to provide users a clickable map for entering latitude and longitude, as well as to display maps of Drupal nodes and users. GMap can be used to create interactive maps with various map markers and content in map bubbles, taking advantage of Drupal’s other content management features. The module also provides a Views display plugin which allows users to display the results of a view on a Google map.

To download http://drupal.org/project/gmap

26. Location The Location module allows real-world geographic locations to be associated with Drupal nodes, including people, places, and other content. The Location module allows admins to collect addresses, geocode them (translate addresses to lattitude/longitude), and associate locations with Drupal nodes and users. Location data is automatically used to generate GeoRSS within your existing RSS feeds. Location also provides an API so that other modules may take advantage of its address storage and geocoding features.

To download http://drupal.org/project/location

27. Image This module allows users with proper permissions to upload images into Drupal. Thumbnails and additional sizes are created automatically.

To download http://drupal.org/project/image

27. Image This module allows users with proper permissions to upload images into Drupal. Thumbnails and additional sizes are created automatically.

To download http://drupal.org/project/image

28. FileField FileField provides a universal file upload field for CCK. It is a robust alternative to core’s Upload module and an absolute must for users uploading a large number of files. Great for managing video and audio files for podcasts on your own site.

To download http://drupal.org/project/filefield

29. Fivestar This module provide voting options for user.

To download http://drupal.org/project/fivestar

30. Voting API VotingAPI helps developers who want to use a standardized API and schema for storing, retrieving, and tabulating votes for Drupal content.

To download http://drupal.org/project/votingapi

31. IMCE is an image/file uploader and browser that supports personal directories and quota.

To download http://drupal.org/project/imce

32. Node clone The clone module allows users to make a copy of an existing item of site content (a node) and then edit that copy. The authorship is set to the current user, the menu and url aliases are reset, and the words “Clone of” are inserted into the title to remind you that you are not editing the original content.

To download http://drupal.org/project/node_clone

33. Backup and Migrate Backup and Migrate simplifies the task of backing up and restoring your Drupal database or copying your database from one Drupal site to another. It supports gzip, bzip and zip compression as well as automatic scheduled backups.

To download http://drupal.org/project/backup_migrate

34. Content Templates (Contemplate) The Content Template (a.k.a. ConTemplate) module allows modification of Drupal’s teaser and body fields using administrator defined templates. These templates use PHP code and all of the node object variables are available for use in the template. An example node object is displayed and it is as simple as clicking on its properties to add them to the current template.

To download http://drupal.org/project/contemplate

35. Printer, e-mail and PDF versions

To download http://drupal.org/project/print

36. Twitter This module provides API integration with the Twitter microblogging service and API-compatible alternatives like Identi.ca.

To download http://drupal.org/project/twitter

37. Frequently Asked Questions The Frequently Asked Questions (faq) module allows users, with appropriate permissions, to create question and answer pairs which they want displayed on the ‘faq’ page. The ‘faq’ page is automatically generated from the FAQ nodes configured.

To download http://drupal.org/project/faq

38. Video Video module allows you to upload video in any format, play video in any format, transcode video to FLV using FFMPEG (can be extended to any transcoder), automatically creates video thumbnails, use video thumbnails in video node teaser, fast and very reliable API for converting videos and auto thumbnailing, can be used as an all-in-one video solution for Drupal.

To download http://drupal.org/project/video

39. Dynamic display block Dynamic display block slideshows are mainly used to showcase featured content at a prominent place on the frontpage of the site in an attractive way. A featured content slideshow can contain e.g.: New articles, Most popular content, New products, Portfolios, Video.

To download http://drupal.org/project/ddblock

40. Contact Forms This module expands the features of the site wide contact form. It eliminates the need for the drop down category menu by generating a clean looking contact form (without a drop down menu) , and a unique path, for each of the contact form categories. You can also define the subject in the link to the form.

To download http://drupal.org/project/contact_forms

Drupal is one of the strongest and toughest CMS. Before knowing about the importing of Joomla to Drupal first we need to know about the terminologies of both.

1. Joomla “Template” is called “Theme” in Drupal.
2. Component = Module.
3. Module = Block.
4. Mambot/Plugin = Input filter.
5. Menu-Horizontal = Primary Links
6. Menu-Vertical = Navigation
7. Dynamic Content Item = Story
8. Static Content = Page
9. Back-end = there is no back-end in Drupal, but modules like Administration Menu that provide a similar interface.
10. SEF = Clean URLs (but some docs refer to SEF, too).
11. Section = Taxonomy Vocabulary/Term
12. Section Title = Taxonomy Term
13. Category = Taxonomy Term
14. Introtext = Teaser
15. Maintext = Body (see explanation below)
16. Pathway = Breadcrumb

Here are some steps for migration of Joomla to Drupal.

1. Transfer all Joomla sections to Drupal categories and transfer all Joomla categories to Drupal terms according to their parents.
2. Copy the Joomla introtext to drupal teaser.
3. Copy the Joomla introtext + maintext to drupal body.

To migrate from Joomla 1.x to Drupal 6.x the following is the procedure.

1. First install Drupal 5.x on the system.
2. Import Joomla Sections and Categories there is a module for migration for Joomla to Drupal 5.x http://drupal.org/project/joomla
3. Upgrade Drupal 5.x to Drupal 6.x before upgrading take a backup of your database and copy the files and sites folder.
3.1 Place the site in offline mode.
3.2 Switch your theme to default garland.
3.3 Disable all custom and contributed module.
3.4 Remove all old files & directory of drupal installation.
3.5 Copy the new version of files.
3.6 Copy the backed up sites & files directory.
3.7 Run the update.php by visiting http://www.abc.com/update.php
3.8 Re-Install all the modules according to the drupal version.

It is a common practice by web developers to make separate header and footer files. As there wont be any changes in these section in any of the pages.

So now the question arises how to use these HTML pages inside another HTML file. There is a solution for this that is

<!–#include VIRTUAL=”/common/header.htm” –>

So the above code makes the header file to include in another HTML file. Just paste this code change the path and use it where you want your header to be displayed.


Categories