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:
- 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.).
- Cài đặt và kích hoạt plugin trong ACP -> Configuration -> Plugins.
- Đị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.