read " height width 功能說明: 除了在個人資料顯示寵物信息外,增加在論壇ID右側顯示玫瑰花數量,玫瑰花由寵物系統(tǒng)打怪獲得,也可以在特殊商店或普通商店出售。會員打到或購買玫瑰花后贈送給誰,就顯示在誰的用戶名右側。 效" />

最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

無心寵物帖子內顯示(玫瑰花 版)for pw6.0

互聯(lián)網   發(fā)布時間:2009-06-06 15:54:15   作者:jb51   我要評論
關鍵字描述:顯示 寵物 帖子 < > read " height width 功能說明: 除了在個人資料顯示寵物信息外,增加在論壇ID右側顯示玫瑰花數量,玫瑰花由寵物系統(tǒng)打怪獲得,也可以在特殊商店或普通商店出售。會員打到或購買玫瑰花后贈送給誰,就顯示在誰的用戶名右側。 效
關鍵字描述:顯示 寵物 帖子 < > read " height width

功能說明:
除了在個人資料顯示寵物信息外,增加在論壇ID右側顯示玫瑰花數量,玫瑰花由寵物系統(tǒng)打怪獲得,也可以在特殊商店或普通商店出售。會員打到或購買玫瑰花后贈送給誰,就顯示在誰的用戶名右側。

