关于dede的一些信息
}
第二处,找到:
<?
echo "<select name='newtypeid' style='width:300;display:none' id='moveField'>\r\n";
echo $typeOptions;
echo "</select>";
?>
在后面加上:
<div id="onlybodynull" style='display:none'><input name="onlybodynull" type="checkbox" class="np" value="1" >删除内容为空的文档(仅删除文档可用该选项)</div>
这样,表单页改好了,下面改content_batchup_action.php
打开后,找到70行左右,找到
$dsql->SetQuery("..中间省略..");
改为如下:
$sql="Select ID From #@__archives";
if($onlybodynull==1)$gwhere = " LEFT JOIN #@__addonarticle ON #@__addonarticle.aid = #@__archives.ID ".ereg_replace("typeid", " #@__archives.typeid",$gwhere);
$sql.=$gwhere." and trim( #@__addonarticle.body ) = ''";
$dsql->SetQuery($sql);
这样就能关联附加表,并查询出body为空的记录的ID了
美化验证码
引用
程序目录 \include\vdimgck.php
具体根据自己风格修改.
//图片大小
$im = imagecreate(50,20);
//字体
$font_type = dirname(__FILE__)."/data/ant".mt_rand(1,2).".ttf";
//背景颜色
$bgcolor = ImageColorAllocate($im, 225,245,255);
//边框色
$iborder = ImageColorAllocate($im, 56,172,228);
//字体色
$fontColor = ImageColorAllocate($im, 6,110,240);
$fontColor1 = ImageColorAllocate($im, 166,213,248);
$fontColor2 = ImageColorAllocate($im, 8,160,246);
//杂点背景线
$lineColor1 = ImageColorAllocate($im, 130,220,245);
$lineColor2 = ImageColorAllocate($im, 225,245,255);
//背景线
for($j=3;$j<=16;$j=$j+3) imageline($im,2,$j,48,$j,$lineColor1);
for($j=2;$j<52;$j=$j+(mt_rand(3,6))) imageline($im,$j,2,$j-6,18,$lineColor2);
//边框
imagerectangle($im, 0, 0, 49, 19, $iborder);
$strposs = array();
具体根据自己风格修改.
//图片大小
$im = imagecreate(50,20);
//字体
$font_type = dirname(__FILE__)."/data/ant".mt_rand(1,2).".ttf";
//背景颜色
$bgcolor = ImageColorAllocate($im, 225,245,255);
//边框色
$iborder = ImageColorAllocate($im, 56,172,228);
//字体色
$fontColor = ImageColorAllocate($im, 6,110,240);
$fontColor1 = ImageColorAllocate($im, 166,213,248);
$fontColor2 = ImageColorAllocate($im, 8,160,246);
//杂点背景线
$lineColor1 = ImageColorAllocate($im, 130,220,245);
$lineColor2 = ImageColorAllocate($im, 225,245,255);
//背景线
for($j=3;$j<=16;$j=$j+3) imageline($im,2,$j,48,$j,$lineColor1);
for($j=2;$j<52;$j=$j+(mt_rand(3,6))) imageline($im,$j,2,$j-6,18,$lineColor2);
//边框
imagerectangle($im, 0, 0, 49, 19, $iborder);
$strposs = array();
给dede验证码增加点击刷新功能
引用
有时候验证码很模糊,填好了许多内容又要整个页面刷新很麻烦
这个功能直接点击验证码即可以刷新
原先取得验证码为<img name="vdcode" src="/include/validateimg.php" width="50" height="20" alt="">
修改为<img name="vdcode" src="/include/validateimg.php" width="50" height="20" alt="" onclick='this.src=this.src;' style='cursor:pointer'>
这个功能直接点击验证码即可以刷新
原先取得验证码为<img name="vdcode" src="/include/validateimg.php" width="50" height="20" alt="">
修改为<img name="vdcode" src="/include/validateimg.php" width="50" height="20" alt="" onclick='this.src=this.src;' style='cursor:pointer'>
留言板 加上验证码 插件
引用
修改2个文件
/templets/plus/guestbook.htm
/plus/guestbook/savepost.php
点击下载
/templets/plus/guestbook.htm
/plus/guestbook/savepost.php
点击下载显示数字验证码
引用
修改文件 验证码文件位置
include\validateimg.php
找到
for($i=0;$i<4;$i++)
{
$rndstring .= chr(mt_rand(65,90));
}
改成
for($i=0;$i<4;$i++)
{
$rndstring .= chr(mt_rand(48,57));
}
这个函数是产生随机字符,看见里面的数字没有,它就是要产生字符键盘码的范围,原来的是
mt_rand(65,90),这个65到90是大写字母A到Z的键盘码。
现在修改为(48,57) 表示0到9的键盘码:mt_rand(48,57)。
include\validateimg.php
找到
for($i=0;$i<4;$i++)
{
$rndstring .= chr(mt_rand(65,90));
}
改成
for($i=0;$i<4;$i++)
{
$rndstring .= chr(mt_rand(48,57));
}
这个函数是产生随机字符,看见里面的数字没有,它就是要产生字符键盘码的范围,原来的是
mt_rand(65,90),这个65到90是大写字母A到Z的键盘码。
现在修改为(48,57) 表示0到9的键盘码:mt_rand(48,57)。
Digg插件:
http://bbs.dedecms.com/read.php?tid=21142
伪静态
http://bbs.dedecms.com/read.php?tid=18236
无人值守自动采集助手Editortools v1.3 for DEDECMS
http://bbs.dedecms.com/read.php?tid=22485
多站点二级域名
http://bbs.dedecms.com/read.php?tid=16476
DEDE编辑器flv播放器插件
http://bbs.dedecms.com/read.php?tid=11790
实现更漂亮整齐的缩略图
http://bbs.dedecms.com/read.php?tid=14411
上一篇:大图模块精品非主流天之颓废
下一篇:欢迎字幕:欢迎来到我QZONE






