Skip to main content
  • 博客
    • div+css 博客
    • javascript 博客
      • vue 博客
    • php 博客
      • 微信 博客
  • php
    • drupal
    • composer
    • thinkphp
    • onethink
    • laravel
    • Swoole
    • dedecms
    • magento
    • smarty
    • ecshop
    • zencart
    • joomla
    • discuz
    • wordpress
    • yii
    • 微信
    • 抖音
    • ci
    • weiphp
    • destoon
  • python
    • plone
  • apache
  • nginx
  • cache
    • memcache
    • redis
  • div+css
  • javascript
    • jquery
    • typescript
    • Vue.js
    • Amaze
    • zepto
    • react
    • underscore
    • backbone
    • angular
    • lodash
    • layui
    • js特效
  • vbscript
  • photoshop ai
  • sql
    • mysql
    • mssql
    • oracle
  • regular
  • node.js
  • 腾讯开放平台
  • dreamweaver
  • linux
  • seo
  • app
  • asp及asp.net
  • flash
  • iis
  • java
  • mac
  • wap
  • windows
    • dos
    • 打印机
  • 其它
  • 浏览器
  • 网络
  • AD域 (exchange)
  • 虚拟机
  • AC
  • ai
  • 简写翻译

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

这里的技术是共享的

个人技术网_前端_后台_php_div_css_linux_javascript_seo 个人技术网_前端_后台_php_div_css_linux_javascript_seo

搜索表单

用户登录

  • 重设密码

You are here

首页 › php

drupal

shiping1 的头像

Drupal 文件与目录安全性详解(附权限和所有权修正脚本)

星期三, 2013-09-25 00:37 — shiping1
普通分类: 
drupal
  • Read more about Drupal 文件与目录安全性详解(附权限和所有权修正脚本)
shiping1 的头像

drupal 安全要看的东西

星期三, 2013-09-25 00:33 — shiping1
普通分类: 
drupal
  • Read more about drupal 安全要看的东西
shiping1 的头像

禁用 Database Logging 模块

星期二, 2013-09-24 20:04 — shiping1

禁用 Database Logging 模块
Database Logging 模块会让Drupal的页面变得比较慢,因此对于生成服务器上,最好关闭Database Logging模块。

普通分类: 
drupal
  • Read more about 禁用 Database Logging 模块
shiping1 的头像

drupal Warning: Incorrect key file for table './wangruokfqdcn/sessions.MYI'; try to repair it query: DELETE FROM sessions WHERE timestamp < 1379821112 in /home/wwwroot/wangruo_kfqd_cn/public_html/includes/database.mysql.inc on line 136

星期二, 2013-09-24 19:33 — shiping1

Warning: Incorrect key file for table './wangruokfqdcn/sessions.MYI'; try to repair it query: DELETE FROM sessions WHERE timestamp < 1379821112 in /home/wwwroot/wangruo_kfqd_cn/public_html/includes/database.mysql.inc on line 136

平忠仔细查证 是 sessions表可能有点问题  我把sessions表drop下.然后 重建 create一个sessions表 就可以了

但是sessions表为什么有问题 就不知道了

 

普通分类: 
drupal
  • Read more about drupal Warning: Incorrect key file for table './wangruokfqdcn/sessions.MYI'; try to repair it query: DELETE FROM sessions WHERE timestamp < 1379821112 in /home/wwwroot/wangruo_kfqd_cn/public_html/includes/database.mysql.inc on line 136
shiping1 的头像

Varnish构建高负载Drupal网站 – 高级篇

星期二, 2013-09-24 16:09 — shiping1
普通分类: 
drupal
  • Read more about Varnish构建高负载Drupal网站 – 高级篇
shiping1 的头像

Incorrect key file for table sessions.MYI

星期二, 2013-09-24 16:02 — shiping1

普通分类: 
drupal
  • Read more about Incorrect key file for table sessions.MYI
shiping1 的头像

Delete all records from Drupal's session table (drupal.sessions)

星期二, 2013-09-24 16:01 — shiping1

普通分类: 
drupal
  • Read more about Delete all records from Drupal's session table (drupal.sessions)
shiping1 的头像

使用模板文件

星期二, 2013-09-24 09:05 — shiping1

操作:使用模板文件

普通分类: 
drupal
  • Read more about 使用模板文件
shiping1 的头像

使用Drupal Theme Developer模块

星期二, 2013-09-24 09:04 — shiping1

这里有一个模块,使设计Drupal简单得多。这是Theme Developer主题开发模块。它可以让你点击你的网站上的几乎任何部分,看看它是如何构建的。

