该网站有一个正常的登记表,使用户能够登记。
我建立了一种新的习俗形式,我正在收集用户名/密码等。 我如何在博士系统中对用户进行人工登记?
感谢
该网站有一个正常的登记表,使用户能够登记。
我建立了一种新的习俗形式,我正在收集用户名/密码等。 我如何在博士系统中对用户进行人工登记?
感谢
这不是你想要的答案,而是通过使用 h头——原来改变目前的登记表来挽救许多麻烦:
http://www.lullabot.com/articles/modification-forms-drupal-5-and-6
仅仅在凯文建议的基础上扩大“用户和用户”在这里,《守则》可能会看像:
// store user name
$user_name = "user123";
// store user email
$email = "user123@gmail.com";
// set up the user fields, use user_password function for 8 character password
$fields = array(
name => $user_name,
mail => $email,
pass => user_password(8),
status => 1,
);
// give new user roles if needed, as shown below
$fields[ roles ] = array( new_role );
// pass the fields to user_save() and leave first param empty to create new user
$account = user_save( , $fields);
Although I am using drupal since the D4 series, I only started developing professionally for it with D6, so - despite I did various site upgrades - I was never faced by the task of having to port my ...
I am writing a drupal module that involves a form with many checkboxes. E.g. $form[ myform_checkboxes ] = array( #type => checkboxes , ...) I have made the key for these checkboxes numeric, ...
I m adding additional languages to a Drupal site that I m building. Getting the translation of content working is fairly easy using the Internationalisation module. Yet, simple things such as date ...
Looking through the Drupal contrib modules, and after a few Google searches, it becomes evident that there are any number of choices and combos available to set up a WYSIWYG editor in Drupal. I m ...
I don t know how to change the size of the login username/password boxes on the drupal site that I m trying to build. I m stumbling through the theming, and don t know where to find the file that ...
How does Drupal support a means to update and review a website before it is published? Does it only allow you to preview a page at a time before you publish it or is there a way to create a site ...
I m looking for terminology that describes this behavior: The header of a web-page contains a different image every time you visit it. Update: It is not an advertisement, but images related to the ...
Has anyone checked out a copy of Drupal 7 yet? What do people think? I m pretty excited about the PDO and all of the designers I work with a very excited about the new admin interface/structure. Do ...