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

这里的技术是共享的

You are here

drupal

shiping1 的头像

Drupal的features功能

普通分类: 
shiping1 的头像

drupal feature的功能

Drupal视频教程:Features模块在Drupal项目中的应用!-Web编程技术交流网
来自 http://www.lamp99.com/drupal-features-modules.html 有大用


 


普通分类: 
shiping1 的头像

drupal的node页加动作的问题。

drupal的node页加动作的问题。

赞成!
0
否决!

请问各位用过

普通分类: 
shiping1 的头像

drupal论坛想设置版主怎么做呢?

drupal论坛想设置版主怎么做呢?

赞成!
0
否决!

drupal论坛想设置版主怎么做呢?

普通分类: 
shiping1 的头像

drupal 搜索 大小写不敏感

drupal 搜索 大小写不敏感

今天找到一个用于search和replace的模块Scanner,安装试了一下
普通分类: 
shiping1 的头像

Answers answers 模块 已解决 问解决路径

questions/resolved
questions/unresolved
装上 best_answer-6.x-2.1 模块 应该就可以了
普通分类: 
shiping1 的头像

drupal6 移除 css style styles 和 js javascript 模板 templets hook_preprocess_page chatgpt 有大用 有大大用

下面是drupal6移除或禁用css file的方法
function phptemplate_preprocess_page(&$vars)
{
$css = $vars['css'];
unset($css['all']['module']['modules/system/system.css']);
unset($css['all']['module']['modules/system/defaults.css']);
$vars['styles'] = drupal_get_css($css);
}



//下面是drupal6移除css和js的方法
function phptemplate_preprocess_page(&$vars) {
//移除css

普通分类: 
shiping1 的头像

drupal7 移除 css

下面是drupal7的方法
//leyouji是模块名
function leyouji_css_alter(&$css) {
  // Remove defaults.css file.
  unset($css[drupal_get_path('module', 'system') . '/system.menus.css']);
  unset($css[drupal_get_path('module', 'system') . '/system.messages.css']);
  unset($css[drupal_get_path('module', 'system') . '/system.theme.css']);
  unset($css[drupal_get_path('module', 'system') . '/system.base.css']);
  unset($css[drupal_get_path('module', 'comment') . '/comment.css']);
  unset($css[drupal_get_path('module', 'field') . '/field.css']);
普通分类: 
shiping1 的头像

override tabs 覆写tabs的方法

来自 http://stackoverflow.com/questions/3530756/how-to-hide-edit-view-tabs
下面红字和粗绿字的地方有大用

theme_menu_local_tasks() gets the current page's local tasks and passes them to

普通分类: 
shiping1 的头像

请问quick tabs的样式改怎么覆写

请问quick tabs的样式改怎么覆写

赞成!
0
否决!

如题,覆写quick tab是block吗?

命名规则又是怎样的

普通分类: 
shiping1 的头像

drupal 有用知识

shiping1 的头像

drupal 网银 chinabank payment for ubercart 模块

shiping1 的头像

Answers Userpoints

Answers Userpoints

模块地址:
普通分类: 
shiping1 的头像

Drupal的积分管理 (一)- User Points相关模块介绍和使用

shiping1 的头像

Userpoints 功能的使用

扩展drupal的userpoints模块

这几天公司要用到用户积分的功能,现在一般的站点都有类似用户积分系统的概念,而drupal的userpoints模块可以给我们提供这样的功能。由于userpoints模块本身只提供了一个基本功能和api,所以需要一些特殊的功能,我们需要自己定制。

普通分类: 
shiping1 的头像

平忠自己使用 answers 模块

1)下载 https://drupal.org/project/answers
安装 模块 及依赖模块
2)进行设置 admin/settings/answers
3)到 views中进行查看 自动创建了哪些视图
还有 默认 节点 view: question_answers  (Answers)   
Node content
4)看自动创建了哪些内容类型
5)可以看看 answers模块文件夹下的answers.readme.txt
6)到 admin/settings/voteupdown 设置一下投票
7)为了使用已解决 未解决的功能 还要安培训 best answer模块
安装它后 到views中就可以看到有了已解决未解决的views   默认 节点 view: best_answer_all_questions  (Answers)

普通分类: 
shiping1 的头像

drupal6 调用的主题函数:

drupal6 调用的 theme 函数


drupal6 调用的主题函数:

 

普通分类: 
shiping1 的头像

theme主题 学习

上次我们说的page.tlp.php 就是负责排版的
这个node.tpl.php文件主要是输出content,比如文字列表
1)phpTemplate 安装在 themes/engines 目录下

php主题包含的文件
1)example.info文件
主题的注册文件 让drupal发现
name = MyGarland  ;主题名称
description = Tableless, recolorable, multi-column, fluid width theme (default).
version = VERSION
core = 6.x
engine = phptemplate
stylesheets[all][] = style.css
stylesheets[print][] = print.css

; Information added by drupal.org packaging script on 2012-02-29
version = "6.25"
project = "drupal"
datestamp = "1330534547"
普通分类: 
shiping1 的头像

Poedit教程_po和pot文档

Poedit 基础教程

作者:TeliuTe 来源:基础教程网

