CodeLet

Generate Drupal sub sites automatically

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.

Drupal Search field tweaks

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

Drupal field colletion view tracking

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.

Drupal download files: Add confirmation to downloads

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.

Drupal: Programmatically create node with CCK fields

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.

Drupal: Floating Bar

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.

Drupal: Instagram integration

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.

Drupal: Award badges to users for Achievements

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.

Drupal: Send file download link & Product key in ubercart confirmation email

This CodeLet will fetch and attach File download link & Product key for software prodcuts on a Durpal ubercart store. You will need to call respective function from the order confirmation template.

Drupal: Reset admin password

This CodeLet will create hash for your admin password. You can provide the string for password and the CodeLet will generate the hash. You can then copy this hash and add in password field in the users table. The code has to be put in index.php of your Drupal installation and the order of the code is important.

Pages