Drupal Module Changes plus unique field module update - repost

IN PROGRESS
Bids
10
Avg Bid (USD)
$160
Project Budget (USD)
$30 - $250

Project Description:
Hello All!

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

Details:

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".
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

2.

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.

3.

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);
}

---------------------------------------------------------------------------------------------------------------------------------------------------

4.

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.

Thanks
Clif

Additional Project Description:
03/24/2013 at 19:44 EET
Clear Description:

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

1. Accounting system for SMS transactions:

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.

You will need to create a function to de-increment the 'available_balance' 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: avaialable_balance - 1. But If a user sends a message containing 320 chars then the available_balance' value should then be available_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 username and password for the SMS gateway 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".


2. Prevent duplicate subscribers from being added to a user subscriber listing

We have a subscriber content type that our users use to add subscribers under their account. The content type stores email address 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 when a user sends an sms message), so we need to prevent this from happening using either a rule or a custom version of the the unique_field module (drupal.org/project/unique_field). The unique field module almost takes care of this but we need it to work at the per user level and not on a global user level because multiple users can have the same subscribers under their account.


3. Additional replacement vars for rules function

We have an existing rule that sends a verification text message to the subscriber whenever a user adds a new subscriber to their account. Right now the messages is too 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);
}


4. Make SMS log View dynamic

We have a custom log table that shows logs of all SMS transactions. There is a column in the table that logs the userid of the user who sent the SMS message. Right now this table is being displayed using views but it is only available to site admins because the userid field in the log table 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 thi

Skills required:
Drupal, HTML, Javascript, MySQL, PHP
About the employer:
Verified
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.


$ 150
in 7 days
$ 150
in 3 days
$ 160
in 8 days
$ 140
in 3 days
$ 140
in 3 days
$ 199
in 30 days
$ 300
in 10 days
Hire robinmittal0
$ 100
in 2 days
$ 140
in 3 days
$ 120
in 20 days