admin
  • admin
  • 100% (Exalted)
  • Administration Topic Starter
2 years ago
Download src tại 
https://www.yetanotherforum.net/download 
YAF.NET v3.1.7
Chọn Source Package
Phiên bản vs 2022 (version 17)
Nếu up lên plesk thì phải set permission thư mục App_Data full control
Sửa các nội dung sau:
Cho phép tìm kiếm (YAF.Core.dll)
Sửa file
yafsrc\YAF.Core\URLBuilder\AdvancedUrlBuilder.cs
Sửa đoạn

 // TODO : is this needed?!
/*const string gsr = "getsearchresults";
scriptName = scriptName.Replace(gsr, scriptFile);
newUrl = newUrl.Replace(gsr, scriptFile);*/
Thành
// TODO : is this needed?!
const string gsr = "getsearchresults";
scriptName = scriptName.Replace(gsr, scriptFile);
newUrl = newUrl.Replace(gsr, scriptFile);
Rebuild release
Đổi file YAF.Core.dll ->YAF.Core.dll.txt
Chép file YAF.Core.dll vào thư mục bin

Thay đổi nội dung cuối trang (YAF.Web.dll)
yafsrc\YAF.Web\Controls\Footer.cs

Key & Value in json
yafsrc\YetAnotherForum.NET\languages\english.json

Build using release/mixed platforms
result
YetAnotherForum.NET\Bin\net48\YAF.Web.dll

Đổi tên file YAF.Web.dll -> YAF.Web.dll.txt
Chép file mới YAF.Web.dll vào thư mục bin

yafsrc\YAF.Core\BaseModules\ForumEditor.cs

Thay thế  từ trong nội dung bài post
Admin/Settings/Replace Words
Bad expression: & quot; (bỏ khoảng trắng)
Good expression: "

Giữ login
Sửa file web.config
Sửa 
     <!--<machineKey validationKey="5B169A4270DB7D6A285CF068B81047D1A73A5FDDE9B204254AB86147B061C3C13DB6E84311E98EDFDD7FF50309DB9632A1C573A716CF120535EC3401........"
        decryptionKey="910403AE3DEB5DD0AF73911DBB180518144AC983C1C7E7BDEE1CC8B6........"
        validation="HM........" decryption="AES"/>-->
Thành
     <machineKey validationKey="5B169A4270DB7D6A285CF068B81047D1A73A5FDDE9B204254AB86147B061C3C13DB6E84311E98EDFDD7FF50309DB9632A1C573A716CF120535EC3401........"
        decryptionKey="910403AE3DEB5DD0AF73911DBB180518144AC983C1C7E7BDEE1CC8B6........"
        validation="HM........" decryption="AES"/>

Kết luận
Sửa 2 dll
YAF.Core.dll
YAF.Web.dll

tag: yaf, yaf.net
 
admin
  • admin
  • 100% (Exalted)
  • Administration Topic Starter
2 years ago
Số lượng dòng  topic hiển thị được set trong setting user
mặc định 5 topic
Tối đa 50 topic
admin
  • admin
  • 100% (Exalted)
  • Administration Topic Starter
2 years ago
Reindex search sau mỗi lần cập nhật phiên bản mới giúp cho links kết quả search và links tags hoạt động
Users browsing this topic