Drupal offers user management out of the box. This includes new user registration, log in, password mailer and user session management. Drupal stores password as md5 hash value. When a user provides her log in credentials, Drupal generates md5 has values for the password provided and compares it with the one stored in the database against the provided username/email address. This is a well known technique implemented by Unix.
Though Drupal manages the users, we can still alter the behavior of different default actions on a user activity. For example, if you log in from the front page, by default, you will be redirected to front page. Instead we can make to redirect to different page or different front page, that can only be accessed by logged users. To achieve this, we need to use hook_user Drupal hook.
Read moreĀ Drupal hook: hook_user.
Drupal auto complete field lets you select values appear as you type in the text box. Which maximizes the usability and user experience.
Think of a situation, You are creating a custom search function which display author picture, some text containing the word(s) you are typing and node post date.
This can not be achieved by creating a CCK auto complete field since such fields can be added to node types only. You need to create a custom module and write hook_search (no more supported in Drupal 7.x). You have to define a extra attribute in your text box definition: #autocomplete_path. The value this attribute takes is a path defined with hook_menu known to your Drupal site. Any non-existing path assigned to this attribute will result in error. So, first make sure you have defined the path and the callback function with proper permissions.
The auto complete works on ‘change’ event of the text box. As you type, the path defined in #autocomplete_path calls the function defined in ‘callback function’ of the menu definition. The function may fetch values from the site database contact third party services.
The function should return an array with key-value pairs. The values matching with the text in the text box will be displayed under the text box and you can select any of the values using either mouse of up-down keys.
Read more: Drupal: Auto complete field.
Joshi Consultancy Services is looking for PHP, Drupal, Joomla!, CakePHP, Ruby On Rails and WordPress developers and web designers with at least 2 years of experience.
We are looking for
Web Designers:
- Have new ideas at every moment and realize them on canvas as well
- Able to design virtually everything
- Sees only structured html and css when viewing a web page
- Can use simple to very complex image editing software on all platforms
Web Developers:
- Able to program virtually everything
- Able to re-cycle codes
- Knowlede of one of the CMSes/Framworks: Drupal, Joomla!, CakePHP, Ruby On Rails and WodPress
- Ablity to tweak/hack/enhance anything which is developed previously -by a developer or within a CMS/Framework
What you get
- Another home where you work
- Good salary, more than you can hold
- No boss around
- Challages at every moment.
- Work, more than you are doing now.
- A comfortable chair so you do not have back pain.
If you fit in any of the above roles, you are the one we are looking for. Send your latest and updated resume to jobs@… (repalce ellipses with joshics.in)
We are listening.
Developers required.
Tags: Drupal, Jobs
This CodeLet creates a floating menu/layer at the bottom edge (by default) of the page. You can though enhance it to be displayed at any edge of the page like the task bar of an operating system.
You can add link, music players, tip of the day, important alerts and make it like a quick access bar.
Floating bar.
This CodeLet generates and returns a short url when providing a long url. This is useful especially when you have a really long url and you want paste in forums, discussion boards, emails etc. You can even bookmark this short url.
URL Shortner.
Now you can shrink your url using Drupal Deverloper’s own url shortner. The url shortner is currently in beta staget and will have a very short domain name soon. For now, you can use it and evaluate it so we can improve it and give you the best.
The url of Drupal Deverloper’s own URL shortner is http://gt.drupaldeveloepr.in
We have also decided to provide a free analysis tools to the users of Drupal Deverlopers who are using Drupal Deverloper’s url shortner. We request and highly appreciate any feedback about the url shortner. So, start using it right now!
Get your url shortened!.
This code, when executed will create sub-sites of pre-defined pattern set on the configuration page. The module will also imports the exported database to the newly created sub-sites, and sets the db url in settings.php, created in each sub site directory. But before you start using the module, you should fulfill the following requirements:
Requirements
- You should have created the sub-domains matching the full sib site with sub-site pattern
- You should have created database with full database name with database pattern.
- Where ever you want to create the sub sites, the permissions of the directory must be set to 0777. You can change it later though.
Auto Site Generator.
Tags: Auto Site Generator, Drupal module, Drupal project code
Drupal Developer guides developers in developing and customizing Drupal modules and themes. Drupal Developer is a comprehensive guide to learn Drupal by Developing modules and themes.
via Drupal Developer on your mobile phone.
module_invoke() invokes a hook, defined in a module. It mainly takes two arguments as follows:
module_invoke
- $module: Name of the module whose hook should be invoked.
- $hook: The hook to be invoked from the defined module
More arguments can be provided which will be passed to the hook being invoked.
module_invoke.
Contact form fields allows to add additional fields on site wide contact form using a profile module like interface with configuration options. Using contact form fields module, admin can add lists, text boxes, text areas, radio buttons and check boxes on the site wide contact form. Those additional fields will appear under ‘Additional information’ in the e-mail, will be sent to the admin/respective user.
Features
- Add and configure fields for contact form using profile module like interface
- Enable/disable any field at any time
- Supports text box, text area, select box with multiple selection option, radios and checkbox
You can download the module from http://drupal.org/project/contact_field
via Contact form fields.