Template errors

  • Template public:thread_view: [E_USER_WARNING] Method getImageView is not callable on the given object (TickTackk\ChangeContentOwner\XF\Entity\Thread) (src/XF/Template/Templater.php:1277)
  • Template public:_ads: [E_USER_WARNING] Method getHastag is not callable on the given object (TickTackk\ChangeContentOwner\XF\Entity\Thread) (src/XF/Template/Templater.php:1277)
  • Template public:_ads: [E_USER_WARNING] Method getHastag is not callable on the given object (TickTackk\ChangeContentOwner\XF\Entity\Thread) (src/XF/Template/Templater.php:1277)
  • Template public:_ads: [E_USER_WARNING] Method getHastag is not callable on the given object (TickTackk\ChangeContentOwner\XF\Entity\Thread) (src/XF/Template/Templater.php:1277)
  • Template public:post_macros: [E_USER_WARNING] Method getHastag is not callable on the given object (TickTackk\ChangeContentOwner\XF\Entity\Thread) (src/XF/Template/Templater.php:1277)
  • Template public:post_macros: [E_USER_WARNING] Method getHastag is not callable on the given object (TickTackk\ChangeContentOwner\XF\Entity\Thread) (src/XF/Template/Templater.php:1277)
  • Template public:vnxf_more_thread: [E_USER_WARNING] Method getImageView is not callable on the given object (TickTackk\ChangeContentOwner\XF\Entity\Thread) (src/XF/Template/Templater.php:1277)
  • Template public:vnxf_more_thread: [E_USER_WARNING] Method getImageView is not callable on the given object (TickTackk\ChangeContentOwner\XF\Entity\Thread) (src/XF/Template/Templater.php:1277)
  • Template public:vnxf_more_thread: [E_USER_WARNING] Method getImageView is not callable on the given object (TickTackk\ChangeContentOwner\XF\Entity\Thread) (src/XF/Template/Templater.php:1277)
  • Template public:vnxf_more_thread: [E_USER_WARNING] Method getImageView is not callable on the given object (TickTackk\ChangeContentOwner\XF\Entity\Thread) (src/XF/Template/Templater.php:1277)
  • Template public:vnxf_more_thread: [E_USER_WARNING] Method getImageView is not callable on the given object (TickTackk\ChangeContentOwner\XF\Entity\Thread) (src/XF/Template/Templater.php:1277)
  • Template public:vnxf_more_thread: [E_USER_WARNING] Method getImageView is not callable on the given object (TickTackk\ChangeContentOwner\XF\Entity\Thread) (src/XF/Template/Templater.php:1277)

Threadstarter Ribbon - Ribbon cho người khởi tạo chủ đề

PVS

Super Moderator
Thành viên BQT
Threadstarter Ribbon - Ribbon cho người khởi tạo chủ đề

Tóm tắt: Điều này sẽ hiển thị một ribbon trong messageuserinfo của bạn. Ribbon này sẽ chỉ xuất hiện khi một người khởi tạo chủ đề mới, và chỉ hiện ở messageuserinfo của bài viết #1.

1.png

2.png
Vào template message_user_info tìm:
Mã:
<span class="helper"></span>

Thay bằng:
Mã:
<xen:if is="{$post.user_id} == {$thread.user_id} "><span class="helper"></span></xen:if>

Sau đó vào template EXTRA.CSS của bạn và thêm vào đoạn code sau:
Mã:
.messageUserInfo .helper  {
  display: block;
  position: absolute;
  top: -4px;
  left: -4px;
  background: url("@imagePath/xenforo/icons/starter.png") no-repeat  transparent;
  height: 56px;
  width: 56px;

}

Bổ sung thông tin: Nếu bạn không thích các ribbon hiển thị trong quickreply messageuserinfo thêm dòng sau vào EXTRA.CSS:
Mã:
.quickReply .messageUserInfo .helper {display:none;}

Và cuối cùng, tải lên hình ảnh trong tập tin đính kèm vào thư mục /icons của bạn.

Chúc các bạn thành công.


Nguồn: xenforo.com​
 

Đính kèm

  • starter.png
    starter.png
    4.1 KB · Lượt xem: 61
  • Like
Reactions: THB
Back
Top