一、po 和 pot 文档 返回目录 下一课

 po文件用于多语言程序,可以很方便地把程序翻译为本地语言,下面我们来看一个练习;

 1、po 文件

 1)po 文件可以在程序源代码中找到,或者从一些本地化翻译网站上下载;

 

 

 2)用文本编辑器打开后,可以看到里面是文本,开头一般是名称、日期、地区等描述;

 

 

 3)再往下就是具体的词条内容,一般至少有两行,一行是英文,下一行是翻译后的本地语言,都用英文双引号括起来;

 

 

 4)带 # 开头的一行是注释,这句不用翻译,用来定位词条的,

 msgid " 开头的一行是原文,双引号里面是要翻译的词条,

 msgstr " 开头的一行是译文,双引号里是翻译的内容,双引号是英文的,

 #, fuzzy 表明这个词条是模糊翻译,删除这一行后,就是确定翻译;

 
普通分类: 
shiping1 的头像

drupal 一些主题函数

http://api.drupal.org/ 里面其实各种函数都有
l 函数


包前主题 模块 的 各种
theme函数好像既可用于模块 也可用于tpl.php模板文件,应该也可以用于template.php文件吧
$result = db_query_range('SELECT n.title, n.body, n.created
    FROM {node} n WHERE n.uid = %d', $uid, 0, 10);

theme('item_list', $links);//体会一下

表示 输出一个 ul 其 class='item_list'
其中 li 里面的东西就是 $links

_函数 表示是私有的



http://api.drupal.org
普通分类: 
shiping1 的头像

得到子菜单 得到主菜单

<?php if (!empty($secondary_links)): ?>
          <div id="secondary" class="clear-block">
            <?php print theme('links', $secondary_links, array('class' => 'links secondary-links')); ?>
          </div>
     <?php endif; ?>

这里好像是 只能在page.tpl.php文件中才会起作用


<?php if (isset($primary_links)) : ?>
          <?php print theme('links', $primary_links, array('class' => 'links primary-links')) ?>
        <?php endif; ?>
        <?php if (isset($secondary_links)) : ?>
普通分类: 
shiping1 的头像

模板里的变量覆写

在 template.php中如何覆写变量
1)page.tpl.php里的变量 用
主题名_变量名() (如function zen_breadcrumb($breadcrumb))
进行覆写
2)node.tpl.php里的变量 用
主题名_node_变量名() (如function myminnelli_node_submitted($node) )
进行覆写
普通分类: 
shiping1 的头像

与用户有关的模块 管理用户 用户登录 安全 模块 密码只能错几次等 限制 登录次数 有大用

1)Advanced User 模块 管理用户
迅速查找 设置访问权限等
2)login_security 模块 为了登录安全
安装后 进 admin/settings/login_security 设置
普通分类: 
shiping1 的头像

Answers 模块 问答模块 答案模块

Answers

普通分类: 
shiping1 的头像

Voting API 模块

Voting API
模块地址: http://drupal.org/project/votingapi
模块版本: Drupal 7.xDrupal 6.x
用户数: 54 359
依赖:无
模块类型: 评价/等级
该模块主要为Drupal的一些投票模块提供函数接口,比如Vote_up_down和Rate等投票模块。
普通分类: 
shiping1 的头像

overriding ubercart - add to cart button 超越增加到购物车按钮的方法

rupal Answers is a question and answer site for Drupal developers and administrators.
普通分类: 
shiping1 的头像

drupal ubercart 直接购买 不增加到购物车

这个模块 可以实现 应该有用
https://drupal.org/project/uc_paypal_buttons  //好像只是paypal这种付款方式的模块 对
其它的付款方式 如支付宝等不起作用
看下 http://www.ubercart.org/project/buy_now
uc_buy_now.tar.gz  应该有用 因为福建那个网友也推荐它


http://www.ubercart.org/forum/development/1800/buy_now_button_bypass_cart

普通分类: 
shiping1 的头像

drupal ubercart 自己学习4

1)支付方式  货到付款, 网上银行, 支付宝 ,google checkout ,peiqu等
2)支付宝对应的是支付宝网关
网关是一种格式化的设置,是一种接口
ubercart 一般用的是 google checkout(在模块里应该可以看到,现在已兴起) paypal(在模块里应该可以看到,早期用) Credit Card(在模块里应该可以看到)

Test Gateway (模块) 和 Credit Card 对应
我们开启 Credit Card和 Test Gateway这两个模块
进 admin/store/settings/payment
进 admin/store/settings/payment/edit
进 admin/store/settings/payment/edit/methods
出现错误 点the encryption instructions in order 看看
单独 放一个在drupal网站外的文件夹 为了安全

普通分类: 
shiping1 的头像

drupal 模板下载

shiping1 的头像

Drupal Zen 基模板菜鸟终结者 1 ---- 认识Zen Drupal Zen 基模板菜鸟终结者 2 ---- 增加对Nice Menus 的支持 Drupal Zen 基模板菜鸟终结者 3 ---- 一些基于Zen的子模板 Drupal Zen 基模板菜鸟终结者 4 ---- drupalla.com案例讲解

普通分类: 

页面

Subscribe to RSS - drupal