Phát triển Drupal module

Comments

cho em hỏi về cài DrupalApis

Anh ơi cho em hoi : Em cài Drupal ban 5.3 giai nen va copy noi dung vao thu muc myStie (xóa folder 5.3 di) cai dat chay binh thuong(http:\\localhost\mySite)nhung muon cai them doc de tham khao nhu anh huong dan luc dat shortname va long name va duong dan thu muc thi phai dat nhu the nao cho dung vi no toan bao lỗi(Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 383646 bytes) in C:\AppServ\www\mySite\includes\common.inc on line 480) va trang API reference van la trang trắng

Lỗi phát sinh do

- Nên gõ tiếng Việt đủ dấu.
- Lỗi phát sinh do thiếu bộ nhớ PHP. Nếu test ở localhost thì XAMPP hỗ trợ rất tốt.

Anh ơi cho em hỏi

Em mới làm quen với drupal ! Em cài bản 6,1
Em cài thêm cái Advanced Forum nhưng sao nó ko dc
khi em add theme vào nó không nhận là sao hả anh
Em làm theo huong dan tạo theme trong quyen sách : Pro_Drupal_Development
Mong anh trả lời giúp em

Quyển đó viết dựa

Quyển đó viết dựa trên Drupal 5. Cho đến thời điểm hiện tại, các module quan trọng chưa được port sang Drupal 6 hoàn toàn.

lính mới tìm hiểu vể Drupal

mình đang làm đồ án thiết kế web thương mại điện tử vế lỉnh vực du lịch, yêu cầu sử dụng Drupal, mình chưa biết bắt đầu từ đâu, có ai giúp mình được kô(trước tiên là thầy yêu cầu tìm hiểu Drupal rồi báo cáo lại cho thầy)

Cách tạo 1 node module

Chào Thể Hồng và các bạn đồng môn, mình mới tìm hiểu về Drupal mong được sự giúp đỡ.
Hỏi:
1. Có thể tạo menu dạng MENU_NORMAL_ITEM, MENU_LOCAL_TASK ko?
2. Chỉ sử dụng các trường title và body của node, vậy có cần tạo file .install ko? Và nếu có trong file này cần có những thông tin gì?
3. Gắn module tracker vào node module được ko? Và nếu được thì cách thực hiện như thế nào?
Rất cảm ơn nếu được sự giúp đỡ của mọi người
V.My

lỗi khi làm module mẫu

Lỗi báo như sau:
Fatal error: Cannot unset string offsets in C:\xampp\htdocs\drupal5\includes\menu.inc on line 1076

Code của em viết:

<?php
/*
 * Declare function user permitsion
 *
 */
function TestModule_perm() {
    return array(
        
'TestModule_Viewer',
        
'TestModule_Manager'
    
);
 }
 
/*
 * Declare menu display item
 *
 */
function TestModule_menu() {
    return array(
        
'path' => 'TestModule/Viewer',
        
'title' => 'Test Module by toila.net',
        
'access' => user_access('TestModule_Viewer'),
        
'callback' => 'TestModule_Viewer'
    
);
}

/*
 * Declare menu display item
 *
 */
function TestModule_Viewer() {
    return 
'Hello';
}

Không biết sai chỗ nào hở anhCám ơn anh đã đọc?>

Giá trị trả về không đúng ở hook_menu

Vấn đề bạn trả về cấu trúc không đúng cho hook_menu. Phải có dạng như sau:

<?php

function TestModule_menu() {
  
$items[] = array(
        
'path' => 'TestModule/Viewer',
        
'title' => 'Test Module by toila.net',
        
'access' => user_access('TestModule_Viewer'),
        
'callback' => 'TestModule_Viewer'
    
);

    return 
$items;
}

?>

Bạn sử dụng Drupal 5? Nếu là 5 thì phải có tham số $may_cache nữa nhé.

Thế Hồng

Mình đã enable cái module

Mình đã enable cái module Forums
Sau đó mình disable đi và muốn cài cái advanced forum nhưng không thể enable được nó là vì sao vậy bạn thehong ?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <sup> <br> <p> <h3>
  • Lines and paragraphs break automatically.
  • Link to content with [[some text]], where "some text" is the title of existing content or the title of a new piece of content to create. You can also link text to a different title by using [[link to this title|show this text]]. Link to outside URLs with [[http://www.example.com|some text]], or even [[http://www.example.com]].
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo]. PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.