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

Want to merge free tagging & list forms for terms.

Currently developing module called "label". It povides per-user term
access. Label vocabularies can be used e.g. for personal nodes
categorization, for private message nodes etc.
The problem is that I want to allow user to enter new labels (terms)
using both list & free tagging fields. Taxonomy allows me to have
free-tagging or (not and) normal vocabularies.

I have decided to edit taxonomy module to support both of them.

The problem is that form elements are constructed in such a way:

What's the best way to handle auto-responders using a webform?

Can I have more than one email for a webform? Basically I want an autoresponder for an "info" email and I dont want that emailed to be used by the company to talk to people bc it would mean the customer would get an auto response every time they replied.

If I set up a forward from info@something to info2@something and had an autoresponder for info@something--would that accomplish what I'm after? I suppose a bunch of you have set up auto-responders, I just want to know what the best strategy is.

rss subscriptions...

I'm trying to find some functionality that seems that it would be a common request among community sites.

I'd like for users to be able to "subscribe" to other users (and groups) blogs/posts/nodes...

I first looked at the favorite nodes module, and that gets me half of the way there, even though I, being a stupid novice coder, couldn't figure out a snippet to provide a users favorites in their own profile.

Java applet to drag, drop and upload multiple files

We need a better interface for uploading multiple files - mainly images. Based on what I know and what I've read, there may be some potential in Java applets. What I'm thinking of is an applet that:

* allows you to drag and drop files (from explorer) on to the web page, showing you thumbnails (in the case of images or vids)
* will zip multiple files together for a single, optimized upload
* will upload this data using the drupal api either:
- Directly via an http call
- via AJAX, simply updating the form that posts the upload (I think this is the best solution)
* and finally, shows progress of the upload (again) either via the applet, or AJAX and Javascript

The AJAX solution would simply require the Java Applet to collect files dropped into the applet, zip them up, and send the information (on the location of the temp zip file) to an AJAX method that would update an upload form with the location of the file. Then, you'd use other existing AJAX helper methods to run a JavaScript\AJAX progress bar while uploading.

So, the question is, how possible is this? What are the limitations with using a Java Applet (assuming it is signed - for file access) with Drupal? Would the AJAX solution work?

Someone shoot me down before I get my hopes up too high!!! Obviously this solution has HUGE potential in the realms of image\photo galleries and other digital albums.

Welcome Message in OG 4.7?

Hi,

I'm upgrading my site to 4.7 and am using Organic Groups but can't find where (in the upgraded version) to change the group "welcome message".

In 4.6 it was under the group page's "edit" tab.

Also, I've heard that much has changed with OG between 4.6 and 4.7 but neither the readme nor the documentation page reflect any changes. Have I been staying up too late or are the changes documented somewhere?

Thanks,
Kevin

Form that I made didnt work

Hi everyone,

Am kinda new to drupal but have been fiddling around for a week or so.
Now I am trying to create a module that basically does the same thing as the user module, which is create some data and store it in a database.

Heres how it goes,
-the user presses the 'view data' menu item, which will list all the data in the database, just like in the user menu.
- then there will be a 'add new data' tab in it (like 'add user' in user menu).
-when i press that, i have a form, which will let the user enter the data, and the save button underneat the form will submit the data into the database.

My problem is, when I press the save button, the data never gets saved, and instead, the user is taken to the 'view data' page. :S

Here is some code...

function mine_admin(){//this is called for when the 'view data' is clicked

$edit = isset($_POST['edit']) ? $_POST['edit'] : '';
$op = isset($_POST['op']) ? $_POST['op'] : '';

if (empty($op)) {
$op = arg(2);
}
switch ($op) {
case 'create':
$output = mine_new();
break;
default:
$output = mine_asset_list();
}
return $output;
}

function mine_new(){
$form ['code'] = array (
'#type' => 'textfield',
'#title' => t('code'),
'#required' => TRUE
);
$form ['Name'] = array (
'#type' => 'textfield',
'#title' => t('Name'),
'#required' => TRUE
);

Pages

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