效果演示:
見俠客站長論壇左側(http://bbs.jb51.net),本人個人資料。

需要更改的文件:
read.php
template/wind/read.htm
(請務必先備份,以便出錯后可以覆蓋恢復)

一、read.php 文件
1、查找:
復制內容到剪貼板
代碼:
$J_sql="LEFT JOIN $pw_tmsgs tm ON t.tid=tm.tid LEFT JOIN pw_members m ON m.uid=t.authorid LEFT JOIN pw_memberdata md ON md.uid=t.authorid";


在其下面添加

復制內容到剪貼板
代碼:
$S_sql.=', pd.petname, pd.mypetpic, pd.pettype, pd.mypetjob, pd.mypetlevel, pd.mypetexp, pd.mypethp, pd.mypetmaxhp, pd.mypetsp, pd.mypetmp, pd.mypetmaxmp, pd.mypetgood, pd.mypetdead, pd.openpk, pr.nums, pr.fromuser';
$J_sql.=" LEFT JOIN pw_wxpetdata pd ON pd.username=m.username LEFT JOIN pw_wxrose pr ON pr.username=m.username";

2、查找:

復制內容到剪貼板
代碼:
$query = $db->query("SELECT t.*,m.uid,m.username,m.gender,m.oicq,m.groupid,m.memberid,m.icon AS micon,m.hack,m.honor,m.signature,m.regdate,m.signchange,m.medals,m.showsign,m.payemail,md.postnum,md.digests,md.rvrc,md.money,md.credit,md.currency,md.thisvisit,md.lastvisit,md.onlinetime,md.starttime $fieldadd FROM $pw_posts t LEFT JOIN pw_members m ON m.uid=t.authorid LEFT JOIN pw_memberdata md ON md.uid=t.authorid $tablaadd WHERE t.tid='$tid' AND t.ifcheck='1' $sqladd ORDER BY $order LIMIT $start_limit, $readnum");


修改為:

復制內容到剪貼板
代碼:
$query = $db->query("SELECT t.*,m.uid,m.username,m.gender,m.oicq,m.groupid,m.memberid,m.icon AS micon,m.hack,m.honor,m.signature,m.regdate,m.signchange,m.medals,m.showsign,m.payemail,md.postnum,md.digests,md.rvrc,md.money,md.credit,md.currency,md.thisvisit,md.lastvisit,md.onlinetime,md.starttime, pd.petname, pd.mypetpic, pd.pettype, pd.mypetjob, pd.mypetlevel, pd.mypetexp, pd.mypethp, pd.mypetmaxhp, pd.mypetsp, pd.mypetmp, pd.mypetmaxmp, pd.mypetgood, pd.mypetdead, pd.openpk, pr.nums, pr.fromuser $fieldadd FROM $pw_posts t LEFT JOIN pw_members m ON m.uid=t.authorid LEFT JOIN pw_memberdata md ON md.uid=t.authorid LEFT JOIN pw_wxpetdata pd ON pd.username=m.username LEFT JOIN pw_wxrose pr ON pr.username=m.username $tablaadd WHERE t.tid='$tid' AND t.ifcheck='1' $sqladd ORDER BY $order LIMIT $start_limit, $readnum");


#p# 關鍵字描述:顯示 寵物 帖子 < > read " height width

3、查找:

復制內容到剪貼板
代碼:
$anonymous=($read['anonymous'] && !$SYSTEM['viewhide'] && !$admincheck && $winduid!=$read['authorid']) ? 1 : 0;


在其下面加入

復制內容到剪貼板
代碼:
//寵物數據>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
if($read['petname']!=''){
if ($read['openpk'] == 0) {
$read['pk'] = "<font color=gray>躲在家里</font>";
}else{
$read['pk'] = "<a href=pet.php?index=petbattle&atkname=$read[username]&action=askpk><font color=red>接受挑戰(zhàn)</font></a>";
}
$petjob = $read['mypetjob'];
$petlevel= $read['mypetlevel'];
$levelpic = ($petlevel/10)>11?11:intval($petlevel/10);
if ($petjob == 0 or ($petjob <=3 && $petlevel < 200) or $read['mypetpic']=='') {
$read['petpic'] = "<img src=wxpet/images/pet/$read[pettype]/$read[pettype]$levelpic.gif border=0>";
} else {
$read['petpic'] = "<img src=$read[mypetpic] border=0>";
}

$petlevelfloor = pow (log10 (ceil($read['mypetexp']/ ($petjob * 0.2 1))), 3);
$epf=intval (100 * ($petlevelfloor - intval ($petlevelfloor)));
$hpf = floor (100 * ($read['mypethp'] / $read['mypetmaxhp']));
$mpf = $read['mypetmaxmp']?(floor (100 * ($read['mypetmp'] / $read['mypetmaxmp']))):0;
$spf = floor (100 * ($read['mypetsp'] / 5000)) - 1;
$read['epf']=$epf>97?97:$epf;
$read['hpf']=$hpf>97?97:$hpf;
$read['mpf']=$mpf>97?97:$mpf;
$read['spf']=$spf>97?97:$spf;

$read['petdead']= $read['mypetdead']?'死 亡':'生存';
$petgood = $read['mypetgood'];
if ($petgood >= 100) {
$read['shit'] = "死忠";
}elseif($petgood >=50) {
$read['shit']="忠誠";
}elseif($petgood >= -50) {
$read['shit'] = "猜疑";
}elseif($petgood > -100) {
$read['shit'] = "厭惡";
}else{
$read[shit] = "<font color=red>不鳥!</font>";
}
}
//寵物數據<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<


============================================================================

二、修改 template/wind/read.htm

查找:

復制內容到剪貼板
代碼:
<b>$read[author]</b>


下面添加:

復制內容到剪貼板
代碼:
<!--
EOT;
if($read[nums]){print <<<EOT
-->
<span class="fr"><img src='wxpet/images/item/other/rose.gif' alt="玫瑰花" width="15px" height="15px"> <font color="red" title="{$read[fromuser]}"><b>$read[nums]</b> 朵</font></span>
<!--
EOT;
}print <<<EOT
-->


查找:

復制內容到剪貼板
代碼:
最后登錄:{$read[lastlogin]} </span>
</span></span>
</th>

修改為:

復制內容到剪貼板
代碼:
最后登錄:{$read[lastlogin]} </span>
</span></span>
<!--
EOT;
if($read[petname]){print <<<EOT
-->
<div align="left">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr><td>
<fieldset style='width:95%;'>
<legend><font color=red>寵物信息</font></legend>
<div align="center">寵物名: <a href="pet.php?index=viewpet&username=$read[username]">$read[petname]</a><br>
<script language="JavaScript">
var i=0;
function draw(obj,s){
if(obj.style.display=='none'){
obj.style.display='block';
s.innerHTML='[<font color=red>隱藏寵物資料</font>]';
}else{
obj.style.display='none';
s.innerHTML='[<font color=blue>顯示寵物資料</font>]';
}
}
</script>
<span style=cursor:hand onclick=draw(none$read[lou],block$read[lou]) id=block$read[lou] title="顯示/隱藏 寵物資料">[<font color=blue>顯示寵物資料</font>]</span>
</div><br>

<div id=none$read[lou] style=display:none>
<div align="center">$read[petpic]</div>
寵物: $read[petdead] $read[shit] $read[pk]<br>
級別: $read[mypetjob] 轉/ $read[mypetlevel] 級<br>
HP: $read[mypethp] / $read[mypetmaxhp]<br>
<table width='98%' border='0' cellspacing='0' cellpadding='0' bordercolor='#000000'>
<tr>
<TD width=3 height=13><IMG height=13 src='wxpet/images/rpg/img_left.gif' width=3></TD>
<TD background= "wxpet/images/rpg/img_backing.gif" height=13><img src='wxpet/images/rpg/orange.gif' width=' $read[hpf]%' height='9'><img src=' wxpet/images/rpg/hp.gif' height='9'></td>
<TD width=3 height=13><IMG height=13 src='wxpet/images/rpg/img_right.gif' width=3></TD>
</tr>
</table>
MP: $read[mypetmp] / $read[mypetmaxmp]<br>
<table width='98%' border='0' cellspacing='0' cellpadding='0' bordercolor='#000000'>
<tr>
<TD width=3 height=13><IMG height=13 src='wxpet/images/rpg/img_left.gif' width=3></TD>
<TD background="wxpet/images/rpg/img_backing.gif" height=13><img src='wxpet/images/rpg/blue.gif' width=' $read[mpf]%' height='9'><img src='wxpet/images/rpg/exp.gif' height='9'></td>
<TD width=3 height=13><IMG height=13 src='wxpet/images/rpg/img_right.gif' width=3></TD>
</tr>
</table>
SP: $read[mypetsp] / 5000<br>
<table width='98%' border='0' cellspacing='0' cellpadding='0' bordercolor='#000000'>
<tr>
<TD width=3 height=13><IMG height=13 src='wxpet/images/rpg/img_left.gif' width=3></TD>
<TD background="wxpet/images/rpg/img_backing.gif" height=13><img src=' wxpet/images/rpg/green.gif' width='$read[spf]%' height='9'><img src='wxpet/images/rpg/mp.gif' height='9'></td>
<TD width=3 height=13><IMG height=13 src=' wxpet/images/rpg/img_right.gif' width=3></TD>
</tr>
</table>
EXP: $read[epf]% [ $read[mypetexp] ]<br>
<table width='98%' border='0' cellspacing='0' cellpadding='0' bordercolor='#000000'>
<tr>
<TD width=3 height=13><IMG height=13 src='wxpet/images/rpg/img_left.gif' alt= $read[mypetexp] width=3></TD>
<TD background="wxpet/images/rpg/img_backing.gif" height=13><img src='wxpet/images/rpg/blue.gif' width='$read[epf]%' alt= $read[mypetexp] height='9'><img src=' wxpet/images/rpg/exp.gif' alt= $read[mypetexp] height='9'></td>
<TD width=3 height=13><IMG height=13 src='wxpet/images/rpg/img_right.gif' alt= $read[mypetexp] width=3></TD>
</tr>
</table>
</div>
</fieldset>
</td></tr>
</table>
</div> <!--
EOT;
}print <<<EOT
-->
</th>


今天,你打工了嗎?打工可以賺錢,你還不知道?


相關文章

  • phpwind的rewrite重寫原理

    關于pw的重寫,phpwind用到了一般人不會太關注的一個技術點,輸出緩沖(output buffer - ob_),下面我們就分析一下phpwind的rewrite重寫原理
    2014-01-24
  • 偽靜態(tài)在phpWind中的應用

    偽靜態(tài)在phpWind的應用,解釋相關說明。
    2013-10-29
  • phpwind9.0系統(tǒng)的視覺進化論(圖文)

    近日phpwind內部做了一次關于產品視覺方面的主題分享。會上phpwind主視覺設計師王杰同學分享了他在視覺設計中的心得和觀念。小編也有幸被邀請旁聽分享,在分享會過后本小版
    2012-08-23
  • phpwind 的編碼錯誤導致cookie失效的解決,表象是無法注冊登錄

    一個phpwind 8.0 utf8 系統(tǒng)錯誤表現(xiàn)為無法注冊登錄,費老勁調試,發(fā)現(xiàn) data/sql_config.php 文件由于在windows 記事本編輯后導致被自動增加了bom
    2011-12-23
  • Phpwind7.5應用中心:基礎、第三方在線應用等設置

    應用中心:基礎、第三方在線應用、各種特殊功能帖的設置。它包括:
    2010-01-24
  • phpwind7.5運營工具:站點運營必須工具集合

    運營工具:站點運營必須工具集合。它包括:
    2010-01-24
  • phpwind7.5完備的積分體系

    一個好的社區(qū)積分體系,能很好的帶動論壇會員的積極性和粘合度,對活躍論壇氣氛,促進會員發(fā)帖興趣,公平公正獎勵等都有非常好的效果,PHPWind一直追求這個功能的協(xié)調
    2010-01-24
  • phpwind7.5靈活的業(yè)務支持體系

    不同的地方,民俗、經濟、生活習慣都有所不同,不同的行業(yè)也有不同的規(guī)則,這就導致了不同社區(qū)有不同的資源,不同的用戶,從而在社區(qū)運營和業(yè)務上有不同的側重。作
    2010-01-24
  • phpwind論壇關閉在線列表

    關鍵字描述:在線 關閉 論壇   < EOT > " /a> index.php 使打開在線列表功能無效 打開index.php 將:if($windid==$manager || $usertotal<2000)
    2009-06-06
  • 巧用Discuz!7.0后臺防灌水功能

    關鍵字描述:巧用 Discuz!7.0 后臺 灌水功能 BBS 論壇 康盛創(chuàng)想 建站產品   Discuz!7.0是康盛創(chuàng)想(Comsenz)公司于2008年12月份發(fā)布的一款論壇BBS建站產品。Discuz!7
    2009-06-06

最新評論

城口县| 江山市| 水城县| 兴安县| 桐梓县| 沂水县| 和静县| 阳泉市| 泰来县| 义乌市| 天柱县| 砀山县| 右玉县| 宜章县| 蒙自县| 嵊州市| 冷水江市| 左贡县| 桦川县| 连平县| 乐至县| 房产| 云和县| 临朐县| 安泽县| 澎湖县| 五原县| 岱山县| 金平| 靖安县| 高要市| 铅山县| 通化县| 林州市| 石景山区| 大城县| 当涂县| 沈丘县| 扶绥县| 淄博市| 阳江市|