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

Is there an existing module that I can use for tracking service providers?

I need a module to track service providers. I need store the providers address, url, phone, email and short description. Plus some tag that can categorize this provider. Or rating information by users/consumers. I believe this is a common module and we should have this already in our modules library. But I seems not find any.
Can someone please point me which module will best serve my need? Appreicate.
Dave Wang

Secure 2-way Communications?

Hello. I am building a website for a client who is interested in establishing a secure 2-way communication channel (between administrator and user). Plain old email isn't an option. In essence, he wants the features of a forum, but restricted so that the communication is only 2-way. When the admin posts a topic, it will be accessible to the user and nobody else, and vice versa from the user to the admin. Some sort of encryption may be necessary.

Form (that uses nodeAPI) isn't displaing correctly.

I am trying to display a form that uses the nodeAPI to add title and description to nodes. It is being called via AJAX (jQuery) and in the callback function I have:

print drupal_get_form('mymodulenodetype_node_form');
exit;

The problem is it is displaying the other parts of the form but not that parts that normally get added by the nodeAPI (title and description).

What do I have to do?

I have been told I can use something like:

Drupal.org Forum Module

Hi,

I am using the Drupal 4.7.6, and I like everything about it. The only thing is that the build-in Forum is not as clear look and feel as I would hope. The forum layout on the http://drupal.org/forum is an ideal forum example that I would like to have, and I am wondering if this module is available for download. (P.S. I tried a couple modules like phpbb or UIEforum, but either there are some none-fix issues or the requirements are way complicated than I need.).

Retreiving form values after it has been submitted

I'm trying some XML RPC things with a simple textfield that loads a file from the server, and displays it... Everything goes fine, but I can't seem to get the values from the form after I used the submit function.

Example:

<?php
// $Id$

/**
* Implementation of hook_menu().
*/
function viewfiles_menu($may_cache) {
if ($may_cache) {
$items[] = array(
'title' => t('Bekijk bestanden'),
'path' => 'viewfiles',
'callback' => 'viewfiles_page',
'access' => TRUE
);
}
return $items;
}

function viewfiles_page() {
$output = "Op deze pagina kan men bestanden bekijken van de server.";
$output .= drupal_get_form('viewfiles_form');

// HERE

return $output;
}

function viewfiles_form() {
$form = array();

$form['file'] = array(
'#title' => t('Bestandsnaam'),
'#type' => 'textfield',
'#default_value' => '',
'#description' => t('Geef de naam op van het bestand dat je wil bekijken.')
);

$form['submit'] = array(
'#type' => 'submit',
'#value' => 'Opzoeken'
);

return $form;
}

function viewfiles_form_submit($form, $form_values) {
$result = xmlrpc('http://10.33.20.72/cgi-bin/viewfiles.cgi', 'viewFiles.viewFile', $form_values['file']);

if (xmlrpc_error()) {
$error_num = xmlrpc_errno();
$error = xmlrpc_error();

Expanding form without AHAH/AJAX

My main problem: form elements added with javascript wont get included as form values.

I've seen solutions where AHAH/AJAX has been used, which in some cases are preferable but sadly not in my case. Is this at all possible or wont form api take these elements in consideration because they was not a part of the original rendered form?

Pages

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