Tutorial 2x Profilepost button - Nút bài viết hồ sơ XenForo 2.2

PVS

Super Moderator
Thành viên BQT
Tham gia
28/02/2015
Bài viết
16,728
Được Like
12,680
Profilepost button - Nút bài viết hồ sơ XenForo 2.2

Nút này chỉ hiển thị cho các thành viên đã đăng nhập.
Chỉnh sửa template forum_overview_wrapper.
Tìm dòng này: <xf: pageaction>
Đặt đoạn code sau ngay bên dưới nó:
HTML:
    <xf:if is="$xf.visitor.user_id">
  <xf:button href="{{ $xf.options.forumsDefaultPage == 'profile-posts' ? link('forums/new-posts') : link('whats-new/profile-posts') }}" icon="user">
      {{ phrase('profile_posts') }}
        </xf:button>
    </xf:if>

Lưu lại là xong.

profilepostbutton.png

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


Nguồn: xenforo.com​
 

Hướng dẫn sử dụng

XenForo 1 XenForo 2
Translate by PVS

Dịch vụ XenForo của VNXF

Mr. Tuấn

Mobile/Zalo: 0988 488 096

Telegram: bluekpro

Email: [email protected]

Nhà Tài Trợ

Mút Xốp Không Gian
pallet Thịnh Phát
Top Bottom