Introduction: This is a detailed page of The Drupal progress bar. It introduces the knowledge, skills, experience, and some PHP Source Code related to PhP.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 340018 'rolling = 'no'>
Drupal has a built-in batch tool with a percentage progress bar showing the operation progress.
The usage is as follows: Batch_set (b
The Module dependency of Drpal is quite high. Therefore, when developing a Module, make sure that a common Module has been installed. The following uses Drupal7 as an example to summarize common modules:
Drupal 7 Core already contains commonly used modules such as image and kipde.
Other required modules:
Views (http://drupal.org/project/views)
(Http://drupal.org/project/ctools)
Http://drupal.org/project/panels (Panels)
Editor
WYSIWYG Provides s
If you use imce in Drupal to upload images, by default, imce throws an image into the Directory Sites/default/files/U % UID (% uid indicates the user ID ).
It is not ideal to put images in this way. As the site creation time increases, the number of images will inevitably increase. It is difficult to manage images in a folder.
We can make certain settings in imce to customize the storage path.
From the Drupal
Problems with Drupal mailbox Configuration
Warning: fputs (): supplied argument is not a valid stream resource in F: \ Wamp \ www \ Drupal \ sites \ All \ modules \ SMTP \ phpmailer \ class. SMTP. PHP on line 212.An email cannot be sent. If this problem persists, contact the website administrator.
None of these methods. It turns out that the stmp server has written an error. I wrote a QQ mailbox,
Discussion on the technology of no-refresh uploading file in Drupal
There are several ways to implement a no-refresh upload file in the Web:
1. Use Formdata and FileReader in HTML5 to implement. However, this method can only be used after IE10.
2. Use the SWF file to do the relay.
3. Submit using a hidden iframe.
The above 2 and 3 are actually similar.
I found in Drupal 7 that the field Content-type as
Anyone familiar with Magento and Drupal two times?
Do you have people who are familiar with Magento and Drupal? I wonder if there are many people in the forum with these two? Let's talk about using both of them.
------Solution--------------------
Magento I used to feel can also, two times the development of the words slow, but the implementation of the efficiency is OK, because it is based on the ZF framewo
One key hiding management navigation related module
When we usually do the project must install a management navigation, either built-in toolbar, or the old Administration menu, or the upstart NavBar, because the administrator always need this thing, developers sometimes need. But it brings convenience at the same time, also occupies a place on the screen, so sometimes we or customers need to hide them, when needed, and then through the accelerator key exhaled.
The need for the
Some prerequisites:Website Domain name: site.comWeb site installation directory:/var/www
After git pull the code to the server and deployed the database, the clean URL is not enabled, and the following is the troubleshooting and resolution steps:
1: Establish a info.php file, which input:
Phpinfo ();?>and save, view the page found that the Apache Mod_rewrite module is not enabled, Linux executes the following command to install the rewrite module:A2enmod rewriteThen restart the Apache service
Today, we will share with you how to compile php file upload code based on specific code examples and detailed annotations, which is suitable for beginners of php.
Today, we will share with you how to compile php file upload code based on specific code examples and detailed annotations, which is suitable for beginners of php.
Example of drupal File Upload form
The Code is as follows:
Function upload_form (){$ Form = array ();// If this # attrib
1, the form inside the Ajax location of the form element has an event, fire system/ajax, corresponding to have Ajax_form_callback (), re-fetch to the form, and processing it, and rebuild it, and then use #ajax callback to process $ form, $form _state, and finally returns the new form render array, which is then rendered;2, a href inside of the use-ajax, activate the corresponding Path menu item, and then partially refresh some data, and then return to the render array, and then be rendered3, #st
() { returnfalse;}This function checks for user authentication, changes to other authentication methods in other programs to return true, but cannot be changed directly to true, otherwise there will be security issues, and Drupal will have/sites/all/modules/ckeditor/includes/filemanager.config.php is responsible for inspection.Add the following code, the path is correct, if the file path is the same as mine' .. /.. /.. /.. /includes/filemanage
Example of drupal File Upload formCopy codeThe Code is as follows:Function upload_form (){$ Form = array ();// If this # attribute is not present, upload will fail on submit$ Form ['# attributes'] ['enablesype '] = 'multipart/form-data ';$ Form ['file _ upload'] = array ('# Title' => t ('upload file '),'# Type' => 'file ',);$ Form ['submit _ upload'] = array ('# Type' => 'submit ','# Value' => 'submit');Return $ form;}Function upload_submit ($ form,
Today, we will share with you how to compile php file upload code based on specific code examples and detailed annotations, which is suitable for beginners of php. Example of drupal file upload form
The code is as follows:
Function upload_form (){$ Form = array ();// If this # attribute is not present, upload will fail on submit$ Form ['# attributes'] ['enablesype '] = 'multipart/form-data ';$ Form ['File _ upload'] = array ('# Title' => t ('Upload
The situation is as follows:1, click on the Guarantee button, can not go to the page normally, there is a blank page;
2, refresh the page, issued many items in the navigation is no longer, there is still a click on the item can not enter the normal page.
Tested several times did not find any problems, repeated reloading, testing, finally appeared an error page tip: "Drupal Maximum execution time of the seconds exceeded database In/mysqli.inc", A look
Today found a day did not find the relevant solution, the situation is: in Drupal without the global $user case, the use of $_session is equivalent to a common variable, there is no way to save, and in the case of global $user, if it is anonymous, That is, $user->uid is 0, the session is no way to save, there is no big God can come out pointing twos, younger brother is not very grateful! Thank you
Reply to discussion (solution)
What do you want
Drush is an essential tool for every Drupal developer. The author also wrote other articles about Drush, you can use the search box in the upper right-hand corner of the site to search for "Drush". Previous articles are basically introductory, introductory, such as how to use Drush to clear the cache, set the default theme, and so on. Today we are going to go deeper together and combine drush into our own modules. Customize the operation you need, a f
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.