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

Ajax with Drupal 4.7 - where should I be looking for reference material?

Hi guys,

Looking for guidance on which flavour of Ajax is being used in Drupal 4.7..couldn't find the roadmap.

Am playing around with a bit of ajax and Drupal at the moment...in particular the Inline editing thing with User Profiles, which is demonstrated very well here:

http://www.baekdal.com/articles/Usability/usable-XMLHttpRequest/

How to enable auto-complete forms (AJAX)?

Hi,

I just downloaded the latest version of Drupal CVS tonight (4.6.3) and installed it fine. I have enabled the search module and wanted to see if an AJAX search functionality was working as it says in the changelog:

- usability:
* added support for auto-complete forms (AJAX).

I've added some content and run cron.php.

How do I enable the auto-complete forms?

Many thanks
Rachel

"Multi-site" capability - modified bootstrap.inc

To get around having to modify web server configuration files in order to get multi-site capability, i modified one of the functions in bootstrap.inc. By adding an appropriate folder in the sites folder, one can achieve multisite feature without having to go to web server configurations file, which most Drupal admin users dont have access to.

The modified function simply grab the first element in $_GET['q'] and use that to find appropriate settings.php. Once it find the right settings.php, it removes the first element in GET query and replace it with the remaining query. A simple sleigh of hand

If anyone want to use this, simply copy the function below and replace the one in bootstrap.inc

The only concern I have is the security implication that the function below may have. Does anyone here know what security issues I should be worried about?

function conf_init() {
  static $conf = '';

  if ($conf) {
    return $conf;
  }

  $confdir = 'sites';
  $uri = explode('/', $_SERVER['PHP_SELF']);
  $server = explode('.', rtrim($_SERVER['HTTP_HOST'], '.'));	
		 	
  //put GET query into array	       
  $path = explode('/', strtolower($_GET['q']));  

  //grab first element in GET query
  //use it to find the right folder in sites directory
  $member =$path[0];
  
  //not empty, insert it into uri array
  if(isset($member) && $member != ''){
  	//make copy of exploded uri
  	$copy_uri = array();
  	$copy_uri = $uri;
  	
  	//find length of uri
  	$width = count($uri) - 1;
  	
  	//overwrite the last element of uri-copy
  	$copy_uri[$width] = $member;  	
  	//now add the last element of exploded uri to uri-copy
  	array_push($copy_uri, $uri[$width]);
  	
  	//reset exploded uri with the uri-copy
  	$uri = $copy_uri;  	  
  	  	      		  		
  }
  for ($i = count($uri) - 1; $i > 0; $i--) {
    for ($j = count($server); $j > 0; $j--) {    	
      $dir = implode('.', array_slice($server, -$j)) . implode('.', array_slice($uri, 0, $i));                    
      if (file_exists("$confdir/$dir/settings.php")) {
      	      	      	
      	//if first element is in dir then remove member from GET query
      	if(strstr($dir, $member)){      		
      	  /* 
           * Sleigh of hand happening here
           * Lame code to remove first element in GET query
           * reset GET query with new path
          */
	  $path = array_reverse($path,true);
	  array_pop($path);
	  $path = array_reverse($path,true);
	  $_GET['q'] = implode('/',$path);  				
      	}
      	
        $conf = "$confdir/$dir";
        return $conf;
      }
    }
  }  
  $conf = "$confdir/default";
  return $conf;
}

multi site db - suggestion for db_prefix

hi
i used a default install via cpanel and am attempting to set up multisites.
however, i noted that the drupal db schem is not multisite friendly .. all the table names do not have a prefix to them. u can add them in settings.php .. but the tables themselves are originally created without the prefxi ..which means i ahve to go in by hand and rename them to put the prefix i want.

my suggestion is that the db schema comes with a default db prefix like drpl_n_tblname where n is 0 for the sites/default/settings.php and so on.

hope it makes sense

Why can't a comment be more like a node? (Yes, I've seen previous discussions)

It's been asked before,
Promote comments to nodes .. and several others.
.. But I can't find any answers.

Different folk have made patches to make up for some needs Comment module does not support extension of its forms , Hooks for comment enhancements, Attachments on comments
... but following the comment history on those initatives seems inconclusive as to how far they progressed.

I see hints that 4.7 is having a more open API for getting at comment guts, but the latest CVS file doesn't seem to have what I'm looking for.

Today I want access to a comment equivalent of nodeapi('view') ... and attachment support and a bit of admin-level moderation.. (for some massive extensions to netnews - supporting binary attachments and turning it into a newsgroup reader)

Granted that comments and nodes are not the same beast and may have been historically designed to be less heavyweight than nodes, what's the best approach here? As noted elsewhere, comments look a lot like nodes at the basic level..

To get this working like I want, I'm considering building a 'threading' model into a node type and abandoning comments altogether. Or is there something waiting in the wings, or a module that already addresses this desire?

Refreshing forms on "Reset to Defaults"

Hi everyone,

I've noticed that forms do not refresh when using the system.module "Reset to Defaults" button. I think they should. People will be confused to see a message saying that the defaults have been restored, but the forms remain the same.

I've tracked down the issue to system.module's system_settings_form function. My questions are two-fold

a) How do I update the refresh the form? I have not seen any Form API call for this, or perhaps I am just missing it.
b) When I have a patch, where do I file it? I did not see a project for system.module.

Pages

Subscribe with RSS Subscribe to RSS - Deprecated - Drupal core