1.8.x Tính Năng: Auto Post URL

Preview

Tác giả: Destroy666

Phiên bản: 1

Gửi lúc: 26/03/2016

Cập nhật lúc: 26/03/2016

Show Thread
Mô tả
https://github.com/Destroy666x/MyBB-Auto-Post-URL


Installation:

  1. Upload everything from upload folder to your forum root (where index.php, forumdisplay.php etc. are located).
  2. Install and activate plugin in ACP -> Configuration -> Plugins.
  3. Configure it.

Templates troubleshooting:


Postbit - add class="post_anchor" href="{$post['postlink']}#pid{$post['pid']}" title="{$post['subject_title']}" to the starting post URL and <a name="bottompid{$post['pid']}" id="bottompid{$post['pid']}"></a> at the end of postbit and postbit_classic templates
Showthread - add:
Code: 
<script type="text/javascript">
<!--
    var autoposturl_newclass = '{$sanitized_class}';
    var autoposturl_bbname = '{$sanitized_bbname}';
//-->
</script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/auto_post_url.js?ver=1"></script>
to the <head> section of the showthread template

Note 1: the class specified in the setting needs to be manually added to global.css or an other stylesheet that covers showthread, e.g.:
Code: 
.autoposturl
{
    background-color: #CFC;
}
Note 2: changing the URL may not work in older browsers, you can replace the commented code in jscripts/auto_post_url.js with history.js or anything similar if you need support for them

Translations:

Feel free to submit translation to github in Pull Requests. Also, if you want them to be included on the MyBB mods site, ask me to provide you the contributor status for my project.

Donations:

Donations will motivate me to work on further MyBB plugins. Feel free to use the button in the ACP Plugins section anytime.
Thanks in advance for any input.
https://github.com/Destroy666x/MyBB-Auto-Post-URL
[Băng hình: https://youtu.be/FbFNvfBwNZY]

Cài đặt:

  1. Tải mọi thứ từ thư mục tải lên thư mục gốc diễn đàn của bạn (nơi đặt index.php, forumdisplay.php, v.v.).
  2. Cài đặt và kích hoạt plugin trong ACP -> Configuration -> Plugins.
  3. Định cấu hình nó.

Khắc phục sự cố mẫu:


Postbit - thêm class="post_scratch" href="{$post['postlink']}#পিড{$post['ped']}" title="{$post['subject_title']}" vào URL bài đăng bắt đầu và <a name="bottompid{$post['pid']}" id="bottompid{$post['pid']}"></a> ở cuối các mẫu postbit và postbit_classic
Showthread - thêm:
<script type="text/javascript">
<!-- var autoposturl_newclass = '{$sanitized_class}'; var autoposturl_bbname = '{$sanitized_bbname}'; //-->
</script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/auto_post_url.js?ver=1"></script>
đến <head> phần của mẫu showthread

Lưu ý 1: lớp được chỉ định trong cài đặt cần được thêm thủ công vào global.css hoặc một stylesheet khác bao gồm showthread, ví dụ:
.autoposturl
{
    màu nền: #CFC;
}
Lưu ý 2: thay đổi URL có thể không hoạt động trong các trình duyệt cũ hơn, bạn có thể thay thế mã được chú thích trong jscripts / auto_post_url.js bằng history.js hoặc bất kỳ thứ gì tương tự nếu bạn cần hỗ trợ cho chúng

Bản dịch:

Vui lòng gửi bản dịch đến github trong Pull Requests. Ngoài ra, nếu bạn muốn chúng được đưa vào trang mod MyBB, hãy yêu cầu tôi cung cấp cho bạn trạng thái người đóng góp cho dự án của tôi.

Đóng góp:

Các khoản đóng góp sẽ thúc đẩy tôi làm việc trên các plugin MyBB tiếp theo. Vui lòng sử dụng nút trong phần ACP Plugins bất cứ lúc nào.
Cảm ơn trước vì bất kỳ ý kiến đóng góp nào.

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: 08-12-2025, 05:26 AM

USA - VN

hello@mybb.vn