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

这里的技术是共享的

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案例讲解

普通分类: 
shiping1 的头像

给drupal 单独页面定制主题

shiping1 的头像

给drupal 单独页面配置主题

我做的drupal6的例子
//自定义的主题
function shipingzhongcustom_init() {
  global $user, $custom_theme;
  // Set all node pages (including the node itself, as well as pages for
  // editing it, deleting it, etc.) to default to using the 'some_theme'
  // theme, rather than the site's normal default theme.
  if(arg(0) == 'user'){
      $custom_theme = 'garland';
      
  }
}



Drupal 6.x:

普通分类: 
shiping1 的头像

drupal 自定义主题

function hook_custom_theme

7 system.api.phphook_custom_theme()
普通分类: 
shiping1 的头像

根据路径不同使用不同的主题

Change Drupal Theme Based On URL Path

You could spend 9 years looking for a module to do it or you could do this. Put this in your settings.php

$THEME_URLS = array(
	array('/admin','garland'), # Drupal already support admin theme anywho
	array('/users','fancy_user_theme'),
	array('/forum','forums_theme'),
	);
foreach ( $THEME_URLS as $info)
	if ( strpos($_SERVER['REQUEST_URI'],$info[0])===0)
		$conf['theme_default'] = $info[1];


http://mattshaw.org/news/change-drupal-theme-based-on-url-path/
普通分类: 
shiping1 的头像

maintenance-page.tpl.php这种文件是干什么用的呢? 网站维护状态的模板文件

maintenance-page.tpl.php这种文件是干什么用的呢?


赞成!
0
否决!

维护页的界面,当后台选择维护后,网站就会关闭所有前台页面,只能看到这个界面。
来自 http://www.drupalla.com/node/2694

普通分类: 
shiping1 的头像

覆写默认样式的各种方法

覆写默认样式的各种方法

  除了利用CSS,还有多种方法可实现对Drupal默认样式的覆写。其中每一种方法各有利弊,因此你,作为主题开发人员,需要决定哪一种方法是最适合你的。

方法如下:

普通分类: 
shiping1 的头像

drupal中覆写可主题化的输出

drupal中覆写可主题化的输出

原文:http://drupal.org/node/173880
译者:葛红儒,    Think in Drupal
只有当你需要修改默认输出时,你才需要阅读本节.如果你的显示层是完全有CSS样式表负责的,那么可以略过本节。
覆写主题输出,需要掌握3个方面。首先,你需要知道源头在哪里,其次你要进行覆写,最后你需理解它的类型。
注意,Drupal使用主题注册表(theme registry)来缓存主题数据覆写完成后,你必须清空缓存。
 
1.       寻找源头:
寻找主题输出的源头,是比较困难的,这是由于主题系统的多层级结构造成的,使得源头可能出现在系统的各个地方。
普通分类: 
shiping1 的头像

drupal定制用户页面

drupal定制用户页面 不指定

drupal水滴 , 2012/05/26 23:58 , drupal建站 » drupal主题 ,
普通分类: 
shiping1 的头像

Drupal 6 自定义用户登陆、注册页面

Drupal 6 自定义用户登陆、注册页面

(2011-07-15 09:33:27)
标签:

普通分类: 
shiping1 的头像

Drupal主题开发

Drupal主题开发

分类: Drupal 262人阅读 评论(0) 收藏
普通分类: 
shiping1 的头像

给用户添加自定义的图像字段 image picture

shiping1 的头像

关于Drupal程序开发中的drupal_render方法简介

shiping1 的头像

Drupal 7 通过 render 读取 图片字段。

shiping1 的头像

autocomplete text field invalid widget.

autocomplete text field invalid widget.
安装 autocomplete_widgets 模块
在设内容类型 的字段设置里
普通分类: 
shiping1 的头像

php 处理数字的函数

shiping1 的头像

php 数组 array

PHP Array 函数

PHP Array 简介

array 函数允许您对数组进行操作。

PHP 支持单维和多维的数组。同时提供了用数据库查询结果来构造数组的函数。

安装

array 函数是 PHP 核心的组成部分。无需安装即可使用这些函数。

PHP Array 函数

PHP:指示支持该函数的最早的 PHP 版本。

普通分类: 
shiping1 的头像

drupal ubercart 自己学习3

Drupal Ubercart 2.X 商城模块基本用法视频教程

1 UC安装
先安装imagefield然后安装ubercart中的product,这样安装product时会自动为product内容类型添加imagefield字段。否则没有这个字段。
2 基本配置
商城管理--购物车基本设置包括名称、显示方式、区块名称设置;
        --商品分类基本设置;
        --付款基本设置;
        --订单基本设置;
        --商品基本设置;

3 商品分类及属性详细设置
        --创建商品分类及子类也即添加分类术语
        --允许用户添加关键字
        --发布商品
        --发布商品套餐包
        --从文本文件批量导入商品(下载node import模块,创建CSV文件,内容管理→导入内容→基本配置后即可)
        --创建商品属性(开启attribute模块→创建color及memory属性→为每个属性创建具体选项→为具体的每个商品做设置→OK)

普通分类: 
shiping1 的头像

node 变量 page变量 等 自己动手开发主题

1) $picture 作者的头像
2) $page==0 是否是page ,判断 当前节点的页面是完整的页面 还是在列表中显示
3) $content 变量 就是整理过后 要输出的内容 它是整个内容(组装好了的)

4)$links          <?php dsm('$links'); ?>
function lugir_links($user){
    return '';
} 用这种方法来重写$links变量
5) $display_submitted: 是否显示提交信息
$date: 创建时间.

$name: 作者名通过 theme_username()处理输出.

$node_url:节点链接

$display_submitted: 是否显示提交信息.
$term 分类 此节点属于哪个分类

$submitted:提交信息 $name 和 $date 在template_preprocess_node().

$classes:用于css,会显示下面的结果:

普通分类: 
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文件中才会起作用


1)在 sites/all/modules/中
  建一文件夹 hellodrupal
2)在其内建 hellodrupal.info,hellodrupal.module
名称要一样
 <?php
; $Id$
name = Hellodrupal
description = List the latest content links
core = 6.x

普通分类: 
shiping1 的头像

jQuery Msg Alert 的使用

jQuery Msg Alert

This module displays Drupal's messages and the most recent Watchdog's messages as a little alert at the bottom corner. Every message sent by drupal_set_message() will be converted to a dialog alert, using jQuery Msg Alert plugin.
You can configure the time interval between then and they will reorganize themselves to be always near each other.
These alerts are actually jQuery UI dialogs, so you have a huge option of themes to customize the look and feel.

REQUIREMENTS:
普通分类: 
shiping1 的头像

TypeError: $(...).on is not a function drupal的jquery版本有时低出问题

你可能要添加您的安装的更多细节进入正题。
普通分类: 
shiping1 的头像

error "An error occurred at /admin/build/views/ajax/display/home/default/analyze-theme"

不知道什么原因 反正 把misc下的jquery.js 文件换掉 就可以了
反正jquery核心文件有时一动 就会出点问题
普通分类: 
shiping1 的头像

views 用sql来查询

普通分类: 

页面

Subscribe to 个人技术网_前端_后台_php_div_css_linux_javascript_seo RSS