Drupal Module Changes plus unique field module update - repost

  • Status Closed
  • Budget $30 - $250 USD
  • Total Bids 10

Project Description

Hello All!

We have some Drupal 6 programming work for an experienced developer.


We offer an SMS delivery service that allows our users to send sms messages to mobile phones via our drupal 6 website. We would like to add an accounting feature to the User's profile page to provide the user with their credit balance.

We need to de-increment the 'available message credits' value currently stored in a cck profile field each time the user sends a message.

- A single text message is made up of 160 chars so this will have to be taken into consideration. In the case where a user sends a message that is between 1 and 160 chars the available message credit should then be: credit_balance - 1. But If a user sends a message containing 320 chars then the available message credits' value should then be credit_balance -2.

- So your programmer will have to count the chars in the message and then set something like $message_size accordingly. 640 chars is the max size we will allow users to type for a single message so this function can just contain 4 case statements perhaps?

Our SMS send function passes our SMS gateway username and password to the SMS gateway for authentication each time a message is being sent. In the event where a user attempts to send a message when their available message credit is ==0 the function should not work. So perhaps the easiest way to prevent the user from sending an SMS message when their available message credit ==0 is to set the password to NULL which would cause authentication to fail and the SMS Gateway to respond with "Bad username or password".



We have a subscriber content type that stores email and mobile number in cck fields. Right now it is possible for a user to add new subscribers with duplicate email and mobile number (this is not good because a subscriber may receive a single message more than once), so we need to prevent this from happening using either a rule or custom version of the the unique_field module. The unique field module already does this but we need it to work at the user level and not on a global user level because multiple users can have the same subscribers under their account.


We have an existing rule that sends a verification text message to the subscriber whenever a user adds a new subscriber under their account. Right now the messages is generic. We would like to customize the message for each user. So we need to be able to use the telephone_number and business_name fields from the user's profile instead of just $user. Here is the current rule:

$message = "Thank you for joining " .$user->name."'s notification list! To unsubscribe please call 1234567. Thank you!";

if(isset($node->field_contact_mobile_number[0]['value']) && !empty($node->field_contact_mobile_number[0]['value'])){

$phone_number = $node->field_contact_mobile_number[0]['value'];

mg_sms_send_sms($phone_number, $message);




We have a custom log table that shows log of all SMS transactions, right now this table is being displayed using views by admins only because the userid field is not dynamic. We need the userid field in the log table to be dynamic so that the view can be restricted at a per user level. So we need each user to be able to view the sms logs for their userid.


We have lots of drupal 6 module work to be done so if you are interested please let us know. We also know of another company that is looking for a drupal 6 developer so if this project is completed successfully we can make a recomendation for you.

Will to pay $150 for this project.



Get free quotes for a project like this
Awarded to:
Skills Required

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online