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

Clear Comment module

Hi. Is it possible to delete from comment module that "
Select your preferred way to display the comments and click "Save settings" to activate your changes.
Anonymous (not verified) said," and that settings- three select areas and one button. Look here: http://krzyzak.net/new/drupal-org#comment if you want to look what i mean
Sorry for language errors, english isn`t my native language.

How do I use a template when creating a module?

What I mean is that I don't like typing html in the php print statements, I think that creates a mess. I would rather have a smarty template that I could read in. I am already using smarty themes, but how could I use a template for my module. For instance let's say I generate some names or something and have a template called index.tpl. It might look like this:

//index.tpl

Name 1: {$name1}

Name 2: {$name2}

Name 3: {$name3}

*NEW* Podcast Module

I appreciate the work done so far on podcast modules and related modules, but they're just lacking in features and intuition as to what's required of a full-fledged podcasting solution.

So, I'm going to build a NEW podcast module that can handle virtually all of our needs as podcasters. The features I want to incorporate are as follows:

  1. Ability to upload/attach media files OR link to external files.
  2. Full feed control. I want to be able to set the title/author/etc. tags as well as itunes tags per show and per episode.
  3. Multiple shows. I don't want users tied down to using their blogs, and I want the shows to have more flexibility than just a vocabulary term.

In order to do all this, I think I'll need to create two new node types, one for shows and one for episodes. I'll also need to write a special feed generator JUST for podcast shows, and I need to figure out how to assign user permissions PER SHOW, not simply all-or-none permission for podcasts.

I am FULLY WILLING to do all of the coding for this project. However, I would like some guidance from more experienced drupal modders in the best way to implement these features.

I'm also planning to write a podcast-directory module that'll work sort of like the aggregator, grabbing episodes from feeds and displaying/re-feeding/streaming them.

Upload not working

Hi there,

I'm trying to get a file uploaded with the upload module. Well it's coming as far as being uploaded in the C:\windows\temp folder but there is stays. It won't show up in the drupal/files folder.
Files folder has read/write access. If I use image module files are being uploaded to a subfolder so uploading shouldn't be a problem.
The file that I try to upload is 13k, it works on the image module.

Anybody an idea.

Grtx, Stonie

Gallery2 woes, please help...

I am hoping someone can help me. I installed Gallery2 under Drupal 4.6.4 and I originally installed it under my Drupal directory in a directory named '/gallery'... Then when I configured it (after a fully successful install) in Drupal. All seemed to go fine. Until I enabled the block and then the site went blank. Nothing, nothing at all. I mean the second I enabled the gallery block in Drupal all I got was a blank page (even in admin mode). Tried going back to my Drupal root - same, blank page. I changed the name of the gallery directory and the site came back. I thought that by possibly naming the install directory 'gallery' was somehow a problem. So I ripped it out completely - brand new install from scratch of gallery2 to a 'gallery2' directory.

Now I got two problems - first Drupal seems to still think that it should be going to only '/gallery' as its directory for admin and everything. I could swear I edited some config file in Linux at some point when I first did the install that set 'gallery' as the base directory (I don't know, maybe I didn't) but it seems that Drupal is always going to a 'gallery' directory for settings. BUT then again I do not know if this is supposed to be 'gallery' and not 'gallery2'

I mean this:

http://www.thehongkongstandard.com/drupal-4.6.4/gallery is blank!

and this:

http://www.thehongkongstandard.com/drupal-4.6.4/gallery2/main.php is a default view of a gallery2 install...

Bug in 4.7 form_execute?

I have a module with a form_name, form_name_validate and form_name_execute. In cvs version the module work, in 4.7 the function form_name_execute don't start..... is a bug of 4.7? The code:


<?php

function test2_form_help($section='') {
$output = '';
switch ($section) {
case "admin/modules#description":
$output = t("Insert test2_form");
break;
}
return $output;
}

function test2_form_perm() {
return array('access content', 'access test2_form', 'administer test2_form');
}

function test2_form_menu() {
$items = array();
$items[] = array(
'path' => 'test2_form',
'title' => t('test2_form insert'),
'callback' => 'test2_form_exe',
'access' => user_access('access test2_form'),
'type' => MENU_NORMAL_ITEM );
return $items;
}

function test2_form_exe() {
$output .= test2_form_form();
print theme('page', $output);
}

function test2_form_form(&$value = NULL)
{
$form['#method'] = 'post';
$form['#action'] = 'test2_form';
$form['name'] = array(
'#type' => 'textfield',
'#title' => t('Is Only a test2_form_form'),
'#size' => 50,
'#maxlength' => 50,
'#required' => TRUE,
'#value' => $value['name'],
);
$form['submit'] = array('#type' => 'submit', '#value' => t('confirm'));
$output = drupal_get_form('test_form', $form);
return $output;
}

function test_form_validate($form_id, $form_values) {

Pages

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