See the Mailing lists or Drupal Issue queue. There are also various working groups on groups.drupal.org

Query number for Forum page outrageous

Yesterday I let the devel module loose on my site and clicked around a bit. Most forum nodes were way beyond 200 queries per page.
I realized that all the links (add comment ...) cause an individual query.
Is there no way to make the Drupal a little less mysql intensive?
I was shocked when I thought about scalability.

Andre
http://www.opentravelinfo.com
http://www.aguntherphotography.com

AJAX Instant Messaging Client Contribution - Session Variables - Username Password Authentication

Hey all,

I've paid the developer of Ajaxim (ajaxim.unwieldy.net) to customize it to work with the drupal database structure and a good majority of the work is now complete. I will post the code as soon as the last few bugs are worked out (now we're just dealing with buddylist groups). It interfaces with the buddylist module directly and I'd like to eventually turn it into a module.

One thing I was wondering if the community could help us with in this regard.

Redirect Infinite Looping in Drupal 4.7.3

I've been trying to figure out why this form doesn't work in Drupal 4.7.3. I recently download Drupal 4.7.3 and created this page. I get the infinite looping when I attempt to fill the edit table with the contents of an existing record. If I don't do the data fill, it works fine.

I also ran this code on Drupal 4.7.0 and it works fine. I did come across an old bug report on something similiar, but it didn't seem to apply. I've spent many hours trying to figure this one out so I hope someone can point out my solution.


<?php

function form_page() {

if( 1 ) {  // comment this out for now
  if( empty($_POST['edit']) ) {
    // maybe need to prefill edit array from database based on specific GET/POST data
     db_set_active('rs');
     $res = db_query( 'select number from DID');
     if( db_num_rows($res) > 0 ) {
        $row = db_fetch_array( $res );
        $_POST['edit']['form_id'] = 'form_page';   
         $_POST['edit']['ots'] = $row['number'];
     }
     db_set_active();
  } else {
    // edit array exists, use it as necessary
  }
}


$form['ots'] = array(
      '#type' => 'textarea',
      '#title' => t('number'),
      '#description' => t('Field Description'),
      '#rows' => 5,
      '#cols' => 60,
      '#required' => 'true',
    );


  $form['dummy_id'] = array('#type' => 'hidden', '#value' => 'value' );
  $form['submit'] = array('#type' => 'submit', '#value' => t('Save'));

INTERFACE JQuery java script library plugins and demos

INTERFACE is jQuery java script library, some plugins might be interestingto integrate into upcoming Drupal5 interface since jQuery is in the core - various plugin function can enrich at least the certain Admin backend Interface usability
I thought the site below might be useful for people who is interested interface and jQuery issues
I can vision slicker sortable elements on admin UI ~ i.e drag&drop menu items's, block order etc.
(Admins more likely to know how to turn JS on browsers :)

PHP5 objects passed by reference

I was using drupal 4.7 with PHP5 with any strange behaviour until I found one.

If there is a node that is loaded twice, for example if it's shown on the node default homepage and on some block, the links were added twice. Then for instance add new comment and the counter of the statics module were shown twice in the second loaded node. If its loaded three times, then the links are three times.

checkstyle configuration

Does anyone have a checkstyle configuration file that verifies the code for the drupal coding conventions?

http://checkstyle.sourceforge.net/
http://eclipse-cs.sourceforge.net/ (plugin for eclipse)

Pages

Subscribe with RSS Subscribe to RSS - Deprecated - Drupal core