Comments 0 Drupal6

This CodeLet demonstration how to create a custom node in code and use different Drupal hooks to build different features.

The CodeLet implements following Drupal hooks:
- hook_node_info
- hook_menu
- hook_perm
- hook_nodeapi
- hook_form_FORM_ID_alter

This CodeLet also creates an xml document which will then be used by the gallery to display images as slideshow.

Posted by DrupalD
Comments 0 Drupal6

This CodeLet adds a field on Drupal registration form and allows the user to upload an avatar. This will be saved to user's picuture field on his/her profile. This will work only if 'Picutre' is enabled by the admin.

Posted by DrupalD
Comments 0 Drupal6

This CodeLet allows you to set any image associated with certain contant type to be used as user profile image. This CodeLet particularly uses 'galleryimage' content type.

Posted by DrupalD
Comments 0 Drupal6

This CodeLet adds a tab on node page and display all the visits to the node by users.

Posted by DrupalD
Comments 0 Drupal6

This CodeLet will make a single checkbox a require field. This is usefule when you are creating a checkbox in your custom module.

Posted by DrupalD
Comments 0 Drupal6

This CodeLet enables a Drupal site to moderate the comments automatically. Once a user's comment has been white lited, all his/her furture comments will be automatically moderated without admin to review them.

Posted by DrupalD
Comments 0 Drupal6

This CodeLet will generate the number of Drupal sub sites you specify. It requires path to mysql executable on your server. The sub sites will be pre-populated with an SQL file.

Posted by DrupalD
Comments 0 Drupal6

This CodeLet tweaks the way the search field is displayed in search block. It adds an image button instead of normal submit button.

Posted by DrupalD
Comments 0 Drupal7

This CodeLet let you konw how to implement ajax on field group multiple module.
"fgm_node_YOURNODE_form_group_YOURGROUPNAME" where "YOURNODE" will be the name of your content type and "YOURGROUPNAME" will be the name of your field group,
Given example is for text field, ajax call on blur event.

Posted by saru1683
Comments 0 Drupal6

This CodeLet tracks the number of views of tabs, created using field collection module. When user clicks on respective tab, an ajax call is initiated and a value is stored in the db. Which can then be used for manipulating further. This CodeLet allows five free views for respective tab.

Posted by DrupalD
Comments 0 Drupal7

This CodeLet adds a confirmation form when a user tries to dowload a file from a Drupal site. The data then saved in the db and also mailed to the administrator. Once the form is submitted, file dowload starts. File download start with Jquery after 3 seconds. Administrator can also view all the form submissions.

Posted by DrupalD
Comments 0 Drupal6

This CodeLet reads details from the uploaded CSV file and import the data as nodes in respective fields. The fields can be CCK fields. Using the CodeLet, the CSV files are uploaded and saved to a location and nodes are created from it.

Posted by DrupalD
Comments 0 Drupal6

This CodeLet creates a floating bar at the bottom edge of the browser. The CodeLet specifically created for music player over the floating bar in the same manner as MySpace.

Posted by DrupalD
Comments 0 Drupal7

This CodeLet pulls results for search string fron instagram by using Instagram API. The result is displayed in tile. Befor you use the code, you have to register your app at instagram and obtain a client id which should be used in application.js file used with current code.

Posted by DrupalD
Comments 0 Drupal7

This CodeLet will create achievements using Achievements API provided by Achievements module. The CodeLet describes how to use the API and build the custom Achievements badges for different activities on the site by the users. Based on these activities, a user will be awarded with an achievement badge. The CodeLet uses different Drupal API hooks in order to check whether the user has peformed an activity and is eligible to get the respective achievement badge.

Posted by DrupalD

Pages

QR code for this page URL This page URL
Feedback