1.8.x Tính Năng: Years of Service

Preview

Tác giả: Mipher

Phiên bản: 2.0.1

Gửi lúc: 20/01/2020

Cập nhật lúc: 19/06/2025

User Profiles Show Thread
Mô tả
Show in the postbit, member profile, member list, the time of user service based on their registration date. It can be used as alternative (or concurrently) to the user registration date.

Plugin variables are added in the corresponding templates during plugin activation, after the user stars.
If they are not added, add manually:
  • {$post['yearsofservicePostbit']} in postbit/postbit_classic.
  • {$yearsofserviceMemberProfile} in member_profile.
  • {$yearsofserviceMemberList} in memberlist_user.

CSS Sample
You can use this sample to assign a basic style to the user service (add it at the end of global.css for example).

Code: 
.user-service {
	display: table;
	background-color: #474747;
	border-radius: 3px;
	margin: 5px 0;
	padding: 3px 8px;
}

.user-service--postbit {
	margin-left: auto;
	margin-right: auto;
}

.user-service span {
	color: Snow;
	font-weight: bold;
	font-size: 12px;
}

.user-service span[data-years] {
	color: LightSkyBlue;
}

.user-service span[data-months] {
	color: Orange;
}

.user-service span[data-weeks] {
}

.user-service span[data-days] {
}

.user-service span[data-hours] {
}

.user-service span[data-minutes] {
}

.user-service span[data-years="5"],
.user-service span[data-years="6"],
.user-service span[data-years="7"],
.user-service span[data-years="8"],
.user-service span[data-years="9"],
.user-service span[data-years="10"] {
	background: linear-gradient(to right, Orange , Yellow, Green, Cyan, Blue, Violet);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}
Hiển thị trong postbit, hồ sơ thành viên, danh sách thành viên, thời gian dịch vụ người dùng dựa trên ngày đăng ký của họ. Nó có thể được sử dụng thay thế (hoặc đồng thời) cho ngày đăng ký người dùng.

Các biến plugin được thêm vào các mẫu tương ứng trong quá trình kích hoạt plugin, sau khi người dùng gắn sao.
Nếu chúng không được thêm vào, hãy thêm thủ công:
  • {$post['nămofservicePostbit']} trong postbit/postbit_classic.
  • {$yearsofserviceMemberProfile} trong member_profile.
  • {$yearsofserviceMemberList} trong memberlist_user.

Mẫu CSS
Bạn có thể sử dụng mẫu này để gán một kiểu cơ bản cho dịch vụ người dùng (thêm nó vào cuối global.css ví dụ).

.user-service {
	trưng bày: bàn;
	màu nền: #474747;
	bán kính viền: 3px;
	lề: 5px 0;
	đệm: 3px 8px;
}

.user-service--postbit {
	lề trái: tự động;
	lề phải: tự động;
}

.user-service span {
	màu sắc: Tuyết;
	font-weight: in đậm;
	kích thước phông chữ: 12px;
}

.user-service span[dữ liệu-năm] {
	màu sắc: LightSkyBlue;
}

.user-service span[dữ liệu-tháng] {
	Màu sắc: Cam;
}

.user-service span[dữ liệu-tuần] {
}

.user-service span[dữ liệu-ngày] {
}

.user-service span[dữ liệu-giờ] {
}

.user-service span[dữ liệu-phút] {
}

.user-service span[data-years="5"],
.user-service span[data-years="6"],
.user-service span[data-years="7"],
.user-service span[data-years="8"],
.user-service span[data-years="9"],
.user-service span[data-years="10"] {
	nền: gradient tuyến tính (sang phải, Cam, Vàng, Xanh lá cây, Lục lam, Xanh lam, Tím);
	-webkit-background-clip: văn bản;
	-webkit-text-fill-color: trong suốt;
}

Vietnamese Mybb Community

Diễn đàn MyBB Việt Nam là cộng đồng trực tuyến dành cho những người yêu thích và sử dụng hệ thống diễn đàn MyBB. Nơi này cung cấp không gian để chia sẻ kiến thức, kinh nghiệm và hỗ trợ về cài đặt, tối ưu hóa, và thiết kế giao diện. Với mục tiêu tạo ra một cộng đồng sôi nổi, MyBB Việt Nam là điểm đến lý tưởng cho cả người mới và chuyên gia để kết nối và học hỏi về MyBB.


Mã nguồn bởi MyBB, © 2002-2025 MyBB Group • © 2023-2025 Mybb.VN - Đây là dự án cộng đồng sử dụng MyBB, không thuộc về Nhóm MyBB chính thức.

Hệ Thống

Thời gian hiện tại: 07-12-2025, 10:16 AM

USA - VN

hello@mybb.vn