drupal multisite

Want to know drupal multisite? we have a huge selection of drupal multisite information on alibabacloud.com

How does Drupal avoid saving message information in the page cache?

Code of the page_get_cache function: function page_get_cache($status_only = FALSE) { static $status = FALSE; global $user, $base_root; if ($status_only) { return $status; } $cache = NULL; if (!$user->uid $_SERVER[‘REQUEST_METHOD‘] == ‘GET‘ count(drupal_set_message()) == 0 $_SERVER[‘SERVER_SOFTWARE‘] !== ‘PHP CLI‘) { $cache = cache_get($base_root . request_uri(), ‘cache_page‘); if (empty($cache)) { ob_start(); $status = TRUE; } } return $cache;} It can be seen th

The implementation of the mail sending function of Drupal website

Drupal site can use Gmail mailbox to send mail to users, the implementation of similar functions have SMTP or Phpmailer module, I use the Phpmailer module, the following is the process of my configuration, posted for your reference.1. Download Phpmailer moduleHttp://drupal.org/project/phpmailer2, enable the Phpmailer module, in the "Site Settings" point "Phpmailer" settings, the page will be error "Class ' Phpmailer ' not found in .... Phpmailer.class

Drupal 7 Build Station study notes (v): HTML Document Flow overflow problems

. scroll content will is trimmed, but the browser displays scroll bars to see the rest of the content. auto If the content is Trimmed, the browser displays scroll bars to see the rest of the content. inherit regulations The value of the overflow property should be inherited from the parent element. QuickTabsThe outer block of the module uses overflow: hidden attributesWhen the inner element "

PHP File Upload form excerpt from Drupal code

