Drupal7

Drupal core 7.x

website creation

Hello, my name is Amrit Tamhanakar. Is that possible to code something like http://bettingindia.com site?

Drupal: SCORM & HTML 5 course link on node page

This CodeLet allows you to upload SCORM & HTML5 packages. It extracts them, save under files directory and create a link on Node view page.

Drupal : Send Ubercart PayPal payment to node author

This CodeLet alter the 'uc_paypal_wps_email' variable when PayPal payment is enabled with Ubercart & sets to node author's PayPal account email address.
This requires creating a field on user's account with name 'PayPal Email' (field_paypal_email).

Drupal: Integrate A-frame & enable VR features

This CodeLet integrates Aframe libray & displays images using Aframe. With a VR enabled device, you can then view it in VR. It first displays a wall of images. When user clicks on one of them, on a new page, it displays the image using aframe library.

Drupal: Create Drupal7 node Programmatically

This CodeLet will read data from an external API, parse the JSON response & build a node of specific type. It imports taxonomies & images as well.
The fascinating thing about this CodeLet is, it can import data to multi - value node fields, including multi widget fields & different field types.

Drupal7: JSON, hook_form_alter & hook_menu

This CodeLet demonstrates the use of hook_form_alter & hook_menu.
Using hook_form_alter, a text field is added to site information page. Once a API key is saved, the button has value 'Update configuration'
Using JSON menu, one can pull a node of type page, as JSON string.

Magento: Display related products block on the Onepage checkout

This CodeLet display related products of cart items on the Onepage Checkout at the bottom.

Follow steps to add related products on the Onepage checkout page.

1.) Edit the onepage.phtml file located at /app/design/frontend/default/your_template/template/checkout

2.) Add the following code end of the file:

Drupal: Commerce buy now

This CodeLet will redirect the user to checkout page when user clicks on 'Buy now' button on the product

Use the code and create a custom module

Make sure you keep the weight of the module high in "system" table

Drupal: Pass ids as arguments to page VBO action

This CodeLet add already implemented "Pass ids as arguments to page" on VBO.
Place this CodeLet to your custom module, you can see the customization on Bulk Operations field on the image.

Drupal: Using #ajax on a form

This CodeLet will ajaxify the respective element and will trigger an event. Respective action will be taken by the code and displayed on the form within the specified wrapper

Drupal: Add products to cart programatically

This CodeLet allows to add products to cart from code. The current product uses an extra text field. The cart view has been modified to accomodate extra fields from the product

Drupal: Redirect user after login

This is just a two lines of CodeLet which allows you to redirect your users after they log in to your site. This not complex and super quick

Drupal: Display poll radio to Button and show result on click of choice

This CodeLet will Dispaly poll choice radio as a Button and view result on click of button.

Set user password using RULES

This CodeLet allows to set the user password during Rule execution, the following process can be used.

a) create user entity ($newuser)
b) set a rules variable $password (use PHP code to generate a random string)
c) execute custom PHP which looks like

This way, you can also use the variable $password in say, an email to the user letting them know what their automatically generated password is.

Drupal: Import Vebra Property using Vebra API

This CodeLet allows you programatically import property to content type:

1. Install module.
2. Create content type with the fields to which you want to import.
3. you have to update KEY/PASSWORD for Vebra API and URL of property on Vebra.

Drupal: Programmatically manage members of sub groups

This CodeLet let you Programmatically manage members of sub groups. also you can add sub group.
you can inviter/remove peoples of sub groups. Invitation will be sent by email.
after installation of this CodeLet you must have to pass the group gid on query string,
Ex. yourdomain/subgroups/$gid.

CodeLet Dependencies:
1-Organic groups ( og )
2-Subgroups for Organic groups ( og_subgroups )
3-OG Invite People ( og_invite_people ).

Drupal: Change User account title

This CodeLet will change the title of the User account page. It will consider and set user's 'username' as the titlte of the account page. Drupal offers this by default. But this can be used when some other modules have already modified the title.

Profile2 Registration Path

Hi, I am new to Drupal. I have installed and gone through the steps to create multiple profiles types using Drupal 7.
How do I enable these as links or drop-downs on the main login/registration page so it redirects new users to the appropriate registration profile. For example, example.com/profile1/registration and similarly for profile2, profile 3

Thanks in advance

Drupal: Add product field on cart for Ubercart

This CodeLet let you display product field on cart page.

Drupal: Set content in a region programmatically

This CodeLet will allow you to set some text in a region you specify from configuration page. The regions are from the current theme. The desired content will be displayed in the region when the page is rendered.

Drupal: Remove tax line Item from Order Ubercart

This CodeLet let you allow Remove tax line item from order.

Install module and make changes as per instruction on CodeLet.

Drupal : Login / register with Facebook connect button

This CodeLet will add a facbook connect button to your login / registration form. Using the CSS, you can change the appearnce of the login block/page. This CodeLet also uses Ajax login/register module. Please make sure you have all the require modules and libraries installed before you using this CodeLet.

Drupal: crowdsource features

This codelet demonstrate different features required by a crowdsourcing site

Requires two roles 'requester' and 'bidder'.
This already include two Content types 'Request' and 'Bidder content',

Download file and track of downloads by authenticated users.

This CodeLet let you allow a download file and track of that file.

Drupal Example of Ajax on Field group multiple using hook_form_alter

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.

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: 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: 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

Subscribe to RSS - Drupal7