News:

SMF 2.1.2 has been released! Take it for a spin! Read more.

Main Menu

How to change javascript file with mod ?

Started by Karmaster, May 31, 2022, 11:50:43 AM

Previous topic - Next topic

Karmaster

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

Kindred

you would change the js file(s) in the same way that you change php files in the package manager.
Слова
Украина

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Antechinus

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. :)

Doug Heffernan

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

Advertisement: