欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

drupal

shiping1 的头像

自定义的form 表单元素都是放在 div 里面 请问 如何在table 里面

可以用 $form['#prefix'] = '<table class="myclass">';
  $form['#suffix'] = '</table>';



也可以用theme方法

普通分类: 
shiping1 的头像

drupal 让餐模块 和 模板文件

<?php

function food_order_form(&$form_state, $node)
{
    $form['order'] = array(
        '#type' => 'fieldset',
        '#title' => '订餐:' . $node->title,
    );

    $form['order']['order_qty'] = array(
        '#type' => 'textfield',
        '#title' => '数量',
        '#maxlength' => 3,
        '#size' => 10,
        '#default_value' => 1,
    );  

    $form['order']['ship_address'] = array(
        '#type' => 'textfield',
        '#title' => '送餐地址',
普通分类: 
shiping1 的头像

一个网站是不是用drupal 做的,怎么看的出来啊

最简单的方法就是装个Chrome浏览器的Drupal插件
普通分类: 
shiping1 的头像

drupal 要会的模块

Views,Panels,DS,Rules,WebForm这几个我认为都需要会
普通分类: 
shiping1 的头像

See http://drupal.org/SA-CORE-2013-003 for information about the recommended .htaccess file which should be added to the sites/default/files directory to help protect against arbitrary code execution.

 

普通分类: 
shiping1 的头像

Drupal 7 中文安装教程

普通分类: 
shiping1 的头像

Drupal 6 中文安装教程 有大用

普通分类: 
shiping1 的头像

如何安装中文汉化包 中文 安装 汉化 我自己的方法 有大用 有大大用

https://localize.drupal.org/translate/languages/zh-hans    汉化包地址

https://drupal.org/node/11461/release  汉化文件夹地址
https://drupal.org/node/265348 汉化文件夹地址

安装中文汉化包 只需要将汉化包的相应目录复制到drupal的对应目录
profiles\default\translations 文件夹下面
d7是(\profiles\standard\translations)
然后通过浏览器来安装 drupal

普通分类: 
shiping1 的头像

drupal 中文包下载 及安装方法

普通分类: 
shiping1 的头像

如何汉化日历控制器

普通分类: 
shiping1 的头像

验证注册的用户是否存在

普通分类: 
shiping1 的头像

Adding Custom Rules Conditions in Drupal 7 增加自定义规则条件

普通分类: 
shiping1 的头像

Commerce Checkout Progress 购买产品一步步的步骤

Commerce Checkout Progress
它实现了 购买产品一步步的步骤
https://drupal.org/project/commerce_checkout_progress
普通分类: 
shiping1 的头像

平忠判断用户今天第一次登录的方法 通过 accesslog 表 有大用

本来是想通过 $user->login(判断是否第一次登录,
但是假如用户昨天并没有退出,换句话说,今天不需要重
新登录的话 那么 $user->login 的数据----也就是登录时间
就没有变化,所以用 $user->login 是不对的)
只好用rules中的 user is going to view a page 事件
而不是使用 用户已登录 事件 



//这是判断用户的每天的第一次登录 的 rule 条件
function judge_first_login_everyday()
{
    global $user;
    $todayStart = strtotime(date('Y-m-d'));
    //假如是未登录用户的话 就返回假
    if($user->uid<=0)
    {
        return false;
    }
普通分类: 
shiping1 的头像

drupal quicktabs mouseover instead of click quicktabs 鼠标放上去事件代替鼠标点击发生的事件

普通分类: 
shiping1 的头像

Chrome打开https站点提示”您与 www.google.com 之间的安全连接目前正受到干扰”

普通分类: 
shiping1 的头像

登录后 返回登录前的页面 通过 url中 destination来实现

登录后 返回登录前的页面 通过 url中 destination来实现
可是 当登录前的页面是 首页时 destination的值为空
可以通过 destination=<front> 来实现

Note that ?destination=<front> is 一个完全有效 and working parameter (destination goes through url()).

普通分类: 
shiping1 的头像

how to save temporary session variables 保存到session

how to save temporary session variables

How to I define and use session variables in drupal so that I can store temporary information while browsin

普通分类: 
shiping1 的头像

平忠自定义规则 rules rule 有大用

shipingzhongcustomrules.info文件
; $Id$
name = Shipingzhong custom rules
description = Shipingzhong Custom rules
core = 6.x
package = custom
project = "shipingzhongcustomrules"



shipingzhongcustomrules.module文件
//它里面没有内容


shipingzhongcustomrules.rules.inc文件

<?php

function shipingzhongcustomrules_rules_action_info() {
  $actions = array(
    'add_sort_value_action' => array(
      'label' => '给课程和教程的排序字段赋初始值',
普通分类: 
shiping1 的头像

drupal 中 rules 每天登录签到

普通分类: 
shiping1 的头像

Drupal 8 即将到来

普通分类: 
shiping1 的头像

使用钩子hook_user_login响应Drupal用户登录事件

使用钩子hook_user_

普通分类: 
shiping1 的头像

如何给drupal7添加51.la和cnzz.com的统计代码?

普通分类: 
shiping1 的头像

怎样让用户不要自动登录?

普通分类: 
shiping1 的头像

drupal session timeout

普通分类: 
shiping1 的头像

如何判断 每天都登录呢



感觉 login 是非要 登出后 然后 再登入
就是login




access, 基本上每打开一个页面就更新一次,login只是登录的时候才更新一次
兄弟 
这里我有个问题 
我如果 今天登录 的话 第二天 第三天  以后 永远也不会登录了
我如何判断 每天都登录呢


是因为你没有设置session timeout吧?
不然你就手工logout啊
普通分类: 
shiping1 的头像

drupal 浏览历史记录

追踪Drupal用户的浏览历

普通分类: 
shiping1 的头像

格式化时间

格式化时间
function phptemplate_comment_submitted($comment) {
    return t('!datetime — !username', array (
        '!username' => theme('username', $comment),
        '!datetime' => format_date($comment->timestamp)
    ));
}

/**
 * Returns the themed submitted-by string for the node.
 */
function phptemplate_node_submitted($node) {
    return t('!datetime — !username', array (
        '!username' => theme('username', $node),
        '!datetime' => format_date($node->created),
        
    ));
}
普通分类: 
shiping1 的头像

drupal 批量添加用户

如果想批量添加用户 用节点导入功能()吧!!
用 user_import (user import ) 模块  好像不太好,因为它对中文不友好
普通分类: 
shiping1 的头像

drupal 恶梦的开始 在中国请不要再学习 drupal [复制链接]

普通分类: 

页面

Subscribe to RSS - drupal