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

Safer form submission with jQuery

I've just discovered a link via digg for a tutorial on creating safer forms without using CAPTHCHA's - and it's all based around jQuery.

http://15daysofjquery.com/examples/contact-forms/

This would seem to be ideal to use in drupal 5's forms code - but I'm no expert so don't know if this would create other problems.

Page Authentication

Hi all;
Can anybody help me?
I need to make an 'authentication per page' rule, so the user with a username and password can only edit his/her page.
I'll have around 100 users, so this should be a rule which an administrator can later apply onto newly created users when needed.

How would i approach this matter?

Thanks.

settings.php not properly closed?

This might be a pretty stupid question (as I'm not a programmer at all), but can it be that settings.php is not properly closed? It starts with <?php, but I can't find anything that closes this tag (or is it closed in another file?).

Help --- 4.7.6 Clean Install -- can not log into Admin after the first time

When we try to login to Admin, the url flashes /q?=node but goes nowhere. Does anyone know a work around for this? We are locked out of the back end.

This is a clean install on a Mac with Safari and we tried Firefox with same result.

Apache/2.0.59 (Unix) PHP/5.1.6 DAV/2 mod_ssl/2.0.59 OpenSSL/0.9.7l
Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/418.9.1 (KHTML, like Gecko) Safari/419.3

Please help...

Chris

How do I get an autogenerated index from insert?

This is probably a real simple question, but I am new to PHP and to Drupal. When I do an insert using db_query, is there a way to get the autogenerated primary key without doing a second query to get the inserted row? I am using the mysql module.

drupal_add_js - always prepends $base_url

I wanted to add some javascript to a page from another website, so I put in:

drupal_add_js("http://www.somesite.com/stuff/mycode.js", 'module')

but the function added $base_url to the front, which broke the url.

I made a simple change to drupal_get_js in common.inc that seems to solve the problem:


switch ($type) {
case 'setting':
$output .= '

Drupal.extend({ settings: '. drupal_to_js(call_user_func_array('array_merge_recursive', $data)) ." });

\n";
break;
case 'inline':
foreach ($data as $info) {
$output .= '

'. $info['code'] ."

\n";
}
break;
//mitch - need something that doesn't make a relative path!
case 'remote':
foreach ($data as $path => $info) {
$output .= '

\n";
}
break;
//mitch
default:
foreach ($data as $path => $info) {
$output .= '

\n";
}

Pages

Subscribe with RSS Subscribe to RSS - Deprecated - Drupal core