1, Introductionin the the Python Instant web crawler project: Definition of content extractor we've defined a generic Python web crawler that expects to save more than half the programmer's time through this project. This article will use an example to explain how to use this reptile. We will crawl collection of old forum, is a use Drupal forum. 2, Technical points we are saying in multiple articles: Save the programmer time. The key is to omit the ti
virtual host, as well as Drupal's rewrite rule configuration, simple and fast.Start test
After each modification of the configuration file, remember to perform the following command to test the correctness of the configuration file:
The code is as follows
Copy Code
[Root@imysql ~]#/etc/init.d/nginx configtestNginx:the configuration file/etc/nginx/nginx.conf syntax is OKNginx:configuration file/etc/nginx/nginx.conf Test is successful
After confirming that
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
For most people, the value of a field is usually printed in the following way. $node->field_name[' und '][0][' Safe_value '] This is a common practice, but not universal. The above approach will have the following questions: 1: The use of ' und ' can easily lead to multiple language problems. 2: In the way above, the original value of the field is printed, not the normal field rendering. 3:[0][' Safe_value ', this way only renders the first value. If it is a multivalued field, data will not be r
How do I implement the click Insert TextArea effect in Drupal? This tutorial is a simple implementation of click Insert TextArea Effect, just a section of jquery, its Drupal.behaviors.tokenInsert function in Token.js, change the addressing class can be used, the sample code is as follows: /*** Insert rules to textarea.*/Drupal.behaviors.rulesInsert = {Attach:function (context, settings) {Keep track of which TextField is last selected/focused.$ (' text
L functions should be one of the most frequently used functions of Drupal developers. Another possibility is the t function.No matter how awesome you are, I can only say that you may find the l function manual no less than 10 times.Basic usage:$ Title: title$ Url: connection addressL ($ title, $ url)Add classL ($ title, $ url, array ('bubuckets' => array ('class' => array ('myclass '))));Add idL ($ title, $ url, array ('bub
management page: The code is as follows:Copy code Function hook_admin_paths (){$ Paths = array ('Mymodule/*/add' => TRUE,'Mymodule/*/edit' => TRUE,);Return $ paths;} Method 2 use Overlay PathsYou can also use the Overlay Paths module. It is a simple module. Allows administrators to use non-management pages to Overlay layers. This means that you can reuse Overlay as a pop-up window without adding more JavaScript libraries to your website to implement similar Modal functions.
The code is as follows
Copy Code
$ (' body '). addclass (' Toolbar-drawer '). CSS (' paddingtop ', Drupal.toolbar.height ());
Drupal.toolbar.height () There is a bug in the jquery UI 1.8.11, not returning a height value but an object.
The way to solve this problem is to upgrade the jquery UI to the latest version 1.10.2.
Update JQuery UI to the latest version (1.10.2)
Download this patch, jquery_update.git/patch/d32f50d ">http://drupalcode.org/project/jquery_update
Introduction: This is a detailed page for configuring the clean URL of Drupal. It introduces PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 332640 'rolling = 'no'>
1. Cancel comments before "loadmodule rewrite_module modules/mod_rewrite.so" in Apache httpd. conf.
2. Find
Add in
Rewriteengine onrewritebase/rewritecond % {r
Introduction: This is a detailed page of Drupal template naming rules. It introduces PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 337294 'rolling = 'no'>
Path
TPL
/(Homepage)
Page-front.tpl.php
Node/%/edit (Edit page)
Page-node-edit.tpl.php
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.