杭州神话信息技术有限公司

标题: 记事狗微博V3.0 stable Build 20110928新增模板方法 一 [打印本页]

作者: itom    时间: 2011-11-3 11:24:35     标题: 记事狗微博V3.0 stable Build 20110928新增模板方法 一

本帖最后由 itom 于 2011-11-3 11:27 编辑

记事狗微博V3.0 stable Build 20110928新增模板 方法 一 (方法1 仅限修改背景图片)

第一步:在\templates\default\images\theme目录下新增模板图片文件夹,命名为:t9,然后新模版的背景图片命名:themebg.jpg,新模版在模板选择页面的缩略图命名:themebg_preview.jpg。

第二步:在\templates\default\styles 目录下新增模板样式表,命名为:t9.css,新增内容:body{background-color:#c0deed;background-image:url(../images/theme/t9/themebg.jpg);background-position:center0px;background-repeat:no-repeat;},其中
background-color 是新增模板的背景颜色;background-image 是新增模板的背景图片;
background-position 是新增模板图片的位置(包括:center left right bottom);
background-repeat 是新增模板背景图片是否平铺。

第三步:打开\modules\theme.mod.php  编辑:
$themelist = array
              (
        ***
        ***
        ***
        //下面是新增部分
array("theme_id"=>'t9',"theme_bg_color"=>'#FFFFFF',"theme_text_color"=>'#333333',"theme_link_color"=>'#2E75BC',"theme_bg_image_type"=>'bottom',),
);
其中
theme_id 是新增模板的编号;theme_bg_color是新增模板的背景颜色;
theme_text_color 是新增模板的文字颜色;theme_link_color是新增模板的链接颜色;
theme_bg_image_type 是新增模板背景图片的位置(包括:center left right bottom)。


结束,以上是新增模板的一般步骤。

作者: blackbee    时间: 2011-11-5 00:57:51

回去试下,
作者: jishigou_vip    时间: 2011-11-6 00:44:49

很好, 多谢大版,马上试试瞧瞧
作者: ELLE    时间: 2011-11-6 10:19:24

做成文件或者放代码模式撒

该帖已经同步到记事狗微博 ELLE的微博
作者: 十年一剑    时间: 2011-11-7 23:21:39

上海微博上有100多套模板,大家可以去学习下。很不错哦
http://t.sh021.cc
最近看到的,和大家分享一下
作者: xiaomin219    时间: 2011-11-15 00:58:10

高人啊,真是好东西啊!!












华北制药群
http://www.yaojia.org/group-2422-1.html

作者: hantang    时间: 2011-11-25 16:03:43

十年一剑 发表于 2011-11-7 23:21
上海微博上有100多套模板,大家可以去学习下。很不错哦
http://t.sh021.cc
最近看到的,和大家分享一下

首页记事狗微博logo如何去掉啊

作者: hantang    时间: 2011-11-25 16:04:00

请高手帮忙啊




欢迎光临 杭州神话信息技术有限公司 (http://www.cenwor.com/) Powered by Discuz! X2