无心宠物帖子内显示(玫瑰花 版)for pw6.0

无心宠物帖子内显示(玫瑰花 版)for pw6.0,第1张

无心宠物帖子内显示(玫瑰花版)forpw6.0

关键词:显示宠物帖子阅读“身高宽度功能描述:除了在个人资料上显示宠物信息外,增加论坛ID右侧显示玫瑰数量。玫瑰通过宠物系统获得,也可以在专门店或者普通门店出售。会员点击或购买玫瑰后,会显示在用户名右侧。影响

关键字描述:显示宠物帖子read"heightwidth

说明:
除了在个人资料上显示宠物信息外,增加论坛ID右侧显示的玫瑰数量。玫瑰通过宠物系统获得,也可以在专门店或者普通门店出售。会员点击或购买玫瑰后,会显示在用户名右侧。

效果:
在侠客站长论坛左侧(http://bbs.jb51.net)看到我的个人信息。

要更改的文件:
read.php
template/wind/read.htm
(请先做好备份,以便出错后覆盖恢复)

一、read.php档案。查找:
将内容复制到剪贴板
代码:
$j_SQL="leftjoin$pw_tmsgstmont.tid=TM.tidleftjoinpw_membersmonm.uid=t


在其下方添加。

将内容复制到剪贴板
代码:
$s_sql。=',pd.petname,pd.mypetpic,pd.pettype,pd.mypetjob,pd.mypetlevel,PD.mypetxp,pd.mypetthp,pd.mypetmaxhp,pd.mypetsp,pd.mypetmp,pd.mypetmaxmp,pd.mypetgood,pd.mypetdead,pd.openpk,pr.nums,pr.fromuser';
$J_sql。="LEFTJOINpw_wxpetdataPDONPD.username=m.usernameLEFTJOINpw_wxroseprONpr.username=m.username";

2.查找:

将内容复制到剪贴板
代码:
$query=$db-->;query("SELECTt.*,m.uid,m.username,m.gender,m.oicq,m.groupid,m.memberid,m.iconASmicon,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。


修改为:

将内容复制到剪贴板
代码:
$query=$db-->;query("SELECTt.*,m.uid,m.username,m.gender,m.oicq,m.groupid,m.memberid,m.iconASmicon,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。


关键字描述:显示宠物帖子阅读“高度宽度

3.查找:

将内容复制到剪贴板
Code:
$anonymous=($read['anonymous']&;!$SYSTEM['viewhide']&;&!$admincheck&&$winduid!=$read['authorid'])?1:0;


在其下方添加。

复制内容到剪贴板
代码:
//宠物数据>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
if($read['petname']!=''){
if($read['openpk']==0){
$read['pk']="<fontcolor=gray>躲在家里</font>";
}else{
$read['pk']="<ahref=pet.php?index=petbattle&atkname=$read[username]&action=askpk><fontcolor=red>接受挑战</font></a>";
}
$petjob=$read['mypetjob'];
$petlevel=$read['mypetlevel'];
$levelpic=($petlevel/10)>11?11:intval($petlevel/10);
if($petjob==0or($petjob<=3&&$petlevel<200)or$read['mypetpic']==''){
$read['petpic']="<imgsrc=wxpet/images/pet/$read[pettype]/$read[pettype]$levelpic.gifborder=0>";
}else{
$read['petpic']="<imgsrc=$read[mypetpic]border=0>";
}

$petlevelfloor=pow(log10(ceil($read['mypetexp']/($petjob*0.21))),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]="<fontcolor=red>不鸟!</font>";
}
}
//宠物数据<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<将内容复制到剪贴板
编码:
//宠物数据>:>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
if($read['petname']!=''){
if($read['openpk']==0){
$read['PK']="<;fontcolor=gray>躲在家里


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

二、修改模板/wind/read.htm

查找:

将内容复制到剪贴板
代码:
$read[作者]


增加以下内容:

复制内容到剪贴板
代码:
<!--
EOT;
if($read[nums]){print<<<EOT
-->
<spanclass="fr"><imgsrc='wxpet/images/item/other/rose.gif'alt="玫瑰花"width="15px"height="15px"><fontcolor="red"title="{$read[fromuser]}">$read[nums]朵</font></span>
<!--
EOT;
}print<<<EOT
-->将内容复制到剪贴板
代码:
<!-
EOT;
if($read[nums]){print<;<<EOT
->;
<;spanclass="fr"><img='wxpet/images/item/other/rose.gif'alt="rose"width="15px"height="15px">;<fontcolor="red"title="{$read[fromuser]}">;$read[nums]flowers<;!-
EOT;
}打印<<<EOT
->;


查找:

将内容复制到剪贴板
代码:
上次登录:{$read[Lastlogin]}<;/span>。</span>。
<;/th>;

修改为:

将内容复制到剪贴板
代码:
上次登录:{$read[Lastlogin]}<;/span>。</span>。
<;!-
EOT;
if($read[petname]){print<;<<EOT
->;
<;divalign="left">
<;tablewidth="98%"border="0"align="center"cellpadding="0"cellspacing="0">
<;tr><td>
<;fieldsetstyle='width:95%;'>
<;图例><fontcolor=red>宠物信息。</legend>;
<;divalign="center">宠物名:<;脚本语言="JavaScript">
varI=0;
functiondraw(obj,s){
if(obj.style.display=='none'){
obj.style.display='block';
s.innerhtml='[<;fontcolor=red>隐藏宠物信息

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


今天,你打工了吗?打工可以赚钱,你还不知道?<divid=none$read[Lou]style=display:none>;
<;divalign="center">$read[petpic]<;/div>;
Pet:$read[Petdead]$read[shit]$read[PK]level:$read[mypetjob]to/$read[mypetlevel]levelHP:$read[mypethp]/$read[mypetmaxhp]<;br>
<;表格宽度='98%'border='0'cellspacing='0'cellpadding='0'bordercolor='#000000'>;
<;tr>
<;TD宽度=3高度=13><IMGheight=13src='wxpet/images/RPG/img_left.gif'width=3>;</TD>;
<;TDbackground="wxpet/images/RPG/img_backing.gif"height=13>;<imgsrc='wxpet/images/RPG/orange.gif'width='$read[HPF]%'height='9'>;<imgsrc='wxpet/images/RPG/HP.gif'height='9'>;</TD>;
<;TD宽度=3高度=13><IMGheight=13src='wxpet/images/RPG/img_right.gif'width=3>;</TD>;
<;/tr>;
<;/table>;
MP:$read[mypetmp]/$read[mypetmaxmp]<;br>
<;表格宽度='98%'border='0'cellspacing='0'cellpadding='0'bordercolor='#000000'>;
<;tr>
<;TD宽度=3高度=13><IMGheight=13src='wxpet/images/RPG/img_left.gif'width=3>;</TD>;
<;TDbackground="wxpet/images/RPG/img_backing.gif"height=13>;<imgsrc='wxpet/images/RPG/blue.gif'width='$read[mpf]%'height='9'>;<imgsrc='wxpet/images/RPG/exp.gif'height='9'>;</TD>;
<;TD宽度=3高度=13><IMGheight=13src='wxpet/images/RPG/img_right.gif'width=3>;</TD>;
<;/tr>;
<;/table>;
SP:$read[mypetsp]/5000<;br>
<;表格宽度='98%'border='0'cellspacing='0'cellpadding='0'bordercolor='#000000'>;
<;tr>
<;TD宽度=3高度=13><IMGheight=13src='wxpet/images/RPG/img_left.gif'width=3>;</TD>;
<;TDbackground="wxpet/images/RPG/img_backing.gif"height=13>;<imgsrc='wxpet/images/RPG/green.gif'width='$read[SPF]%'height='9'>;<imgsrc='wxpet/images/RPG/MP.gif'height='9'>;</TD>;
<;TD宽度=3高度=13><IMGheight=13src='wxpet/images/RPG/img_right.gif'width=3>;</TD>;
<;/tr>;
<;/table>;
EXP:$read[epf]%[$read[mypetexp]]<;br>
<;表格宽度='98%'border='0'cellspacing='0'cellpadding='0'bordercolor='#000000'>;
<;tr>
<;TD宽度=3高度=13><IMGheight=13src='wxpet/images/RPG/img_left.gif'alt=$read[mypetexp]width=3>;</TD>;
<;TDbackground="wxpet/images/RPG/img_backing.gif"height=13>;<imgsrc='wxpet/images/RPG/blue.gif'width='$read[epf]%'alt=$read[mypetexp]height='9'>;<imgsrc='wxpet/images/RPG/exp.gif'alt=$read[mypetexp]height='9'>;</TD>;
<;TD宽度=3高度=13><IMGheight=13src='wxpet/images/RPG/img_right.gif'alt=$read[mypetexp]width=3>;</TD>;
<;/tr>;
<;/table>;
<;/div>;
<;/fieldset>;
<;/TD>;</tr>;
<;/table>;
<;/div>;<!-
EOT;
}打印<<<EOT
->;
<;/th>;你今天工作了吗?打工也能挣钱,不知道吗?


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zz/772146.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-03
下一篇 2022-05-03

发表评论

登录后才能评论

评论列表(0条)

保存