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 Mail setup in XAMPP local install

I have xampp installed with Drupal 4.7b5 running. I have Mercury Mail running. But I'm missing something in the mail setup that's producing the error below:

warning: mail() [function.mail]: SMTP server response: 550 Address '' not known here. in C:\XAMPP\htdocs\drupal47b5\modules\user.module on line 400.

I think that once I get this problem resolved, I'll have a local install up and running, but at this point, I'm lost and need some guidance. It's probably a really basic setup step that I've missed or messed up.

Roger

Extend taxonomy_context

I would like to extend the taxonomy_context module through another module.

Presently, taxonomy_context creates an index page for each term. This index page displays titles and descriptions/teasers of nodes/terms belonging to the present term.

I want to create a feature where a single node can be designated as the 'node index' for a term.

Example

I have a term 'Science Instrument'. There are six story nodes that belong to this term. taxonomy_context will create an index page listing all six nodes:

http://kalawe.com/images/support/drupal/indexBefore.gif

I don't want this. I want taxonomy_context to only display the title and body of the node designated as the 'node index':
http://kalawe.com/images/support/drupal/indexAfter.gif

Code

I've created a new table 'node_index', with a single field 'nid' which is the node id of a node marked as an 'node index'.

It would get the term's id using the taxonomy_context_get_context() function:

$context = taxonomy_context_get_context();

This db query will fetch the proper index node:

SELECT gem_node_index.nid,rev.title,rev.body
FROM term_node,gem_node_index,node,node_revisions as rev
WHERE
term_node.tid=$context->tid
AND
term_node.nid=gem_node_index.nid
AND
gem_node_index.nid=node.nid
AND
node.vid=rev.vid

I don't want to hack the taxonomy_context module. How do I go about creating a new module to modify the term index pages taxonomy_context creates?

OG ERROR: call_user_func_array(): First argumented is expected to be a valid callback, 'og_approve' was given in /var/www/drupal

Hi, trying to use the OG modul with 4.6 I am getting an error, when I want to approve a user subscription to a group:

call_user_func_array(): First argumented is expected to be a valid callback, 'og_approve' was given in /var/www/drupal/includes/menu.inc on line 354.

maybe anyone knows about this?

html in theme_table help

I am trying to format my table so that the rows have 2 lines of data like below:

1234 John Doe
anything anything anything

here is my $rows[]

Taxonomy theme question

Hi everyone,

Well this is my first post. :) I would like to began by thanking everyone who has worked on Drupal to make it what it is today. Great CMS and I'm glad I stumbled upon it.

My question is concerning the Taxonomy Theme. I'm able to specify a theme to use with the admin section of the site but I'm finding that I'm not able to specify one for the add content (?q=node/add) section. Is there a way to go about this with Taxonomy Theme? Or will I have to look at other options? Any links would be helpful as well as explanations. Thank you for your time.

a little help with theme_table

I am new to using theme_template and it has me a bit confused. The following function breaks my site i.e. module including this function is activated the site displays only blank page. Remove this function and all is ok. I am piecing this together an don't understand all of functions it is using yet so I am hoping someone with more experience can help me fix this. Once I have it working I am sure I can back into how we got there.

Pages

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