Установка и настройка сайта, а также системного окружения. Исключая вопросы программирования новых модулей и тем.
См. документацию на английском: http://drupal.org/node/258
I've installed the "mailchimp" module (http://drupal.org/project/mailchimp) on a site I am developing, but don't really need or want the "first name", "last name" forms. I am only interested in the "email" form. I've tried copying the code in firebug and reconstructing the parts I need in a new block. However, once I try to submit an email, nothing goes through to mailchimp. Any one know a solution or interested in making an attempt? Check out my site if you'd like to play around. www.sproutonlinetherapy.com. Thanks.
Hello,
I've built plugins for Joomla and Wordpress, and they both have some form of a "shortcode". Basically a snippet of code you can put into a page that will get rendered by the plugin.
Looking at the docs, this doesn't seem to be possible with Drupal. What is the best approach to doing this?
I've seen mention of full page nodes... but am still confused about how the user would embed something in the post.
Thanks!
-J
This module contains a group of view handers and plugins that add the following options.
Argument Default Current Node CCKallows for cck field values of the current node to be loaded as default arguments
Argument Order Sorta sort handler, that allows for the order of items to be based on there order in a multi-value argument
Is this possible through the Drupal form API?
So for example, I have an address form. The postcode field is required unless you select Ireland as your country, then it's optional.
With the Drupal form API, you set what is required and then Drupal renders the form. Is there a way to alter requirements using JavaScript?
Thanks
I have recently installed the Node Gallery module and it looks like everything is working fine. I create a Gallery and then go to upload images into that gallery and it looks like the images upload but then when I go to Manage or Sort images, no images show up in the Gallery. Does anyone know why this is happening? All the permissions are set correctly.
I have used the node_access to module for specific modes.this is because i want these nodes to b accessed by only authenticated users that i have created.But after enabling this module i am unable to deny edit and delete permissions for authenticated users.i do it for anonymous users.there are check boxes for permissions for each node.i check the deny edit and delete for authenticated users nad click on save permissions.it shows changes saved but again these boxes automatically become unchecked and permissions are not set thus allowing authenticated users to edit the content.i dont want these.
please help.immediate help will be really appreciated .i am doing it as a third projetc which i need to submit this week.so please try and help me quickly.
thank you in advance.
Hello!
I wonder where in the book structure I should place my documentation nodes for my modules:
http://drupal.org/project/support_custom_email
http://drupal.org/project/support_fields
I've been searching for hours now without finding any clues.
Can someone point me in the right direction?
Heya,
I made a custom page, like this:
$items['mailing_list'] = array(
'title' => 'Mailing list',
'page callback' => 'mailing_list_page',
'access arguments' => array('access mailing list'),
);
I define the content in mailing_list_page(). But now, is it possible to index the content on that page, so it can be found by searching?
I've written a module that uses a CCK content type as it's node type.
It all works great (and the site is actually live), but we just noticed that the standard node permissions (create/delete/edit) don't appear for the content type.
I even tried to create custom permissions with hook_perm, but found that hook_access never fires.
I must be missing something to do with using modules and content types together in this way.
Perhaps you can point me in the right direction.
Thanks.
I have a node of test type. User creates another node of credit type that references test.
Credit node has field credit_test_credit that is the number of hours the user earned on node Test.
Easy enough. The problem is, I don't want the user to claim more credit than Test->max_credit_hours.
I tried php in the allowed values of the cck field credit_test_credit, but since the node isn't saved, drupal doesn't know what node it references yet.
I can use hook_nodeapi and validate the field credit_test_credit and make sure it doesn't exceed test->max_test_credit, but I want the user to know BEFORE he fills out the field what the allowed range is. (1,2,3,4,5) for example.
I could make ANOTHER custom node, but I have other fields in node credit such as filefield that make using cck the way to go and much simplier.
Is there a way to add a single field to the cck node credit, that will offer an acceptable range to the user?
Possibly, hook_form_alter? I have never used this, but off hand it seems like the thing, and I am goign to the API now to read up on it.
Any suggestions appreciated!
I'm creating a module that creates user accounts relative to those stored on a server. The module is going to look at the accounts stored on the server and make sure they are the same as in Drupal. So if an account is disabled on the server it will be disabled in Drupal, if the user belongs to a different group and his or her permissions are changed, they will change in Drupal, and so on. I can create the accounts just fine, but because this is something that will run every hour, I want to check to make sure that if an account already exists that Drupal doesn't try to create it again, otherwise I'll constantly get a 'duplicate entry' error every hour. Just wondering if there is a simple function in order to check if a user exists. I've looked at the hook_user and save_user functions, but just wondered if anyone else has any other suggestions.
Thanks,
Zee
Hello,
I have created a small module,where i tried to execute a small code using ahah method. I have called a validate function on submitting the form. In that case the return value i am getting from the ahah method is showing in a different location. I have attached screenshot here. Can anyone please help me out to solve this issue?
function ahah_test_menu() {
$items['ahah_test'] = array(
'title' => 'AHAH Test',
'page callback' => 'drupal_get_form',
'page arguments' => array('ahah_test_form'),
'access callback' => TRUE,
'type' => MENU_NORMAL_ITEM
);
$items['ahah_test/js'] = array(
'title'=>'Who cares',
'page callback'=>'ahah_test_something',
'access callback'=>TRUE,
'type'=>MENU_CALLBACK
);
}
function ahah_test_form($form_state) {
$form['field'] = array(
'#type'=>'fieldset',
'#title'=>'field',
'#tree' => TRUE,
);
$form['field']['country'] = array(
'#type'=>'select',
'#title'=>'Country',
'#options'=>array('Ireland','United States'),
'#ahah' => array(
'path'=> 'ahah_test/js',
'wrapper'=>'place_1',
'event'=>'change',
'method'=>'replace',
),
);
$form['field']['wrapper'] = array(
'#type'=>'item',
'#prefix'=>'',
'#suffix'=>'',
);
Hello,
I want a drop down list based on an input file in my register form in my Durpal Site.
A drop down list based on list with values isn't a problem, but an option to make a Drop down list based on an input file isn't possible with a standard Drupal Installation.
I have installed the modules Content Profile & content Profile User registration.
Also the Computed field module (cck) is installed.
Is there a drupal module to make drop down lists or other object?
Thanks for help!
Pieter
Hi all,
I have written a module which has a js file which needs to be included in a special path like "a/path/not/registered/by/my/module".
How can I do this?If solution is drupal_add_js , where should I write it?(which function or...)
thanks in advance,
HAMID
I am developing a new site by using drupal. In that the make the field named E-mail in the profile module is optional. Is it possible. if yes, how is it possible. anyone can give me the solution.
Thanks in Advance,
L.v.v.Ravi Kumar.
Hi everyone.
I'm just finishing a module that let's you send SMS as an Action. Yeah, as good as it sounds, you can set "send SMS to..." as action. At this moment the module uses only one gateway, a Spanish company that is a bit too expensive for my taste. SMS services are insanely expensive here in Spain, so I was considering adapting my module for other gateways. Here we're paying no less than 16 cents/$ per message, so I'm looking for other gateways with better prices and able to send messages to both American and European countries. They should also have an API that a human being is able to understand.
What can you recommend me?
Thanks in advance.
I am a beginer to drupal . I want to develop new module for drupal. Can you tell me the process of developing module of drupal.
Thanks
Hi, i have a form which displays customer list.I want to include a select list with values (accept and reject) and a submit button on each row of a view output .I want to select one of the values and according to that the status must be update in database. How can i do that. Pls help.Is it possible to submit a form in View output. If so pls explain with some sample code.
Thanks in advance
Chinchu
Hello,
I work on an existing project that contains the block "newsletter".
It works nickel, except in the email sent to the person concerned that contains a link to confirm registration ==> page not found.
Can you help me please?
Thank you very much