xenforo 子版面横排的方法

进入后台–语言及模板–编辑模板,打开Extra.css,在内容最下方添加:

.subForumsGrid { padding-right: 4px; }
.subForumsGrid .blockLinksGrid { width: 100%; display: inline-block; padding: 5px; }
.subForumsGrid .fullWidth { width: 100% !important; padding-bottom: 4px; }
.subForumsGrid .node { width: 20%; float: left; }
.subForumsGrid .node ol { padding-left: 10px; }
.subForumsGrid .node a { padding: 5px 10px 5px 18px; }
.subForumsGrid .node .node a { padding: 0px 10px 1px 18px; }
.subForumsGrid .node .nodeTitle { font-size: 11px; white-space: nowrap; overflow: hidden; }
.subForumsGrid .node div,
.subForumsGrid .node div a:hover
{
background-image: url('@imagePath/xenforo/widgets/read.png');
background-repeat: no-repeat;
background-position: 0px 50%;
}
.subForumsGrid .node div.unread,
.subForumsGrid .node div.unread a:hover
{
background-image: url('@imagePath/xenforo/widgets/unread.png');
background-repeat: no-repeat;
background-position: 0px 50%;
}

打开以下的模板:

  1. node_category_level_2
  2. node_forum_level_2
  3. node_link_level_2
  4. node_page_level_2

添加:

<xen:if is=”{$level} == 2 AND {$renderedChildren}”>

<li class=”subForumsGrid”>

<ol class=”secondaryContent blockLinksList blockLinksGrid”>

<xen:foreach loop=”$renderedChildren” value=”$child”>

{xen:raw $child}

</xen:foreach>

</ol>

</li>

</xen:if>

打开以下模板:

  1. node_category_level_n
  2. node_forum_level_n
  3. node_link_level_n
  4. node_page_level_n

在第一行的CLASS中,添加:

{xen:if $renderedChildren, ‘ fullWidth’}

例如:<li class=”node category level-n node_{$category.node_id}”>

更发为:<li class=”node category level-n node_{$category.node_id} {xen:if $renderedChildren, ‘fullWidth’}”>

XenForo默认图片库中没有read.png这个文件,需要下载后上传至@imagePath/xenforo/widgets目录中

也可以直接点击右边的图片,目标另存为即可:   或者点击此处下载

效果见:http://www.drymt.com

 

发表评论

华夏盾出现“Internet Explorer 无法显示该网页”的解决办法

近来办了华夏银行的网上银行,结果发现免驱的U盾安装好以后,出现一些问题

我的操作系统为 windows 7,上网环境为IE9

插上U盾,打开www.hxb.com.cn,点击证书登录后,提示:Internet Explorer 无法显示该网页 继续阅读

发表评论

woothemes风格contact form不能正确发送邮件的解决办法

woothemes的商业风格都提供了contact form模板功能,新建页面,模板选择contact form,即可快速创建联系表单

邮件时,发件人使用了表单中提交的邮件地址,致使国内的很多SMTP服务器以为是垃圾邮件,直接拒发或者拒收

查了一下GOOGLE,找一个解决办法

查找:

$headers = __( ‘From: ‘, ‘woothemes’) .’ <’.$email.’>’ . “\r\n” . __( ‘Reply-To: ‘, ‘woothemes’ ) . $email;

替代为:

$headers = __(‘From: ‘, ‘woothemes’).get_bloginfo(‘title’).’ <’.$emailTo.’>’ . “\r\n” . __(‘Reply-To: ‘,’woothemes’) . $email;

其实就是将提交给wp_mail函数的发件人替代为风格的contact form的收件人的EMAIL地址

当然了,前提是楼主在wordpress中将系统的邮件地址更改为contact form的收件人的EMAIL地址

发表评论

DELL inspiron 560S上安装iatkos L1

先占位,晚上来发表

发表评论

Xenforo 1.1 简体中文语言包

xenforo 1.1正式版

前台、后台控制面板汉化完全,调试模式内没有汉化

有几个PHP专业一些的语句没有汉化

