Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    1. Home
    2. geek
    G
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    geek

    @geek

    1
    Reputation
    36
    Posts
    619
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    geek Follow

    Posts made by geek

    • RE: Hiding subcategories of a particular category on the homepage

      @pichalite Hmm, is there a way to hide a particular category by modifying the template file?

      Here's what I'm doing now, but I was wondering if there is a better way:
      $('.categories li div:has(h2 a[href$="CATEGORY-NAME"]) .category-children').addClass("hidden");

      posted in NodeBB Development
      G
      geek
    • Hiding subcategories of a particular category on the homepage

      Hi guys,

      I would like to hide the subcategories of a particular category on the main page (there are many subcategories and the list is long).

      Is there a way to do this in NodeBB?

      Thanks,
      Josh

      posted in NodeBB Development
      G
      geek
    • RE: Updating User Profile picture using Write API

      @pichalite Sigh alright, thanks for the help.

      posted in NodeBB Development
      G
      geek
    • RE: Updating User Profile picture using Write API

      @pichalite I tried using http://localhost:4567/images/logo.png to test it out, but it didn't work.

      posted in NodeBB Development
      G
      geek
    • RE: Updating User Profile picture using Write API

      @pichalite Hmm, alright. Is there another hook that I can use to update a user's profile picture?
      Haven't been able to find documentation for the hooks.

      posted in NodeBB Development
      G
      geek
    • Updating User Profile picture using Write API

      Hi,

      I am trying to update a user's profile picture using the Write API.

      Here's what I have so far, but it isn't working:

      var image = {
      	name: "profileCover",
      	path: "test.png",
      	uid: 1
      };
      
      socket.emit('user.updateProfile', image, function(err, data) {
      	console.log(data);
      });
      

      Can anyone provide some help?

      Thanks!

      posted in NodeBB Development
      G
      geek
    • Render current URL in template file

      Hi,

      I am in the process of developing a NodeBB theme, and was wondering if it is possible to get the current URL in a .tpl file. Maybe something like {current_url}?

      Thanks for the help!

      posted in NodeBB Development
      G
      geek