Hiển thị tên thật và tuổi

TuấnDương

Admin
Thành viên BQT
Cách làm phần tên thật và tuổi hiện lên trong phần bài viết


Vào Admincp /User Profile Fields/Add New User Profile Field

Profile Field Type : chọn single line text box bấm continue

tại form nhập thông tin sau :
- Title: Real name
- Description: Tên thật của bạn
- Max length of allowed user input: nhập tối đa ký tự cho phép
- Field Required: nếu chọn
+ Yes: Bắt buộc thành viên nhập tên thật khi đăng ký
+ No: không bắt buộc hiển thị trong profile
+ No Display at registration: hiển thị trong form đăng ký thành viên nhưng không bắt buộc.

nhưng gì không nhắc tới thì để nguyên

Bấm Save

Vào template bạn cần sữa ==> Styles & Templates/Style Manager chọn style để Edit
postbit_legacy hoặc postbit

tìm

<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>

thêm vào duới nó đoạn này

<if condition="$post['fieldx']"><div>Tên Thật: $post[fieldx]</div></if>

thay x = là số Display Order trong Admincp /User Profile Fields/Add New User Profile Field

Muốn cho phần tuổi hiện lên trong bài viết vào

AdminCP --> vBullentin Options --> Thread Display Options (showthread) tại phần Enable User Age chọn Yes sau đó nhấn vào Save vậy là xong phần tuổi
 
Back
Top