Skip to content
  • Widget for public Rooms

    Feature Requests
    8
    1 Votes
    8 Posts
    393 Views
    barisB
    It will actually be 3.9.0 so we can release the translation strings.
  • Widgets ACP - Disable button

    Feature Requests
    1
    1 Votes
    1 Posts
    128 Views
    omegaO
    In the ACP on the widget page, to the left of Save changes it would be highly convenient to have a Disable/Enable Widgets option. Unless I've missed another way to do that, this would be useful to avoid having to remove you widget configuration to test things in an on/off manner.
  • Using jQuery in widgets

    Unsolved Technical Support
    11
    0 Votes
    11 Posts
    765 Views
    phenomlabP
    @baris @julian found a much simpler way to do this <script> if (!window.jQuery) { window.addEventListener('load', function() { $(document).ready(function() { $("#resolved").appendTo('[data-index="1"]:first-of-type'); }) }) } else { $(document).ready(function() { $("#resolved").appendTo('[data-index="1"]:first-of-type'); }) } </script>
  • 0 Votes
    11 Posts
    1k Views
    Keng HerK
    @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!
  • 0 Votes
    4 Posts
    822 Views
    F
    @julian Thanks, I'm aware of suggested topics, we're already using that but it gets topics from other categories too. Which doesn't work when you just want to focus on certain type of topics (a category) only.
  • 0 Votes
    2 Posts
    721 Views
    julianJ
    Yes, I think that makes sense... the adsense plugin (that's what you're using, right?) can be modified and be instructed to look for a specific tag if you don't want ads to be shown on that page... However, it might lead to people abusing that tag so their topics don't show ads... just saying
  • 0 Votes
    3 Posts
    2k Views
    F
    @pitaj https://github.com/NodeBB/NodeBB/issues/6199
  • Converting a topic into twitter timeline

    Tutorials
    1
    1 Votes
    1 Posts
    1k Views
    barisB
    This is a simple widget tutorial to turn a topic into a twitter timeline. The end result will look like this. [image: 1qkqhv9.png] First create a topic that will be the home of the twitter widget and record its topic id. Now go to /admin/extend/widgets and place a html widget on topic.tpl/header. The standard twitter timeline widget code only works on cold loads so we have to modify it for NodeBB. You can generate the twitter widget at https://twitter.com/settings/widgets, after you copy that code you have to replace the <script> block with the one provided below. <script> !function(d,s,id){ var js,p=/^http:/.test(d.location)?'http':'https'; var el = d.getElementById(id); if (el) { el.parentNode.removeChild(el); } if (!d.getElementById(id)) { js = d.createElement(s); js.id = id; js.src = p + "://platform.twitter.com/widgets.js"; var fjs = d.getElementsByTagName(s)[0]; fjs.parentNode.insertBefore(js,fjs); } }(document,"script","twitter-wjs"); </script> Here is the full widget code for NodeBB's twitter timeline. You can copy paste it into your HTML widget and replace every <topic_id> with your own topic id. <style> .page-topic-<topic_id> .topic { display: none; } .page-topic .twitter-timeline { display: none !important; width: 100% !important; height: 800px !important; } .page-topic-<topic_id> .twitter-timeline { display: block !important; } </style> <a class="twitter-timeline" href="https://twitter.com/NodeBB" data-widget-id="433016924318883841">Tweets by @NodeBB</a> <script> !function(d,s,id){ var js,p=/^http:/.test(d.location)?'http':'https'; var el = d.getElementById(id); if (el) { el.parentNode.removeChild(el); } if (!d.getElementById(id)) { js = d.createElement(s); js.id = id; js.src = p + "://platform.twitter.com/widgets.js"; var fjs = d.getElementsByTagName(s)[0]; fjs.parentNode.insertBefore(js,fjs); } }(document,"script","twitter-wjs"); </script> Once you have the widget, you can customize it with data attributes, for more info you can read https://dev.twitter.com/web/embedded-timelines
  • 5 Votes
    13 Posts
    3k Views
    D
    But lemmie tell you writing Javascript inside an HTML widget is a Pain In The Neck.
  • 0 Votes
    4 Posts
    2k Views
    F
    @PitaJ Issue created at https://github.com/NodeBB/NodeBB/issues/5643
  • Widgets zones in themes

    Solved Plugin Development
    9
    1 Votes
    9 Posts
    5k Views
    E
    @nicolas search for theme exodus.its persona fork with widgets, it not finished but it can help you to see the code
  • Help for Widgets please

    General Discussion
    3
    0 Votes
    3 Posts
    2k Views
    P
    @psychobunny have good holidays GH : https://github.com/NodeBB/NodeBB/issues/3743
  • Widgets - Recent Posts

    General Discussion
    6
    0 Votes
    6 Posts
    4k Views
    J
    @a_5mith Thanks!!
  • 0 Votes
    3 Posts
    2k Views
    Q
    Getting this after a while in console too
  • Widgets not showing

    Bug Reports
    5
    0 Votes
    5 Posts
    3k Views
    PitaJP
    I just removed nodebb-theme-rocket and now the widgets are working. It seems like there was some kind of problem with that theme which screwed up the whole thing. Wierd.
  • Problem with widgets

    General Discussion
    14
    0 Votes
    14 Posts
    6k Views
    P
    Ok i have used command reset all and it works bu i must activate all my plugins
  • 0 Votes
    1 Posts
    2k Views
    E
    How to add more widget locations on home.tpl? I want add widget at the footer / header of home.tpl Not global footer.
  • Issues with Nodebb-Widgets-Essentials

    NodeBB Plugins
    2
    0 Votes
    2 Posts
    2k Views
    P
    Hey @src1988, is this the same issue that you're having here? https://github.com/NodeBB/NodeBB/issues/1878 If yes, then I think it's because you're running an incompatible version of widget-essentials with NodeBB. Let us know on that GitHub thread if you're still running into this problem
  • Widgets viewable only by guests

    Feature Requests
    5
    0 Votes
    5 Posts
    2k Views
    T
    @Schamper How would one customize say, the custom-homepage widget to show only to users who are not logged in then? Edit: Figured it out
  • Can't get widgets to work properly

    NodeBB Plugins
    6
    0 Votes
    6 Posts
    3k Views
    S
    @julian I think it happens at bitbangers too. Nothing is hidden other than shoutbox but that is built in.