Can you guys explain what is the best method to modify javascript file inside Themes directory with mod ?
PS: I want to write mod for this: https://www.simplemachines.org/community/index.php?topic=582391.msg4126225#msg4126225
you would change the js file(s) in the same way that you change php files in the package manager.
Quote from: Karmaster on May 31, 2022, 11:50:43 AMCan you guys explain what is the best method to modify javascript file inside Themes directory with mod ?
PS: I want to write mod for this: https://www.simplemachines.org/community/index.php?topic=582391.msg4126225#msg4126225
As Kindred says, it is the same as modifying any other file (PHP, CSS, etc).
But, that code of yours is buggy, and throws masses of errors if there are existing attachments and someone goes to edit the post. It needs to be fixed before it is ready for a mod. :)
Quote from: Karmaster on May 31, 2022, 11:50:43 AMCan you guys explain what is the best method to modify javascript file inside Themes directory with mod ?
PS: I want to write mod for this: https://www.simplemachines.org/community/index.php?topic=582391.msg4126225#msg4126225
Have a look at these links. They contain very useful info. Hope it helps.
https://wiki.simplemachines.org/smf/Coding_Guidelines
https://wiki.simplemachines.org/smf/Category:Package_SDK