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

BitTorrent Module

Need Torrent module? It exists for Drupal 5.0? If no can someone create it? I need it very much. I want to upload, browse and manage torrents and user statistics, ratio etc.

Any help much apreciated.
Sorry for my bad english.

HTML in textarea

I create a textarea with the following code:

  $form['body'] = array(
    '#type' => 'textarea',
    '#title' => t('Body'),
    '#required' => FALSE
  ); 

But it doesn't take html code.

And then I tried the following from api,

Single Module implementing multiple nodes possible?

I have created multiple node types for a recent project, that are all pretty much dependant on one another to function as they form a heirarchy.

I've put them all in the same project as seperate modules for the installer, but if I set them up as all dependant on each other, you can never uninstall them. :)

For simplicities sake, is it possible to have multiple node types and the corresponding _hooks for each to be all within one module?

Thank you for your time.

Problems displaying data retrieved from DB after form query

Hi folks,

I'm writing a module to query an external database, return a list individual records from the database, and then link to unique records from the list, but am having trouble getting the return data to display. The Forms API Quick Reference and Forms API does not give instruction on how to do much other than return the form itself or a message -- fine if you are just using a form to submit data to be stored to a database, no-so-fine if you want to pull and display data.

Here's the relevent code I've got so far. I'm probably missing something simple. Can anyone point me in the right direction?

function listing_list() {
$output = listing_basic_form();
return $output;
}

function listing_basic_form() {
$form['basic'] = array(
'#type' => 'fieldset',
'#title' => 'query rmls',
'#tree' => TRUE);
$form['basic']['low'] = array(
'#type' => 'textfield',
'#title' => 'low',
'#size' => '12',
'#maxlength' => '12');
$form['basic']['high'] = array(
'#type' => 'textfield',
'#title' => 'high',
'#size' => '12',
'#maxlength' => '12');
$form['basic']['city'] = array(
'#type' => 'textfield',
'#title' => 'city',
'#size' => '12',
'#maxlength' => '20');
$form['submit'] = array('#type' => 'submit', '#value' => t('Search Housing'));
$output = drupal_get_form('listing_basic_form', $form);
return $output;
}

Adding tab to existing page without tab

Im trying to add a tab with more options for menu-items beside the "edit menu item" page.
My hook_menu currently looks like this:

Drupal Members List PHP Script Generator Version 1.0 (January 2007)

Drupal Members List PHP Script Generator Version 1.0 (January 2007)
© 2007 Developed by Sam Raheb
Released: January 21, 2007
Designed for all version of Drupal

System Requirements
Microsoft Excel 2000, 2002, 2003, or 2007 with Visual Basic for Applications (VBA) support

Download: http://xlecom.com/downloads/Drupal_Members_List_PHP_Code_Generator_Versi...

Instructions
This utility program will create a Members List PHP snippet that you can cut and paste into a node page or block. You only need to enter data into the table on this spreadsheet. The other two sheets are used for support references. To change the drop-down Cell List Box Selection values, edit the values on the "Selections" sheet.

The program only utilizes the data located in the Title and Display columns (red colored fonts). The rest of the data in the table is only for management purposes.

(1) Enter your profile fields in the "Title" column.
(2) Select the fields you want to display in the "Display" column.
(3) Press the "Copy Script to Memory" button and paste the code into your node or block.

Spreadsheet Cell Reference Colors

  • Red font colored cell are user input cells. Enter your data into these cells.
  • Brown font colored cells are users selection cells.

Pages

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