• HOME
    • PRODUCT
    • PRICING
    • ABOUT
    • COMMUNITY
    Menu
    • HOME
    • PRODUCT
    • PRICING
    • ABOUT
    • COMMUNITY
    Get in touch
    Get in touch
    Menu
    • HOME
    • PRODUCT
    • PRICING
    • ABOUT
    • COMMUNITY
    • Sign in
    • Start free trial
    • Get in touch
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    • Documentation
      • Home
      • Read API
      • Write API
      • Plugin Development
    1. Home
    2. broskmenmi
    B
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 9
    • Best 0
    • Controversial 0
    • Groups 0

    broskmenmi

    @broskmenmi

    0
    Reputation
    8
    Profile views
    9
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    broskmenmi Unfollow Follow

    Latest posts made by broskmenmi

    • Confusion about dashboard numbers

      Hello!

      I'm trying to understand the numbers presented on the dashboard!

      If we take a look at the right hand side:

      Picture 1: 6a4abe92-40e0-4928-ab25-6cc0b9ccb9ae-image.png

      7 active users are presented, but comparing it to the online list:
      Picture 2:
      60ba22aa-8aaf-463e-9e70-4f3cabaaa92c-image.png

      Now comparing these numbers to the graph:

      Picture 3:
      4ef7011b-9b0a-4d2e-b81d-b00067570578-image.png

      It says 4 unique visitors!

      Now lets take at the graph presented since we started the forum (15th of jan)
      Pciture 4:
      fa5da1bd-37b8-48dd-b72d-e9f3b14edefa-image.png

      Questions:

      • How come the three first pictures don't show the same numbers? What do they actually show?
      • In picture 4, the number of unique visitors seem to be accumulated over time, how come? every weekend seem to correspond to a higher number of unique visitors!
      • In picture 4, the max number of unique visitors seem to be 130, but we have only 81 users. How come? Does anonymous viewers also count? we've turned off vieweing for non-logged in users.

      Thanks in advance!

      posted in General Discussion
      B
      broskmenmi
    • RE: Integration with Canny.io

      @PitaJ said in Integration with Canny.io:

      action:ajaxify.end is the hook you're looking for.

      I had tried ajaxify.end many times. But missed the fact that I can't run console.log like that, I had to put it in a callback function and it worked great. Thanks for pushing me to this direction again!

      posted in NodeBB Development
      B
      broskmenmi
    • RE: Integration with Canny.io

      An approach I've had is like this:

      Inside Custom javascript:

      
      function cannyRender() {
      	Canny('render', {
      		boardToken: 'xxxxxx',
      		basePath: null, // See step 2
      		ssoToken: null, // See step 3
      	});
      }
      
      function cannyLoader(w, d, i, s) {
          function l() {
              if (!d.getElementById(i)) {
                  var f = d.getElementsByTagName(s)[0],
                      e = d.createElement(s);
                  e.type = "text/javascript", e.async = !0, e.src = "https://canny.io/sdk.js", f.parentNode.insertBefore(e, f)
              }
          }
          if ("function" != typeof w.Canny) {
              var c = function() {
                  c.q.push(arguments)
              };
              c.q = [], w.Canny = c, "complete" === d.readyState ? l() : w.attachEvent ? w.attachEvent("onload", l) : w.addEventListener("load", l, !1)
          }
      	
      	cannyRender();
      }
      

      And I've placed this code in category.tpl (in slick theme) (PS: FOR NOW):

      <div data-canny />
      

      I'm trying to find a hook that fires on each page visit, or better yet, each time I enter a category!
      Are there any like that? All hooks I've tried seem to fire the first time I enter the categoy on a cold start, not when clicking from the main page.

      Everything seems to fire the first time I save the custom script (because of live reload), but I'm not really sure what the approach should be here, even this line of code runs the first time I run it but no more when visiting the categories.

      $(window).on('AKHFSDAJHFG', console.log('test end'));
      
      posted in NodeBB Development
      B
      broskmenmi
    • Integration with Canny.io

      Hello!

      I'm trying to make a widget show up in nodebb under one of the categories I have.
      The idea is to check node_modules\nodebb-theme-slick\templates\category.tpl which category it's displaying (for now) and then display the widget instead of the category content.

      <div data-canny />
      <script>!function(w,d,i,s){function l(){if(!d.getElementById(i)){var f=d.getElementsByTagName(s)[0],e=d.createElement(s);e.type="text/javascript",e.async=!0,e.src="https://canny.io/sdk.js",f.parentNode.insertBefore(e,f)}}if("function"!=typeof w.Canny){var c=function(){c.q.push(arguments)};c.q=[],w.Canny=c,"complete"===d.readyState?l():w.attachEvent?w.attachEvent("onload",l):w.addEventListener("load",l,!1)}}(window,document,"canny-jssdk","script");</script>
      <script>
        Canny('render', {
          boardToken: 'YOUR_BOARD_TOKEN',
          basePath: null, // See step 2
          ssoToken: null, // See step 3
        });
      </script>
      

      As I suspected, I'm not sure if this is the right way to do this kind of integration. I know one approach is to build a plugin. But I want to fix this in the template asap to test the canny.io functionality first before I put more time on it.

      posted in NodeBB Development
      B
      broskmenmi
    • RE: Sorting category by vote

      Now to another question, is there any way to make one specific categoy to be defaulted to "Most votes" but not the others? Since in admin settings i can set Default Topic Sorting to "Oldest to newest" and I want to keep it that way except for one category. Is that doable?

      posted in NodeBB Plugins
      B
      broskmenmi
    • RE: Sorting category by vote

      I just checked the sort.tpl in templates\partials\category and it was missing:

      Inside:

      <ul class="dropdown-menu pull-right">
      

      Append:

      <li><a href="#" class="most_votes" data-sort="most_votes"><i class="fa fa-fw"></i> [[topic:most_votes]]</a></li>
      
      posted in NodeBB Plugins
      B
      broskmenmi
    • RE: Sorting category by vote

      @psychobunny said in Sorting category by vote:

      Hi @broskmenmi if you head into a category and click on "Sort By" there should be a "Most Votes" option to sort that way

      I don't have any option like that in mine:

      Nyaste till äldst = newest posts first
      Äldst till nyaste = oldest first
      Flest inlägg = most post

      I'm running nodeBB 1.10.1.

      Maybe it is because of the theme?
      Using Slick theme with Dark skin

      posted in NodeBB Plugins
      B
      broskmenmi
    • Sorting category by vote

      Re: [nodebb-plugin-category-sort-by-votes] Sort topics by votes within a category!

      I saw the above post while searching the forum for information about upvoting. I'm trying to create a feature request category and sorting by vote would be great. The post above mentions this feature being included in core but I cannot find it anywhere.
      I'm running nodeBB v1.10.1

      Thanks in advance!

      posted in NodeBB Plugins
      B
      broskmenmi

    Get Started

    • Product
    • Pricing

    Resources

    • Demo Site
    • Answers
    • Docs
    • Bug Bounty

    Company

    • About
    • Blog
    • Contact
    Start Free Trial
    Github Facebook Instagram Twitter
    © 2014 – 2022 NodeBB, Inc. — Made in Canada.
    • Terms
    • Privacy
    • GDPR
    • DMCA
    • Contact
    Menu
    • Terms
    • Privacy
    • GDPR
    • DMCA
    • Contact