跳至内容
WordPress.org

China 简体中文

  • 主题
  • 插件
  • 新闻
    • 文档
    • 论坛
  • 关于
  • 获取 WordPress
获取 WordPress
WordPress.org

Plugin Directory

Weal Profile

  • 提交插件
  • 我的收藏
  • 登录
  • 提交插件
  • 我的收藏
  • 登录

Weal Profile

作者:Leo
下载
  • 详情
  • 评价
  • 安装
  • 开发进展
支持

描述

Weal Profile adds a dedicated front-end account page for authenticated users (default: /my-account), allowing them to manage selected profile fields without accessing the WordPress admin dashboard.

The plugin also includes an admin settings page where site administrators can configure the account page and choose which profile fields are editable by users.

Admin Features

Available in the WordPress admin menu under Weal Profile.

Administrators can:

  • Enable or disable profile fields shown on the public account page
  • Set a custom URL slug for the personal account page (default: /my-account)
  • Enable or disable the comment likes/dislikes system

Available profile fields:

  • Avatar\Gravatar
  • Display Name
  • Website URL
  • Nickname
  • First Name
  • Last Name
  • Biography

Front-End User Features

On the public account page, logged-in users can:

  • Edit their personal profile information (based on admin settings)
  • Upload and remove a profile avatar
  • View their comment activity and reaction statistics (likes/dislikes received)

Post Rating System

A 5-star rating system is automatically displayed on single post pages. Features:

  • Visitors can rate posts from 1 to 5 stars
  • Rating is stored in post meta (rating_sum, rating_count, rating_average)
  • Partial star visualisation (e.g. 3.5 stars shows 3 full + 1 half-filled star)
  • Anti-double-vote protection via cookies
  • AJAX-based submission with instant UI update
  • Schema.org AggregateRating markup for SEO

Comment Likes / Dislikes

Logged-in users can like or dislike comments on posts. Features:

  • Toggle likes and dislikes with a single click
  • Active state visual feedback on voted buttons
  • Vote counts update instantly via AJAX
  • Configurable toggle in admin settings to enable/disable the system
  • Comment reaction statistics shown on the user profile page (total likes/dislikes received, top voted comments)
  • Dedicated database table (weal_comment_votes) for efficient vote storage
  • Unique constraint prevents duplicate votes per user per comment

Activity Center

The plugin provides a convenient centralized space where users can track their comment history and quickly return to conversations they participated in.

Database

The plugin creates a custom database table on activation:

  • wp_weal_comment_votes — stores comment likes/dislikes (comment_id, user_id, is_liked, created_at)

When updating the plugin, the table is automatically created or updated via a version check — no need to deactivate and reactivate.

屏幕截图

安装

  1. Upload the plugin folder to the /wp-content/plugins/ directory, or install it through the WordPress Plugins screen.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Go to WordPress Admin → Weal Profile.
  4. Configure the account page URL and choose which profile fields users can edit.
  5. Visit the account page (default: /my-account) while logged in.

常见问题

How can I access another user’s page?

Currently, users can only view and manage their own account information.

Support for public or shared user profile pages may be added in a future release.

How does the rating system prevent double voting?

Each vote sets a cookie (weal_voted_post_{post_id}) valid for 1 year. Both the REST API and JavaScript check for existing cookies to prevent multiple votes from the same browser.

Can I disable the comment likes feature?

Yes. Go to WordPress Admin → Weal Profile and uncheck “Enable likes and dislikes on comments”.

评价

此插件暂无评价。

贡献者及开发者

「Weal Profile」是开源软件。 以下人员对此插件做出了贡献。

贡献者
  • Leo
  • weal

帮助将「Weal Profile」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志。

额外信息

  • 版本 1.1.0
  • 最后更新:2 天前
  • 活跃安装数量 不到10
  • WordPress 版本 6.2 或更高版本
  • 已测试的最高版本为 7.0
  • PHP 版本 7.4 或更高版本
  • 语言
    English (US)
  • 标签
    account pageuser accountuser profile
  • 高级视图

评级

尚未提交反馈。

Your review

查看全部评论

贡献者

  • Leo
  • weal

支持

有话要说吗?是否需要帮助?

查看支持论坛

捐助

您愿意支持这个插件的发展吗?

捐助此插件

  • 关于
  • 新闻
  • 主机
  • 隐私
  • 陈列窗
  • 主题
  • 插件
  • 区块样板
  • 学习
  • 支持
  • 开发者
  • WordPress.tv ↗︎
  • 参与
  • 活动
  • 捐赠 ↗
  • 未来五分计划
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

China 简体中文

  • 关注我们的 X(原 Twitter)账号
  • 访问我们的 Bluesky 账号
  • 关注我们的 Mastodon 账号
  • 访问我们的 Threads 账号
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • 访问我们的 TikTok 账号
  • 访问我们的 YouTube 频道
  • 访问我们的 Tumblr 账号
代码如诗
The WordPress® trademark is the intellectual property of the WordPress Foundation.