Documentation
Admin Control Panel
This plugin can be configured at NodeBB Admin -> Plugins -> Support Tickets.
"use strict"; | |
/* | |
BACK UP YOUR DB BEFORE RUNNING | |
modify these: | |
*/ | |
var inputFile = 'emails.csv'; | |
var groupToJoin = 'global-moderators'; |
$(document).ready(function() { | |
function colorize() { | |
$('a[href*="/user/"').each(function() { | |
var link = $(this); | |
var username = link.attr('href').match(/\/user\/(\w+)/); | |
$.get('/api/user/' + username[1], function(data) { | |
// todo: check `data.groupTitle` and then find the matching group in `data.groups` | |
if (data.groups[0]) { | |
link.css({color: data.groups[0].labelColor}); |
'use strict'; | |
/*globals require, console, process */ | |
var nconf = require('nconf'); | |
var async = require('async'); | |
nconf.file({ | |
file: 'config.json' | |
}); |
Thank you for your interest in contributing to an open source project run by NodeBB Inc. ("We" or "Us"). This NodeBB Individual Contributor Assignment Agreement ("Agreement") documents the rights granted by contributors to Us.
To make this document effective, please sign it and send it to Us by mail, email, or electronic submission, following the instructions at https://github.com/NodeBB/NodeBB/blob/master/.github/CONTRIBUTING.md. This is a legally binding document, so please read it carefully before agreeing to it. The Agreement may cover more than one software project managed by Us.
2.1 Copyright Assignment
<html> | |
<head> | |
<title>The NodeBB Community Forum is Under Maintenance</title> | |
<link href='http://fonts.googleapis.com/css?family=Ubuntu:400,500,700' rel='stylesheet' type='text/css'> | |
<style type="text/css"> | |
body { | |
background: #00A9EA; | |
color: white; | |
font-family: 'Ubuntu', sans-serif; | |
text-align: center; |
'use strict'; | |
/*global require, module, self*/ | |
(function(module) { | |
var templates = { | |
cache: {}, | |
globals: {} | |
}, | |
helpers = {}, | |
loader, |
define('notifications', ['events', 'components'], function(events, components) { | |
var notifications = {}; | |
notifications.init = function() { | |
events.initialize('notifications', function() { | |
this.register('icon.unread', markUnread); | |
this.register('icon.read', markRead); | |
}); |
// paste this in https://github.com/NodeBB/NodeBB/blob/master/src/routes/debug.js | |
// and then don't forget to remove it! | |
router.get('/remove-op', function(req, res) { | |
var db = require('../database'), | |
async = require('async'); | |
db.getSortedSetRange('topics:tid', 0, -1, function(err, tids) { | |
async.eachLimit(tids, 50, function(tid, next) { | |
db.getSortedSetRange('tid:' + tid + ':posts', 0, 0, function(err, pid) { |
var matches = null, | |
regex = regex = /[ \t]*<!-- IMPORT ([\s\S]*?)? -->[ \t]*/g, | |
apiCalls = [], | |
matchList = [], | |
deferredObjects = []; | |
while((matches = regex.exec(html)) !== null) { | |
var deferredObject = $.Deferred(); | |
deferredObjects.push(deferredObject); |