drupal for dummies

Learn about drupal for dummies, we have the largest and most updated drupal for dummies information on alibabacloud.com

Two methods for Drupal Overlay to apply to a specified page

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.

Solve the problem of invalid margin-top in Drupal Overlay.

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

Configure the clean URL of Drupal

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

Drupal template naming rules

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

Image Upload in Drupal form

1. Create a URL link to form $ Items ['qianfeng/add'] = array ('Title' => T ('add information '),'Page callback' => 'drupal _ get_form ','Page arguments '=> array ('qianfeng _ add', 1 ),'File' => 'videocloud _ qianfeng. pages. inc ','Access callback' => 'user _ is_logged_in ','Weight' =>-10,'Type' => menu_callback,); Create form Element $ Barcode_image indicates the image path. Function qianfeng_add ($ form, $ form_state, $ barcode_id ){ If (! Empty

Drupal 6 clean URL configuration on Windows XP and Apache 2.2 (Clean URL is implemented here)

/htdocs"Servername localhostDirectoryindex index. php Jeff in Seattle » Login or register to post comments Very helpful guideshaunak-March 13,200 9- Very helpful post. I wowould also like to add that you also may have to set the "AllowOverride" directive to "all" [around line 224 in the httpd. CONF file] to allow directives in. htaccess to work. Around that line, you can see, Options followsymlinksAllowOverride allOrder deny, allowDeny from allSatisfy all --Cheers,Shaunak. Log

Install the Drupal devvel Module

; "src =" http://s3.51cto.com/wyfs02/M02/4C/54/wKioL1Q7gc-w4UkRAATvFu5Auxk992.jpg "style =" float: none; "Title =" devel_settings.jpg "alt =" wKioL1Q7gc-w4UkRAATvFu5Auxk992.jpg "/> 650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/4C/54/wKioL1Q7gdTSO0lbAAIzcGqLS4A410.jpg "style =" float: none; "Title =" devel_setting_02.jpg "alt =" wkiol1q7gdtso0lbaaizcgqls4a410.jpg "/> VII. DPM () Functions $ Node = node_load (1); DPM ($ node ); 650) This. width = 650; "src =" http://s3.

Drupal installs the CKEditor text editor, and configures the image upload function method two

Drupal Install CKEditor text Editor, and configure the image upload function method one describes the CKEditor installation and configuration method, in fact, there is another new method, not IMCE module. But need Ckfinder JS Library, can go to http://ckfinder.com/download download, download and put to Ites\all\modules\contrib\ckeditor folder,Then go to admin/config/content/ckeditor/edit/full and configure it.It's all right.Drupal installs the CKEdito

Everybody, talk about Drupal.

Let's talk about Drupal.

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

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

In Drupal, general how to avoid the association of Fields

In Drupal, how to handle the association of a field in general

Configure apachesolr in ubuntu and integrate the Drupal search api solr module

Install tomcat: The code is as follows:Copy code Apt-get updateApt-get install tomcat6 tomcat6-admin Download and install apachesolr: The code is as follows:Copy code Wget http://mirrors.cnnic.cn/apache/lucene/solr/4.7.2/solr-4.7.2.tgzTar-vxf solr-4.7.2.tgzMkdir/opt/solrSolr-4.4.0/example/solr/*/opt/solr/Cp solr-4.4.0/example/webapps/solr. war/opt/solr/Cp-r solr-4.4.0/example/lib/ext/*/var/lib/tomcat6/shared/ Edit the apachesolr configuration file: The code is as follows:Copy code

Drupal Module Advanced application authcache-dynamic loading content Tutorial

Related article: Drupal module explain-authcache caching principle detailed tutorial This article is about how to implement the personalized content of a cached page if you modify Authcache's core code.Advanced application authcache-Dynamic loading content tutorial "/>Common cache, more or less to be personalized processing, such as user name display, dynamic loading of user information, user friends and so on.In general, this kind of local personali

Drupal adds modules to the inexplicable error of the solution (often appear in the module more time) _php skills

The status is as follows:1, click the Security button, can not go to the normal page, a blank page appears; 2, refresh the page, issued a number of navigation items have not been, but also the existence of the item can not be clicked into the normal page. Tested a number of times did not find any problems, many times reload, test, finally appeared a error page hint: "Drupal Maximum execution time seconds exceeded database In/mysqli.inc", A look at thi

Small Drupal database backup and large site Mysql backup strategy sharing _mysql

Small and medium site simple backup strategy Based on Drupal's small and medium line website, we can use the Backup_migrate module, which provides the function of the regular backup, the backup time, how many backup and so on, and so on, after setting up, the regular cron can backup successfully. The General Drupal Station, we only need to use SVN can, on the server side, we put back the good data to SVN, we can achieve the purpose of the backup. Bec

Drupal installation Process

every problem, no need to adjust, but the current host space because of the use of php5.1.x, so some features are not supported or changed, including: sites/default/settings.php file in the $base_url, because the php5.1.x environment in IE browser can not get $_server[' http_host '] variables, so there will be problems, and changed to: $base _url = isset ($_server[' http_host '))? ' http://'. $_server[' Http_host ']: ' http://imysql.cn '; Another place is the Str_replace function, and the re

Drupal V7.3.1 framework improperly processing results in SQL injection

this loophole was found in 2014, in the spirit of learning, I will do a detailed analysis. Although the vulnerability is early, the new version of Drupal has even changed the way the framework is organized. However, the analysis of the vulnerability is not affected at all. This is a classic use of PDO, but improperly handled, resulting in SQL statement stitching resulting in injection problems. Judging from this and many of the loopholes I've seen in

Drupal to database operations

;fields (Array (' field2 ' = 10))->execute ();Select$query = db_select (' comment ', ' C ')->fields (' C ', array (' Subject ', ' name '))->fields (' n ', Array (' title '))->extend (' Pagerdefault ')->limit (5)->condition (' N.type ', Array (' article '), ' in ')->orderby (' c.cid ', ' DESC ');$query->join (' node ', ' n ', ' N.nid = C.nid ');$statement = $query->execute ();$query = Db_select (' node ', ' n ')->fields (' n ', Array (' title '))->distinct ();$query->join (' Taxonomy_index ', ' t

Image upload in Drupal form

["Barcode_image"];if (!empty ($file [' name '])) {$path = "./sites/default/files/barcode/";if (!file_exists ($path)) {mkdir ($path, 0777,true);}$name = MD5 (Time (). Rand (1,10000));$fname = $file [' name '];$ftype =explode ('. ', $fname);$picName = $path. $name. '. $ftype [1];if (!in_array ($ftype [1], $TP)) {Drupal_set_message ("The picture is in the wrong format, the correct format (gif,jpg,png,bmp)!" ", ' warning ');return false;}if (Intval ($file [' size ']) >2097152) {Drupal_set_message ("

Arbitrary File Upload Vulnerability in Drupal Live CSS Module

Release date:Updated on: 2013-01-22 Affected Systems:Drupal Live CSS Module 7.xDrupal Live CSS Module 6.xDescription:--------------------------------------------------------------------------------Bugtraq id: 57436The Live CSS module can present and edit the LESS style sheet in real time. Live CSS 7. x-2.x allows you to upload files with any extension to a folder in webroot, which can cause arbitrary PHP code execution by uploading malicious PHP scripts. The "administer CSS" permission is requ

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.