蓝雨 发表于 2009-8-17 09:24:37

仿7.5实现点击显示和隐藏个人信息for pw7.32

template/wind/read.htm找到代码


<th style=\"width:185px;padding:0 0 2em 0;\" rowspan=\"2\" class=\"r_two\"> <div style=\"line-height:24px;padding:5px 5px 0 12px;\"> <div class=\"listread fl\"> <!-- EOT; if($db_showonline && checkOnline($read)){print <<<EOT --> <a class=\"readonline\" href=\"javascript:;\" onclick=\"sendmsg(pw_ajax.php?action=addfriend&touid=$read,,sf_$read)\" style=\"cursor:pointer;\"title=\"加为好友\"/>加为好友</a> <!-- EOT; }elseif($db_showonline){print <<<EOT --> <a class=\"readoffline\" href=\"javascript:;\" onclick=\"sendmsg(pw_ajax.php?action=addfriend&touid=$read,,sf_$read)\" style=\"cursor:pointer\" title=\"\" /> 加为好友 </a> <!-- EOT; }print <<<EOT --> </div> <b class=\"fl black\"><a href=\"u.php?action=show&uid=$read\" target=\"_blank\">$read</a></b> <div class=\"c\"></div> </div> <!-- EOT; if($read){print <<<EOT --> <div class=\"honor\" style=\"padding-top:0;\">$read</div> <!-- EOT; }print <<<EOT --> <div class=\"user-pic\"> <table style=\"border:0;\"> <tr> <td width=\"1\"> <!-- EOT; if($db_menu>3){print <<<EOT --> <a href=\"u.php?action=show&uid=$read\" target=\"_blank\" onmouseover=\"mt=setTimeout(read.open(\\showface_$read\\,\\sf_$read\\,1,21);,700);\" onmouseout=\"clearTimeout(mt);read.close();\" style=\"cursor:pointer;\">$read</a> <!-- EOT; }else{print <<<EOT --> <a href=\"u.php?action=show&uid=$read\" target=\"_blank\" >$read</a> <!-- EOT; }print <<<EOT --></td> <td style=\"vertical-align:top\"><span id=\"sf_$read\"></span></td> </tr> </table> </div> <div style=\"padding-left:12px;padding-bottom:8px;\"> 级别: {$read}<br /> <img src=\"$imgpath/$stylepath/level/$read.gif\" style=\"margin:.2em 0 .2em 0;display:block\"/> $read <!-- EOT; $style = ; if($db_menu>3){print <<<EOT --> <span class=\"user-info\" id=\"showface_$read\" style=\"display:none\"> <span class=\"user-infoWrap\"> <span class=\"co\"></span> <div class=\"listread\"> <!-- EOT; }else{print <<<EOT --> <span class=\"user-info2\" id=\"showface_$read\"> <span class=\"user-infoWrap2\"> <div class=\"listread\"> <!-- EOT; }if($db_hackdb && $bg_ifopen){print <<<EOT --> <a class=\"readblog\" href=\"$bg_blogurl/blog.php?bbsuid=$read\" target=\"_blank\" title=\"进入个人主页\">个人主页</a> <!-- EOT; }print <<<EOT --> <a href=\"u.php?action=show&uid=$read\" title=\"查看作者资料\" class=\"readprofile\">作者资料</a> <a title=\"发送短消息\" class=\"readmessage\" onclick=\"sendmsg(pw_ajax.php?action=msg&touid=$read,,sf_$read)\" style=\"cursor:pointer;\">发送短消息</a> <!-- EOT; if($groupid!=guest && $db_hackdb){print <<<EOT --> <a title=\"对该用户使用道具\" class=\"readmagic\" onclick=\"sendmsg(pw_ajax.php?action=usertool&uid=$read,,sf_$read)\" style=\"cursor:pointer\">使用道具</a> <!-- EOT; }if($read){print <<<EOT --> <a title=\"QQ:$read\" href=\"http://wpa.qq.com/msgrd?V=1&Uin=$read&Site=$db_bbsname&Menu=yes\" target=\"_blank\" class=\"readqq\">QQ联系</a> <!-- EOT; }if ($read) {print <<<EOT --> <a class=\"readww\" title=\"阿里旺旺:$read\" href=\"http://amos.im.alisoft.com/msg.aw?uid=$read&site=cntaobao\" target=\"_blank\">阿里旺旺</a> <!-- EOT; }print <<<EOT --> </div> <div class=\"c\" style=\"width:120px;height:5px;\"></div> UID: <span class=\"f12\">$read</span><br /> 精华: <!-- EOT; if($read){print <<<EOT --> <a href=\"search.php?authorid=$read&digest=1\" target=\"_blank\" class=\"s4\">$read</a> <!-- EOT; }else{print <<<EOT --> <span class=\"s4\">$read</span> <!-- EOT; }print <<<EOT --> <br /> 发帖: <span class=\"s1 f12\">$read</span><br /> $db_rvrcname: <span class=\"s2 f12\">$read $db_rvrcunit</span><br /> $db_moneyname: <span class=\"s3 f12\">$read $db_moneyunit</span><br /> <!-- EOT; if($db_ads){print <<<EOT --> $db_creditname: <span class=\"s1 f12\">$read $db_creditunit</span><br /> <!-- EOT; }if($db_showcustom){ foreach($_CREDITDB as $k=>$v){ if(strpos($db_showcustom,\",$k,\")!==false){ !$customdb[$read][$k] && $customdb[$read][$k]=0; print <<<EOT --> $v: <span class=\"s2 f12\">{$customdb[$read][$k]} $v</span><br /> <!-- EOT; }}}if($customfield){ foreach($customfield as $k=>$val){ if($val){ if($val&&$winduid!=$read&&strpos(\",$val,\",\",$groupid,\")===false){ continue; }$field=\"field_\".(int)$val; if($val==3){ foreach(explode(\"\\n\",$val) as $k=>$v){ list($k,$v)=explode(=,$v); if($read[$field]==$k){ $read[$field]=$v; }}}print <<<EOT --> $val: $read[$field]<br /> <!-- EOT; }}}if($read){ foreach($read as $k => $val){ if($custominfo[$k]){ $custominfo[$k]=str_replace(\"{{$k}}\",$val,$custominfo[$k]); $custominfo[$k] && $val=$custominfo[$k]; $val=\"<a href=\\\"{$custominfo[$k]}\\\" target=\\\"_blank\\\">$val</a>\"; }print <<<EOT --> {$custominfo[$k]}: $val<br /> <!-- EOT; }}if($db_showcolony && $colonydb[$read]){ $v=$colonydb[$read]; print <<<EOT --> 群组: <a href=\"mode.php?m=o&q=group&cyid=$v\" target=\"_blank\">$v</a><br /> <!-- EOT; }if($db_ifonlinetime){print <<<EOT --> 在线时间: $read(时)<br /> <!-- EOT; }print <<<EOT --> 注册时间: <span class=\"gray\">{$read}</span><br /> 最后登录: <span class=\"gray\">{$read}</span></span></span></div> </th>

