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

Print module and audio nodes

Hi all.

I've been searching how to deactivate the printer-friendly version generated by the print module in the audio nodes. The reason is pretty obvious. I've found this post about the subject but I don't know if someone has tested this new module version or not.

Can anyone give any useful information?

Thanks.

How do I disable view 'original image' with image module in 4.7?

In 4.6, under image settings you can disable the users ability to view the original image. I can't find that option in 4.7 and the original image gives me problems with my fixed width page.

Error in views module - function not found

i installed the views module and when i tried to add a new view, i get this message

"Fatal error: Call to undefined function: views_handler_filter_role() in /Library/WebServer/Documents/drupal-4.7.0/modules/views/views_ui.module on line 682"

there is no such function

am i missing something

sk

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

Pages

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