Skip to content

General Discussion

A place to talk about whatever you want

3.9k Topics 23.8k Posts
  • [BUG] Chats

    6
    0 Votes
    6 Posts
    2k Views
    A
    Issues with leet.cc forums, you'd need to go direct to them. But glad you got it fixed.
  • NGINX Error

    21
    0 Votes
    21 Posts
    14k Views
    G
    @lenovouser Your method works fine for me over https. Thanks for your persistence. edit: I just had to add in these two lines for socket.io to work. proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade";
  • How get current user data in nodebb

    2
    0 Votes
    2 Posts
    3k Views
    barisB
    You can't get the current user data without their uid. If you have access to the express req object you can grab it with req.uid or if it is a socket call then its socket.uid. The value of uid is 0 if the user is not logged in.
  • Change avatar color background without uploading an image?

    5
    0 Votes
    5 Posts
    2k Views
    W
    @pichalite Ah ok thanks.. Looks like we will need to just upload some color pngs.. Thanks again
  • Should an edited post be marked as unread again?

    7
    2 Votes
    7 Posts
    3k Views
    frissdiegurkeF
    The author also could create a new post stating that some changes have been made if it's worth an update in his opinion. I don't think any other concept is needed since editing posts is more wiki-like than forum-like. If your forum relies on something like this you might consider using a wiki platform instead or additionally.
  • subdomain tell me what I did wrong?

    12
    0 Votes
    12 Posts
    4k Views
    D
    I did restart it. Guess it took time because it works now! Thanks everyone. Also thumbs up on the nginx recommendation!
  • This topic is deleted!

    Unsolved
    37
    0 Votes
    37 Posts
    334 Views
  • Theme Update

    8
    0 Votes
    8 Posts
    3k Views
    P
    @reid not sure if they will take this on but you can pay the @administrators to get it done
  • Notification when live

    2
    0 Votes
    2 Posts
    1k Views
    julianJ
    You'd need to write a plugin to do this. Possibly with an ACP page so when the stream is live, then an admin can go in and click "send notifications to all users". You can hook into the nodebb notifications library with: var notifications = module.parent.require('./notifications'); ... and use .create(); and .push(), respectively.
  • Why does data.url report as undefined? (How to determine the page URL)

    10
    0 Votes
    10 Posts
    3k Views
    R
    @baris @bentael helped me out last night. Amongst other things he confirmed that too, that being on the index page results in an empty data.url. He did get me going using the location.href. I have to say every one on this forum has been super helpful. I intend to make a donation to Nodebb in the near future.
  • Disable plugin from cli ?

    9
    0 Votes
    9 Posts
    8k Views
    B
    as of some time.. ./nodebb reset -p nodebb-plugin-pluginName
  • Logo quick question

    5
    0 Votes
    5 Posts
    2k Views
    D
    @PitaJ That seemed to have fixed it along with another error I fixed while adding permissions Thanks!
  • Display more information on Users page

    11
    0 Votes
    11 Posts
    5k Views
    K
    @pichalite Thanks for offering help! Here is the users_list.tpl content. I did change users.js <!-- BEGIN users --> <li class="users-box registered-user" data-uid="{users.uid}"> <div class="user-data-container"> <div class="user-media"> <a href="{config.relative_path}/user/{users.userslug}"> <div class="user-picture"> <img src="{users.picture}" /> </div> </a> <div class="user-info"> <span> <i component="user/status" class="fa fa-circle status {users.status}" title="[[global:{users.status}]]"></i> </span> <br/> <!-- IF route_users:joindate --> <div title="joindate" class="joindate"> <i class='fa fa-clock'></i> <span class='timeago' title="{users.joindateISO}"></span> </div> <!-- ENDIF route_users:joindate --> <!-- IF route_users:reputation --> <div title="reputation" class="reputation"> <i class='fa fa-star'></i> <span class='formatted-number'>{users.reputation}</span> </div> <!-- ENDIF route_users:reputation --> <!-- IF route_users:postcount --> <div title="post count" class="post-count"> <i class='fa fa-pencil'></i> <span class='formatted-number'>{users.postcount}</span> </div> <!-- ENDIF route_users:postcount --> </div> </div> <div class="user-info-extended"> <a href="{config.relative_path}/user/{users.userslug}" class="uie-username"><h4>{users.username}</h4></a> <p>{users.signature}</p> <p id="uie-location">{users.location}</p> <a>{users.website}</a> </div> </div> <div class="user-interaction"> <!-- IF !config.disableChat --> <a href="#" class="btn btn-primary btn-sm chat-btn-users" data-uid='{users.uid}' data-username='{users.username}'>[[user:chat]]</a> <!-- ENDIF !config.disableChat --> </div> <hr> </li> <!-- END users --> I alse changed the /srv/<url>/www/public/src/client/users.js file content to handle the chat button. That should not alter the new user load but here is the content I added to the end of Users.init = function(){... function. /*--- eRes change: added users button listener*/ /* note: delegated event handling*/ $('#users-container').on('click', '.chat-btn-users', function() { app.openChat($(this).data('username'), $(this).data('uid')); }); /*note: hide user interaction div */ $('#users-container').on("mouseenter", '.users-box', function(){ $(this).children(".user-interaction").css('visibility','visible'); }); $('#users-container').on("mouseleave", '.users-box', function(){ $(this).children(".user-interaction").css('visibility','hidden'); }); /*--END-- eRes change: added users button listener */ Thanks again!
  • download plugins

    6
    0 Votes
    6 Posts
    2k Views
    julianJ
    Maybe if we tag him three times, he'll come out. @psychobunny
  • How To Add SSL For Subdomain?

    6
    0 Votes
    6 Posts
    7k Views
    julianJ
    @charles Let's Encrypt can't access the challenge directory because you don't have an nginx configuration for it. You'll need to add this inside the server block: location /.well-known/acme-challenge { root /var/www/example/public_html; }
  • Would running nodebb in Docker make it portable?

    3
    0 Votes
    3 Posts
    1k Views
    JenklerJ
    I have plans on fixing this, but I had alot todo. But you can use my packages nginx + nodejs + mongodb if you want Here is my repo: https://github.com/Jenkler/docker Check it out
  • Considering NodeBB

    14
    0 Votes
    14 Posts
    5k Views
    M
    @julian Good to know.)) I would find out this myself today, but my hosting failed with a new server. So I'm trying NodeBB tomorrow. Thanks everyone for answers.)
  • Remove Topic Toolbar from certain categories

    8
    0 Votes
    8 Posts
    2k Views
    W
    @pichalite Thanks
  • Issues with Facebook SSO

    5
    0 Votes
    5 Posts
    3k Views
    julianJ
    @rod, couldn't reproduce that issue
  • Getting Logged In User - Javascript for Piwik

    Solved
    15
    1 Votes
    15 Posts
    7k Views
    julianJ
    @rod It's nothing special, it's just a habit that I have trained myself into. The reason I check for the existence of app.user is because you cannot reference an object property (that is, the uid property of the user object in app) if the object itself does not exist. You'll get a javascript error (ReferenceError: user is not defined). If there's even a chance the parent object is not defined, I make a check for it first (though app is always defined in NodeBB, so I skip that). The proper way to write it would be: if (app.hasOwnProperty('user')), but even sometimes that can be tripped up if app.user is a property, but undefined