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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

请问下$post[petpic]在哪修改

[复制链接]
默契网管 发表于 2008-3-11 18:09:04 | 显示全部楼层 |阅读模式
RT

请问下$post[petpic]在哪修改
 楼主| 默契网管 发表于 2008-3-11 18:24:45 | 显示全部楼层
无心宠物的
回复

使用道具 举报

 楼主| 默契网管 发表于 2008-3-14 15:24:23 | 显示全部楼层
求助啊  2.4版本是不是改过了
回复

使用道具 举报

qcnh2000 发表于 2008-3-14 15:30:53 | 显示全部楼层
$post[petpic]该变量并没有改变
只需要打开htm文件修改图片链接就可以正常显示了
回复

使用道具 举报

 楼主| 默契网管 发表于 2008-3-14 15:34:46 | 显示全部楼层
图片连接
现在的是
[img]http://www.gui5.com/images/pet/pet/b/b11.gif[/img]

这个啊。  但是HTM文件里没有这个图片地址
回复

使用道具 举报

qcnh2000 发表于 2008-3-14 15:48:30 | 显示全部楼层
打开 viewthread.htm 文件
搜索
  1. <div align="center">$post[petpic]</div>
  2. 宠物状态: $post[petdead] $post[shit]<br>
  3. 宠物级别: $post[mypetjob] 转/ $post[mypetlevel] 级<br>
  4. HP:  $post[mypethp] /  $post[mypetmaxhp]<br>
复制代码
把下面的图片目录更改为 wxpet/images/
回复

使用道具 举报

qcnh2000 发表于 2008-3-14 15:49:27 | 显示全部楼层
比如 <IMG height=13 src='images/pet/rpg/img_left.gif' width=3>
更改为 <IMG height=13 src='wxpet/images/rpg/img_left.gif' width=3>
回复

使用道具 举报

 楼主| 默契网管 发表于 2008-3-14 15:58:04 | 显示全部楼层
都改了也没用哦

麻烦你看看

[ 本帖最后由 默契网管 于 2008-3-14 15:59 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

qcnh2000 发表于 2008-3-14 16:05:42 | 显示全部楼层
打开 viewthread.php
搜索
  1. //宠物数据>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
  2. if($post['petname']!=''){
  3.         $petjob = $post['mypetjob'];
  4.         $petlevel= $post['mypetlevel'];
  5.         $levelpic = ($petlevel/10)>11?11:intval($petlevel/10);
  6.         if ($petjob == 0 or ($petjob <=3 && $petlevel < 200) or $post['mypetpic']=='') {
  7.                 $post['petpic'] = "<img src=images/pet/pet/$post[pettype]/$post[pettype]$levelpic.gif border=0>";
  8.         } else {
  9.                 $post['petpic'] = "<img src=$post[mypetpic] border=0>";
  10.         }
  11.                         
  12.         $petlevelfloor = pow (log10 (ceil($post['mypetexp']/ ($petjob * 0.2 + 1))), 3);
  13.         $epf=intval (100 * ($petlevelfloor - intval ($petlevelfloor)));
  14.         $hpf = floor (100 * ($post['mypethp'] / $post['mypetmaxhp']));
  15.         $mpf = $post['mypetmaxmp']?(floor (100 * ($post['mypetmp'] / $post['mypetmaxmp']))):0;
  16.         $spf = floor (100 * ($post['mypetsp'] / 5000)) - 1;
  17.         $post['epf']=$epf>97?97:$epf;
  18.         $post['hpf']=$hpf>97?97:$hpf;
  19.         $post['mpf']=$mpf>97?97:$mpf;
  20.         $post['spf']=$spf>97?97:$spf;
  21.                         
  22.         $post['petdead']= $post['mypetdead']?'死亡':'生存';
  23.         $petgood = $post['mypetgood'];   
  24.         if ($petgood >= 100) {
  25.                 $post['shit'] = "死忠";
  26.         }elseif($petgood >=50) {
  27.                 $post['shit']="忠诚";
  28.         }elseif($petgood >= -50) {
  29.                 $post['shit'] = "猜疑";
  30.         }elseif($petgood > -100) {
  31.                 $post['shit'] = "厌恶";
  32.         }else{
  33.                 $post[shit] = "<font color=red>不鸟!</font>";
  34.         }
  35. }
  36. //宠物数据<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<               
复制代码
然后把所有的images/pet/pet/改为wxpet/images/pet/

评分

1

查看全部评分

回复

使用道具 举报

 楼主| 默契网管 发表于 2008-3-14 16:09:33 | 显示全部楼层
已经好了 感谢。
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-21 08:44 , Processed in 0.129381 second(s), 20 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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