1.2水印修改办法
作者:cmscn 日期:2007-02-07
关键是这步:
打开web_dim(14)=""改为web_dim(14)="gif,jpg,swf,rar,zip|500|1|0|prg/|1|1|1|3300FF|3|images/youimg.bmp|160|50|50|你网站的名字|10|10|gif,jpg,jpeg,bmp|rar,zip,doc||||0033FF"
第一次修改上传设置后,如果没下面红色的那个数字就自己打开common.asp,在那里加个数字.注意看:
web_dim(14)="gif,jpg,swf,rar,zip|500|1|0|prg/|1|1|1|3300FF|3|images/youimg.bmp|160|50|50|你网站的名字|10|10|gif,jpg,jpeg,bmp|rar,zip,doc||||0033FF"
还有加代码的时候不要用自动换行!
如果用了还不行的,请对照下面修改:
打开include/admin_config_edit.asp
sub joekoe_chk_upload()
dim tdown
if chk() then
web_down=code_config(request.form("tdown_0"),4)&"|"&code_config(request.form("tdown_1"),4)
web_dim(13)=code_url(code_config(request.form("web_upload"),2))
web_dim(14)=code_config(request.form("tdim_0"),2)&"|"&code_num(request.form("tdim_1"),500)&"|"&code_num(request.form("tdim_2"),5)&"|"& _
code_num(request.form("tdim_3"),0)&"|"&code_url(code_config(request.form("tdim_4"),2))&"|"& _
code_config(request.form("tdim_5"),2)&"|"&code_config(request.form("tdim_6"),2)&"|"& _
code_num(request.form("tdim_7"),0)&"|"&code_config(request.form("tdim_8"),2)&"|" & _
code_num(request.form("tdim_9"),0)&"|"&code_config(request.form("tdim_10"),2)&"|" & _
code_num(request.form("tdim_11"),0)&"|"&code_num(request.form("tdim_12"),0)&"|" & _
code_num(request.form("tdim_13"),0)&"|"&code_config(request.form("tdim_14"),2)&"|" & _
code_config(request.form("tdim_15"),2)&"|"&code_config(request.form("tdim_16"),2)&"|" & _
code_config(request.form("tdim_17"),2)&"|"&code_config(request.form("tdim_18"),2)&"|" & _
code_config(request.form("tdim_19"),2)&"|"&code_config(request.form("tdim_20"),2)&"|" & _
code_config(request.form("tdim_21"),2)&"|"&code_config(request.form("tdim_22"),2)
call joekoe_template_common()
call joekoe_template_common_other()
call admin_msg("已成功修改了"&ntit&tit_fir&"!","?action="&action,1)
exit sub
end if
call form_first()
tdim=split(web_dim(14),"|")
tdown=split(web_down,"|")
%>
<form action='?action=<%response.write action%>' method=post>
<input type=hidden name=chk value='yes'>
<tr>
<td>上传路径:</td>
<td><input type=text name=web_upload value='<% response.write web_dim(13) %>' size=20 maxlength=20></td>
<td class=gray>为防有错,尽量不要修改此项</td>
</tr>
<tr>
<td>文件类型:</td>
<td><input type=text name=tdim_0 value='<% response.write tdim(0) %>' size=35 maxlength=50></td>
<td class=gray>多个类型用“,”分开</td>
</tr>
<tr>
<td>文件大小:</td>
<td><input type=text name=tdim_1 value='<% response.write tdim(1) %>' size=20 maxlength=10> KB(千字节),最好小于500</td>
<td class=gray>上传文件大小的最大值</td>
</tr>
<tr>
<td>上传数量:</td>
<td><input type=text name=tdim_2 value='<% response.write tdim(2) %>' size=12 maxlength=10> 个 每天可上传文件的数量 = 上传数量 * 用户组系数</td>
<td class=gray></td>
</tr>
<%
tmp1=tdim(3)
if not(isnumeric(tmp1)) then tmp1=0
tmp1=int(tmp1)
%>
<tr>
<td>组件类型:</td>
<td><select name=tdim_3 size=1>
<option value='0'<%if tmp1=0 then response.write " selected"%>>无组件上传</option>
<option value='1'<%if tmp1=1 then response.write " selected"%>>LyfUpload<%if object_install("lyfupload.uploadfile")=false then response.write "(不支持)"%></option>
<option value='2'<%if tmp1=2 then response.write " selected"%>>Aspupload<%if object_install("persits.upload")=false then response.write "(不支持)"%></option>
</select></td>
<td class=gray>上传文件时的上传组件类型</td>
</tr>
<tr><td colspan=3 class=td>上传水印属性设置</td></tr>
<%
tmp1=tdim(7)
if not(isnumeric(tmp1)) then tmp1=0
tmp1=int(tmp1)
%>
<tr>
<td>水印组件类型:</td>
<td><select name=tdim_7 size=1>
<option value='0'<%if tmp1=0 then response.write " selected"%> class=gray>关闭水印</option>
<option value='1'<%if tmp1=1 then response.write " selected"%>>AspJpeg 1.3文字水印<%if object_install("Persits.Jpeg")=false then response.write "(不支持)"%></option>
<option value='3'<%if tmp1=3 then response.write " selected"%>>AspJpeg 1.3图片水印<%if object_install("Persits.Jpeg")=false then response.write "(不支持)"%></option>
<option value='2'<%if tmp1=2 then response.write " selected"%>>wsImage 图片水印<%if object_install("wsImage.Resize")=false then response.write "(不支持)"%></option>
</select></td>
<td class=gray><%call admin_read("组件","图片增加水印时的组件类型说明","<b><font class=blue>注意</font></b>:目前本系统支持的图片水印组件有 <font class=red>AspJPEG、wsImage </font>,<br>而且 <font class=red2>AspJPEG</font> 组件的版本必须在 <b><font class=red2>1.3</font></b> 以上 。")%></td>
</tr>
<%
tmp1=tdim(9)
if not(isnumeric(tmp1)) then tmp1=0
tmp1=int(tmp1)
%>
<tr>
<td>水印位置:</td>
<td><select name=tdim_9 size=1>
<option value='1'<%if tmp1=1 then response.write " selected"%>>左上</option>
<option value='2'<%if tmp1=2 then response.write " selected"%>>右上</option>
<option value='0'<%if tmp1=0 then response.write " selected"%>>居中</option>
<option value='3'<%if tmp1=3 then response.write " selected"%>>左下</option>
<option value='4'<%if tmp1=4 then response.write " selected"%>>右下</option>
</select> 左(右)边距 <input type=text name=tdim_15 value='<% response.write tdim(15) %>' size=4 maxlength=3> 像素,上(下)边距 <input type=text name=tdim_16 value='<% response.write tdim(16) %>' size=4 maxlength=3> 像素</td>
<td class=gray>图片增加水印所在的位置</td>
</tr>
<tr>
<td>上传文字水印:</td>
<td><input type=text name=tdim_14 value='<% response.write tdim(14) %>' size=50 maxlength=100></td>
<td class=gray>为空将不使用文字水印</td>
</tr>
<tr>
<td>文字字体:</td>
<td><input type=text name=tdim_19 value='<% response.write tdim(19) %>' size=50 maxlength=100>
<td class=gray>文字的字体。比如:黑体</td>
</tr>
<tr>
<td>文字大小:</td>
<td><input type=text name=tdim_20 value='<% response.write tdim(20) %>' size=10 maxlength=6><b>px</b></td>
<td class=gray>文字的大小。比如:18</td>
</tr>
<tr>
<td>文字水印颜色:</td>
<td><input type=text name=tdim_8 value='<% response.write tdim(8) %>' size=10 maxlength=6> <a href='javascript:;' onClick="javascript:slect_color('tdim_8');"><img border=0 src="html_edit/images/btn_fgcolor.gif" width=23 height=22 align=absmiddle alt='点击选取主题字体颜色'></a> 请正确填写<font class=red_3>6</font>位颜色代码。</td>
<td class=gray>文字水印字体颜色代码</td>
</tr>
<tr>
<td>文字水印阴影颜色:</td>
<td>左(右)边距 <input type=text name=tdim_5 value='<% response.write tdim(5) %>' size=4 maxlength=3> 像素,上(下)边距 <input type=text name=tdim_6 value='<% response.write tdim(6) %>' size=4 maxlength=3> 像素</td>
<td class=gray>文字水印阴影所在的位置</td>
</tr>
<tr>
<td>文字水印阴影颜色:</td>
<td><input type=text name=tdim_22 value='<% response.write tdim(22) %>' size=10 maxlength=6> <a href='javascript:;' onClick="javascript:slect_color('tdim_22');"><img border=0 src="html_edit/images/btn_fgcolor.gif" width=23 height=22 align=absmiddle alt='点击选取主题字体颜色'></a> 请正确填写<font class=red_3>6</font>位颜色代码。</td>
<td class=gray>文字水印阴影字体颜色代码</td>
</tr>
<tr>
<td>上传图片水印:</td>
<td><input type=text name=tdim_10 value='<% response.write tdim(10) %>' size=50 maxlength=100></td>
<td class=gray>为空将不使用图片水印</td>
</tr>
<tr>
<td>图片水印属性:</td>
<td>宽 <input type=text name=tdim_11 value='<% response.write tdim(11) %>' size=6 maxlength=3> 像素,高 <input type=text name=tdim_12 value='<% response.write tdim(12) %>' size=6 maxlength=3> 像素,透明度 <input type=text name=tdim_13 value='<% response.write tdim(13) %>' size=6 maxlength=3> %</td>
<td class=gray>增加水印时使用的图片的大小及透明度</td>
</tr>
<tr><td colspan=3 class=td>HTML编辑器属性设置</td></tr>
<tr>
<td>图片类型:</td>
<td><input type=text name=tdim_17 value='<%response.write tdim(17)%>' size=35 maxlength=100></td>
<td class=gray>多个类型用“,”分开</font></td>
</tr>
<tr>
<td>附件类型:</td>
<td><input type=text name=tdim_18 value='<%response.write tdim(18)%>' size=35 maxlength=100></td>
<td class=gray>多个类型用“,”分开</font></td>
</tr>
<tr><td colspan=3 class=td>软件相关属性设置</td></tr>
<tr>
<td>软件目录:</td>
<td><input type=text name=tdim_4 value='<%response.write tdim(4)%>' size=20 maxlength=20></td>
<td class=gray>下载栏目的软件目录路径</td>
</tr>
<tr>
<td>运行环境:</td>
<td colspan=2><input type=text name=tdown_0 value='<%response.write tdown(0)%>' size=62 maxlength=200> 多个请用“:”隔开</td>
</tr>
<tr>
<td>授权类型:</td>
<td colspan=2><input type=text name=tdown_1 value='<%response.write tdown(1)%>' size=62 maxlength=200> 多个请用“:”隔开</td>
</tr>
<%
erase tdim
erase tdown
call submit_config()
end sub
打开include/common.asp
web_dim(13)="upload/"
web_dim(14)="gif,jpg,swf,rar,zip|500|10|1|prg/|2|1|3|00FF00|3|images/watermark.bmp|160|50|50|女人居|50|20|gif,jpg,jpeg,bmp|rar,zip,doc|华文行楷|48||ffffff"
打开include/skin.asp
在function web_left(lt)上面添加:
sub web_head_title()
tit=joekoe_cms.code_form(tit)
tit_fir=joekoe_cms.code_form(tit_fir)
joekoe_cms.web_tit=tit
call skin_load()
call joekoe_cms.web_title()
call web_js()
response.write vbcrlf&"<body topmargin=0 leftmargin=0><center>"
end sub
评论: 8 | 引用: 0 | 查看次数: 711
发表评论