như trong hình em mún hỏi đã phân quyền màu trong group rồi nhưng những chỗ em gạch dưới màu nó vẫn mặc định là màu admin giờ phải làm sao cho nó hiện màu hả các bác Thank các bác vụ này nhìu nhìu
Bạn mở mấy template widget framework tìm {$user.username} thay thế bằng {xen:helper richUserName, $user}
không hiểu quả anh ới ví dụ code này của em là trạng thái Mã: <xen:if is="{$users}"> <xen:require css="wf_default.css" /> <div class="avatarList"> <ul> <xen:foreach loop="$users" value="$user"> <li> <xen:avatar user="$user" size="s" img="true" /> <div class="WidgetFramework_nextToAvatar"> <xen:username user="$user" /> <div>{xen:helper snippet, $user.status, @wf_recent_status_statusMaxLength}</div> <div class="userTitle"><xen:datetime time="$user.status_date" /></div> </div> </li> </xen:foreach> </ul> <xen:comment>The below block of status posting form was copied from `navigation_visitor_tab`</xen:comment> <xen:if is="{$canUpdateStatus}"> <br />Cập nhật trạng thái của bạn: <br /><br /> <form action="{xen:link members/post, $visitor}" method="post" class="statusPoster AutoValidator" data-optInOut="OptIn"> <textarea name="message" class="textCtrl StatusEditor Elastic" placeholder="Viết trạng thái của bạn..." rows="1" cols="40" style="height:14px" data-statusEditorCounter="#visMenuSEdCount" data-nofocus="true"></textarea> <div class="submitUnit"> <span id="visMenuSEdCount" title="{xen:phrase characters_remaining}"></span> <br /><input type="submit" class="button primary MenuCloser" value="{xen:phrase post_verb}" accesskey="s" /> <input type="hidden" name="_xfToken" value="CSRF_TOKEN_PAGE" /><xen:comment>This will be updated in WidgetFramework_WidgetRenderer_RecentStatus::extraPrepare()</xen:comment> <input type="hidden" name="return" value="1" /> </div> </form> </xen:if> </div> </xen:if> thì bỏ cái nào và thay bằng cái nào ạ
PHP: <xen:if is="{$users}"> <xen:require css="wf_default.css" /> <div class="avatarList"> <ul> <xen:foreach loop="$users" value="$user"> <li> <xen:avatar user="$user" size="s" img="true" /> <div class="WidgetFramework_nextToAvatar"> <xen:username user="$user rich="true" /> <div>{xen:helper snippet, $user.status, @wf_recent_status_statusMaxLength}</div> <div class="userTitle"><xen:datetime time="$user.status_date" /></div> </div> </li> </xen:foreach> </ul> <xen:comment>The below block of status posting form was copied from `navigation_visitor_tab`</xen:comment> <xen:if is="{$canUpdateStatus}"> <br />Cập nhật trạng thái của bạn: <br /><br /> <form action="{xen:link members/post, $visitor}" method="post" class="statusPoster AutoValidator" data-optInOut="OptIn"> <textarea name="message" class="textCtrl StatusEditor Elastic" placeholder="Viết trạng thái của bạn..." rows="1" cols="40" style="height:14px" data-statusEditorCounter="#visMenuSEdCount" data-nofocus="true"></textarea> <div class="submitUnit"> <span id="visMenuSEdCount" title="{xen:phrase characters_remaining}"></span> <br /><input type="submit" class="button primary MenuCloser" value="{xen:phrase post_verb}" accesskey="s" /> <input type="hidden" name="_xfToken" value="CSRF_TOKEN_PAGE" /><xen:comment>This will be updated in WidgetFramework_WidgetRenderer_RecentStatus::extraPrepare()</xen:comment> <input type="hidden" name="return" value="1" /> </div> </form> </xen:if> </div></xen:if> thay thế toàn bộ code đó bằng code này xem
<xen:username user="$user rich="true" /> nếu thay thì sẽ hiện lỗi và không save đc ạ còn nếu thêm " đằng sau user thì đc nhưng không hiện màu, <xen:username user="$user" rich="true" />