替换为



<th style=\"width:185px;padding:0 0 2em 0;\" rowspan=\"2\" class=\"r_two\"> <div style=\"line-height:24px;padding:5px 5px 0 12px;\"> <div class=\"listread fl\"> <!-- EOT; if($db_showonline && checkOnline($read)){print <<<EOT --> <a class=\"readonline\" href=\"javascript:;\" onclick=\"sendmsg(pw_ajax.php?action=addfriend&touid=$read,,sf_$read)\" style=\"cursor:pointer;\"title=\"加为好友\"/>加为好友</a> <!-- EOT; }elseif($db_showonline){print <<<EOT --> <a class=\"readoffline\" href=\"javascript:;\" onclick=\"sendmsg(pw_ajax.php?action=addfriend&touid=$read,,sf_$read)\" style=\"cursor:pointer\" title=\"\" /> 加为好友 </a> <!-- EOT; }print <<<EOT --> </div> <b class=\"fl black\"><a href=\"u.php?action=show&uid=$read\" target=\"_blank\">$read</a></b> <div class=\"c\"></div> </div> <!-- EOT; if($read){print <<<EOT --> <div class=\"honor\" style=\"padding-top:0;\">$read</div> <!-- EOT; }print <<<EOT --> <div class=\"user-pic\"> <table style=\"border:0;\"> <tr> <td width=\"1\"> <!-- EOT; if($db_menu>3){print <<<EOT --> <a href=\"u.php?action=show&uid=$read\" target=\"_blank\" onmouseover=\"mt=setTimeout(read.open(\\showface_$read\\,\\sf_$read\\,1,21);,700);\" onmouseout=\"clearTimeout(mt);read.close();\" style=\"cursor:pointer;\">$read</a> <!-- EOT; }else{print <<<EOT --> <a href=\"u.php?action=show&uid=$read\" target=\"_blank\" >$read</a> <!-- EOT; }print <<<EOT --></td> <td style=\"vertical-align:top\"><span id=\"sf_$read\"></span></td> </tr> </table> </div> <script language=\"javascript\"> function showcard(id,uid) { read.obj = getObj(id); try {ajax.send(pw_ajax.php?action=showcard&uid=+uid,,ajax.get);} catch(e){} } </script> <div style=\"padding-left:12px;padding-bottom:8px;\"> 级别: {$read}<br /> <img src=\"$imgpath/$stylepath/level/$read.gif\" style=\"margin:.2em 0 .2em 0;display:block\"/> $read <span class=\"user-info2\"> <span class=\"user-infoWrap2\"> <div class=\"listread\"> <!-- EOT; if($db_hackdb && $bg_ifopen){print <<<EOT --> <a class=\"readblog\" href=\"$bg_blogurl/blog.php?bbsuid=$read\" target=\"_blank\" title=\"进入个人主页\">个人主页</a> <!-- EOT; }print <<<EOT --> <a href=\"u.php?action=show&uid=$read\" title=\"查看作者资料\" class=\"readprofile\">作者资料</a> <a title=\"发送短消息\" class=\"readmessage\" onclick=\"sendmsg(pw_ajax.php?action=msg&touid=$read,,sf_$read)\" style=\"cursor:pointer;\">发送短消息</a> <!-- EOT; if($groupid!=guest && $db_hackdb){print <<<EOT --> <a title=\"对该用户使用道具\" class=\"readmagic\" onclick=\"sendmsg(pw_ajax.php?action=usertool&uid=$read,,sf_$read)\" style=\"cursor:pointer\">使用道具</a> <!-- EOT; }if($read){print <<<EOT --> <a title=\"QQ:$read\" href=\"http://wpa.qq.com/msgrd?V=1&Uin=$read&Site=$db_bbsname&Menu=yes\" target=\"_blank\" class=\"readqq\">QQ联系</a> <!-- EOT; }if ($read) {print <<<EOT --> <a class=\"readww\" title=\"阿里旺旺:$read\" href=\"http://amos.im.alisoft.com/msg.aw?uid=$read&site=cntaobao\" target=\"_blank\">阿里旺旺</a> <!-- EOT; }print <<<EOT --></div> <div class=\"c\" style=\"width:120px;height:5px;\"></div> <!-- EOT; if(!$db_readinfo){print<<<EOT --> <a id=\"info_$read\" onclick=\"showuserinfo($read);\" style=\"cursor:pointer; text-decoration:underline;\">显示用户信息</a><span id=\"gif_$read\" onclick=\"showuserinfo($read);\" style=\"cursor:pointer;\"><img src=\"$imgpath/read_down.gif\"></span> <!-- EOT; }print<<<EOT --> </span> </span> <!-- EOT; if(!$db_readinfo){print<<<EOT --> <span class=\"user-info2\" id=\"showface_$read\" style=\"display:none\"> <script language=\"javascript\"> function showuserinfo (id) { if (getObj(showface_ + id).style.display == none) { getObj(showface_ + id).style.display = ; getObj(info_ + id).innerHTML = 隐藏用户信息; getObj(gif_ + id).innerHTML = \"<img src=\\\"$imgpath/read_up.gif\\\">\"; } else { getObj(showface_ + id).style.display = none; getObj(info_ + id).innerHTML = 显示用户信息; getObj(gif_ + id).innerHTML = \"<img src=\\\"$imgpath/read_down.gif\\\">\"; } } </script> <!-- EOT; }else{print<<<EOT --> <span class=\"user-info2\" id=\"showface_$read\"> <!-- EOT; }print<<<EOT --> <span class=\"user-infoWrap2\"> <div class=\"c\" style=\"width:120px;height:5px;\"></div> UID: <span class=\"f12\">$read</span><br /> 精华: <!-- EOT; if($read){print <<<EOT --> <a href=\"search.php?authorid=$read&digest=1\" target=\"_blank\" class=\"s4\">$read</a> <!-- EOT; }else{print <<<EOT --> <span class=\"s4\">$read</span> <!-- EOT; }print <<<EOT --> <br /> 发帖: <span class=\"s1 f12\">$read</span><br /> $db_rvrcname: <span class=\"s2 f12\">$read $db_rvrcunit</span><br /> $db_moneyname: <span class=\"s3 f12\">$read $db_moneyunit</span><br /> $db_currencyname: <span class=\"s4 f12\">$read $db_currencyunit</span><br /> <!-- EOT; if($db_ads){print <<<EOT --> $db_creditname: <span class=\"s1 f12\">$read $db_creditunit</span><br /> <!-- EOT; }if($db_showcustom){ foreach($_CREDITDB as $k=>$v){ if(strpos($db_showcustom,\",$k,\")!==false){ !$customdb[$read][$k] && $customdb[$read][$k]=0; print <<<EOT --> $v: <span class=\"s2 f12\">{$customdb[$read][$k]} $v</span><br /> <!-- EOT; }}}if($customfield){ foreach($customfield as $k=>$val){ if($val){ if($val&&$winduid!=$read&&strpos(\",$val,\",\",$groupid,\")===false){ continue; }$field=\"field_\".(int)$val; if($val==3){ foreach(explode(\"\\n\",$val) as $k=>$v){ list($k,$v)=explode(=,$v); if($read[$field]==$k){ $read[$field]=$v; }}}print <<<EOT --> $val: $read[$field]<br /> <!-- EOT; }}}if($read){ foreach($read as $k => $val){ if($custominfo[$k]){ $custominfo[$k]=str_replace(\"{{$k}}\",$val,$custominfo[$k]); $custominfo[$k] && $val=$custominfo[$k]; $val=\"<a href=\\\"{$custominfo[$k]}\\\" target=\\\"_blank\\\">$val</a>\"; }print <<<EOT --> {$custominfo[$k]}: $val<br /> <!-- EOT; }}if($db_showcolony && $colonydb[$read]){ $v=$colonydb[$read]; print <<<EOT --> 群组: <a href=\"mode.php?m=o&q=group&cyid=$v\" target=\"_blank\">$v</a><br /> <!-- EOT; }if($db_ifonlinetime){print <<<EOT --> 在线时间: $read(时)<br /> <!-- EOT; }print <<<EOT --> 注册时间: <span class=\"gray\">{$read}</span><br /> 最后登录: <span class=\"gray\">{$read}</span> </span> </span> </div> </th>
页: [1]
查看完整版本: 仿7.5实现点击显示和隐藏个人信息for pw7.32