修改:\phpcms\modules\yp\classes\yp_tag.class.php,第258行(默认是空白的),改为if($data['where']){$where = " And ".$data['where'];},然后在{pc:yp action="get_datas"}调用的时候,增加where=""就可以了。
模板代码: {if $_userid} {pc:member action="favoritelist" userid="$_userid" where="type='open'" order="id DESC" num="4"} <ul class="favorite-list"> {if $data} {loop $data $k $v} <li {if $n%2==0}class="two"{/if}><a href="{$...