Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[发布] [DZ X2.0教程]教你快速了解Discuz!程序文件功能,修改文件从此不用再求人

  [复制链接]
魏信 发表于 2011-7-19 09:10:30 | 显示全部楼层
后排支持。。。
回复

使用道具 举报

yhnhk 发表于 2011-7-19 09:29:35 | 显示全部楼层
你太厉害了。。
回复

使用道具 举报

yxjing1314 发表于 2011-7-19 10:25:02 | 显示全部楼层
蛮实用的,谢谢分享!
回复

使用道具 举报

钻石家族 发表于 2011-7-19 10:35:03 | 显示全部楼层
很强大 厉害
回复

使用道具 举报

zf100 发表于 2011-7-19 11:54:30 | 显示全部楼层
照死里顶一下
回复

使用道具 举报

slfine 发表于 2011-7-19 13:23:59 | 显示全部楼层
楼主强人啊  收藏了~
回复

使用道具 举报

五维网 发表于 2011-7-21 01:56:05 | 显示全部楼层
请教楼主,这段代码如何改?
页面:http://bbs.5wee.com/portal.php?mod=topic&topicid=1
=================================================

<script type="text/javascript">
function checkCredit(uid) {
var maxCredit = parseInt(0);
var idval = parseInt($(id).value);
if(/^(\d+)$/.test(idval) == false) {
showDialog('你所填写的维币不是一个合法数值', 'notice', '提示信息', null, 0);
return false;
} else if(idval > maxCredit) {
showDialog('你的当前维币为 0,请填写一个小于该值的数字', 'notice', '提示信息', null, 0);
return false;
} else if(idval < 1) {
showDialog('你所填写的维币不能小于1', 'notice', '提示信息', null, 0);
return false;
}
if(id == 'showcredit') {
var price = parseInt($('unitprice').value);
if(/^(\d+)$/.test(price) == false) {
showDialog('您所填写的单价不是一个合法数值', 'notice', '提示信息', null, 0);
return false;
} else if(price < 1) {
showDialog('您所填写的单价不能小于1', 'notice', '提示信息', null, 0);
return false;
} else if(price > idval+parseInt(0)) {
showDialog('您所填写的单价不能高于竞价总额', 'notice', '提示信息', null, 0);
return false;
}
}
return true;
}
</script>
<div class="tbmu">
<h3 class="mbn">排行榜公告:</h3>
你现在还没有上榜。让自己上榜吧,这会大大提升你的主页曝光率。
<br>竞价单价越多,竞价排名越靠前,你的主页曝光率也会越高;
<br>上榜用户的主页被别人有效浏览一次,将从竞价维币中扣除您设定的竞价值(恶意刷新访问不扣减)。
</div>

<div class="tbmu mbm pbw cl">
<form method="post" autocomplete="off" action="home.php?mod=spacecp&amp;ac=top" onsubmit="return checkCredit('showcredit');" class="z">
<table>
<caption><h3 class="mbn">我也要上榜</h3></caption>
<tbody><tr>
<th class="pbn">
我的上榜宣言
<p class="xg1">最多50个汉字,会显示在榜单中</p>
</th>
<th class="pbn">
竞价单价
<p class="xg1"><a href="http://bbs.5wee.com/home.php?mod=spacecp&amp;ac=common&amp;op=modifyunitprice" id="a_modify_unitprice" onclick="showWindow(this.id, this.href, 'get', 0);">(修改单价)</a></p>
</th>
<th class="pbn">

增加竞价维币<p class="xg1">不要超过自己的维币 0 元</p>
</th>
</tr>
<tr>
<td><input name="note" class="px" value="" size="25" type="text"></td>
<td>
&nbsp;<input id="unitprice" name="unitprice" class="px vm" value="1" size="7" onblur="checkCredit('showcredit');" type="text">
</td>
<td>
&nbsp;<input id="showcredit" name="showcredit" class="px vm" value="100" size="7" onblur="checkCredit('showcredit');" type="text">&nbsp;
<button type="submit" name="show_submit" class="pn vm"><em>增加</em></button>
</td>
</tr>
</tbody></table>

<input name="showsubmit" value="true" type="hidden">
<input name="formhash" value="c4168e53" type="hidden">
</form>

<form method="post" autocomplete="off" action="home.php?mod=spacecp&amp;ac=top" onsubmit="return checkCredit('stakecredit');" class="y">
<table>
<caption><h3 class="mbn">帮助好友来上榜</h3></caption>
<tbody><tr>
<td class="pbn">
要帮助的好友
<p class="xg1">请输入好友的用户名</p>
</td>
<td class="pbn">
赠送竞价维币<p class="xg1">不要超过自己的维币 0 元</p>

</td>
</tr>
<tr>
<td><input name="fusername" class="px" value="" size="15" type="text"></td>
<td>
&nbsp;<input name="stakecredit" id="stakecredit" class="px vm" value="20" size="7" onblur="checkCredit('stakecredit');" type="text">&nbsp;
<button type="submit" name="friend_submit" class="pn vm"><em>赠送</em></button>
</td>
</tr>
</tbody></table>
<input name="friendsubmit" value="true" type="hidden">
<input name="formhash" value="c4168e53" type="hidden">
</form>
</div>
回复

使用道具 举报

taozz 发表于 2011-7-21 17:38:39 | 显示全部楼层
强大的楼主
回复

使用道具 举报

hujian1130 发表于 2011-7-23 07:55:33 | 显示全部楼层
这个有利于我研究
回复

使用道具 举报

moonlighte 发表于 2011-7-26 10:23:51 | 显示全部楼层
慢慢学习了解下,辛苦了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-9-28 15:21 , Processed in 0.193189 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表