中文语法参考VBB中文

不正确的请大家提出或者自己更改。这只是业务爱好,本人不承诺以后会更新,请依据自己的实际情况来更改

下载地址:xenforo 1.1 简体中文语言包 (152)

XF1.0基础内容源于cotcn.com版本

2011.10.13  更新附件,原附件为MAC下编辑,致使中文文名乱码,已更正。

2011.10.14  更新附件,已将前台管理功能等字段翻译完成,基本上差不多了,更正了XML不能导入的错误(原因是一个短语错误)

2011.12.05  附件更新为xenforo 1.1正式版本,基本已经翻译完成

20 comments

Adobe Acrobat x 简体中文语言包及中文界面方法

早期安装adobe acrobat x的朋友大部分是使用的英文版,现在已经有了中文语言包,将acrobat显示中文界面的操作方法如下:

1、下载Acrobat X 10.1.1 中文语言包,解压缩,将zh_CN目录拷贝至 C:\Program Files\Adobe\Acrobat 10.0\Acrobat\Locale  (或者安装时自定义的路径)

下载地址:Acrobat X 简体中文语言包 (790)

2、打开Acrobat X,选择 Edit  / Preferences

继续阅读

1 comment

xenforo like and reply css box

Xenforo的like功能很实用,但不怎么直观,这么经典的功能,最好能够加强显示效果,达到美观、易用、便于操作的目的,效果如下

结合国外的网站介绍,解决办法如下:

进入管理后台,模板编辑,打开EXTRA.css,添加:

.message .messageMeta .publicControls .control,
.messageSimple .messageMeta .publicControls .control
{
text-decoration: none;
background-color: #eeeeee;
padding: 0 13px;
margin-top: -5px;
margin-left: 3px;
border: 1px solid #e2e2e2;
border-radius: 2px; -webkit-border-radius:  2px; -moz-border-radius:  2px; -khtml-border-radius:  2px;
line-height: 24px;
text-shadow: #fff 0px 1px 0px;
}

.publicControls .like:before,
.publicControls .unlike:before,
.publicControls .reply:before,
.publicControls .postComment:before
{
content: "";
display: inline-block;
width: 16px;
height: 16px;
background: url('styles/default/xenforo/icons/thumb_up.png') no-repeat 50% 50%;
float: left;
margin: 4px 6px -5px -4px !important;
}

.publicControls .unlike:before{
background: url('styles/default/xenforo/icons/thumb_down.png') no-repeat 50% 50%;
}

.publicControls .postComment:before,
.publicControls .reply:before{
background: url('styles/default/xenforo/icons/message_reply.png') no-repeat 50% 50%;
}

保存

一定要记住上传CSS中的三个图标文件,我提供了下载地址,如下:

           

源码引用:http://www.xfteam.info

发表评论

Contact Form 7消息发送失败的解决办法

Contact Form 7与WP-Mail-SMTP一起使用时,发送信息总是不能使用,提示:

出现消息发送失败,请尝试其它方式联系管理员

后查阅GOOGLE,找到了解决办法:

打开:wp-content\plugins\contact-form-7\includes\classes.php

查找:$headers = “From: $sender\n”;

更改为:$headers = “From $sender\n”;

问题解决

发表评论

wordpress国外主题corporate中文乱码的解决

国外商业主题corporate中,幻灯(SLIDER)图片中文描述乱码的解决办法:

打开:wp-content\themes\corporate\header-slider.php

查找:

<?php echo htmlentities($slide['desc']); ?>
更改为:
<?php echo htmlentities($slide['desc'], ENT_QUOTES, 'UTF-8'); ?>
发表评论

Bitvise Tunnelier SSH终端

以前一直使用 putty中的plink来连接国外VPS的SSH,plink也倒是比较稳定,但有时会偶尔连接不上或者速度不佳,网上有介绍Bitvise Tunnelier,于是下载测试,效果的确是很不错

最明显的就是下载速度及操作方式非常方便

在services中,要打开 socks代理

下载地址:

http://www.zhcn.org/download/?did=12

发表评论