• Members 11 posts
    Aug. 8, 2019, 5:36 p.m.

    Hi Rafal,

    As I said somewhere else, I have successfully added a css file to modify the heading slightly and it looks great. (PhranckoForum.com)

    Now I would like to add a javascript file to execute some customizing code. I uploaded the following script in the "Media" section of my theme, but it doesn't run:

    $(function() {
        console.log("----------------this is from my script------------");

    Perhaps there is an error in my code. Or is this not the way to add javascript?

    What I want to do is change the word "Thread" to "Conversation" because I think the general public is intimidated by the word Thread. It sounds like you might be making a huge change to the forum, like maybe creating a whole new Category, not just starting a comment or question. It may just be me, but that's what I think anyway.

    So I was planning to change the wording on buttons and in the header, if I can in javascript.

    I have also throught about trying to find the English translation file and just editing it to change the word everywhere it is used.

    Or do you have a better suggestion?


  • Aug. 8, 2019, 7:50 p.m.

    Uploading custom JS files as part of themes is not supported. Instead you can create custom scripts.html template (same way you've did navbar.html previously) and place custom scripts there.

  • Members 11 posts
    Aug. 8, 2019, 9:34 p.m.

    I think I understand what you mean but I am still unsure exactly where to put it, both on the production server and now on my own local server that I am running on my own computer.

    When I made the navbar.html change, I had not yet launched the website so I edited it right on the production server in the directory ~/misago_docker/misago/theme/templates/misago

    Now that I have launched it, I need to do mods on my local computer. I cannot find the equivalent directory on my local computer. There is no misago/theme directory under the Misago directory that I forked the code into. There is also no appctl that I can find. I run it locally by using "docker-compose up".

    1) Where do I place navbar.html on my local machine for testing it there?

    2) If you then tell me to place my navbar.html on the local machine in some folder called [whatever]/theme/templates/misago, would I then place the script file in [whatever]/theme/static/misago?

  • Aug. 8, 2019, 11:45 p.m.

    On production server: ~/misago_docker/misago/theme/templates/misago/scripts.html
    On main repo fork, just edit ~/misago/templates/misago/scripts.html

    It's same for navbar.html.

    Because you can simply clone main repo and customize Misago's bits, there's no theme directory for overrides.