This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Help needed with client-side form validation

First of all, I apologize if I have put this topic in wrong category, but I am new to Drupal and this is my first post.

Does anyone know how can we stop form from submitting and do client-side validation? We need to be able to have JavaScript confirmation before submitting, but currently form does submit either we have chosen YES or CANCEL on confirm. Thans in advance.

Help needed with troubleshooting

Hi,

I am trying to develop a module for Drupal 4.7 to have a custom reset password node. This is how it would work :

When the user has logged on to the account, to change the password he would have to goto a node where i have 3 fields: old password, new password and new password confirm. the old password is compared to the current password stored in a filemaker database. if it matches, the current password is replaced by the new password (from the form).

Now, when i added this module to my modules directory, the admin page (the one that lists the modules) fails to show up on the site. if i remove the module, it comes back up ... i was wondering if someone could help me with finding and rectifying the bug.

I am attaching the code...
----------------------------------------------------------------------------------------------------------------------------------
<?php
/**
* Password Reset Module
* User enters current password and the new password.
* The new password needs to be validated (typed in twice)
* The current password field is matched with the password in the database
* If they match, the existing password will be replaced by the new password.
*/

/**
* Implementation of hook_help().
*
* Throughout Drupal, hook_help() is used to display help text at the top of

convert function to form

Below is function for some page display that i need to convert to form with one submit and textfield on that submission mail has to be triggered


function downloadmgr_symbianlist() {
$refer_arr = explode('=',$_SERVER["HTTP_REFERER"]);
if (user_access('manage downloads') &&($refer_arr[1]=='downloadnow')){
drupal_set_title('Download Nokia browser');

global $user;
#$node= $_GET[node];
#if($user->uid){
$current_model = array("3230", "6260", "6600", "6620", "6630", "6670", "6680", "6681", "6682", "7610", "N70", "N72", "N90");
$image_per_col= 3;

$phone_num = count($current_model);
$image_row = ceil($phone_num/$image_per_col);

$output ='

';
$output .='
Please click the link or accompanying image to download jB5

';
$output .='

';

for($k=0;$k< $image_row; $k++)
{
if($k%2)
$output .='

';
else
$output .='
';
for($j=0;$j<$image_per_col;$j++)
{
$fone_model_num=$k*$image_per_col+$j;
$fone_model = $current_model[$fone_model_num];
$phoneq = 'select phone_model,file_format,exec_file from {phone_models} where phone_model="'.$fone_model.'"';
$phoneres = db_query($phoneq);
 

value should come from database in user profile drop down box.

Hi,

In User Profile page, i need a drop down box & values should come from database in this drop down box.

I have added a drop down box using Profile Module, but i can not add mysql query for this combo box.

Please help me regard this.

Thanks in Advance..

How to get "My Calendar" to display for each user

hello,

I'm trying to construct a calendar view for my users wich will be in their "My Calendar" or "My Events". Has anybody managed to achieve this???
Basically, if a user confirms an RSVP or SignsUp for an event, or Creates an new event, I want that event to automatically be displayed in his/her own calendar.

It seems like the module EventFinder used to do this in 4.7 , but is there a solution for this in 5.x?

Recording comments as audio voicemail files

hello,

I've just tested out Evoca. The idea of recording a voicemail comment instead of typing it is simply great. But what I really didn't like is that everything has to go through the Evoca website.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions