快速批量删除wordpress待审的垃圾评论
登录phpMyAdmin后执行下面的SQL语句:
DELETE from wp_comments WHERE comment_approved = '0';
要谨慎使用,虽然这种解决方案对于处理数百万的垃圾平邮非常有用,但是也会清除未经批准的评论,因此最好还是使用Akismet插件来对付垃圾评论。
登录phpMyAdmin后执行下面的SQL语句:
DELETE from wp_comments WHERE comment_approved = '0';
要谨慎使用,虽然这种解决方案对于处理数百万的垃圾平邮非常有用,但是也会清除未经批准的评论,因此最好还是使用Akismet插件来对付垃圾评论。
Steps for changing server ip and creating images.
**** Change server ip ****
Guide moved to the knowledgebase:
http://help.directadmin.com/item.php?id=250
**** Creating disk Images ****
Install whatever additional services you want on the server (if you need up2date, this would be a good time)
Install a default copy of DirectAdmin on a server.
Install items as desired.
Delete the license (doesn’t really matter.. just so that nobody else gets a hold of it)
Create the image using whatever method you would like.
*** copy the image to the new server
Run the scripts you would normally run to setup the image properly.
Use the ipswap.sh script as decribed above to swap all instances of the IPs.
When you need to use the server, contact DirectAdmin, order a license using the new server’s ip.
Once activated, use the getLicense.sh (see above) to download the license for this system.
Restart DirectAdmin and you should be up and running.
一单行滚动
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd“>
<html xmlns=”http://www.w3.org/1999/xhtml“>
<head>
<meta http-equiv=”Content-Type” c />
<title>无标题文档</title>
<style type=”text/css”>
ul,li{margin:0;padding:0}
#scrollDiv{width:300px;height:25px;line-height:25px;border:#ccc 1px solid;overflow:hidden}
#scrollDiv li{height:25px;padding-left:10px;}
</style>
<script src=”http://www.cssrain.cn/demo/JQuery+API/jquery-1[1].2.1.pack.js” type=”text/javascript”></script>
<script type=”text/javascript”> 阅读全文…
区别IE6与IE7:
区别IE7与FF: 阅读全文…
此模板为仿梦织网5.0默认风格,由于原风格结构并不适合直接搬到帝国cms,所以在各个模型风格上都按自己想法优化了。原来是在5.1的基础上做的,帝国cms的模板是通用的,所以以前下了5.1的也没问题,这里提供的事针对6.0版本新改了一下细节的,同时增加了对新闻、下载、图片、Flash、电影、商场、文章和分类信息系统所有版块的支持。
安装说明在下载包内
绿色通用模板v1.1 (341)演示地址(老版本演示,仅新闻模块)http://www.lvbihu.com/phome/
安装后注意事项: 阅读全文…
牢骚就不发了,虽然痛恨IE6连这么简单的功能都不支持,但是没办法,现在使用IE6的人数还是很多。
下面介绍的方法是自己搜集的一个感觉比较好的实现png背景透明和图片透明 DD_belatedPNG是一个强大的JS文件,因为它支持backgrond-position与background-repeat.这是其他js插件不具备的.同时DD_belatedPNG还支持a:hover属性,以及<img>.
1.下载DD_belatedPNG.js文件DD_belatedPNG (262)
2.在网页中引用,如下: 使用方法:
<!--[if IE 6]>
<script src="DD_belatedPNG.js"></script>
<script type="text/javascript">
<!--
DD_belatedPNG.fix('#logo_bg');
/* 将 #logo_bg 改成你应用了透明PNG的CSS选择器*/
// -->
</script>
<!--[endif]-->
<!--demo-->
<style type="text/css">
div#logo_bg{ background:url("bigbg.png") no-repeat; /*...MORECODE*/}
<style>
<div id="logo_bg"></div>
...
<!--demo.end-->3.有2种调用函数,一种是DD_belatedPNG.fix(),如上代码.另一种是fix(),这中方法需要在函数内指出css选择器名.
最近有个客户需要在留言板上加一个标题字段,我根据帝国cms的结构修改了一下,这里做个笔记,以后好查。
帝国的表单数据一般是通过e\enews\index.php获得
其中:
//增加留言 阅读全文…
1、自动定时开机
此功能需要在BIOS中设定,并且你的主板的ACPI高级电源管理设置必须支持这个功能,不过现在大多数的主板全支持,ACPI高级电源管理
步骤一:
启动系统按DEL,进入BIOS,然后选中 “POWER MANAGEMENT FEATURES”
(电源管理设置),回车进入.在电源窗口中找到”RESTORE ON AC/POWER
LOSS”项,按回车,然后通过方向键设置其值为”POWER ON”.
步骤二:
选中”RESUME ON RTC ALARM”并按回车,接着通过方向键设置其值为”ENABLE” 阅读全文…
更新:用自定义列表+自定义页面实现。只能说是半自动
以前都只是这么提,没有具体去做。在实际操作过程中遇到一些问题,向WC寻求帮助后,已经提交成功。现在和大家分享下。步骤如下:
1.在后台开启模板支持程序代码
2.在模板管理,列表模板里新增一个列表模板
页面模板内容
[!--empirenews.listtemp--]<!–list.var1–>[!--empirenews.listtemp--]
列表内容模板
细心的朋友会注意到,当你在linux下频繁存取文件后,物理内存会很快被用光,当程序结束后,内存不会被正常释放,而是一直作为caching.这个问题,貌似有不少人在问,不过都没有看到有什么很好解决的办法.那么我来谈谈这个问题.
先来说说free命令
[root@server ~]# free -m
total used free shared buffers cached
Mem: 249 163 86 0 10 94
-/+ buffers/cache: 58 191
Swap: 511 0 511 阅读全文…