Skip to content

Tenor GIF Plugin

Solved Customisation
19 2 8.5k 1
  • wrote on last edited by
    #1

    Hi,

    I will ask he as at times with NodeBB Forum I may win Lotto before I get a reply haha 😊

    Anyway I installed the Tenor GIF Plugin and created an API Key for use.

    However I get this when I type in any word. Any ideas ? Thanks in advance.

    tenorgif.png

  • @phenomlab

    Hi, yes I had seen the thread. Good Sherlock Holmes skills 🙂

    Lets see if the plugin can be adapted.

    wrote on last edited by phenomlab
    #18

    @Sampo2910 Actually, it looks as though this works now - for me at least

    707b1954-fbfe-4cba-b767-f974933d2ee4-image.png

    I used the guide here in terms of setting up the API Key

    https://developers.google.com/tenor/guides/quickstart

  • Hi,

    I will ask he as at times with NodeBB Forum I may win Lotto before I get a reply haha 😊

    Anyway I installed the Tenor GIF Plugin and created an API Key for use.

    However I get this when I type in any word. Any ideas ? Thanks in advance.

    tenorgif.png

    wrote on last edited by
    #2

    @Sampo2910 Does anything appear in the browser console when you get this message ?

  • Hi,

    I will ask he as at times with NodeBB Forum I may win Lotto before I get a reply haha 😊

    Anyway I installed the Tenor GIF Plugin and created an API Key for use.

    However I get this when I type in any word. Any ideas ? Thanks in advance.

    tenorgif.png

    wrote on last edited by
    #3

    @Sampo2910 Also possibly a dumb question, but did you rebuild and restart NodeBB after you installed the plugin ?

  • wrote on last edited by Sampo2910
    #4

    Hi,

    Yeah I did rebuild and restart. I see no messages in logs with errors etc.

    I will uninstall and reinstall and try again.

    ##UPDATE#### Tried install from ACP and from Terminal but same results. Only thing I can see is this now.

    2022-08-01T22:57:38.481Z [4567/18012] - error: [build]          requirejs modules  build failed
    2022-08-01T22:57:38.481Z [4567/18012] - error: [build] Encountered error during build step
    Error: ENOENT: no such file or directory, stat '/home/smiley/nodebb/node_modules/nodebb-plugin-tenor-gif/static/lib/admin.js'
    2022-08-01T22:57:38.481Z [4567/18012] - error: admin.reload
    Error: ENOENT: no such file or directory, stat '/home/smiley/nodebb/node_modules/nodebb-plugin-tenor-gif/static/lib/admin.js'
    [cluster] Restarting...
    2022-08-01T22:59:17.636Z [4567/18012] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
    Clustering enabled: Spinning up 1 process(es).
    
  • Hi,

    Yeah I did rebuild and restart. I see no messages in logs with errors etc.

    I will uninstall and reinstall and try again.

    ##UPDATE#### Tried install from ACP and from Terminal but same results. Only thing I can see is this now.

    2022-08-01T22:57:38.481Z [4567/18012] - error: [build]          requirejs modules  build failed
    2022-08-01T22:57:38.481Z [4567/18012] - error: [build] Encountered error during build step
    Error: ENOENT: no such file or directory, stat '/home/smiley/nodebb/node_modules/nodebb-plugin-tenor-gif/static/lib/admin.js'
    2022-08-01T22:57:38.481Z [4567/18012] - error: admin.reload
    Error: ENOENT: no such file or directory, stat '/home/smiley/nodebb/node_modules/nodebb-plugin-tenor-gif/static/lib/admin.js'
    [cluster] Restarting...
    2022-08-01T22:59:17.636Z [4567/18012] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
    Clustering enabled: Spinning up 1 process(es).
    
    wrote on last edited by
    #5

    @Sampo2910 said in Tenor GIF Plugin:

    2022-08-01T22:57:38.481Z [4567/18012] - error: [build] requirejs modules build failed
    2022-08-01T22:57:38.481Z [4567/18012] - error: [build] Encountered error during build step

    Is there anything else in the logs besides this ?

  • @Sampo2910 said in Tenor GIF Plugin:

    2022-08-01T22:57:38.481Z [4567/18012] - error: [build] requirejs modules build failed
    2022-08-01T22:57:38.481Z [4567/18012] - error: [build] Encountered error during build step

    Is there anything else in the logs besides this ?

    wrote on last edited by
    #6

    @phenomlab

    2022-08-01T22:55:48.007Z [4567/17914] - error: GET /admin/plugins/tenor-gif
    Error: Failed to lookup view "admin/plugins/tenor-gif" in views directory "/home/smiley/nodebb/build/public/templates"
        at Function.render (/home/smiley/nodebb/node_modules/express/lib/application.js:597:17)
        at ServerResponse.render (/home/smiley/nodebb/node_modules/express/lib/response.js:1039:7)
        at /home/smiley/nodebb/src/middleware/render.js:107:11
        at new Promise (<anonymous>)
        at renderContent (/home/smiley/nodebb/src/middleware/render.js:106:10)
        at renderMethod (/home/smiley/nodebb/src/middleware/render.js:75:15)
        at processTicksAndRejections (internal/process/task_queues.js:95:5)
        at async ServerResponse.renderOverride [as render] (/home/smiley/nodebb/src/middleware/render.js:96:5)
    
  • @phenomlab

    2022-08-01T22:55:48.007Z [4567/17914] - error: GET /admin/plugins/tenor-gif
    Error: Failed to lookup view "admin/plugins/tenor-gif" in views directory "/home/smiley/nodebb/build/public/templates"
        at Function.render (/home/smiley/nodebb/node_modules/express/lib/application.js:597:17)
        at ServerResponse.render (/home/smiley/nodebb/node_modules/express/lib/response.js:1039:7)
        at /home/smiley/nodebb/src/middleware/render.js:107:11
        at new Promise (<anonymous>)
        at renderContent (/home/smiley/nodebb/src/middleware/render.js:106:10)
        at renderMethod (/home/smiley/nodebb/src/middleware/render.js:75:15)
        at processTicksAndRejections (internal/process/task_queues.js:95:5)
        at async ServerResponse.renderOverride [as render] (/home/smiley/nodebb/src/middleware/render.js:96:5)
    
    wrote on last edited by
    #7

    @Sampo2910 Do you get the same issue if you attempt to remove the npm version and replace with git ?, so

    npm install git+https://github.com/julianlam/nodebb-plugin-tenor-gif
    
  • @Sampo2910 Do you get the same issue if you attempt to remove the npm version and replace with git ?, so

    npm install git+https://github.com/julianlam/nodebb-plugin-tenor-gif
    
    wrote on last edited by Sampo2910
    #8

    @phenomlab

    Same result. I see this. Maybe API Key or something? I set up ok. Same as i did with YouTube Embed and that was all ok.

    Error: ENOENT: no such file or directory, stat '/home/smiley/nodebb/node_modules/nodebb-plugin-tenor-gif/static/lib/admin.js'
    2022-08-02T07:57:48.110Z [4567/18708] - error: admin.reload
    Error: ENOENT: no such file or directory, stat '/home/smiley/nodebb/node_modules/nodebb-plugin-tenor-gif/static/lib/admin.js'
    [cluster] Restarting...
    2022-08-02T08:00:06.657Z [4567/18708] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
    Clustering enabled: Spinning up 1 process(es).
    
  • @phenomlab

    Same result. I see this. Maybe API Key or something? I set up ok. Same as i did with YouTube Embed and that was all ok.

    Error: ENOENT: no such file or directory, stat '/home/smiley/nodebb/node_modules/nodebb-plugin-tenor-gif/static/lib/admin.js'
    2022-08-02T07:57:48.110Z [4567/18708] - error: admin.reload
    Error: ENOENT: no such file or directory, stat '/home/smiley/nodebb/node_modules/nodebb-plugin-tenor-gif/static/lib/admin.js'
    [cluster] Restarting...
    2022-08-02T08:00:06.657Z [4567/18708] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
    Clustering enabled: Spinning up 1 process(es).
    
    wrote on last edited by
    #9

    @Sampo2910 Possibly. Can you PM me your site details plus a username/password (ideally admin) so I can have a look ?

  • @Sampo2910 Possibly. Can you PM me your site details plus a username/password (ideally admin) so I can have a look ?

    wrote on last edited by
    #10

    @phenomlab Chat sent 🙂

  • @phenomlab Chat sent 🙂

    wrote on last edited by
    #11

    @Sampo2910 Thanks

  • @phenomlab Chat sent 🙂

    wrote on last edited by
    #12

    @Sampo2910 Just had a good look at this on your site, and you’ve done nothing wrong. It doesn’t work 😠 - there’s no callback, no JSON payload, nothing. For a test, I installed it on my DEV site and get the same experience as you

    d4bafece-9943-4594-9d9e-548123765af6-image.png

    I think we need to wait for a response from this post

    https://community.nodebb.org/topic/16590/tenor-gif

  • @Sampo2910 Just had a good look at this on your site, and you’ve done nothing wrong. It doesn’t work 😠 - there’s no callback, no JSON payload, nothing. For a test, I installed it on my DEV site and get the same experience as you

    d4bafece-9943-4594-9d9e-548123765af6-image.png

    I think we need to wait for a response from this post

    https://community.nodebb.org/topic/16590/tenor-gif

    wrote on last edited by
    #13

    @phenomlab

    OK thank you so much for checking it out. I will see if we get a reply on there. Maybe you could add to that? Say you also tested or something like that.

  • @phenomlab

    OK thank you so much for checking it out. I will see if we get a reply on there. Maybe you could add to that? Say you also tested or something like that.

    wrote on last edited by
    #14

    @Sampo2910 just have 🙂

  • wrote on last edited by
    #15

    @Sampo2910 not sure if you’ve been checking the thread over at NodeBB, but I narrowed this down to an incorrect API call in the plugin. In fact, the NodeBB version which “works” on the official site is based on v1 - the development tools for a while now have been issuing v2 API keys which of course won’t work.

    I’ve discussed this with Baris, so hopefully, there will be a fix soon.

  • @Sampo2910 not sure if you’ve been checking the thread over at NodeBB, but I narrowed this down to an incorrect API call in the plugin. In fact, the NodeBB version which “works” on the official site is based on v1 - the development tools for a while now have been issuing v2 API keys which of course won’t work.

    I’ve discussed this with Baris, so hopefully, there will be a fix soon.

    wrote on last edited by
    #16

    @phenomlab

    Hi, yes I had seen the thread. Good Sherlock Holmes skills 🙂

    Lets see if the plugin can be adapted.

  • @phenomlab

    Hi, yes I had seen the thread. Good Sherlock Holmes skills 🙂

    Lets see if the plugin can be adapted.

    wrote on last edited by
    #17
  • @phenomlab

    Hi, yes I had seen the thread. Good Sherlock Holmes skills 🙂

    Lets see if the plugin can be adapted.

    wrote on last edited by phenomlab
    #18

    @Sampo2910 Actually, it looks as though this works now - for me at least

    707b1954-fbfe-4cba-b767-f974933d2ee4-image.png

    I used the guide here in terms of setting up the API Key

    https://developers.google.com/tenor/guides/quickstart

  • phenomlab phenomlab has marked this topic as solved on
  • @Sampo2910 Actually, it looks as though this works now - for me at least

    707b1954-fbfe-4cba-b767-f974933d2ee4-image.png

    I used the guide here in terms of setting up the API Key

    https://developers.google.com/tenor/guides/quickstart

    wrote on last edited by
    #19

    @phenomlab Also for me now 🙂 Upgraded in ACP and all good . Thx.


