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

How to communication in modules?

If module_A wants a string or an array which is a return value of a function in module_B, I just need to call the function in module_A, is that right?

How do I customize node links using smarty?

I'm trying to customize node links in smarty. This example is for phptemplate but I wonder how to do it with smarty.

Fixing a minor module error?

When viewing the administration section of my Drupal site, I discovered that the italics tags shown in the message column are not closing properly. Granted, my page still works, yet this generates a few errors via HTML-TIDY, and I'd love to fix it. If it turns out the 'proper' fix is not simple, I'm all ready to simply remove the <em> tags and be done with it...

Meebo Integration

Hello all,

I have been using the Meebo IM service (http://meebo.com) for quite some time now and I just recently started using the new widget service (http://www.meebome.com/). I have been using it by just using the embed code in a block and having that block appear on only on my personal blog page in 4.7.3.

problem with "sequences" on module category with Postgres (drupal version 4.7.3)

Heyho,

I use category-module in my drupal installation, Postgres Db and 4.7.3 drupal. I have an problem in category modul to change properties in "Container information" and would like to add an content type e.g. page to container.

I get error: (replace path with ~~~)


    * warning: pg_query(): Query failed: ERROR: relation "sequences" does not exist in ~~~\includes\database.pgsql.inc on line 84.
    * user warning: query: SELECT * FROM sequences WHERE name = 'vocabulary_vid' in ~~~\includes\database.pgsql.inc on line 103.
    * warning: pg_query(): Query failed: ERROR: relation "sequences" does not exist in ~~~l\includes\database.pgsql.inc on line 84.
    * user warning: query: INSERT INTO sequences (name, id) VALUES ('vocabulary_vid', 1) in ~~~\includes\database.pgsql.inc on line 103.

I know, that 'real' sequences replace the sequence-table in postgres schema. Does'n somebody have still an patch to category.module?

Thx in advance,
Tom

Forum hack.. the SQL

I am trying 2 modify the forums module to change the way forum pages display their topics, specifically I want to extend the information they show about a topic on this page.

To this end I tried to extend this query from forum_get_topics so as to also include the comments table (from whence I could fetch the replies subject, name & timestamp)

  $sql = db_rewrite_sql("SELECT n.nid, f.tid, n.title, n.sticky, u.name, u.uid, n.created AS timestamp, n.comment AS comment_mode, l.last_comment_timestamp, IF(l.last_comment_uid != 0, cu.name, l.last_comment_name) AS last_comment_name, l.last_comment_uid, l.comment_count AS num_comments FROM {node_comment_statistics} l, {users} cu, {term_node} r, {users} u, {forum} f, {node} n WHERE n.status = 1 AND l.last_comment_uid = cu.uid AND n.nid = l.nid AND n.nid = r.nid AND r.tid = %d AND n.uid = u.uid AND n.vid = f.vid");

The catch is I'm rubbish at SQL and only slowly getting to grips with the functions in the forums module. The first step I tried was adding {comments} c to the FROM statement, so as to be able to select columns from it but this immediately broke the forums page.

Each topic was listed 7 times on the page, much to my befuddlement.

Any ideas why adding a table to FROM should do this?

Looking at it, and the theming functions that further process the results, this approach is looking less and less viable anyway so that's not really important, I'm just curious!

Pages

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