Problem with widgets

General Discussion

Suggested Topics


  • 0 Votes
    11 Posts
    836 Views

    @dogs
    Not sure if this is still relevant to you, but I followed your code and was getting the same results. The code wasn't firing despite having a console log in the theme.js file.

    Then I decided to click on the 'Clone widgets from...' and selected 'Categories'. After that all of the .tpl names showed up in the drop down. After that any changes to the theme.js file are firing as should.

    Make sure you build and restart. I am using the included GRUNT to make development faster. Cheers!

  • 1 Votes
    9 Posts
    4k Views

    @nicolas search for theme exodus.its persona fork with widgets, it not finished but it can help you to see the code

  • 1 Votes
    4 Posts
    2k Views

    NodeBB's cache buster is based on its current git hash (so if you've upgraded it will try to send you the new CSS and JS, which works well, but it remains the same if switching themes, which results in your issue)

    I suppose the dev team hasn't run into this because we usually run with cache disabled while testing (and because Persona is so awesome so why switch? Kidding)

    Update cache buster when switching themes · Issue #3573 · NodeBB/NodeBB

    Right now cache buster is based on git hash, which works fine when upgrading. Not as good when switching themes or installing plugins. I suggest modifying cache buster algo to just generate a new one every time forum restarts or reloads

    favicon

    GitHub (github.com)

  • 0 Votes
    2 Posts
    944 Views

    Facebook

    <iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2F YOUR FACEBOOK URL HERE &amp;width&amp;layout=button_count&amp;action=like&amp;show_faces=false&amp;share=false&amp;height=21&amp;appId=135888533251344" scrolling="no" frameborder="0" style="border:none; height: 21px; overflow: hidden; width: 105px;" allowTransparency="true"></iframe>

    Twitter

    <a href="https://twitter.com/TwitterUsername" class="twitter-follow-button" data-show-count="true" data-dnt="true">Follow @TwitterUsername</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>

    The +1 widget will be available online somewhere, I don't use Google +, it's awful. Change TwitterUsername and YOURFACEBOOKURL to your own, the facebook one already includes the https part.

  • 2 Votes
    1 Posts
    1k Views

    In case you guys aren't following the widgets repository 👼 I am posting this here. A new widget is available that shows the categories in the forum.

    upload-9298635e-f8fb-49fe-8291-cff603ac5913