Some problem with plugins



  • i use emoji plugin ,but it's src show like this.

    <img class=" emoji"="" alt="grinning" src="http://127.0.0.1:4567/plugins/nodebb-plugin-emoji/images/grinning.png">
    

    why bath url still 127.0.0.1? how to set it to my domain?



  • @Loethen-Shen

    It's either config.json in the root of your nodebb install, or you've misconfigured Nginx if you use it.

    Or it could be a third thing I've overlooked.



  • @a_5mith
    I will check it .

    thanks for your reply.


  • GNU/Linux

    @Loethen-Shen
    If you are using nodebb-plugin-emoji-extended then there is a 'dirty' fix for that.
    Navigate to your Emoji plugin folder and open index.js.
    Example path: /home/nodebb/node_modules/nodebb-plugin-emoji-extended/index.js.

    Once you've opened the file, find a part where it states emojiPath="http://127.0.0.1:4567/plugins/nodebb-plugin-emoji/images/".
    Set this to something like this emojiPath="http://forum.domain.com/plugins/nodebb-plugin-emoji-extended/images"

    Of course, this will only work if you are running NodeBB with nginx or Apache proxy.


 

| |