普通分类: 
drupal
  • Read more about 使用Drupal Theme Developer模块
shiping1 的头像

drupal 管理页面 点性能 进去 使用页面压缩的注意事项

星期日, 2013-09-22 02:41 — shiping1
默认情况下, 为了节省带宽drup
普通分类: 
drupal
  • Read more about drupal 管理页面 点性能 进去 使用页面压缩的注意事项
shiping1 的头像

西部数码 有点变态 搜索关键词它就成gbk

星期日, 2013-09-22 02:02 — shiping1

第一种方法 这种方法 中文不会突出显示 即不会有 strong

普通分类: 
drupal
  • Read more about 西部数码 有点变态 搜索关键词它就成gbk
shiping1 的头像

warning: Parameter 2 to node_limit_interval_node_limit_applies_in_context() expected to be a reference, value given

星期日, 2013-09-22 02:01 — shiping1

warning: Parameter 2 to node_limit_interval_node_limit_applies_in_context() expected to be a reference, value given
可能是由于开启 西部数码的php.ini的缘故 具体是什么原因 暂时还不知道

普通分类: 
drupal
  • Read more about warning: Parameter 2 to node_limit_interval_node_limit_applies_in_context() expected to be a reference, value given
shiping1 的头像

drupal views 函数

星期六, 2013-09-21 14:17 — shiping1

hook_views_pre_view

hook_views_pre_render  https://api.drupal.org/api/views/docs%21docs.php/function/hook_views_pre_render/6

 hook_views_data_alter  https://api.drupal.org/api/views/docs%21docs.php/function/hook_views_data_alter/6

 

普通分类: 
drupal
  • Read more about drupal views 函数
shiping1 的头像

drupal 默认主题 info 文件

星期六, 2013-09-21 12:42 — shiping1
普通分类: 
drupal
  • Read more about drupal 默认主题 info 文件
shiping1 的头像

drupal 模块PHP filter

星期六, 2013-09-21 12:07 — shiping1
普通分类: 
drupal
  • Read more about drupal 模块PHP filter
shiping1 的头像

Drupal中文搜索问题解决办法

星期六, 2013-09-21 10:54 — shiping1

中文搜索问题解决办法

普通分类: 
drupal
  • Read more about Drupal中文搜索问题解决办法
shiping1 的头像

解决了Drupal的中文搜索问题

星期六, 2013-09-21 10:47 — shiping1
普通分类: 
drupal
  • Read more about 解决了Drupal的中文搜索问题
shiping1 的头像

drupal 几个搜索模块

星期六, 2013-09-21 10:32 — shiping1

普通分类: 
drupal
  • Read more about drupal 几个搜索模块
shiping1 的头像

drupal mysql mysqli 的区别

星期六, 2013-09-21 09:22 — shiping1

mysql

mysqli 的区别  (可能是持久链接 持续时间长消耗的资源会多,具体要抽时间看下)

什么时候 google 一下

普通分类: 
drupal
  • Read more about drupal mysql mysqli 的区别
shiping1 的头像

使用视图 Views Excel Export 模块,输出views列表为excel格式 有大用 有大大用 有大大大用

星期五, 2013-09-20 13:39 — shiping1

普通分类: 
drupal
  • Read more about 使用视图 Views Excel Export 模块,输出views列表为excel格式 有大用 有大大用 有大大大用
shiping1 的头像

drupal views excel 的使用

星期五, 2013-09-20 13:34 — shiping1

当然要先安装相应的模块

 

普通分类: 
drupal
  • Read more about drupal views excel 的使用
shiping1 的头像

我自己开发的模块功能

星期五, 2013-09-20 11:47 — shiping1

<?php
 

function shipingzhongcustom_perm() {
            //return array('access test001 content');
            return array('batch add multi node','batch add bianjiwritearticle','batch add browsernumreport','batch add shoululingreport','access jingjia zong jisuan','access kefu zong jisuan');
}

