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

drupal_add_js and collapse issues

i have two questions:

using drupal_add_js, is there a way to add my js file after all of the drupal js files? so that my js file can see the changes made to the page.

how can i attach collapsing function of any fieldset to an object other than fieldset's legend? for example when a checkbox is checked/unchecked a fieldset will open/collapse. (the reverse situation is not important: when the fieldset is opened/collapsed by clicking its legend, the checkbox's status may not change.)

thanks.

Free the Books module!

I'm just wondering if anyone else feels the same way:

1) I prefer books to taxonomy as *most* of my site is hierarchical.

2) That makes books more logical for viewers and non-techie users of the site.

3) The 'Outline' feature ROCKS!

4) But it would be great to be able to have two parents.

I know that kinda veers into taxonomy territory, but even if it was something like a distant parent, or step-parent (with breadcrumbs still honouring the primary parent), I think it would be a big improvement to the books module.

A killfile module for Drupal

A few weeks ago I had some inspiration and decided to make a killfile module (4.7 RC1). Today I thought it was time to get it finished: http://pctips.ustilago.org/plonk

The only thing the module does, is keep a user list, mark what comments* shouldn't be displayed and display a block. The provided template.php (& comment-folded.tpl.php) does the rest.

Comments marked 'hidden' by kill_file can be styled by comment-ignored.tpl.php. Folded comments can be optionally styled by comment-folded-ignored.tpl.php.

hook_user, logout question

I've been developing a module that interfaces with a third party application. When a Drupal user logs in, the hook_user catches the login and sets the appropriate cookies/makes the appropriate database queries so the user is also logged into the other application. I would like to remove those cookies when the user logs out but there seems to be a problem.

Maximum execution time of 30 seconds exceeded in ODBC related

I am getting the famous

"Maximum execution time of 30 seconds exceeded in "

error message in my customized module which makes ODBC connections to a DB. The error points to the line where the ODBC connections is actually doing "while( odbc_fetch_row( $result ) )" any suggestions on what the cause of the error might be? is it a slow ODBC connection or something I might be doing wrong in Drupal.

thnx!

Q: making function date_header work

Could someone help me understand better how this function can be put into Drupal's default node listings, or into one of the common listing snippets ?

function date_header($timestamp, $format = 'F j, Y') {
  static $last;
  $date = format_date($timestamp, 'custom', $format);
  if ($date != $last) {
    $last = $date;
    return $date;
  }
}

I'm having a hard time getting my head around it.

Thanks, Case.

(apologies for the cross post, if anyone picked this up in post-installation questions)

Pages

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