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

这里的技术是共享的

You are here

drupal

shiping1 的头像

front page 模块 module 登录用户 和非登录用户 不同的角色 不同的首页 drupal different index pages different role 自己亲自实践 chatgpt 有大用

front 模块 绝对可以实现 登录用户 和非登录用户 不同的角色 不同的首页
front-6.x-2.0-rc1 这个版本 可以实现,自己亲自实践的
1)用front (front page) 模块来实现  不同的用户 不同的首页
https://drupal.org/project/front

安装好它后
1)admin/settings/front 进行设置
2)

普通分类: 
shiping1 的头像

Database tweaks 模块作用

普通分类: 
shiping1 的头像

drupal 最下面 如何显示 sql查询query 内存占用

devel
Devel node access

这两个模块要开启
同时 进 admin/settings/devel 设置
普通分类: 
shiping1 的头像

Warning: MySQL server has gone away query: INSERT INTO watchdog

普通分类: 
shiping1 的头像

Warning: MySQL server has gone away query: INSERT INTO watchdog

普通分类: 
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

普通分类: 

页面

Subscribe to RSS - drupal