Chào các bác, em thấy ở cái post này có bác lấy ra cái Name hay quá. Mà hồi trc ở vbb là code [you], ko biết ở xenforo mình là gì vậy ạ. Em cảm ơn các bác
Bài viết liên quan
Bài viết mới
ko phải cái tag đâu bác. cái chữ kí của ng ta có chữ MUSE, là tên em đó bác.@KienVHT cái này hả
bạn dùng xen mấy ?ko phải cái tag đâu bác. cái chữ kí của ng ta có chữ MUSE, là tên em đó bác.
em dùng xen2 ạbạn dùng xen mấy ?
<xf:macro name="signature" arg-user="!">
<xf:if is="$xf.visitor.Option.content_show_signature AND $user.Profile.signature">
<xf:if contentcheck="true">
<aside class="message-signature">
<xf:contentcheck>
{{ bb_code($user.Profile.signature, 'user:signature', $user) }}
</xf:contentcheck>
</aside>
</xf:if>
</xf:if>
</xf:macro>
<xf:macro name="signature" arg-user="!">
<xf:if is="$xf.visitor.Option.content_show_signature">
<xf:if contentcheck="true">
<aside class="message-signature">
<xf:contentcheck>
Xin chào <xf:username user="$user"defaultname="{$fallbackName}" />
</xf:contentcheck>
</aside>
</xf:if>
</xf:if>
</xf:macro>
<xf:if is="$xf.visitor.Option.content_show_signature AND $user.Profile.signature">
Cám ơn bác nhiều ạ. để em thử@KienVHT Xen 2 thì bạn tìm template message_macros, sau đó tìm đoạn:
Sửa lại thành:PHP:<xf:macro name="signature" arg-user="!"> <xf:if is="$xf.visitor.Option.content_show_signature AND $user.Profile.signature"> <xf:if contentcheck="true"> <aside class="message-signature"> <xf:contentcheck> {{ bb_code($user.Profile.signature, 'user:signature', $user) }} </xf:contentcheck> </aside> </xf:if> </xf:if> </xf:macro>
PHP:<xf:macro name="signature" arg-user="!"> <xf:if is="$xf.visitor.Option.content_show_signature"> <xf:if contentcheck="true"> <aside class="message-signature"> <xf:contentcheck> Xin chào <xf:username user="$user"defaultname="{$fallbackName}" /> </xf:contentcheck> </aside> </xf:if> </xf:if> </xf:macro>
Có thể sửa chữ "Xin chào" bằng câu bạn muốn. Lưu ý 1 tí:
1./ Dòng này nghĩa là "Khách có thể xem chữ ký" và user có thiết lập chữ ký
Nên nếu bạn thiết lập ko cho khách xem chữ ký thì nó cũng ko hiệnMã:<xf:if is="$xf.visitor.Option.content_show_signature AND $user.Profile.signature">
2./ Code mình sửa đã bỏ tùy chọn hiển thị khi user đặt chữ ký, nên nếu user đặt chữ ký thì nó ra 2 dòng
à, Cái này hình như bác NDK hiểu sai ý em rồi ạ.@KienVHT Xen 2 thì bạn tìm template message_macros, sau đó tìm đoạn:
Sửa lại thành:PHP:<xf:macro name="signature" arg-user="!"> <xf:if is="$xf.visitor.Option.content_show_signature AND $user.Profile.signature"> <xf:if contentcheck="true"> <aside class="message-signature"> <xf:contentcheck> {{ bb_code($user.Profile.signature, 'user:signature', $user) }} </xf:contentcheck> </aside> </xf:if> </xf:if> </xf:macro>
PHP:<xf:macro name="signature" arg-user="!"> <xf:if is="$xf.visitor.Option.content_show_signature"> <xf:if contentcheck="true"> <aside class="message-signature"> <xf:contentcheck> Xin chào <xf:username user="$user"defaultname="{$fallbackName}" /> </xf:contentcheck> </aside> </xf:if> </xf:if> </xf:macro>
Có thể sửa chữ "Xin chào" bằng câu bạn muốn. Lưu ý 1 tí:
1./ Dòng này nghĩa là "Khách có thể xem chữ ký" và user có thiết lập chữ ký
Nên nếu bạn thiết lập ko cho khách xem chữ ký thì nó cũng ko hiệnMã:<xf:if is="$xf.visitor.Option.content_show_signature AND $user.Profile.signature">
2./ Code mình sửa đã bỏ tùy chọn hiển thị khi user đặt chữ ký, nên nếu user đặt chữ ký thì nó ra 2 dòng
ờ, chời đụ, làm sai dồi. XIn lỗi bạn nhéà, Cái này hình như bác NDK hiểu sai ý em rồi ạ.
Cái ảnh kia em lấy ở otofun.
ý em định hỏi là như này.
Giả sử em login với username KienVHT,
thì khi em vào cái bài của ông kia đăng, nó sẽ hiện là: "KienVHT có nhu cầu đi đâu thì SMS ....."
Nghĩa là cái name nó lấy đích xác đc cái account mình nhìn ấy ạ.
Emlogin nick NDK thì nó sẽ hiện là " NDK có nhu cầu đi đâu thì SMS ...."
Cái này là do ông ấy đặt signature như thế. Ngày xưa ở VBB có cái thẻ code [you] cũng làm y như vậy
{{ bb_code($user.Profile.signature, 'user:signature', $user) }}
{{ bb_code({$user.Profile.signature|replace("[you]", $xf.visitor.username)}, 'user:signature', $user) }}
Bác giải thích đúng rồi ạý chủ thớt là khi user nào xem chữ ký thì chỗ mã [you] kia được thay = tên của user đang xem đúng hok ? trước có vọc vbb nên có ấn tượng. Xen thì chưa thử
Người đăng | Chủ đề tương tự | Diễn đàn | Trả lời | Ngày đăng |
---|---|---|---|---|
Help Hỏi về addon D.C Style - Widgets | Tips and Guides | 5 | ||
K | Help Hỏi cách đăng nhập như diễn đàn fdc | Tips and Guides | 1 | |
Help em hỏi chút về cấu hình Brivium ModernStatistics ạ | Tips and Guides | 3 | ||
L | Trợ giúp về import database | Tips and Guides | 14 |