Easter Extra-Long Weekend Plugin+Theme Weekend!

NodeBB Plugins

Suggested Topics


  • 0 Votes
    20 Posts
    540 Views

    Hi,

    i have a little Change, that will also leave User when NOT in ldap group:

    groupJoin: (ldapGroup, ldapId, uid, callback) => { winston.verbose("[LDAP] groupJoin " + ldapGroup.cn + " for user " + ldapId + " uid " + uid) nodebb_ldap.createGroup(ldapGroup, (err, groupId) => { if (err) { return callback(err); } let members = ldapGroup.uniqueMember; if (!Array.isArray(members)) { members = [members]; } winston.verbose("[LDAP] groupJoin members " + members && typeof members) let found = false if (members) { members.forEach(member => { if (member && member.indexOf(ldapId) != -1) { found = true } }); } if (found) { const groupsToJoin = [groupId]; if ((master_config.admin_groups || '').split(',').includes(ldapGroup.cn)) { winston.verbose("[LDAP] joins admin group") groupsToJoin.push('administrators'); } if ((master_config.moderator_groups || '').split(',').includes(ldapGroup.cn)) { groupsToJoin.push('Global Moderators'); } return groups.join(groupsToJoin, uid, callback); } else { const groupsToUnJoin = [groupId]; winston.verbose("[LDAP] unjoins group" + ldapGroup.cn + " uid " + uid); return groups.leave(groupsToUnJoin, uid, callback); //callback(); } } ); },

    thats realy cool for use 🙂 maybe someone else will help it 🙂

  • 0 Votes
    1 Posts
    219 Views

    I'm hoping to pull In some YouTube videos that will embed into the post, so pull in the YouTube category feed automatically.

    Currently getting a 'Status 404 error' when inputting the feed URL, any ideas?

    I have posted this is the actual plugin thread but without any response so far. Has anyone managed to pull in and embed YouTube videos direct into the posts?

    Thanks 👍

  • 0 Votes
    3 Posts
    1k Views

    I think you misunderstood what I said. I don't mean translating the admin control panel.I mean translating the NodeBB itself which also is possible as a project on Transifex. In fact I am looking for another way. then I thought there might be a plugin for doing this which is my question. Thanks a lot.

  • 3 Votes
    1 Posts
    900 Views

    source

    upload-c99ba1fb-dc2d-4db2-9dee-d0056b20fabc

  • 3 Votes
    25 Posts
    9k Views

    @a_5mith okey dokes. I'll try some manual jiggery pokery.