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

Something weird with Form File fields

I have a very basic form that simply gets a label and an image file from the user to upload. It works beautifully in everything but IE, and I have no idea why. In IE, the image does not ever get saved to the correct path. Here's the code for that section:

<?php
/**
* Menu Callback; edit ad images
*/
function localadsplus_images($id = NULL) {
global $user;
$output = '';

if ($id) {
$ad = db_fetch_object(db_query("SELECT id, uid, title FROM lap_ads WHERE id = %d", $id));

if ($user->uid == $ad->uid || $user->uid == 1) {
$result = db_query("SELECT * FROM lap_ad_image WHERE aid = %d", $id);
$num_img = db_num_rows($result);

$form['#attributes'] = array ('enctype' => 'multipart/form-data');

$form['aid'] = array(
'#type' => 'hidden',
'#value' => $id
);

$form['main'] = array(
'#type' => 'hidden',
'#value' => $num_img ? 0 : 1
);

$form['upload'] = array(
'#type' => 'fieldset',
'#title' => t('Upload a new image')
);

$form['upload']['label'] = array(
'#type' => 'textfield',
'#title' => t('Label'),
'#size' => 20,
'#maxsize' => 32,
'#required' => TRUE
);

$form['upload']['image'] = array(
'#type' => 'file',
'#title' => t('Image'),
'#description' => t('Upload a local image file (JPEG images only).'),
'#required' => FALSE
);

How do you add tags to nodes?

Is there a way to add tag keywords to nodes for anyone who can edit or submit a node? I know you can edit categories and taxonomy, but obviously you don't want to give users the ability to edit all of the taxonomy. Tagging is huge now, I was just wondering if drupal had support for this. I've looked at tagnode and tagadelic but it sounds like something different. Help?

Data migrator

Is there any module or script to assist in loading initial data.
Mine will be a directory site. Flexinode is being used to store each business in the directory.

I am looking for a tool that can help me in loading initial data to the system. I do not have any constraint on format of the input data. I can create it in any format required.

Thank you

Tagadelic/Drupal 4.7 - What am I doing wrong?

I have the latest version of Drupal running on Windows Server 2003 and latest versions of Apache/PHP. I followed instructions and installed the module. Next I enabled and added the block. The block doesn't appear at all, so I created a page in PHP that included the code to add Tagadelic to a page:

Create tabs with Views

I have created a great view that is almost wonderful.

I created some custom content for a "classified" type. I am showing the Title and Description in the table view. I would like to use the category (the last of the fields, not taxonomy) as a tab. The info in the handbook is not enough to figure out what I am doing wrong. The tracker view does this with the All Content and My Content. I tried to mimick the same settings, but I can't seem to get it right.

Has anyone been able to create a view with tabs based on an argument?

Jeff Rader
http;//lubtex.com/

What's wrong with tinyMCE 4.7?

Been trying to install this module since yesterday with no luck, it doesn't create the sql databases need and even when created manually the admin shows nothing. Anyone has the same problem?

Pages

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