日前小弟购买了一个插件,是一个美食介绍的插件,
插件很不错,只是美中不足的地方是,里面的一个点评功能居然可以无限制的点评,甚至商家可以点评自己的店铺,这样就失去了点评的意义,我的构思是,限制每一个会员针对一家店只能点评一次,于是想自己二次开发插件,N此后仍然失败告终。有没有大神打救?
- <form id="reviewadd" name="reviewadd" method="post" autocomplete="off" action="{$bhome}ac=review&op=$op{if $rid}&rid=$rid{/if}" >
- <!--{if $_G[inajax]}--><input type="hidden" name="handlekey" value="$_GET[handlekey]" /><!--{/if}-->
- <input type="hidden" name="referer" value="$referer" />
- <input type="hidden" name="formhash" value="{FORMHASH}">
- <input type="hidden" name="reviewsubmit" value="true">
- <input type="hidden" id="score1" name="score1" value="$review[score1]" />
- <input type="hidden" id="score2" name="score2" value="$review[score2]" />
- <input type="hidden" id="score3" name="score3" value="$review[score3]" />
- <input type="hidden" id="score4" name="score4" value="$review[score4]" />
- <div class="rating-item cl">
- <span class="label">$blang[score1]:<i>*</i></span>
- <div class="rating-b">
- <ul>
- <li><a href="javascript:;" id="star1-1" onmouseover="bstar(1,1)" title="$blang[start1]" class="star1{if $review[score1]==1} a{/if}"></a></li>
- <li><a href="javascript:;" id="star1-2" onmouseover="bstar(1,2)" title="$blang[start2]" class="star2{if $review[score1]==2} a{/if}"></a></li>
- <li><a href="javascript:;" id="star1-3" onmouseover="bstar(1,3)" title="$blang[start3]" class="star3{if $review[score1]==3} a{/if}"></a></li>
- <li><a href="javascript:;" id="star1-4" onmouseover="bstar(1,4)" title="$blang[start4]" class="star4{if $review[score1]==4} a{/if}"></a></li>
- <li><a href="javascript:;" id="star1-5" onmouseover="bstar(1,5)" title="$blang[start5]" class="star5{if $review[score1]==5} a{/if}"></a></li>
- </ul>
- </div>
- <span id="rating1" class="hint">$blang[rating1]</span>
- </div>
- <div class="rating-item cl">
- <span class="label">$blang[score2]:<i>*</i></span>
- <div class="rating-m">
- <ul>
- <li><a href="javascript:;" id="star2-1" onmouseover="bstar(2,1)" title="$blang[start1]" class="star1{if $review[score2]==1} a{/if}"></a></li>
- <li><a href="javascript:;" id="star2-2" onmouseover="bstar(2,2)" title="$blang[start2]" class="star2{if $review[score2]==2} a{/if}"></a></li>
- <li><a href="javascript:;" id="star2-3" onmouseover="bstar(2,3)" title="$blang[start3]" class="star3{if $review[score2]==3} a{/if}"></a></li>
- <li><a href="javascript:;" id="star2-4" onmouseover="bstar(2,4)" title="$blang[start4]" class="star4{if $review[score2]==4} a{/if}"></a></li>
- <li><a href="javascript:;" id="star2-5" onmouseover="bstar(2,5)" title="$blang[start5]" class="star5{if $review[score2]==5} a{/if}"></a></li>
- </ul>
- <span id="rating2" class="hint">$blang[rating2]</span>
- </div>
- </div>
- <div class="rating-item cl">
- <span class="label">$blang[score3]:<i>*</i></span>
- <div class="rating-m">
- <ul>
- <li><a href="javascript:;" id="star3-1" onmouseover="bstar(3,1)" title="$blang[start1]" class="star1{if $review[score3]==1} a{/if}"></a></li>
- <li><a href="javascript:;" id="star3-2" onmouseover="bstar(3,2)" title="$blang[start2]" class="star2{if $review[score3]==2} a{/if}"></a></li>
- <li><a href="javascript:;" id="star3-3" onmouseover="bstar(3,3)" title="$blang[start3]" class="star3{if $review[score3]==3} a{/if}"></a></li>
- <li><a href="javascript:;" id="star3-4" onmouseover="bstar(3,4)" title="$blang[start4]" class="star4{if $review[score3]==4} a{/if}"></a></li>
- <li><a href="javascript:;" id="star3-5" onmouseover="bstar(3,5)" title="$blang[start5]" class="star5{if $review[score3]==5} a{/if}"></a></li>
- </ul>
- <span id="rating3" class="hint">$blang[rating3]</span>
- </div>
- </div>
- <div class="rating-item cl">
- <span class="label">$blang[score4]:<i>*</i></span>
- <div class="rating-m">
- <ul>
- <li><a href="javascript:;" id="star4-1" onmouseover="bstar(4,1)" title="$blang[start1]" class="star1{if $review[score4]==1} a{/if}"></a></li>
- <li><a href="javascript:;" id="star4-2" onmouseover="bstar(4,2)" title="$blang[start2]" class="star2{if $review[score4]==2} a{/if}"></a></li>
- <li><a href="javascript:;" id="star4-3" onmouseover="bstar(4,3)" title="$blang[start3]" class="star3{if $review[score4]==3} a{/if}"></a></li>
- <li><a href="javascript:;" id="star4-4" onmouseover="bstar(4,4)" title="$blang[start4]" class="star4{if $review[score4]==4} a{/if}"></a></li>
- <li><a href="javascript:;" id="star4-5" onmouseover="bstar(4,5)" title="$blang[start5]" class="star5{if $review[score4]==5} a{/if}"></a></li>
- </ul>
- <span id="rating4" class="hint">$blang[rating4]</span>
- </div>
- </div>
- <div class="cl">
- <span class="label">$blang[review_message]: <i>*</i></span>
- <textarea name="message" rows="5" class="pt" id="message" onkeydown="ctrlEnter(event, 'reviewsubmitbtn');">$review[message]</textarea>
- </div>
- <!--{if checkperm('seccode') && ($secqaacheck || $seccodecheck)}-->
- <!--{block sectpl}--><sec> <span id="sec<hash>" onclick="showMenu(this.id);"><sec></span><div id="sec<hash>_menu" class="p_pop p_opt" style="display:none"><sec></div><!--{/block}-->
- <div class="mtm"><!--{template common/seccheck}--></div>
- <!--{/if}-->
- <p class="ptm"><span class="label"> </span><button type="submit" name="reviewsubmitbtn" id="reviewsubmitbtn" value="true" class="pn"><strong>$blang[review]</strong></button></p>
- </form>
复制代码
|