Did this solution help you?
Did you find the suggested solution useful? Support 💗 Sudonix with a coffee ☕
If your organisation needs deeper expertise around infrastructure, security, or technology leadership, learn more about Phenomlab Ltd. Many of the deeper technical guides behind Sudonix are published there.

Related Topics
  • Sudonix Blog

    General blog new topic plugin
    8
    3 Votes
    8 Posts
    4k Views
    Madchatthew
    Yes that is very awesome and I really like that idea! Great job with thinking that up!!
  • Plugin to show images in teasers

    General nodebb teaser image plugin hook
    6
    1
    2 Votes
    6 Posts
    2k Views
    phenomlab
    @dave1904 I’d start by adding a console.log function to hookData so you can see what is being returned return hookData; console.log(hookData):
  • Embedding external URLs

    Solved General embed plugin nodebb v3.x
    3
    3 Votes
    3 Posts
    1k Views
    dave1904
    Many thanks! I’ll use your walkthrough and go for the self-hosted solution.
  • nodebb-user-level customisation : popover element

    Solved Customisation css user level plugin custom
    15
    6 Votes
    15 Posts
    5k Views
    DownPW
    No no, I said that in the sense that he told me it was simple ^^ I was able to see that this was not the case by targeting the elements he had advised me.
  • How to downgrade plugin version on NodeBB

    Solved Customisation downgrade nodebb
    11
    3 Votes
    11 Posts
    4k Views
    phenomlab
    @cagatay no problems
  • Plugin Install Error

    Solved Customisation plugin error discord
    6
    1
    2 Votes
    6 Posts
    3k Views
    phenomlab
    @Sampo2910 no problems. Happy to help. Just remember that this particular method isn’t the best in the sense that it may not get update notifications. The general recommendation here would be to move back to the official npm repo as soon as the GitHub version has been merged. For the meantime, it’ll work fine though.
  • Recent Cards plugin customization

    Solved Customisation nodebb
    21
    1
    13 Votes
    21 Posts
    12k Views
    phenomlab
    @pobojmoks that’s easily done by modifying the code provided here so that it targets background rather than border In essence, the below should work $(document).ready(function() { $(window).on('action:ajaxify.end', function(data) { $('.recent-card-container').each(function(i) { var dataId = $(this).attr("data-cid"); var color = $('[role="presentation"]', this).css("background-color"); console.log("data-cid " + dataId + " is " + color); $('[data-cid="' + dataId + '"] .recent-card').attr("style", "background-color: " + color); }); }); });
  • 3 Votes
    6 Posts
    4k Views
    DownPW
    @phenomlab haha!! You are crazy. In a good way, of course It’s a way of saying you’re awesome !