- 積分
- 1910
- 威望
- 1910
- 金錢
- 1663
- 最後登錄
- 2023-10-14
|
回復 3# 梅子爱阿政
哦?我觉得是可以改的,等待无界来说明吧。
因为他将爱秀社区封印了,不一定能找到源码,我这里贴粗来:
应该是编辑viewthread_node模版的吧,只贴这一块的代码
【一】查找:<td class="postcontent postbottom">
在其下面添加:- <!-- 仿X3点评 -->
- {eval $q2=$db->query("SELECT * FROM zy_postinner WHERE pid = " . $post[pid] . " ORDER BY ptid DESC LIMIT 5");}
- {eval $zyhomeshow=Array();}
- {eval $i=0;}
- {eval while ($asdfgh=$db->fetch_array($q2)) $zyhomeshow[$i++] = $asdfgh ; }
- <div id="zypi_$post[pid]" class="zypi">
- <div class="zypi_show">
- <!--{if ($post[zy_postinner] != 0)}-->
- <h3><span class="icon_ring vm"></span>点评</h3>
- <!--{/if}-->
- <!--{loop $zyhomeshow $thing}-->
- <div id="zypostinner_<!--{echo $thing[ptid]}-->" class="zypi_in" onmouseover="zypi_showover(this)" onmouseout="zypi_showout(this)" style="clear: left;
- padding: 0.5em 0;">
- <div class="zypi_in1"><img src="uc_server/avatar.php?uid=<!--{echo $thing[uid]}-->&size=small" /></div>
- <div class="zypi_in2">
- <p class="zypi_in2_in1">
- <span style="float: left;">
- <a href="space.php?uid=<!--{echo $thing[uid]}-->"><!--{echo $thing[name]}--></a>
-
- </span>
- <div style="margin-left: 100px;">
- <em class="zypi_in2_in2"><!--{echo discuzcode(preg_replace("/\s?\[at\](.+?)\[\/at\]\s?/ies", "", $thing[msg]), 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0);}--></em>
-
- <span style="color: #999;">{eval $postime=dgmdate("$dateformat $timeformat", $thing[time] + $timeoffset * 3600);}发表于 <!--{echo $postime;}--> {eval $lastip = $db->fetch_array($db->query("SELECT * FROM cdb_members WHERE uid=".$thing[uid]));}<!--{if $discuz_uid && $adminid >= 1}-->IP:$lastip[lastip]<!--{/if}--></span><!--{if ($thing[uid] ==$discuz_uid || $discuz_uid == 1)}--><a onclick="zypi_delete($thing[ptid],$post[pid]);" style="cursor: pointer;color:#999;">删除</a><!--{/if}--></div>
- </p>
- </div>
- <div class="zypi_in3"></div>
- <div class="zypi_in4"><button onclick="zypi_reply(this)">回复</button></div>
- </div>
- <!--{/loop}-->
- <div class="zypi_btmbar">
- <!--{if $post[zy_postinner]>5}--><div class="zypi_showevery"><a class="nxt" onclick="zypi_showall(this)">下一页</a></div><!--{/if}-->
- <!--{if ($discuz_uid)}-->
- <div class="zypi_postbox_btn"><a href="javascript:void 0" onclick="zypi_togglebox(this)" id="gtrf_$post[pid]" style="display:none;">我也说一句</a></div>
- <!--{/if}-->
- </div>
- </div>
- <div class="s_clear"></div>
- <div class="zypi_postbox dialog">
- <div class="dialog-title" style="width: 580px!important;"></div>
- <em id="return_comment" fwin="comment">点评</em>
- <div style="width: 600px; border: 1px solid; border-color: #999 #CCC #CCC #999;margin: 35px 0 0 8px;">
- <div class="bar_cm">
- <div class="fpd">
- <cite href="javascript:;" title="{lang e_bold}" class="tb_bold" onclick="seditor_insertunit('gtrf_$post[pid]', '[b]', '[/b]')">B</cite>
- <cite href="javascript:;" title="{lang e_forecolor}" class="tb_color" id="gtrf_$post[pid]forecolor" onclick="showColorBox(this.id, 2, 'gtrf_$post[pid]')">Color</cite>
- <cite href="javascript:;" class="tb_smilies" id="gtrf_$post[pid]smilies" onclick="showMenu({'ctrlid':this.id,'evt':'click','layer':2});return false">Smilies</cite>
- <script type="text/javascript" src="forumdata/cache/smilies_var.js?{VERHASH}" reload="1"></script>
- <script type="text/javascript" reload="1">smilies_show('gtrf_$post[pid]smiliesdiv', $smcols, 'gtrf_$post[pid]');</script>
- </div>
- </div>
- </div>
- <SCRIPT LANGUAGE="JavaScript">
- function textCounter(field, countfield, maxlimit) {
- if (field.value.length > maxlimit)
- field.value = field.value.substring(0, maxlimit);
- else
- countfield.value = maxlimit - field.value.length;
- }
- </SCRIPT>
- <p>
- <form name=myform action="">
- <textarea name="message" cols="28" rows="5" onKeyDown="textCounter(message,remLen,80);" onKeyUp="textCounter(message,remLen,80);" id="gtrf_$post[pid]message"></textarea>
- <div class="dp_shuru">您还可以输入:<input class="dp_num" name="remLen" type="text" value="80" size="5" readonly="readonly">个字符</div>
- </form>
- <a href="javascript:void 0" class="float_close_a" onclick="document.getElementById('gtrf_$post[pid]').click();" style="float:right;display:block!important;">X</a></p>
- <p style="padding: 8px 10px; height: 26px;border-top: 1px solid #CCC; background: #F2F2F2;"><button class="dp_fb">发布</button><span></span><span class="zypi_ptid_hide"></span> <a href="javascript:void 0" onclick="zypi_unreply(this)" style="display:none">X</a></p>
- </div>
- </div>
- <!-- 仿X3点评end -->
複製代碼 【二】查找:
<!--{if $allowpostreply}-->
在其上面添加:- <!--{if $discuz_uid}--><a class="zypi_postbox_btn cmmnt" href="javascript:;" onclick="document.getElementById('gtrf_$post[pid]').click();">点评</a><!--{/if}-->
複製代碼 |
|