drupal lms

Read about drupal lms, The latest news, videos, and discussion topics about drupal lms from alibabacloud.com

Drupal Study Notes (4)

1. Add JSONRPC Server Wget http://ftp.drupal.org/files/projects/services-6.x-2.4.tar.gz Tar xvf Services-6.x-2.4.tar.gz Wget http://ftp.drupal.org/files/projects/jsonrpc_server-6.x-1.3.tar.gz Tar xvf Jsonrpc_server-6.x-1.3.tar.gz 2. Call Drupal JSONRPC service with Javascript

Drupal 7 website building learning note (5): Elements in the QuickTabs module cannot overflow

element box. Hidden The content is trimmed and the rest is invisible. Scroll The content is trimmed, but the browser displays a scroll bar to view other content. Auto If the content is trimmed, the browser displays a scroll bar to view other content. Inherit Specifies that the overflow attribute value should be inherited from the parent element. QuickTabsThe outer block of the module usesoverflow: hiddenAttribute When the

PHP File Upload form from drupal code

Example of drupal File Upload form Copy 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_s

URL rewriting using drupal code

After url_alter is enabled, two hooks are implemented: hook_url_inbound_alter and hook_url_outbound_alter. they are used to rewrite the URL and must be implemented by the third-party URL rewriting module. Drupal The following is an example: The code is as follows: /* * Convert the pseudo address to the original address (url_alter) */ Function example_url_inbound_alter ( $ path, $ original_path, $ path_language) { If (preg_match ('| ^ articl

Drupal Code implements URL rewriting

The following are examples of implementations: Copy the Code code as follows: /** Pseudo address Forwarding address (url_alter)*/Function Example_url_inbound_alter ( $path, $original _path, $path _language){if (Preg_match (' |^article (/.*) | ', $path, $matches)) {$path = ' node '. $matches [1];}}/** Original address pseudo address (url_alter)*/Function Example_url_outbound_alter ( $path, $options, $original _path){if (Preg_match (' |^node (/.*) | ', $path, $matches)) {$path = ' article '. $

Drupal sends an object through cURL Post

As we all know, PHP cURL extensions can be used to simulate form submission. Drupal has the drupal_http_request function to execute an HTTP request. It can send a file via POST, but it is not as convenient as cURL. Here we will mainly explain how to Post a file to a remote server address in Drupal.Webpage Form The code is as follows:Copy code The preceding form contains the text box, password, check box, and file submission.Drupal cURL simulate

Steps for adding a title attribute to Views in drupal configuration

Views in Drupal provide many functions by default, and we usually use some simple functions.Here is a problem. We usually add a title field in Views to make a list, but the title attribute is not added by default. I just studied it, the discovery can also be achieved through configuration.This still requires us to be familiar with Views.1. Originally, we only had the title and date fields. Here we need to add an nid field.2. Click the Title field. Do

Drupal 7 Common Database SQL operations (update, delete, query)

One of the new functions provided by Drupal 7 is the ability to use the Query Builder and Query Objects Query Builder to construct Query Objects without the need to write original SQL statements in the code, one is to improve code readability, and the other is to be compatible with all databases.Insert a single record The code is as follows: Copy code Db_insert ("table"

Discussion on the technology of no-refresh uploading data in Drupal

Discussion on the technology of no-refresh uploading file in Drupal

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 core path leakage Vulnerability

Release date: 2012-05-10Updated on: Affected Systems:Drupal 7.xDescription:--------------------------------------------------------------------------------Bugtraq id: 53454 Drupal is an open source content management platform. The path leakage vulnerability exists in Drupal versions earlier than 7.14, and the index of the installation path is leaked through the error message. the q [] parameter of php, des/

How to add modules in Drupal with inexplicable errors (often when many modules exist) _ PHP Tutorial

The solution to adding modules in Drupal is confusing (usually when many modules exist ). The status is as follows: 1. after you click the "warranty" button, the page cannot be properly displayed and a blank page appears. 2. refresh the page and issue that many items in the navigation are no longer available, you cannot click another item. The status is as follows:1. after clicking the "warranty" button, the page cannot be displayed normally and a bl

PHP file upload form from drupal code _ PHP Tutorial

The PHP file upload form is taken from the drupal code. The following code copies an example of a drupal file upload form: functionupload_form () {$ formarray (); Ifthis # attributeisnotpresent, uploadwillfailonsubmit $ form [# attri drupal file upload form The code is as follows: Function upload_form (){$ Form = array ();// If this # attribute is not present,

Create your own hooks for Drupal module development

Drupal allows third-party modules to create their own hooks. In general practice, there are two types of hooks you may want to create, one is the content modification class hook, the other is the interception class hook. Drupal's hook system allows interaction with modules and changes the logic of other modules.... Drupal allows third-party modules to create their own hooks. In general practice, there are t

Drupal automatically retrieves external images and saves the function-PHP source code

Sometimes, when publishing content, We need to extract external images and store them on our servers. This can avoid affecting our website if the external images cannot be opened, now let's share the functions that Drupal implements this function. Sometimes, when publishing content, We need to extract external images and store them on our servers. This can avoid affecting our website if the external images cannot be opened, now let's share the functio

Drupal Series website settings file settings. php contains the shared part

In the past, when setting the MediaWiki website, we put some common modifications in CommonSettings. php, and then LocalSettings. add the last line in php: require_once (usrlocalapache2htdocscommonCommonSettings. php), so that a series of websites can share CommonSettings. php File In the past, when setting the MediaWiki website, we put some common modifications in CommonSettings. php, and then LocalSettings. add the last line in php: require_once ("/usr/local/apache2/htdocs/common/CommonSetting

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.