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

Form field next to each other

Is there a way to tell the form that he has to put 2 fields next to each other instead off top down?
For example i want to create a form where the user can input a begin end end date. It's not functional that you provide a textbox with 100 characters for the begindate and the same for enddate. Therefore i want to tell the form the date field has only 12 characters and he has to put the begin and end date next to each other. Or is it something i have to theme?

Form validation question

I have a user form on which I want to perform input validation before processing the data. hook_validate() seems like it'd be perfect for this, but I'm not getting the expected results. Basically, I have a page that displays an options form on initial load. After the user submits the form, the real content is displayed based on the selected options.

What I want to do is validate the form input prior to serving the real content. If the input is not valid, re-display the form along with an error message; otherwise, proceed to the content. Please see the example code below - the if/else seems to be the significant part, as I'll describe after the code.

function ssh_page() {
  $output = '';

  // Display host selection form
  if (empty($POST['host_select'])) {
    $output .= drupal_get_form('ssh_page_host_form', $form);

  // Display SSH applet
  } else {
    ob_start();
    ?> <SNIP - a lot of HTML> <?php
    $output .= ob_get_contents();
    ob_end_clean();
  }

  // Show output
  return $output;
}

function ssh_page_host_form_validate($form_id, $form_values) {
  echo "blah";
  form_set_error('', t('test'));
}

Help with a DB query

I've created a module that uses nodeapi to add a select box to a node, so that when a user creates a node, they can select yes or no to save the node as a template or not. The selection gets written to a db table with two fields, which are nid and template. Now I need to be able to query the db and get a list of all of the nodes that have been saved as templates by a particular user. I've been reading up on INNER JOIN, but I'm kind of new to this, and I'm not sure how to construct the query. Does anyone have any guidance they could give on this?

thanks,

duggoff

CCBILL Integration

New person and post, old request.

I want to make a simple paid personal webcam site. Love Drupal and real want to use it for my site. I think Drupal will set me apart from other sites, that is if I can set it up right.

I really need CCBill support. PayPal dose not allow 'Adult' sites to use there service. If I use PayPal my account could get caned, and if I losse my PP account the site would be screwed.

I am intrested in paying for a CCBill module, if that what it takes. And I think others may be too.

Thanks
-Carl

old posts copy/pasted for your convenience:

CCBill integration

Need to integrate CCBill as a payment processor & member manager. Please let me know time ... Would be nice to have an Would be nice to have an ccbill role subscription module with the same features just like the paypal ...

Forum topic - Ron5150 - 02/11/2006 - 19:37 - 1 comment - 0 attachments
ccbill role subsription

... Paypal subscription module is awesome! How about adding ccbill ( http://www.ccbill.com ) to the subscription module? Or much funds (donations) would you ...

Issue - portait - 19/01/2007 - 00:36 - 2 comments
ccbill payment support

A ccbill payment subscription module would be very much appreciated. Vbulletin ...

Issue - portait - 25/09/2006 - 00:21 - 4 comments
ccbill

Ajax Bebo's White Board

Bebo has an attractive White board feature that gives a user ability to write anything they want using this Javascript-powered [I think] tool. Is there a way to implement such a tool/module for Drupal? The reason I'm asking is because I'm trying to develop a math-friendly category that would allow degrees, sin, cos, tan, squares and so on, and common folk/users are not likely to use the TinyMCE or an editor for this purpose...

Dript output problem

I'm having some trouble with Dript and I have no idea what's causing this. The problem: I put an embedded dript tag somewhere within the body of a node and the output will be cut immediately after the tag.

So, this code:

A line of text.
[driptn (print "Dript output.") \]
Another line of text.

will procude this result:

A line of text.
Dript output.

[driptne \] seems to work even less:

Pages

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