Example of a Drupal file upload form Copy CodeThe code is as follows: function Upload_form () { $form = Array (); If This #attribute isn't present, upload'll fail on submit $form [' #attributes '] [' enctype '] = ' 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_

A workaround for using Hook_schema to create a database error pdoexception:sqlstate[42000] in Drupal

Label:The error message is as follows: pdoexception:sqlstate[42000]: Syntax error or Access violation:1071 Specified key was too long; Max key length is 3072 bytes:create TABLE {start_zero_order} (' ID ' int. unsigned not NULL auto_increment COMMENT ' The Ord ER id. ', ' username ' varchar ($) NOT null COMMENT ' xxx ', ' order ' varchar (4096) null DEFAULT null COMMENT ' xxx. ', PRIMARY KE Y (' id '), UNIQUE KEY ' username ' (' username '), INDEX ' order ' (' Order ')) ENGINE = InnoDB DEFAULT CH

Drupal Lingotek Module Cross-Site Scripting Vulnerability

Release date: 2012-10-08Updated on: 2012-10-09 Affected Systems:Drupal Lingotek Module 6. X-1.1Unaffected system:Drupal Lingotek Module 6. x-1.40Description:--------------------------------------------------------------------------------Bugtraq id: 51272Cve id: CVE-2012-1624 Drupal is an open source content management platform. Drupal's Lingotek module has an XSS vulnerability that allows remote authenticated attackers to inject arbitrary Web scrip

Drupal Video Filter Module Cross-Site Scripting Vulnerability

Release date: 2012-10-08Updated on: 2012-10-09 Affected Systems:Drupal Video Filter 7. x-2.xDrupal Video Filter 6. x-2.xDescription:--------------------------------------------------------------------------------Bugtraq id: 51381Cve id: CVE-2012-1634 Drupal is an open source content management platform. Drupal's Video Filter module has the XSS vulnerability, which allows remote attackers to inject arbitrary Web scripts or HTML through the EMBEDLOOK

Drupal RESTful Web Services Module Cross-Site Request Forgery Vulnerability

Release date:Updated on: Affected Systems:Drupal RESTful Web Services Module 7.xDescription:--------------------------------------------------------------------------------Drupal is an open source content management platform. Drupal's RESTful Web Services Module has a security vulnerability and does not correctly verify certain HTTP requests. Attackers can exploit this vulnerability to perform cross-site request forgery attacks. Link: http://secuni

Solution for adding modules in Drupal with inexplicable errors (often when many modules exist)

The status is as follows:1. After clicking the "warranty" button, the page cannot be displayed normally and a blank page appears;2. Refresh the page and send out the items in the navigation that are no longer available. You cannot click the items that still exist to enter the normal page.After multiple tests, no problems are found. After multiple reinstalls and tests, an error page is displayed: "drupal Maximum execution time of 30 seconds exceeded da

Drupal Simplified Chinese Language Pack Installation tutorial _ php instance

This article describes how to install the Drupal Simplified Chinese Language Pack. This article describes how to install the Drupal Chinese Language Pack. For more information, see http://localize.drupal.org/translate/downloadsto download the latest drupal6chinese Language Pack. Go to admin> site building> modules [admin/build/modules] to enable the Locale module. Go to admin> site configuration> langua

Install lighttpd + php + mysql + Drupal In Debian

Install lighttpd + php + mysql + Drupal In Debian-Debian information for the Linux release. Source: http://www.phecda.org/200803/install_lighttpd_php.html Setting up a website in Linux is not difficult, but it is simpler In Debian. Linux uses Debian and http server software uses lighttpd. It is a lightweight server software. Today, many cool stations have it. php is used for dynamic languages and mysql is used for databases, CMS uses

Open-source program nginx rewrite rules/CI/yii/CakePHP/Symfony/wordpress/Drupal

;Log_not_found off;Expires Max;}Location ~ \.php$ {Try_files $uri = 404;Fastcgi_split_path_info ^ (. +\.php) (/.+) $;#NOTE: should have "cgi.fix_pathinfo = 0;" In php.iniInclude Fastcgi_params;Fastcgi_index index.php;Fastcgi_param script_filename $document _root$fastcgi_script_name;# fastcgi_intercept_errors on;Fastcgi_pass 127.0.0.1:9000;}Location ~. *\. (gif|jpg|jpeg|png|bmp|swf) ${Expires 24h;Access_log off;}Location ~. *\. (JS|CSS) ${Expires 24h;Access_log off;}

How to configure and use the Memcache hash policy in Drupal

Memcach is a powerful tool for improving the performance of web applications and Drupal applications. Recently, Memcache has been used to find many minor problems. Therefore, the author has summarized several issues for your reference.1. Differences between Memcache and MemcachedThis is a historical issue, but in short, the name is even better!Therefore, memcached is recommended.In addition, memcached has many new features, including getMulti/setMulti

Drupal custom localization tutorial

Here we will talk about the custom Chinese version of drupal, but there are still many characters that do not contain Chinese characters, which may come from a third party or do not need Chinese characters. At this time, we need to customize it ourselves.For example, I added a saved draft on the editing page, which is not conceptually different from the saved draft. Because they need to review the post, they need to submit it again, it is difficult to

Use Drupal Form Hooks to customize the Form

The Hooks (hook) that is most commonly used in Drupal usage or development is hook_form_alter. The content creation, contact form, Menu, and, form hooks are used for user registration.Drupal Form HooksThe hook in hook_form_alter is directly replaced with your module name. The code is as follows:Copy code /*** Implements hook_form_alter ().*/Function custom_form_alter ( $ form, $ form_state, $ form_id ){Switch ($ form_id ){Case 'user _ profile

Drupal, what's the deal?

Drupal $Id $ ? /** ? * @file ? *administration page callbacks for annotate module. ?*/ ? /** ? *form Builder. Configure annotations. ?* ? * @ingroup Forms ? * @see System_settings_form (). ?*/ function Annotate_admin_settings () { ?//get an array of node types with internal names as keys and ?//"friendly names" as values. ?//e.g.,array (' Page ' = ' page ', ' story ' = ' story ') ? $options = node_get_types (' names '); ? ? $form [' annotate_node_typ

Drupal progress bar

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

Drupal and Module

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

Specifies the path for the Drupal imce module to store images.

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

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,

Total Pages: 15 1 .... 11 12 13 14 15 Go to: Go

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.