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

Building something like Mosets Tree for Drupal http://demo.mosets.com/tree/

Hello to the Drupal Community.

I'm interested in developing a module directory, with a review and rating system.

I'm recent to Drupal, but i have been reading the book Apress Pro Drupal...

What, u gays, would, recomend as the first steps? Is there any modules that i could base on? Would i need a new node type?

Greetings

David

Drupal PHP Code issue

Hi,

I am trying to create a simple page that will update a table in the database. When I create the page outside of Drupal, I am getting the desired result. When I paste it inside a Drupal node with PHP code enabled, it is as if the submit button never gets set.

What could be the problem? Is this not possible to do in Drupal? The only possible reason I could see there is the use of $PHP_SELF, but I have hardcoded it to "/node/14" and it still didn't work... I would really appreciate some help.

Here is the code:

Taxonomy MySQL-query

Hi All

For my sphinxsearch index, I'm trying to make a sql-request, that returns all nodes within a specific nodetype. It has to be in one request, and I can't use php - only sql. Untill now it has worked fine like this:

SELECT content_type_avisartikel.nid, content_type_avisartikel.field_brdtekst_value,  content_type_avisartikel.field_underrubrik_value, content_type_avisartikel.field_ekstern_skribent_value, node.title, GROUP_CONCAT(profile_values.value SEPARATOR ' ' ),
UNIX_TIMESTAMP( field_avisdato_value ) AS avisdato 
FROM `content_type_avisartikel`  
JOIN `node` ON content_type_avisartikel.nid = node.nid 
JOIN `content_field_skribent` ON content_field_skribent.nid = content_type_avisartikel.nid 
LEFT JOIN `profile_values` ON content_field_skribent.field_skribent_uid = profile_values.uid 
AND profile_values.fid =1 
WHERE node.status = 1 
GROUP BY content_type_avisartikel.nid

BUT, now I want to include the connected term from one and only one of my freetagging vocabularies, so I tried this:


SELECT content_type_avisartikel.nid, content_type_avisartikel.field_brdtekst_value,
content_type_avisartikel.field_underrubrik_value, content_type_avisartikel.field_ekstern_skribent_value, node.title, GROUP_CONCAT(profile_values.value SEPARATOR ' ' ), term_data.name,
UNIX_TIMESTAMP( field_avisdato_value ) AS avisdato

Login / Checking user against external Database with RPC XML

Hello everybody :-)

I searched already for this problem but I cannot solve it :(

I have a possibility to login users with checking against a external customer database. I cannot access directly to the customer database. I have to use a XML RPC. The API is already in function, so I need only a module for using this.

I have no clue where I can interrupt the default Login procedure from Drupal and execute my own action. And I need an information how I can tell Drupal after successful login, that the user is logged in with "authenticated user".

No login for New module!

Hi,

I have created a new module. I don't want to require login to use this module. So which module's function, I will have to change.

Thanks
CRINCH

Simple (?) Form question

Greetings, all.

I'm attempting to create a form (within a custom module) which takes the input from a textfield, uses this as a parameter within a custom SQL query (on a custom database table), and outputs the results of that query on the same page as the form.

I've got a function which defines my page:

function mycustom_page() {
  $output = drupal_get_form($mycustom_form);
  return $output;
}

and a function which defines my form:

function mycustom_form() {
  $form['tag'] = array('#type'->'textfield');
  $form['submit'] = array('#type'->'submit');
  return $form;
}

and my submission form

function mycustom_form_submit() {
  $result = db_query("SELECT field FROM table WHERE field='%s'", $form_values['tag']);
  // ... include some code here which processes sql result into a $rows[] array
  // ... some code to create an $output variable  

But from here, I have been unsuccessful getting the submit function to actually display the results of the sql query below the form ... all I can seem to get is a redirect to a blank page. I've attempted to both 'echo' and 'return' the $output variable, with no success.

I chalk it up to my lack of knowledge of the formsAPI, since I typically create my own forms with PHP code ... but I'd like to learn the 'formAPI' method.

Pages

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