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

Comments in the forum / module

Hi!
I'm trying to find some people who have time to develop such a function or module...

I think sometimes, on some websites, it's really difficult to distinguish the main article and the comments for it. Some webmasters have made the choice to use a forum like Punbb or something and to group all the comments of the website in it. Not every website have the same configuration as drupal.org. On Drupal.org 99% of the nodes are forum nodes but of course other websites have many different types of nodes.

Let's say, if a visitor wants to add a comment to a node ( a classic article) already created, if this node doesn't already have any comment, a new forum topic would be created with the same node title that the previous one. This forum topic would be a container for all the comments of the node (the article).

We could add at the bottom of the original node the result of a comments count query or things like that.

Told like that, I'm sure it's pretty understandable but the fact is I'm a designer and not a developer. For my personal use, I really need such a function or module to be created but I can't do it by myself ;(

I've read on this forum the question has been asked many times. I've even already posted a message in ''post installation'' category but the answers were not clear at all ( not for me ;) )

Small module to create select element with countries list

Hi, many modules require a select element showing a list of countries, it could be an additional profile field or a payment form.

Creating a long country array, inserting it in your module and then calling it from your form takes some space and is repetitive. That's why I created a small support module. I called it simply countrylist, it's just an array of ISO codes and country names (using t() so they can be all translated, I translated a few to Spanish) that you call from the function building your module:

$countries = countrylist_build_list();

There's a small example you can look at after enabling the module, just visit countrylist/test and check the _countrylist_test() function.

I'm not sure if this qualifies as a module I can commit to CVS (I already have contributed two other modules but I'm asking because this one is quite small and simple).

I've read some discussions about storing the country list in the database, I'm not sure if that would be faster or easier to manage. I didn't do it because I couldn't find the right way to translate the country names, perhaps running t() after fetching the ISO codes and names from a country table?

I tested with Drupal 5 but the code is quite simple and should work with 4.7.

Probleme with a <div> from a Form and AJAX

Hi evrybody,

I'm working on a module with generate a form. I have to use some AJAX code to do an autocomplete method on a field.
I try to write into a div.

I'm using XAJAX.

 $objResponse->addAssign('edit-province_state', 'innerHTML', $html);
	

	
  return $objResponse->getXML(); 

and in my formular code:

date field order in profile module

hi frineds,

I added date of birth field of type date in registration form using profile module. I want to display the year select box to the last means after month and date. How can I do this? As i am new to drupal, i dont know how to do this? Please anyone help me....
Thanks.

Remove subscribe/unsubscribe from simplenews newsletter

Hello!

On my frontpage i have the simplenews newsletter module. Now you have 2 option there: Subscribe and Unsubscribe...but how can remove those options and subscribe every email that's added?

qnallur

modulname_form_submit does not fire...

hi ....
1st - sorry 4 my bad english. i'm trying to approve my skill here :D
i m sure its a beginner problem - i read the handbooks, tutorial and drove through http://abi.drupal.org but had no luck now 4 days...

I'm trying to create a own module and would like to fire the modulename_form_subit function

PLEASE - anybody have mercy to a NOOB BOON what ever - PLEASE whats wrong?

<?php
//----------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------
function majordomo_menu() {

$items = array();

$items[] = array(
'path' => 'admin/settings/majordomo',
'title' => t('Majordomo Einstellungen'),
//'callback' => 'drupal_get_form',
'callback' => 'majordomo_verwaltung',
'description' => t('Hier gehts zu den Einstellungen für das Majordomomodul'),
'access' => user_access('Majordomomodul verwalten'),
'type' => MENU_NORMAL_ITEM
);

return $items;
}

//----------------------------------------------------------------------------------------

function majordomo_verwaltung()
{
$page_content='';
$page_content = drupal_get_form('_komm_form');
print theme("page", $page_content);
}

//----------------------------------------------------------------------------------------

Pages

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