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

Need help with contributing staticHTML module...before I give up

I have been trying to publish the staticHTML module to Drupal.org for over a week. So far nothing has happened and all problems remain. I have tried everything avalable in the handbooks without result. Here's a list

Module error, can't login on my drupal website.

Hello,

I was trying to develop a new block with a dropdown menu based on categories.

I've created a new block (php code type) with this content:

<?php
//Default Value for Select
$t_description[] = 'List by State';
//Get Taxonomy Terms in Vocab State
$result = db_query("SELECT term_data.description, term_data.tid FROM term_data WHERE term_data.vid=1 ORDER BY description");
//Populate array with descriptions and links. The key of the array will be our URL.
while ($term = db_fetch_object($result)) {
  $t_description['http://www.americanpublicradio.com/gov/views/'.$term->description] = $term->description;
}
//Build the select list using Drupal's 'form_select' function.
$category_select = form_select('', 'category', '', $t_description, $description = NULL, 'on Change="top.location.href=document.getElementById(\'edit-category\').options[document.getElementById(\'edit-category\').selectedIndex].value"', $multiple = FALSE, $required = FALSE);
//Give our subsequent form a name we can grab with the Javascript
$form_attributes[description] = 'state_jump';
//Build our form with Drupal's 'form' function.
return form($category_select, $method = 'get', '', $form_attributes);
?>

Now when I try to log into my page I only can see the following error message:

Fatal error: Call to undefined function: form_select() in /home/meloinve/public_html/includes/common.inc(1150) : eval()'d code on line 11

call a node with 2 "url"

Hi. I have this problem: I have two node type that are the same but not for the category. One is under "tips" category and the another one is under "faq" category. Is there a way to create only one modules that can manage both (tips and category node) ? A function to call where I can choose which is the correct category to show or a function that "create" the correct form, it is for me the best solutions.

Tnx in advance.

How are comments rendered on a node page through node_view()

Hi Folks

How are comments rendered on a node page through node_view() it does not seem to be through either node_hook($node,'view') or node_invoke_nodeapi($node,'view')

node_hook leads to alternative way of rendering a node through page_view(),story_view(),..
and node_invoke_nodeapi($node,'view') leads you to comment_nodeapi($node,'view') which does have any code defined for the 'view' case .

Can some someone put me in the picture please ?

Regards Paul

Forum and category module doesn`t work

Are there any problems know by using forum module and category module?

Because if i add a new folder or forum at the administer > forum page, a message that the forum/folder has been created will shown, but the folder/forum isn't availible.
In the database there is a new entry in the category-table, but the forum table is empty.

can anyone help me to solve the problem?

thx
dominik

Showing relativity links when Theming flexinode

I am theming with flexinode at the field level and am using Node Relativity to upload Lead Images for each Flexinode article. I like the Node Relativity play because it allows me to keep the images in albums as well.

Pages

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