Skip to content

General Discussion

A place to talk about whatever you want

3.9k Topics 23.9k Posts
  • Topics, categories and users can be watching, tags can watched?

    1
    0 Votes
    1 Posts
    360 Views
    S
    Topics, categories and users can be watching, tags can watched? [image: VdCbM0b.png]
  • How much money do you make by nodebb?

    2
    0 Votes
    2 Posts
    693 Views
    NodeMonsterN
    Your forum is for chinese in China? JD & Taobao ads in widgets sound like an option.
  • Question and Answers missing old functionality issue

    2
    0 Votes
    2 Posts
    528 Views
    C
    I'm not shure how delete works on the Nodebb official forum. If someone reads the post, the problem was on my end. The plugin works as it should.
  • Anonymous posting

    2
    1 Votes
    2 Posts
    724 Views
    julianJ
    At this time, it is not possible to "post anonymously" when logged in. You would have to enable the "reply to topics" privilege to a specific category for guests, and then your users would need to log out to post as a guest.
  • Is it possible to add ads at the top-section

    3
    0 Votes
    3 Posts
    2k Views
    S
    I mean put some image with link up there...
  • Font Awesome Update

    5
    1 Votes
    5 Posts
    3k Views
    NodeMonsterN
    I have successfully patched font awesome to 5.6.3. Both free or pro should work fine. As a total newbie to nodebb, there might be issues that I am not aware yet. Below is a simple script to assist any future updates. I have not fully tested the procedures. Proceed at your own risk! #!/bin/bash ######################################################################################################### ## copy latest font awesome's /webfonts/* to public/vendor/fontawesome/fonts ## ## copy latest font awesome's /less/_variables.less to public/vendor/fontawesome/less/variables.less ## ## copy latest font awesome's /less/_icons.less to public/vendor/fontawesome/less/icons.less ## ######################################################################################################### latestfa=`curl -s https://github.com/FortAwesome/Font-Awesome/releases | grep "tree" | head -1 | grep -o -P '(?<=title=).*(?=>)'` if ! grep $latestfa public/vendor/fontawesome/less/variables.less; then echo "Latest Font Awesome not copied yet!" exit 0; fi #Use back nodebb preferred font sizes sed -i 's#../webfonts#./vendor/fontawesome/fonts#; s/16px/14px/; s#2em#(30em / 14)#' public/vendor/fontawesome/less/variables.less #css for latest FA fonts cat <<EOF > public/vendor/fontawesome/less/path.less @font-face { font-family: 'FontAwesome'; font-style: normal; font-weight: 400; src: url("@{fa-font-path}/fa-brands-400.eot"); src: url("@{fa-font-path}/fa-brands-400.eot?#iefix") format("embedded-opentype"), url("@{fa-font-path}/fa-brands-400.woff2") format("woff2"), url("@{fa-font-path}/fa-brands-400.woff") format("woff"), url("@{fa-font-path}/fa-brands-400.ttf") format("truetype"), url("@{fa-font-path}/fa-brands-400.svg#fontawesome") format("svg"); } @font-face { font-family: 'FontAwesome'; font-style: normal; font-weight: 400; src: url("@{fa-font-path}/fa-regular-400.eot"); src: url("@{fa-font-path}/fa-regular-400.eot?#iefix") format("embedded-opentype"), url("@{fa-font-path}/fa-regular-400.woff2") format("woff2"), url("@{fa-font-path}/fa-regular-400.woff") format("woff"), url("@{fa-font-path}/fa-regular-400.ttf") format("truetype"), url("@{fa-font-path}/fa-regular-400.svg#fontawesome") format("svg"); } EOF #Delete the old font links sed -i '/fa fa-/d; ' src/views/partials/fontawesome.tpl #Get new icons into variable newfontawesome=`grep -o -P '(?<=fa-var-).*(?=:)' public/vendor/fontawesome/less/variables.less` #Make icon Links for i in $newfontawesome; do echo "Insert $i Into Template" echo "<i class=\"fa fa-$i\"></i>" >>/tmp/newfontawesome.txt done #Insert icons into template sed -i '/fa-icons/r /tmp/newfontawesome.txt' src/views/partials/fontawesome.tpl #insert the new font links #Fix notification bell grep -rl fa-bell-o | xargs sed -i 's/fa-bell-o/fa-bells/g' grep -rl fa-bell-slash-o | xargs sed -i 's/fa-bell-slash-o/fa-bell-slash/g' #Fix chats comment grep -rl fa-comment-o | xargs sed -i 's/fa-comment-o/fa-comments/g' #Fix setting gear grep -rl fa-gear | xargs sed -i 's/fa-gear/fa-cogs/g' #Fix clock grep -rl fa-clock-o | xargs sed -i 's/fa-clock-o/fa-clock/g' #Fix group grep -rl fa-group | xargs sed -i 's/fa-group/fa-users/g' #Fix floppy saving button grep -rl fa-floppy-o | xargs sed -i 's/fa-floppy-o/fa-save/g' #Fix Thumbs UP Down grep -rl fa-thumbs-o | xargs sed -i 's/fa-thumbs-o/fa-thumbs/g' #Fix Bookmark grep -rl fa-heart-o | xargs sed -i 's/fa-heart-o/fa-book-heart/g' #Fix ThumbTack grep -rl fa-thumb-tack | xargs sed -i 's/fa-thumb-tack/fa-thumbtack/g' #Fix Fork Topic grep -rl fa-code-fork | xargs sed -i 's/fa-code-fork/fa-handshake/g' #Fix Trash grep -rl fa-trash-o | xargs sed -i 's/fa-trash-o/fa-trash-alt/g' #Fix Rebuild grep -rl fa-refresh | xargs sed -i 's/fa-refresh/fa-sync/g' #Fix Mail Forward grep -rl fa-mail-forward | xargs sed -i 's/fa-mail-forward/fa-mail/g' #Fix Picture in Editor grep -rl fa-picture-o | xargs sed -i 's/fa-picture-o/fa-image/g' #Fix Emoji in Editor grep -rl fa-smile-o | xargs sed -i 's/fa-smile-o/fa-smile-wink/g' #Fix Rotate Left Right grep -rl fa-rotate-left | xargs sed -i 's/fa-rotate-left/fa-undo/g' grep -rl fa-rotate-right | xargs sed -i 's/fa-rotate-right/fa-redo/g' ./nodebb upgrade ./nodebb restart #Some icons like fa-clock-o in /recent and fa-group in /group have been renamed and are not compatible with the latest FA5. In order to change them, inspect the element in your browser, under iconPicker class abd change fa-clock-o or fa-group to fa-500px or something else that you can click on and change it.
  • Marry christmas and a Happy new year!

    3
    0 Votes
    3 Posts
    1k Views
    M
    Best wishes to everyone
  • I can‘t create a new topics on my android phone

    1
    0 Votes
    1 Posts
    441 Views
    S
    I can‘t create a new topic on my android phone when I use version 1.4.5 ,i can create a new topic but when I upgraded to version 1.11 and couldn't create what's wrong?
  • How to allow search users for guest?

    7
    0 Votes
    7 Posts
    2k Views
    <baris>B
    It is a global privilege now.
  • Is it possible to show another group label ?

    9
    0 Votes
    9 Posts
    2k Views
    S
    @sharonyue said in Is it possible to show another group label ?: it is possible to switch the label's sequence? I am still thinking how to achieve this..
  • How to export as PDF all my forum?

    Unsolved
    6
    1 Votes
    6 Posts
    3k Views
    julianJ
    We support data export to CSV on a user-by-user basis via the GDPR export tooling. Otherwise there's no easy way to translate all of NodeBB's data into a human-readable format, sorry.
  • Where are the voting plugins?

    4
    0 Votes
    4 Posts
    939 Views
    S
    @julian Unable to submit
  • 0 Votes
    3 Posts
    1k Views
    M
    @PitaJ I was able to do it by giving the nav button a unique ID in the ID section and then just controlling the tooltip/button action in JS under the custom JS section. Surprisingly easy to do as it turns out.
  • How to Customize the URL? Would Prefer Shorter URL

    10
    1 Votes
    10 Posts
    5k Views
    yariplusY
    https://www.google.com/search?q=nodebb+prefer+shorter+url
  • I hope the view count when Users click once plus one,how can i do it

    1
    0 Votes
    1 Posts
    323 Views
    S
    I hope the view count when Users click once plus one,how can i do it
  • Upgrade to v1.11 MongoDb not authorized to execute command

    12
    0 Votes
    12 Posts
    2k Views
    F
    @baris Facing similar error when accessing /admin/advanced/database on v1.11 [image: 51zdJ7h.png]
  • How to disable reply?

    2
    0 Votes
    2 Posts
    480 Views
    PitaJP
    Topic Tools -> Lock Topic
  • the views data's error

    5
    0 Votes
    5 Posts
    873 Views
    <baris>B
    The view count only goes up once per hour per session https://github.com/NodeBB/NodeBB/blob/master/src/controllers/topics.js#L165
  • Best way to share user data between two forums?

    11
    1 Votes
    11 Posts
    5k Views
    julianJ
    Depends what you want to do... if you want to be notified when user data is updated, then the action hook is fine (if you're not changing anything in the data payload itself). Useful if you want to take the new user data and update another set of data somewhere else
  • How to use different collection in different page in nodeJS

    1
    0 Votes
    1 Posts
    539 Views
    S
    Hi, Brief details of what is required: I have index.html page and index.js file under router. I am showing data from one collection say 'x' on page index.html. All the code related to router.get/post is done in index.js file. There is a button 'SubText' on index.html, m applying aggregation for search and storing output in new collection. Till here, everything is working fine. Now my requirement is when user clicks on 'SubText' button, after new collection, it should take it to different html page and show data from newly created collection. Please can anybody suggest/guide how to do this? Please find below the coder: Index.js var createGroups = function (db, callback) { var pipeline = [ { $match: { $text: { $search: "Error" } } }, { $project: { _id: 0, procPath: 1, bkgroundInfo: 1, "result": { $cond: { if: { $gte: [{ $indexOfCP: ["$bkgroundInfo", "Error"] }, 0] }, then: { $substrCP: ["$bkgroundInfo", { $indexOfCP: ["$bkgroundInfo", "Error"] }, 140] }, else: "Not Found" } } } }, { "$out": "SKSNodeColl" } ] db.aggregate(pipeline).toArray(function (err, result) { //assert.equal(err, null); console.log(result); callback(result); }); }; router.get('/newColl', function (req, res, next) { MongoClient.connect(url, { useNewUrlParser: true }, function (err, client) { if (err) { console.log(err); throw err; } var db = client.db("mydb"); var collection = db.collection("Users"); console.log("Mongo Connection - New Collection"); createGroups(collection, function (err, result) { console.log("newCollection Created"); var userdetails = path.join(__dirname, "/../views/userdetails.html"); console.log(userdetails); client.close(); res.sendFile(userdetails); }); }); }); ===================== Index.html <a href="/newColl"><input type="button" id="resultMatch" value="PatternMatchingResult" tabindex="1"></a> userdetails.html //page where I want to show data from new collection.(included ptrnSearch.js in this file in head section: ) <form id="form1" name="form1" method="post" action="/fetch"> <input type="hidden" name="id" value="" id="id" /> <table border="1"> <tbody> <tr> <th> ID </th> <th> Procedure Path </th> <th> Background Description </th> <th> Error Pattern </th> </tr> {% if (data.length) %} {% for item in data %} <tr> <td> {{item['_id']}} </td> <td> {{item['procPath']}} </td> <td> {{item['bkgroundInfo']}} </td> <td> {{item['result']}} </td> </tr> {% endfor %} {% endif %} </tbody> </table> </form> ptrnSearch.js //added to userdetails.html page router.get('/', function (req, res) { MongoClient.connect(url, function (err, client) { if (err) { throw err; } var db = client.db("mydb"); db.collection('SKSNodeColl').find({}).toArray(function (err, docs) { if (err) { throw err; } res.render('userdetails.html', { data: docs }); client.close(); }); }); }); ============================== Many Thanks