//修改 menu hook 能够批量添加多个节点的权限
function shipingzhongcustom_menu_alter(&$items) {
  // Example - disable the page at node/add
  //var_dump($items);var_dump("DDDDDDDd");
  $items['multi_node_add']['access callback']='user_access';

普通分类: 
drupal
  • Read more about 我自己开发的模块功能
shiping1 的头像

drupal 错误级别 Write E_ALL compliant code

星期四, 2013-09-19 22:57 — shiping1

调整错误报告级别

Drupal 6.x版本中,在正式运行的站点中,忽略 E_NOTICE,E_STRICT,和 E_DEPRECATED 的notice级别错误。想要查看所有PHP开发或测试网站上的错误,你可以更改includes/common.inc文件。

普通分类: 
drupal
  • Read more about drupal 错误级别 Write E_ALL compliant code
shiping1 的头像

drupal 设置隐藏字段

星期四, 2013-09-19 22:15 — shiping1

来自 http://addoa.com/blog/how-make-optionally-hide-node-titles-drupal-using-cck

 

普通分类: 
drupal
  • Read more about drupal 设置隐藏字段
shiping1 的头像

drupal 查看变量

星期四, 2013-09-19 22:10 — shiping1

I would put dsm($vars) in a preprocess function in template.php. Just remember if you put it in phptemplate_preprocess_page it will show you the available variables for the page.tpl.php. Likewise if you put it in phptemplate_preprocess_node it will show you the available variables for node.tpl.php.

If you want to see the available variables from a template file, you can also use get_defined_vars(). Use something like:

 var_dump(get_defined_vars());
 or
 dsm(get_defined_vars());

普通分类: 
drupal
  • Read more about drupal 查看变量
shiping1 的头像

drupal 创建自定义的变量

星期四, 2013-09-19 22:09 — shiping1

在父主题 或本主题中的
template.php 或 theme-settings.php
文件中
主题名_preprocess_page()函数里创建

普通分类: 
drupal
  • Read more about drupal 创建自定义的变量
shiping1 的头像

我自己的 模板建议hook_preprocess_page 例子 预处理函数

星期四, 2013-09-19 21:48 — shiping1

下面是drupal6的例子
//-- Delete this line if you want to use this function
function shipingzhong_preprocess_page(&$variables, $hook) {
  //$vars['sample_variable'] = t('Lorem ipsum.');

  // To remove a class from $classes_array, use array_diff().
  //$vars['classes_array'] = array_diff($vars['classes_array'], array('class-to-remove'));
   //var_dump(array_keys($vars));
   if(arg(0)=='taxonomy' && arg(1)=='term')
   {
         if(is_numeric(arg(2)))
         {
             

普通分类: 
drupal
  • Read more about 我自己的 模板建议hook_preprocess_page 例子 预处理函数
shiping1 的头像

Drupal模板建议template suggestion 顺序

星期四, 2013-09-19 21:41 — shiping1

Drupal模板建议template suggestion(上) - 基本概念

上图来自著名的好莱坞电影get smart,我觉得用强大和灵活这类词汇并不能完全体现Drupal的魅力,用smart这个词也许更合适。我打算花两天时间为大家介绍一下能够充分体现samrt特点的一个重要的Drupal特性——模板建议。

Drupal的模板建议(template suggestion)在Drupal主题开发工作中经常遇到,本文旨在帮助大家厘清这一重要的概念。

模板建议是基于Drupal中已经存在的.tpl.php模板文件的替换模板。这个定义主要有两个要点:(1)模板建议是.tpl.php模板;(2)模板建议用于替换已经存在的.tpl.php模板。

通过这个定义可以引申出一个问题:既然Drupal中已经有存在的模板了,那么我们为什么还要替换它们?这是因为我们经常需要在不同的条件下使用模板的不同变体。让我来举一个block.tpl.php模板的例子来说明。

普通分类: 
drupal
  • Read more about Drupal模板建议template suggestion 顺序
shiping1 的头像

drupal本身的模板建议在 theme.inc 文件 顺序

星期四, 2013-09-19 21:39 — shiping1

可以通过 devel_theme 看到它
drupal本身的模板建议在 theme.inc 文件


模板建议网站
http://stackoverflow.com/questions/6792712/drupal-7-custom-content-type-and-templates
http://highrockmedia.com/blog/creating-custom-content-type-page-templates-drupal-php
http://drupal.org/node/17565 (有大用)


 

普通分类: 
drupal
  • Read more about drupal本身的模板建议在 theme.inc 文件 顺序
shiping1 的头像

drupal中覆写可主题化的输出

星期四, 2013-09-19 21:30 — shiping1

drupal中覆写可主题化的输出

由 g089h515r806 于 星期六, 2008-08-30 21:28 发表

  • drupal6
分享到:

原文:http://drupal.org/node/173880

普通分类: 
drupal
  • Read more about drupal中覆写可主题化的输出

页面

  • « 第一页
  • ‹ 前一页
  • …
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 下一页 ›
  • 末页 »
Subscribe to RSS - drupal
Powered by Drupal

友情链接

校园好文网

 www.shipingzhong.cn  个人技术网_前端_后台    备案号:苏ICP备18010659号-2