自行解决
到/litalino/flarum-more-bbcode/src/ReplaceCode.php
把 // 显示喜欢 // Hiển thị lượt thích
public function likeHide(): string
{
return ‘<span class=“bbcode-hide-content like”>’ .
$this->translator->trans(
‘imeepo-more-bbcode.forum.like_to_see’,
array(
‘{like}’ => ‘<a href=“javascript:void(0);” class=“like2see_like”>’ . $this->translator->trans(‘flarum-likes.forum.post.like_link’) . ‘</a>’,
)
) . ‘</span>’;
}
// 回复可见 Trả lời có thể nhìn thấy
public function replyHide(): string
{
return '<span class="bbcode-hide-content reply"> ' .
$this->translator->trans('imeepo-more-bbcode.forum.reply_to_see',
array(
'{reply}' => '<a href="javascript:void(0);" class="reply2see_reply">' . $this->translator->trans('core.forum.discussion_controls.reply_button') . '</a>',
)
) . '</span>';
}
// 登录可见 Đăng nhập hiển thị
public function loginHide(): string
{
return '<span class="bbcode-hide-content login"> ' .
$this->translator->trans('imeepo-more-bbcode.forum.login_to_see',
array(
'{login}' => '<a href="javascript:void(0);" class="login2see_login">' . $this->translator->trans('core.forum.header.log_in_link') . '</a>',
)
) . '</span>';
}
}
改成
// 显示喜欢 // Hiển thị lượt thích
public function likeHide(): string
{
return ‘<span class=“login2see”>’ .
$this->translator->trans(
‘imeepo-more-bbcode.forum.like_to_see’,
array(
‘{like}’ => ‘<a href=“javascript:void(0);” class=“like2see_like”>’ . $this->translator->trans(‘flarum-likes.forum.post.like_link’) . ‘</a>’,
)
) . ‘</span>’;
}
// 回复可见 Trả lời có thể nhìn thấy
public function replyHide(): string
{
return '<span class="reply2see"> ' .
$this->translator->trans('imeepo-more-bbcode.forum.reply_to_see',
array(
'{reply}' => '<a href="javascript:void(0);" class="reply2see_reply">' . $this->translator->trans('core.forum.discussion_controls.reply_button') . '</a>',
)
) . '</span>';
}
// 登录可见 Đăng nhập hiển thị
public function loginHide(): string
{
return '<span class="login2see"> ' .
$this->translator->trans('imeepo-more-bbcode.forum.login_to_see',
array(
'{login}' => '<a href="javascript:void(0);" class="login2see_login">' . $this->translator->trans('core.forum.header.log_in_link') . '</a>',
)
) . '</span>';
}
}
效果